body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #182C25, #503227);
  color: #fff;
  overflow-x: hidden;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 30px;
  justify-items: center;
}

.calendar-box {
  position: relative;
  width: 140px;
  height: 140px;
  perspective: 1000px;
}

.calendar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.calendar-box.ready .door {
  background: linear-gradient(145deg, #B3001B, #FFCC00);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.calendar-box.locked .door {
  background: #555;
  opacity: 0.4;
  cursor: not-allowed;
}

.door {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  transition: transform 0.8s ease;
  transform-origin: left center;
  background: linear-gradient(145deg, #D90429, #FFB703);
}

.door.opened {
  transform: rotateY(-100deg);
}

.calendar-box.ready .door:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #FFD700;
}

.calendar-box.ready .door.opened + img {
  opacity: 1;
}

.calendar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.calendar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.calendar-overlay-inner img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.calendar-overlay.active .calendar-overlay-inner img {
  transform: scale(1);
}
