body {
    background: linear-gradient(135deg, #1BE7FF, #7ad3c8);
    text-align: center;
    margin: auto;
    align-items: center;
    position: relative; /* Establishes positioning context for the child */
    height: 100vh;
    background-size: 300% 300%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* centered code in the middle */
.centered-item {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Moves the element back up and left by half its own height/width */
    transform: translate(-50%, -50%); 
}

.easy {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 2px solid #57b867;
  background: #6EEB83;
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 5px 5px 5px black;
    margin: 10px;
    border-radius: 10px;
}
.easy:hover {
  background: #fff;
  color: #6EEB83
}
.med {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 2px solid #98aa0d;
  background: #E4FF1A;
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 5px 5px 5px black;
    margin: 10px;
    border-radius: 10px;
}
.med:hover {
  background: #fff;
  color: #E4FF1A;
}
.hard {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 2px solid #a77a10;
  background: #E8AA14;
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 5px 5px 5px black;
    margin: 10px;
    border-radius: 10px;
}
.hard:hover {
  background: #fff;
  color: #E8AA14;
}

/* AI used */
.easy:hover,
.med:hover,
.hard:hover,
#guessButton:hover {
    transform: translateY(-3px);
}

img {
    margin: 20px;
     max-width: 300px;
    width: 80%;
    height: auto;
}
h1 {
    font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
    margin-top: 30px;
    margin-bottom: 20px;
    animation: floatTitle 3s ease-in-out infinite;
    font-size: 80px;
}
/* AI used */
@keyframes floatTitle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

hr {
  height: 4px;
  color: black;
  background-color: #000;
  text-align: center;
  margin: auto;
  width: 50%;
  border: none;
  /* AI used */
  background: linear-gradient(to right, transparent, rgb(0, 0, 0), transparent);
  width: 60%;
}

#guessedLettersDisplay {
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

#message {
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

#wrongLettersDisplay {
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

#wrongGuessDisplay {
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

#wordDisplay {
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-shadow: 2px 2px 4px #000;
    font-size: 50px;
}

#guessInput {
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
  border: 2px solid #444;
  border-radius: 10px;
  outline: none;
  text-transform: uppercase;
}

#guessInput:focus {
  border-color: #E08DAC;
  box-shadow: 0 0 8px #E08DAC;
}

#guessButton {
  min-width: 130px;
  height: 35px;
  color: #fff;
  padding: auto;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 2px solid #bb738e;
  background: #E08DAC;
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 5px 5px 5px black;
    margin: 10px;
    border-radius: 10px;
}

#guessButton:hover {
  background: #fff;
  color: #E08DAC;
}

#restartButton {
  min-width: 130px;
  height: 35px;
  color: #fff;
  padding: auto;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 2px solid #429ec2;
  background:  #56CBF9;
  font-family: "manteiga-gorda", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 5px 5px 5px black;
    margin: 10px;
    border-radius: 10px;
}

#restartButton:hover {
  background: #fff;
  color: #56CBF9;
}

.centered-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.15);
    padding: 30px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

