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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 10, 10, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    border-radius: 10px;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #4a0e0e 50%, #1a0a0a 100%);
    color: #f5e6d3;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Snowflakes Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    color: rgba(255, 215, 0, 0.3);
    font-size: 1.5em;
    position: absolute;
    top: -10%;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 60%; animation-duration: 16s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 70%; animation-duration: 13s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 80%; animation-duration: 17s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 90%; animation-duration: 15s; animation-delay: 4s; }

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 20px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 8px 32px rgba(218, 165, 32, 0.2);
}

h1 {
    font-size: 3em;
    color: #DAA520;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3em;
    color: #f5e6d3;
    font-style: italic;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.day-card {
    background: rgba(139, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
}

.day-card.unlocked {
    border-color: #DAA520;
    box-shadow: 0 8px 32px rgba(218, 165, 32, 0.4);
    transform: translateY(-5px);
}

.day-card.locked {
    opacity: 0.5;
    filter: blur(2px);
}

.christmas-special {
    grid-column: 1 / -1;
    background: rgba(139, 0, 0, 0.4);
    border: 3px solid #DAA520;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.date {
    font-size: 1.4em;
    font-weight: bold;
    color: #DAA520;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lock-icon {
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.lock-icon::before {
    content: '🔒';
}

.unlocked .lock-icon::before {
    content: '🔓';
}

.content {
    display: none;
    text-align: center;
}

.unlocked .content {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content img,
.content video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.caption {
    font-size: 1.1em;
    line-height: 1.6;
    color: #f5e6d3;
    font-style: italic;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #DAA520;
}

.special-caption {
    font-size: 1.2em;
    color: #FFD700;
    border-left: 4px solid #FFD700;
}

.spotify-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.spotify-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
    background: linear-gradient(135deg, #1ed760, #1DB954);
}

.spotify-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.gift-button {
    margin-top: 25px;
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    border: 2px solid #DAA520;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gift-button:hover {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(218, 165, 32, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a0a0a 0%, #4a0e0e 100%);
    margin: 5% auto;
    padding: 40px;
    border: 3px solid #DAA520;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(218, 165, 32, 0.4);
    animation: slideDown 0.5s ease;
    position: relative;
}

.password-content {
    max-width: 420px;
    text-align: center;
}

.password-hint {
    color: #f5e6d3;
    margin-bottom: 10px;
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 10px;
    border: 2px solid rgba(218, 165, 32, 0.6);
    background: rgba(0, 0, 0, 0.4);
    color: #f5e6d3;
    font-size: 1em;
    font-family: 'Georgia', serif;
}

.password-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.25);
}

.password-error {
    color: #ff7f7f;
    min-height: 20px;
    font-weight: bold;
}

.password-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gift-button.small {
    padding: 12px 24px;
    font-size: 1.1em;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: #DAA520;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gift-message {
    background: rgba(139, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #DAA520;
}

.gift-message p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #f5e6d3;
}

.youtube-button-container {
    margin: 30px 0;
    text-align: center;
}

.youtube-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    border: 3px solid #DAA520;
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.4);
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.youtube-button:hover {
    background: linear-gradient(135deg, #FF1744, #DC143C);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(218, 165, 32, 0.6);
}

.youtube-icon {
    font-size: 1.3em;
    margin-right: 8px;
}

.code-reveal {
    text-align: center;
    padding: 25px;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 15px;
    border: 2px solid #DAA520;
}

.code-reveal h3 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.code-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #DAA520;
}

.code-box code {
    font-size: 1.5em;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    font-weight: bold;
}

.code-note {
    font-size: 1.3em;
    color: #DC143C;
    font-style: italic;
    margin-top: 20px;
    font-weight: bold;
}

.close-button {
    margin-top: 30px;
    padding: 12px 35px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    border: 2px solid #DAA520;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.close-button:hover {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .countdown-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }

    .modal-content h2 {
        font-size: 1.8em;
    }

    .gift-message p {
        font-size: 1em;
    }
}
