* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 25, 15, 0.85) 0%, rgba(80, 45, 30, 0.75) 50%, rgba(30, 15, 10, 0.9) 100%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #f5e6d3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: #d4c4b0;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.calendar {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: calc(100vh - 200px);
    border-radius: 20px;
    background-image: url('calendar-background.jpg');
    background-size: 100% 100%;
    background-position: 0 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.door {
    position: absolute;
    width: 11%;
    aspect-ratio: 1.4 / 1;
    cursor: pointer;
    perspective: 1000px;
    z-index: 1;
}

.door-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.5s;
    transform-style: preserve-3d;
    transform-origin: right center;
    z-index: 1;
}

.door.open .door-inner {
    transform: rotateY(160deg);
    opacity: 0;
}

.door-front, .door-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.door-front {
    background-image: url('calendar-background.jpg');
    background-size: 100% 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.door-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.door-front::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.door-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.door-back {
    background: linear-gradient(145deg, #2d1f1a, #1a0f0a);
    transform: rotateY(180deg);
    border: 3px solid #8B4513;
}

.door-content {
    position: absolute;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    top: 3px;
    left: 3px;
    background: rgba(245, 230, 211, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.coffee-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.coffee-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3d2516;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

.door:hover:not(.open) .door-front {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.door:hover:not(.open) .door-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.door.locked {
    cursor: pointer;
}

/* Snowflake animation for festive feel */
.snowflake {
    position: fixed;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: fall linear forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .door {
        width: 12%;
    }
    
    .door-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .door {
        width: 13%;
    }
    
    .door-number {
        font-size: 1.5rem;
    }
    
    .coffee-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .door {
        width: 14%;
    }
    
    .door-number {
        font-size: 1.2rem;
    }
    
    .coffee-icon {
        font-size: 1.2rem;
    }
    
    .coffee-name {
        font-size: 0.5rem;
    }
}
