h1 {
 text-align: center;
}

h2 {
 text-align: center;
}

#game-board {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.letter-box {
  border: 2px solid gray;
  border-radius: 3px;
  margin: 2px;
  font-size: 2.5rem;
  font-weight: 700;
  height: 3rem;
  width: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.filled-box {
  border: 2px solid black;
}

.letter-row {
  display: flex;
}

#keyboard-cont {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#keyboard-cont div {
  display: flex;
}


#word-display {
  margin: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#word-display div {
  display: flex;
}

.second-row {
  margin: 0.5rem 0;
}

.keyboard-button {
  font-size: 4rem;
  font-weight: 700;
  width: 75px;
  padding: 0.5rem;
  margin: 0 2px;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #D3D3D3;
}

.hint-button {
  font-size: 2rem;
  font-weight: 300;
  padding: 0.1rem;
  margin: 0 2px;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #D3D3D3;
}

#hint {
  margin: -3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#hint div {
  display: flex;
  margin: 0px;
}




.clock {
  position: relative;
  width: 100px;
  height: 100px;
}

.time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}

.progress {
  stroke-width: 20;
  fill: none;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke: #6dbb1a;
  transition: stroke 1s, stroke-dashoffset 1s;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 0;
}
.progress.yellow {
  stroke: #b5a830;
}
.progress.red {
  stroke: #b11818;
}

/* Responsive styles for screens narrower than 600px */
@media screen and (max-width: 600px) {
  .letter-box {
    font-size: 1.6rem;
    height: 2.2rem;
    width: 2.2rem;
  }

  .keyboard-button {
    font-size: 2rem;
    width: 50px;
    padding: 0.3rem;
  }

  .hint-button {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  #word-display {
    margin: 2rem 0;
  }

  #keyboard-cont div,
  #word-display div {
    flex-wrap: wrap;
    justify-content: center;
  }

  #enter-guess {
    margin-top: 2.5rem !important;
    flex-direction: column;
    gap: 0.5rem;
  }

  #hint {
    margin-top: 2rem !important;
  }

  #hintdiv {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}