body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

main{
    width: 100vw;
    height: 100vh;
    background-image: url(../images/background.jpg);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-wrap{
    margin: .5rem 1.2rem;
    width: 100%;
    text-align: right;
}
#game-container {
    width: 80%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    /* background: linear-gradient(to right, #ffccff, #ff99cc);
    /* position: relative; */
/* 
    background: #8c6e47;
background: -moz-linear-gradient(left, #8c6e47 0%, #8c6e47 1%, #a78b63 2%, #a78b63 24%, #9e7f5c 25%, #8c6e47 48%, #9e7f5c 49%, #7f6d4a 52%, #7f6d4a 53%, #9a7e52 54%, #7f6d4a 55%, #7f6d4a 56%, #9a7e52 57%, #7f6d4a 58%, #7f6d4a 73%, #9a7e52 74%, #9a7e52 98%, #9e7f5c 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #8c6e47), color-stop(1%, #8c6e47), color-stop(2%, #a78b63), color-stop(24%, #a78b63), color-stop(25%, #9e7f5c), color-stop(48%, #8c6e47), color-stop(49%, #9e7f5c), color-stop(52%, #7f6d4a), color-stop(53%, #7f6d4a), color-stop(54%, #9a7e52), color-stop(55%, #7f6d4a), color-stop(56%, #7f6d4a), color-stop(57%, #9a7e52), color-stop(58%, #7f6d4a), color-stop(73%, #7f6d4a), color-stop(74%, #9a7e52), color-stop(98%, #9a7e52), color-stop(100%, #9e7f5c));
background: -webkit-linear-gradient(left, #8c6e47 0%, #8c6e47 1%, #a78b63 2%, #a78b63 24%, #9e7f5c 25%, #8c6e47 48%, #9e7f5c 49%, #7f6d4a 52%, #7f6d4a 53%, #9a7e52 54%, #7f6d4a 55%, #7f6d4a 56%, #9a7e52 57%, #7f6d4a 58%, #7f6d4a 73%, #9a7e52 74%, #9a7e52 98%, #9e7f5c 100%);
background: -o-linear-gradient(left, #8c6e47 0%, #8c6e47 1%, #a78b63 2%, #a78b63 24%, #9e7f5c 25%, #8c6e47 48%, #9e7f5c 49%, #7f6d4a 52%, #7f6d4a 53%, #9a7e52 54%, #7f6d4a 55%, #7f6d4a 56%, #9a7e52 57%, #7f6d4a 58%, #7f6d4a 73%, #9a7e52 74%, #9a7e52 98%, #9e7f5c 100%);
background: -ms-linear-gradient(left, #8c6e47 0%, #8c6e47 1%, #a78b63 2%, #a78b63 24%, #9e7f5c 25%, #8c6e47 48%, #9e7f5c 49%, #7f6d4a 52%, #7f6d4a 53%, #9a7e52 54%, #7f6d4a 55%, #7f6d4a 56%, #9a7e52 57%, #7f6d4a 58%, #7f6d4a 73%, #9a7e52 74%, #9a7e52 98%, #9e7f5c 100%);
background: linear-gradient(to right, #8c6e47 0%, #8c6e47 1%, #a78b63 2%, #a78b63 24%, #9e7f5c 25%, #8c6e47 48%, #9e7f5c 49%, #7f6d4a 52%, #7f6d4a 53%, #9a7e52 54%, #7f6d4a 55%, #7f6d4a 56%, #9a7e52 57%, #7f6d4a 58%, #7f6d4a 73%, #9a7e52 74%, #9a7e52 98%, #9e7f5c 100%);

    background-size: 120px;
    background-repeat: repeat; */

    background: #ffffff7a;
    backdrop-filter: blur(10px);
    
}
/* div#game-container > div {
    z-index: 2;
}
  
  #game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #ff99ff 10%, transparent 11%);
    background-size: 30px 30px;
    pointer-events: none;
  } */
  
#header {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 40px;
    padding-top: 50px;
}

#header img#animated-img {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

#chances {
    font-size: 20px;
    color: red;
    background: #fff;
    padding: 10px 20px;
}

#sentence-display {
    display: none;
    font-size: 1.3rem;
    color: blue;
    text-align: center;
    margin: 1rem 0;
    background: #fff0d5;
    width: 100%;
    padding: 0.5rem;
    box-shadow: 1px 1px 1px #ccc;
    min-height: 1.3rem;
}

#word-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}

#word-box span {
    padding: 5px 15px;
    margin: 5px 10px;
    background-color: #ff942699;
    border-radius: 0;
    cursor: pointer;
    font-size: 22px;
    border: 15px solid transparent;
    border-image: url(../images/border-bg.png) 40 round;
    border-image-outset: .5;
}

#play-btn {
  all: unset;
  width: 100px;
  height: 30px;
  font-size: 16px;
  background: transparent;
  border: none;
  position: relative;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#play-btn::after,
#play-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all .4s;
}

#play-btn::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
  background: #694500;
  border-radius: 10px;
}

#play-btn::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
}

#play-btn:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

#play-btn:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

#play-btn:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

/* #play-btn {
    font-size: 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: initial;
  background-image: linear-gradient(-180deg, #00D775, #00BD68);
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  height: 44px;
  line-height: 44px;
  outline: 0;
  overflow: hidden;
  padding: 0 40px;
  pointer-events: auto;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: top;
  white-space: nowrap;
  z-index: 9;
  border: 0;
  font-weight: 600;
  text-transform: uppercase;
}
#play-btn:hover {
    background: #00bd68;
} */


/* CSS */
button.reset-btn , button.retry-btn , button.next-btn {
  background-color: #111827;
  border: 1px solid transparent;
  border-radius: .75rem;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  padding: .75rem 1.2rem;
  text-align: center;
  text-decoration: none #6B7280 solid;
  text-decoration-thickness: auto;
  transition-duration: .2s;
  transition-property: background-color,border-color,color,fill,stroke;
  transition-timing-function: cubic-bezier(.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: auto;
}

button.reset-btn:hover , button.retry-btn:hover , button.next-btn:hover{
  background-color: #374151;
}

button.reset-btn:focus , button.retry-btn:focus , button.next-btn:focus{
  box-shadow: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

@media (min-width: 768px) {
    button.reset-btn {
    padding: .75rem 1.5rem;
  }
}
.word-item {
    padding: 10px 15px;
    margin: 5px;
    background-color: #e1e1e1;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.word-item:hover {
    background-color: #d1d1d1;
}

#footer {
	width: 100%;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    opacity: 1;
    animation: fall-animation linear forwards;
    animation-duration: var(--fall-duration, 3s);
    animation-delay: var(--fall-delay, 0s);
}

@keyframes fall-animation {
    from {
        transform: 
            translateY(0) 
            translateX(0) 
            rotate(0deg);
        opacity: 1;
    }
    to {
        transform: 
            translateY(100vh) 
            translateX(var(--horizontal-travel, 0px)) 
            rotate(var(--rotation, 360deg));
        opacity: 0;
    }
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 1.5em;
    z-index: 1001;
    animation: fadeIn 0.3s ease-in;
}

@media only screen and (max-width:940px) {
#word-box span {
    padding: 0px 10px;
    font-size: 17px;
}
#game-container {
    width: 95%;
    padding: 30px 15px;
    box-sizing: border-box;
}
}
@media only screen and (max-width:480px) {
#header {
    justify-content: center;
    padding-bottom: 10px;
    padding-top: 110px;
}
#header img#animated-img {
    max-width: 100px;
}
}