/* === Global Styles === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
  min-height: 100vh;
  color: #333;
}
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.main-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ff4e50;
  letter-spacing: 2px;
  font-weight: bold;
}

/* === Homepage Styles === */
.homepage-bg {
  background: linear-gradient(120deg, #f9d423 0%, #ff4e50 100%);
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.big-btn {
  display: block;
  width: 80vw;
  max-width: 320px;
  padding: 2rem 1rem;
  font-size: 2rem;
  border: none;
  border-radius: 18px;
  background: #fff;
  color: #ff4e50;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.1s;
  cursor: pointer;
}
.big-btn:hover {
  background: #ff4e50;
  color: #fff;
  transform: scale(1.04);
}
.btn-randomizer {
  background: #f9d423;
  color: #fff;
}
.btn-randomizer:hover {
  background: #ff4e50;
}
.btn-trivia {
  background: #24c6dc;
  color: #fff;
}
.btn-trivia:hover {
  background: #5433ff;
}

/* === Word Randomizer Module === */
.word-randomizer-title {
  color: #ff4e50;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.word-randomizer-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}
.card-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  width: 90vw;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fffbe7;
  object-fit: contain;
}
#cardArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}
.start-btn, .next-btn {
  background: #f9d423;
  color: #fff;
  font-size: 1.3rem;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.start-btn:hover, .next-btn:hover {
  background: #ff4e50;
  color: #fff;
  transform: scale(1.04);
}
.counter {
  font-size: 1.1rem;
  color: #24c6dc;
  margin-top: 0.5rem;
}

/* === Trivia Hero Module === */
.trivia-title {
  color: #5433ff;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.trivia-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}
.trivia-img {
  width: 90vw;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-bottom: 1.5rem;
  background: #e0f7fa;
}
.trivia-question {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.trivia-option-btn {
  background: #24c6dc;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.1s;
  width: 320px;
  max-width: 90vw;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}
.trivia-option-btn:hover {
  background: #5433ff;
  color: #fff;
  transform: scale(1.04);
}

/* === Modal Styles for Trivia === */
.trivia-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.trivia-modal-content {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 90vw;
}
.trivia-modal-content .close-btn {
  margin-top: 1.5rem;
  background: #24c6dc;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.trivia-modal-content .close-btn:hover {
  background: #5433ff;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  .main-title, .trivia-title, .word-randomizer-title {
    font-size: 1.5rem;
  }
  .big-btn {
    font-size: 1.2rem;
    padding: 1.2rem 0.5rem;
  }
  .trivia-option-btn {
    width: 90vw;
    min-width: 0;
    max-width: 100vw;
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
  }
} 