/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Dancing+Script:wght@400;700&family=Mountains+of+Christmas:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --christmas-red: #c41e3a;
    --christmas-green: #1b5e20;
    --christmas-gold: #ffd700;
    --snow-white: #fff9f9;
    --snow-shadow: rgba(255, 255, 255, 0.5);
    --warm-gold: #ffc107;
    --deep-red: #8b0000;
    --forest-green: #0a5c36;
    --candy-cane: #ff6b6b;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a3d62 0%, #1a1a2e 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-attachment: fixed;
}

/* Animated Background Elements */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, 
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #8b00ff, #ff0000);
    background-size: 400% 400%;
    z-index: 0;
    animation: lights 15s linear infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes lights {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.ornaments {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ornament {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Password Protection */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.password-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.password-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.password-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.password-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.password-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.password-error {
    color: #ffffff;
    margin-top: 1rem;
    /*font-weight: bold;*/
    display: block;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

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

.snowflake {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* Christmas Theme Colors */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #1b5e20;
    --christmas-gold: #ffd700;
    --snow-white: #fff9f9;
    --snow-shadow: rgba(255, 255, 255, 0.5);
}

/* Gallery Header */
.christmas-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.1) 0%, rgba(196, 30, 58, 0.1) 100%);
    border-radius: 15px;
    border: 2px dashed var(--christmas-red);
}

.christmas-header h2 {
    color: var(--christmas-red);
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.christmas-header h2 i {
    margin-right: 10px;
    color: var(--christmas-gold);
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-christmas {
    background: linear-gradient(45deg, var(--christmas-red), #e53935);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-christmas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-christmas:hover::before {
    left: 100%;
}

.btn-christmas:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-christmas i {
    transition: transform 0.3s ease;
}

.btn-christmas:hover i {
    transform: rotate(360deg);
}

.christmas-select {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--christmas-red);
    background-color: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.christmas-select:hover {
    border-color: var(--christmas-green);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Modern Gallery Styles */
.gallery-container {
    padding: 2rem 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 2rem;
}

/* Christmas Ornaments */
.gallery-item::after {
    content: '❄️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: scale(1) rotate(360deg);
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .christmas-header h2 {
        font-size: 2rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-christmas, .christmas-select {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        max-width: 100%;
    }
    
    .christmas-header {
        padding: 0.5rem;
    }
    
    .christmas-header h2 {
        font-size: 1.8rem;
    }
}

/* Animation for gallery items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Gallery Styles */
.gallery-container {
    padding: 1rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    color: white;
    font-size: 2rem;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1.2);
    opacity: 1;
}

/* Modern Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

/* Responsive Gallery Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .gallery-container {
        padding: 1rem 0;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-nav.prev {
        left: 20px;
    }
    
    .lightbox-nav.next {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.25rem;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item:hover {
        transform: translateY(-8px);
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-nav.prev {
        left: 15px;
    }
    
    .lightbox-nav.next {
        right: 15px;
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden behind the fixed footer */
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #fff;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in-out;
}

/* Christmas Ornaments */
.christmas-ornament {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: swing 3s infinite ease-in-out;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.christmas-ornament.left {
    left: 10%;
    animation-delay: 0.5s;
}

.christmas-ornament.right {
    right: 10%;
    animation-delay: 1s;
}

.ornament-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--christmas-red));
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.3);
    position: relative;
    animation: shine 3s infinite;
}

.ornament-inner::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    filter: blur(2px);
}

@keyframes swing {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

@keyframes shine {
    0% { box-shadow: 0 0 10px 5px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 20px 10px rgba(255,255,255,0.5); }
    100% { box-shadow: 0 0 10px 5px rgba(255,255,255,0.3); }
}

/* Santa Hat */
.santa-hat {
    position: absolute;
    top: -10px;
    right: 10%;
    transform: rotate(15deg);
    z-index: 5;
    animation: hatWobble 3s infinite ease-in-out;
}

.hat-top {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 40px solid var(--christmas-red);
    position: relative;
}

.hat-brim {
    width: 60px;
    height: 15px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 35px;
    left: -30px;
}

.hat-ball {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

@keyframes hatWobble {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(25deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.message {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3436;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '❄️';
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    top: -30px;
    right: -30px;
    transform: rotate(15deg);
}

.message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.signature {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2rem;
    color: #e84393;
    margin-top: 1.5rem;
}

.elements {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.element {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem;
    flex: 1;
    min-width: 200px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.element:hover {
    transform: translateY(-5px);
}

.element i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-logout {
    margin-left: auto;
}

.footer-logout .logout-button {
    display: block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logout .logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .footer-logout {
        margin: 0.5rem 0 0;
    }
}

/* Elements section styles */
.elements {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.element {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.element:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.element i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.element h3 {
    margin: 15px 0 10px;
    color: #fff;
    font-size: 1.5rem;
}

.element p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Navigation Menu */
.main-nav {
    margin: 2rem 0 3rem;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav li {
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: #ff6b6b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
    padding: 2rem 0;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.gallery-container,
.letters-container,
.audiobooks-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Audiobook Player Styles */
.audiobook-item {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audiobook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.15);
}

.audiobook-cover {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cover-animation {
    font-size: 3rem;
    color: white;
    animation: bookPulse 3s infinite ease-in-out;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes bookPulse {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.audiobook-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.audiobook-info {
    flex: 1;
    color: white;
}

.audiobook-info h3 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: var(--christmas-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.audiobook-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.audio-player-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-audio-player {
    position: relative;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.play-btn, .download-btn {
    background: linear-gradient(135deg, var(--christmas-red), #e53935);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.play-btn:hover, .download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.play-btn:active {
    transform: scale(0.95);
}

.download-btn {
    background: linear-gradient(135deg, var(--christmas-green), #2e7d32);
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.download-btn:hover {
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.time-display {
    flex: 1;
    text-align: center;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.progress-container {
    position: relative;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--christmas-gold), #ffc107);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--christmas-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    left: 0%;
    transition: left 0.1s ease;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.volume-control i {
    font-size: 1.1rem;
    opacity: 0.8;
}

#volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--christmas-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--christmas-gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Responsive Audiobook Player */
@media (max-width: 768px) {
    .audiobook-item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .audiobook-cover {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .audiobook-info h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .audiobook-description {
        text-align: center;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .volume-control {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .password-container {
        padding: 2rem 1.5rem;
    }
    
    .password-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .message p {
        font-size: 1rem;
    }
    
    .element {
        min-width: 100%;
    }
}
