body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #121213;
  color: white;
}

#board {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  margin: 20px auto;
  width: fit-content;
}

.row {
  display: grid;
  grid-template-columns: repeat(var(--word-length), 1fr);
  gap: 10px; /* This adds space between tiles */
}


.tile {
  width: 50px;
  height: 50px;
  border: 2px solid #3a3a3c;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121213;
  color: white;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.tile {
  font-size: 1.6rem; /* instead of 1.8rem */
}

.correct {
  background-color: #6aaa64;
  border-color: #6aaa64;
}

.present {
  background-color: #c9b458;
  border-color: #c9b458;
}

.absent {
  background-color: #3a3a3c;
  border-color: #3a3a3c;
}

#keyboard {
  margin-top: 20px;
}
.tile.flip {
  animation: flip 0.6s ease forwards;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg);
    background-color: #121213;
  }
  50% {
    transform: rotateX(90deg);
    background-color: #121213;
  }
  100% {
    transform: rotateX(0deg);
  }
}
.keyboard {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  max-width: 500px;
  margin: 20px auto;
}

.key {
  padding: 10px;
  background-color: #818384;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.key.special {
  grid-column: span 2;
  background-color: #565758;
}



.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #222;
  color: white;
  margin: 15% auto;
  padding: 20px;
  border: 2px solid #6aaa64;
  width: 300px;
  border-radius: 10px;
}






body {
  font-family: 'Arial', sans-serif;
  text-align: center;
  background: url('https://plus.unsplash.com/premium_photo-1669385170871-74d734688810?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=774') no-repeat center center fixed;
  background-size: cover;
  color: white;
  margin: 0;
  padding: 10px;
}


h1 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px #b30000;
  margin-top: 20px;
}
#board, #keyboard, .modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.correct {
  background-color: #2ecc71; /* holly green */
  border-color: #2ecc71;
}

.present {
  background-color: #f1c40f; /* golden bell */
  border-color: #f1c40f;
}

.absent {
  background-color: #e74c3c; /* festive red */
  border-color: #e74c3c;
}
