body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background: #181c1f;
  color: #f0f0f0;
}

body.light-mode {
  background: #f0f0f0;
  color: #222;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 60px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #d32f2f;
  font-size: 2.5em;
}

body.dark h1 {
  color: #ef5350;
}

.calendar-info {
  text-align: center;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark .calendar-info {
  background: #23272a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-text {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 1.1em;
}

body.dark .info-text {
  color: #aaa;
}

.date-display {
  font-weight: 600;
  color: #1976d2;
  font-size: 1.1em;
}

body.dark .date-display {
  color: #90caf9;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calendar-door {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
  border: 3px solid #fff;
}

body.dark .calendar-door {
  border-color: #444;
}

.calendar-door:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.5);
}

.calendar-door.locked {
  background: linear-gradient(135deg, #757575 0%, #9e9e9e 100%);
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-door.locked:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.calendar-door.opened {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  cursor: pointer;
}

.door-number {
  position: absolute;
  top: 8px;
  left: 8px;
  font-weight: bold;
  font-size: 1.2em;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.door-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
}

.opened-content {
  font-size: 3em;
}

.surprise-emoji {
  font-size: 2em;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}

body.dark .modal-content {
  background: #23272a;
  color: #f0f0f0;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #d32f2f;
}

.modal-content h2 {
  margin-top: 0;
  color: #1976d2;
  font-size: 2em;
}

body.dark .modal-content h2 {
  color: #90caf9;
}

.surprise-display {
  margin-top: 20px;
}

.surprise-emoji-large {
  font-size: 5em;
  margin-bottom: 20px;
}

.surprise-message {
  font-size: 1.5em;
  font-weight: bold;
  color: #d32f2f;
  margin-bottom: 20px;
}

body.dark .surprise-message {
  color: #ef5350;
}

.surprise-fact {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

body.dark .surprise-fact {
  color: #aaa;
}

