/* Landing Page Styles */
#landing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.landing-container {
  text-align: center;
  color: white;
}

.landing-container h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.landing-container p {
  font-size: 1.2em;
  margin-bottom: 40px;
}

#start-btn {
  padding: 15px 40px;
  font-size: 1.1em;
  background-color: #fff;
  color: #667eea;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

#start-btn:hover {
  transform: scale(1.05);
}

/* Game Page Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background-color: #fbf9f5;
  color: #1a1a1a;
  padding: 20px;
}

#game-page {
  max-width: 600px;
  margin: 0 auto;
}

#date-display {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

#subtitle {
  color: #5a595e;
  margin-bottom: 20px;
}

#solved-container {
  max-width: 500px;
  margin: 0 auto;
}

.solved-category {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
  animation: pop 0.3s ease-in-out;
}

.solved-category h3 {
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.solved-category p {
  margin: 0;
}

/* Category Colors */
.cat-0 { background-color: #f9df6d; }
.cat-1 { background-color: #a0c35a; }
.cat-2 { background-color: #b0c4ef; }
.cat-3 { background-color: #ba81c5; }

#grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 20px auto;
}

.tile {
  background-color: #efefe6;
  border: none;
  border-radius: 8px;
  height: 80px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.tile:hover {
  background-color: #e2e2d8;
}

.tile.selected {
  background-color: #5a595e;
  color: #ffffff;
  transform: scale(0.96);
}

#mistakes-container {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #5a595e;
  border-radius: 50%;
  margin: 0 3px;
}

.dot.lost {
  background-color: #ccc;
}

.controls {
  margin-top: 20px;
}

.controls button {
  background-color: #ffffff;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: bold;
  margin: 0 4px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #f0f0f0;
}

.controls button:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

/* Animations */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
