* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Comic Sans MS", cursive, sans-serif;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  min-height: 100vh;
  padding: 20px;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 800px;
  margin: 48px auto;
}

h1 {
  text-align: center;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  font-size: 3em;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.subtitle {
  text-align: center;
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 30px;
}

.date-picker {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.section {
  margin-bottom: 30px;
}

.section h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.hint {
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 15px;
}

/* Year Selector */
.year-selector {
  text-align: center;
}

.year-input-section {
  margin-bottom: 20px;
}

.year-input-section label {
  display: block;
  font-size: 1.2em;
  color: #2c3e50;
  margin-bottom: 10px;
}

#yearInput {
  width: 200px;
  padding: 10px;
  font-size: 1.2em;
  border: 3px solid #3498db;
  border-radius: 5px;
  text-align: center;
  font-family: "Comic Sans MS", cursive;
  margin-bottom: 10px;
}

#yearSubmitBtn {
  padding: 10px 30px;
  font-size: 1.1em;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  transition: all 0.3s;
}

#yearSubmitBtn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

#yearSubmitBtn:not(:disabled):hover {
  background: #2980b9;
  transform: scale(1.05);
}

.trivia-question {
  background: #ecf0f1;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.trivia-question h3 {
  color: #e74c3c;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.trivia-text {
  font-size: 1.2em;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: bold;
}

.trivia-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.trivia-option-btn {
  padding: 15px;
  font-size: 1.1em;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  transition: all 0.3s;
}

.trivia-option-btn:hover:not(:disabled) {
  background: #2980b9;
  transform: scale(1.05);
}

.trivia-option-btn:disabled {
  cursor: not-allowed;
}

.trivia-feedback {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

#yearDisplay {
  font-size: 2em;
  font-weight: bold;
  color: #2ecc71;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 10px;
  display: inline-block;
  margin-top: 20px;
}

/* Month Container */
.month-container {
  position: relative;
  height: 400px;
  border: 2px dashed #3498db;
  border-radius: 10px;
  overflow: hidden;
}

.month-btn {
  position: absolute;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-family: "Comic Sans MS", cursive;
  transition: all 0.3s;
  animation: float 3s ease-in-out infinite;
}

.month-btn:hover {
  background: #2980b9;
  transform: scale(1.1) rotate(5deg);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-5deg);
  }
  75% {
    transform: translate(10px, 10px) rotate(3deg);
  }
}

/* Day Container */
.day-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.day-item {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.day-item .day-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.day-item .math-problem {
  font-size: 0.9em;
  color: #e74c3c;
  margin-bottom: 5px;
}

.day-item input {
  width: 100%;
  padding: 5px;
  border: 2px solid #3498db;
  border-radius: 5px;
  text-align: center;
  font-family: "Comic Sans MS", cursive;
}

.day-item.unlocked {
  background: #2ecc71;
  cursor: pointer;
  transition: transform 0.2s;
}

.day-item.unlocked:hover {
  transform: scale(1.1) rotate(3deg);
}

.day-item.selected {
  background: #f39c12;
  box-shadow: 0 0 20px #f39c12;
}

/* Confirmation */
.confirmation {
  text-align: center;
}

.confirmation p {
  font-size: 1.3em;
  margin-bottom: 15px;
}

.confirmation input {
  width: 300px;
  padding: 10px;
  font-size: 1.2em;
  border: 3px solid #3498db;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
  font-family: "Comic Sans MS", cursive;
}

.confirmation button {
  padding: 15px 40px;
  font-size: 1.2em;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  transition: all 0.3s;
}

.confirmation button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.confirmation button:not(:disabled):hover {
  background: #27ae60;
  transform: scale(1.1);
}

/* Success Section */
#successSection {
  text-align: center;
}

#successSection h2 {
  color: #2ecc71;
  font-size: 2.5em;
  margin-bottom: 20px;
}

#successSection p {
  font-size: 1.3em;
  margin-bottom: 15px;
}

#successSection button {
  padding: 15px 40px;
  font-size: 1.2em;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  transition: all 0.3s;
  margin-top: 20px;
}

#successSection button:hover {
  background: #c0392b;
  transform: scale(1.1) rotate(-3deg);
}

/* Deceptive Modal */
.deceptive-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 500px;
}

.modal-content h2 {
  color: #e74c3c;
  font-size: 2em;
  margin-bottom: 20px;
}

.modal-question {
  font-size: 1.4em;
  color: #2c3e50;
  margin-bottom: 30px;
}

.modal-question strong {
  color: #e74c3c;
  font-size: 1.2em;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.modal-yes-btn {
  padding: 30px 80px;
  font-size: 2em;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.5);
}

.modal-yes-btn:hover {
  background: #27ae60;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.7);
}

.modal-no-btn {
  padding: 2px 5px;
  font-size: 0.5em;
  background: #95a5a6;
  color: #7f8c8d;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  opacity: 0.3;
  transition: all 0.2s;
}

.modal-no-btn:hover {
  opacity: 0.6;
  transform: scale(1.1);
}

/* Date Selected Modal */
.date-selected-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.9),
    rgba(78, 205, 196, 0.9),
    rgba(249, 202, 36, 0.9)
  );
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.date-modal-content {
  background: white;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 600px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.emoji-top,
.emoji-bottom {
  font-size: 3em;
  margin: 10px 0;
  animation: bounce 1s infinite;
}

.emoji-bottom {
  animation-delay: 0.5s;
}

.date-modal-title {
  font-size: 3em;
  color: #e74c3c;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.date-modal-text {
  font-size: 1.5em;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.selected-date-display {
  font-size: 2.5em;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 25px 40px;
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: glow 2s infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.8),
      0 0 30px rgba(118, 75, 162, 0.6);
  }
}

.date-modal-subtext {
  font-size: 1.3em;
  color: #3498db;
  margin: 20px 0;
  font-style: italic;
}

.proceed-btn {
  padding: 20px 50px;
  font-size: 1.5em;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
  margin-top: 20px;
}

.proceed-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.6);
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.proceed-btn:active {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

.footer p {
  color: white;
  font-size: 1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s;
}

.footer a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
