@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --primary: #990000;
  --secondary: #3a519f;
  --accent: #b0cb1f;
  --dark: #1b1c1e;
  --light: #ffffff;
}

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0;
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--dark);
  background-image: url("./img/CeciWallpaper\ test.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 1rem;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#word-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  letter-spacing: 0.5rem; /* Increase letter spacing for spaces */
  margin-bottom: 2rem;
  background-color: var(--light);
}

.title {
  text-align: center;
  text-transform: uppercase;
  font-size: 2.4rem;
  font-weight: 800;
}

#letters button {
  width: 4rem;
  height: 4rem;
  margin: 0.5rem;
  padding: 1rem;
  border: 2px solid #00000054;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  background-color: var(--primary);
  border-radius: 0.5rem;
  font-size: 2rem;
  line-height: 100%;
  color: var(--light);
}
#letters button:active {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  background-color: var(--accent);
}

.capitalize {
  margin: 0.5rem;
  padding: 0.5rem;
  border: 2px solid #00000054;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  background-color: var(--dark);
  border-radius: 0.5rem;
  font-size: 2rem;
  line-height: 100%;
  color: var(--light);
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.capitalize:active {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  background-color: var(--accent);
}

#input-container {
  display: flex;
  width: 100%;
  text-align: center;
  flex-direction: column;
  padding: 2rem;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 24rem;
}

#game-container {
  display: block;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffffc9;
  padding: 1rem;
  width: 100%;
}

#return-button {
  margin-top: 1rem;
  display: block;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  border: 0;
  background-color: var(--secondary);
  color: var(--light);
  text-transform: uppercase;
}

#start-game {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: 0;
  background-color: var(--secondary);
  color: var(--light);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

#start-game:hover {
  background-color: var(--accent);
  color: var(--dark);
}

#secret-word {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  border: 2px solid var(--primary);
}

#game-container {
  display: flex;
  max-width: 720px;
  width: 80vw;
  flex-wrap: wrap;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem;
  background-color: var(--light);
  text-align: center;
  font-size: 0.8rem;
}

footer a {
  color: var(--primary);
}

footer a:hover {
  color: var(--accent);
}

/* Media Queries */

@media (min-width: 320px) and (max-width: 767px) {
  /* Small phones */

  #word-container {
    font-size: 3rem;
    margin-bottom: 0;
  }

  .title {
    font-size: 2rem;
  }

  #letters button {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    line-height: 100%;
  }

  #input-container {
    padding: 1rem;
  }

  #secret-word,
  #start-game,
  #return-button {
    font-size: 1rem;
  }
  #return-button {
    margin: 1rem auto;
    width: 95%;
    height: 4rem;
  }

  #game-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    margin-top: 15rem;
  }
}
@media (max-width: 768px) {
  /* Tablet and smaller devices */

  #word-container {
    font-size: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  #letters button {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.7rem;
    line-height: 100%;
  }

  #input-container {
    padding: 1rem;
  }

  #secret-word,
  #start-game,
  #return-button {
    font-size: 1rem;
  }
  #return-button {
    margin: 1rem auto;
    width: 95%;
    height: 4rem;
  }

  #game-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    margin-top: -5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Landscape Laptops */
  #word-container {
    font-size: 3.5rem;
  }
  .title {
    font-size: 2.2rem;
  }
  #return-button {
    margin: 1rem auto;
    width: 100%;
    height: 4rem;
  }

  #game-container {
    display: flex;
    max-width: 95vw;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  #letters button {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
    margin: 0.6rem;
    line-height: 100%;
  }
}

@media (min-width: 2400px) {
  #game_container {
    max-height: 80vh;
  }
}
