/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1d;
  color: #f4f4f4;
  overflow: hidden;
}

/* Global Utility */
.no-user-select {
  user-select: none;
}

/* Layout */
.game-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

/* Menu */
.menuContainer {
  display: none;
  text-align: center;
}

.menuContainer h1 {
  font-size: 3rem;
  color: #e94560;
  margin-bottom: 20px;
}

button {
  padding: 12px 25px;
  font-size: 1.2rem;
  margin: 10px;
  background-color: #e94560;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #ff2e63;
}

/* Rules Modal */
.rules-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  background: #2b2b2b;
  border: 2px solid #e94560;
  padding: 30px;
  border-radius: 12px;
  z-index: 10;
  animation: fadeIn 0.3s ease-in-out;
  color: #fff;
}

.rules-container .cancel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rules-container h2 {
  font-size: 2rem;
}

.rules-container button {
  font-size: 1.2rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

.rules-container ol {
  margin: 20px 0;
  padding-left: 20px;
}

.rules-container p {
  text-align: center;
  font-style: italic;
  color: #cfcfcf;
}

/* Wordle Game Container */
.game-container {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.game-container h1 {
  color: #e94560;
}

#clue {
  font-size: 1.2rem;
  margin: 15px 0;
  color: #ddd;
}

#word {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 10px;
  margin-bottom: 20px;
}

#attempts,
#already-selected {
  margin-top: 10px;
  color: #cfcfcf;
}

/* Input */
#guess {
  text-align: center;
  font-weight: bold;
  width: 100px;
  height: 100px;
  font-size: 3rem;
  border: 3px solid #e94560;
  border-radius: 10px;
  background: #2e2e2e;
  color: #fff;
  transition: 0.2s ease;
}

#guess:focus {
  outline: none;
  border-color: #ff2e63;
  background: #1f1f1f;
}

/* Splash Screens */
.splash-victory,
.splash-game-over {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-in;
}

.splash-title {
  display: grid;
  place-items: center;
  gap: 15px;
  text-align: center;
}

.splash-title h2 {
  font-size: 2.5rem;
  color: #00c9a7;
}

.splash-title img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
}

blockquote {
  font-style: italic;
  color: #ccc;
  margin: 10px 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #guess {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  #word {
    text-align: center;
    font-size: 1.8rem;
  }

  .rules-container {
    font-size: 0.9rem;
  }
}
