/* Tournament Popup Styles */
.tournament-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease-out;
}

.tournament-popup-content {
    position: relative;
    background: linear-gradient(135deg, #1e1b29 0%, #2d283c 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff5ec2;
    text-align: center;
    color: white;
    font-family: 'Comic Neue', Cochin, sans-serif;
    overflow: hidden;
    animation: popupGlow 3s infinite alternate;
}

.tournament-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.tournament-close-btn:hover {
    transform: scale(1.2);
    background-color: rgba(255, 94, 194, 0.2);
}

.tournament-banner {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 2px solid #ffb347;
}

.tournament-popup-text {
    padding: 20px;
}

.tournament-popup-text h2 {
    color: #ff5ec2;
    margin-bottom: 15px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 94, 194, 0.5);
}

.tournament-popup-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
}

.tournament-join-btn {
    display: inline-block;
    background: linear-gradient(to right, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 15px;
    font-family: 'Comic Neue', Cochin, sans-serif;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.tournament-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(to right, #128C7E, #25D366);
}

.tournament-join-btn:active {
    transform: translateY(1px);
}

.tournament-popup-footer {
    font-size: 14px;
    color: #aaa;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tournament-popup-content {
        width: 95%;
        max-width: 400px;
    }
    
    .tournament-banner {
        max-height: 300px;
    }
    
    .tournament-popup-text h2 {
        font-size: 20px;
    }
    
    .tournament-popup-text p {
        font-size: 14px;
    }
    
    .tournament-join-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* Out of Stock Popup Styles */
    .out-of-stock-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease-out;
    }
    
    .out-of-stock-content {
        background: linear-gradient(135deg, #1e1b29 0%, #2d283c 100%);
        border: 2px solid #ff5ec2;
        border-radius: 15px;
        padding: 25px;
        width: 90%;
        max-width: 400px;
        text-align: center;
        position: relative;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(255, 94, 194, 0.5);
    }
    
    .close-popup-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: #ff5ec2;
        font-size: 24px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .close-popup-btn:hover {
        transform: scale(1.2);
        color: #ffb347;
    }
    
    .gif-container {
        margin: -25px -25px 15px -25px;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        overflow: hidden;
        border-bottom: 2px solid #ffb347;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .out-of-stock-gif {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    
    .out-of-stock-title {
        color: #ff5ec2;
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-shadow: 0 0 10px rgba(255, 94, 194, 0.5);
        font-family: 'Comic Neue', Cochin, sans-serif;
    }
    
    .out-of-stock-message {
        color: #fff;
        font-size: 1.1rem;
        margin-bottom: 20px;
        line-height: 1.5;
        font-family: 'Comic Neue', Cochin, sans-serif;
    }
    
    .emoji {
        display: inline-block;
        animation: bounce 1s infinite alternate;
    }
    
    .notify-me-btn {
        background: linear-gradient(to right, #ff5ec2, #ffb347);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 50px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 5px 15px rgba(255, 94, 194, 0.3);
        font-family: 'Comic Neue', Cochin, sans-serif;
    }
    
    .notify-me-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 94, 194, 0.4);
    }
    
    .notify-me-btn:active {
        transform: translateY(1px);
    }
    
    @keyframes bounce {
        0% { transform: translateY(0); }
        100% { transform: translateY(-5px); }
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Mobile-specific styles */
    @media (max-width: 768px) {
        .out-of-stock-content {
            width: 95%;
            padding: 20px;
        }
        
        .out-of-stock-title {
            font-size: 1.3rem;
        }
        
        .out-of-stock-message {
            font-size: 1rem;
        }
        
        .notify-me-btn {
            padding: 10px 20px;
            font-size: 0.9rem;
        }
        
        .gif-container {
            margin: -20px -20px 10px -20px;
        }
    }
  /* Promotional Banner Styles */
    .promo-banner-container {
        margin: 25px 0;
        padding: 15px;
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
        border-radius: 12px;
        border: 2px solid #ff5ec2;
        box-shadow: 0 0 15px rgba(255, 94, 194, 0.5),
                    0 0 30px rgba(255, 94, 194, 0.2);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        font-family: 'Comic Neue', cursive;
        animation: glow-pulse 3s infinite alternate;
    }

    .promo-banner-image {
        width: 150px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #ff5ec2;
        box-shadow: 0 0 10px rgba(255, 94, 194, 0.7);
        transition: transform 0.3s ease;
    }

    .promo-banner-image:hover {
        transform: scale(1.05);
    }

    .promo-banner-content {
        flex: 1;
        padding: 0 20px;
        text-align: center;
    }

    .promo-banner-text {
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
        text-shadow: 0 0 10px #ff5ec2, 
                     0 0 20px #ff5ec2,
                     0 0 30px #ff5ec2;
        margin: 0;
        animation: text-glow 2s infinite alternate;
    }

    .promo-banner-code {
        color: #ffb347;
        font-weight: bold;
        display: inline-block;
        padding: 2px 8px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 4px;
        border: 1px solid #ffb347;
    }

    .promo-banner-button {
        background: linear-gradient(to right, #ff5ec2, #ffb347);
        color: white;
        border: none;
        padding: 10px 20px;
        font-family: 'Comic Neue', cursive;
        font-weight: bold;
        font-size: 1rem;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 94, 194, 0.7);
        text-transform: uppercase;
    }

    .promo-banner-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(255, 94, 194, 0.9);
    }

    .promo-banner-button:active {
        transform: translateY(1px);
    }

    /* Animations */
    @keyframes glow-pulse {
        0% {
            box-shadow: 0 0 15px rgba(255, 94, 194, 0.5),
                        0 0 30px rgba(255, 94, 194, 0.2);
        }
        100% {
            box-shadow: 0 0 20px rgba(255, 94, 194, 0.8),
                        0 0 40px rgba(255, 94, 194, 0.4);
        }
    }

    @keyframes text-glow {
        0% {
            text-shadow: 0 0 10px #ff5ec2, 
                         0 0 20px #ff5ec2;
        }
        100% {
            text-shadow: 0 0 15px #ff5ec2, 
                         0 0 25px #ff5ec2,
                         0 0 35px #ff5ec2;
        }
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .promo-banner-container {
            flex-direction: column;
            text-align: center;
            padding: 15px;
        }

        .promo-banner-image {
            width: 100%;
            height: auto;
            max-height: 120px;
            margin-bottom: 15px;
        }

        .promo-banner-content {
            padding: 0;
            margin-bottom: 15px;
        }

        .promo-banner-text {
            font-size: 1rem;
            margin-bottom: 10px;
        }

        .promo-banner-button {
            width: 100%;
            max-width: 200px;
        }
    }
/* FAQ & Testimonials Section Styling */
.faq-testimonials-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.faq-section, .testimonials-section {
    flex: 1;
    min-width: 300px;
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 8px 32px rgba(255, 105, 180, 0.2),
        0 0 0 1px rgba(255, 105, 180, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-section:hover, .testimonials-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(255, 105, 180, 0.3),
        0 0 0 1px rgba(255, 105, 180, 0.25);
}

.faq-section::before, .testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        #ff69b4, 
        #ff1493, 
        #ff00aa,
        #ff69b4);
    background-size: 300% 100%;
    animation: gradientFlow 3s linear infinite;
}

.faq-section h2, .testimonials-section h2 {
    color: #ff69b4;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.faq-section h2::after, .testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff69b4, 
        #ff1493, 
        transparent);
    border-radius: 3px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    background: rgba(255, 105, 180, 0.1);
    border-left: 3px solid #ff69b4;
    transform: translateX(5px);
}

.faq-item strong {
    color: #ff69b4;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.faq-item strong::before {
    content: '❓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.faq-item p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.faq-item p::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.testimonial {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #ff69b4;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.testimonial::before {
    content: '❝';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 2rem;
    color: rgba(255, 105, 180, 0.3);
}

.testimonial p {
    font-style: italic;
    color: #f0f0f0;
    padding-left: 25px;
    position: relative;
    margin: 0;
}

.testimonial p::after {
    content: '❞';
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 2rem;
    color: rgba(255, 105, 180, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-testimonials-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .faq-section, .testimonials-section {
        padding: 15px;
    }
    
    .faq-section h2, .testimonials-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 10px;
    }
    
    .faq-item strong {
        font-size: 1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
    
    .testimonial {
        padding: 10px;
    }
}

/* Animation for the gradient border */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}/* Custom Ghibli-Inspired Font */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@400;700&display=swap');
/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}




/* Body Styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle, #1a1a1a, #000);
    color: white;
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Twinkling Stars Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1), rgba(255, 105, 180, 0.05));
    z-index: -1;
    animation: cosmicGlow 10s infinite alternate;
}

@keyframes cosmicGlow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Twinkling Stars */
@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out, pulse 3s infinite ease-in-out;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 50%; animation-delay: 1s; }
.star:nth-child(3) { top: 30%; left: 80%; animation-delay: 2s; }
.star:nth-child(4) { top: 40%; left: 10%; animation-delay: 3s; }
.star:nth-child(5) { top: 50%; left: 70%; animation-delay: 4s; }
.star:nth-child(6) { top: 60%; left: 40%; animation-delay: 5s; }
.star:nth-child(7) { top: 70%; left: 90%; animation-delay: 6s; }
.star:nth-child(8) { top: 80%; left: 30%; animation-delay: 7s; }
.star:nth-child(9) { top: 90%; left: 60%; animation-delay: 8s; }
.star:nth-child(10) { top: 5%; left: 15%; animation-delay: 9s; }

/* Floating Bubbles */
@keyframes float {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.7;
    animation: float 8s infinite;
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.bubble:nth-child(1) {
    width: 50px;
    height: 50px;
    left: 20%;
    animation-duration: 6s;
}
.bubble:nth-child(2) {
    width: 70px;
    height: 70px;
    left: 50%;
    animation-duration: 7s;
}
.bubble:nth-child(3) {
    width: 40px;
    height: 40px;
    left: 80%;
    animation-duration: 5s;
}
.bubble:nth-child(4) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-duration: 9s;
}
.bubble:nth-child(5) {
    width: 30px;
    height: 30px;
    left: 50%;
    animation-duration: 8s;
}

/* Global Text Styles */
h1, h2, h3, p, a {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8), 0 0 20px rgba(255, 105, 180, 0.6);
    letter-spacing: 1px;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideIn 1s ease-out;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: slideIn 1.2s ease-out;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    animation: slideIn 1.4s ease-out;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
}

a {
    text-decoration: none;
    color: #ff69b4;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.9);
    transform: translateY(-3px);
}

/* Admin Dashboard Button Styles */
#adminDashboardButton {
    background-color: rgba(255, 105, 180, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-left: 10px;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

#adminDashboardButton:hover {
    background-color: rgba(255, 69, 147, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.8);
}

#adminDashboardButton:active {
    transform: scale(0.95);
}

/* Banner Section */
.banner {
    background: url('../images/honeymoon.gif') no-repeat center center;
    background-size: cover;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 50px;
    max-width: 600px;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    left: 490px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
    animation: floatBanner 8s ease-in-out infinite;
}

@keyframes floatBanner {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.banner img {
    max-width: 20%;
    height: auto;
}

.banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
}

/* Game Cards Layout */
.game-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background-color: rgba(34, 34, 34, 0.6);
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 105, 180, 0.2);
    animation: slideIn 0.8s ease-out;
    animation-fill-mode: both;
}

.game-card img {
    max-width: 70%;
    height: auto;
    transition: transform 0.3s;
}

.game-card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #ff69b4;
}

.game-card p {
    font-size: 0.9rem;
    color: #fff;
}

/* Hover Effect for Game Cards */
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.5);
    background-color: rgba(255, 105, 180, 0.1);
}

.game-card:hover img {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

footer a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 105, 180, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.toast.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom Cursor */
body {
    cursor: url('images/magic-cursor.png'), auto;
}

a, button {
    cursor: url('images/magic-cursor-hover.png'), pointer;
}

/* Girly Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 10px;
    border: 2px solid rgba(255, 105, 180, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation for Stars */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Prevent mobile browsers from changing styles */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Disable pull-to-refresh on mobile (if needed) */
body {
    overscroll-behavior-y: contain;
}

/* Make sure viewport is properly set */
@viewport {
    width: device-width;
    zoom: 1.0;
    min-zoom: 1.0;
    max-zoom: 1.0;
    user-zoom: fixed;
}



/* Style for social icons */
.social-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

/* Hover effect */
.social-icon:hover {
    transform: scale(1.1);
}

/* Floating Chat Button */
#chatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#chatButton:hover {
    background-color: #e85ca5;
}

/* Chat Window */
#chatWindow {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.chat-header {
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.selene-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    transition: all 0.3s ease;
}

.chat-messages {
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    font-size: 14px;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-bottom-left-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-bottom-right-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #e85ca5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-box {
    background: linear-gradient(135deg, #1e1b29 0%, #2d283c 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid #ff5ec2;
    width: 600px;
    max-width: 90%;
    animation: fadeIn 0.3s ease-out;
}

.loading-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.loading-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.loading-text {
    color: #fff;
    font-size: 24px;
    margin-top: 20px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.bounce {
    animation: bounce 1.5s infinite ease-in-out;
}

.bounce-delay {
    animation: bounce 1.5s infinite ease-in-out 0.3s;
}

/* Pulse Animation for Text */
@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}
/* Sepia Mode Styles - Improved */

/* Define Sepia Palette Colors using CSS Variables */
:root {
    
  --sepia-bg-primary: #f4ecd8; /* Light background */
  --sepia-bg-secondary: #e8dbc4; /* Slightly darker background for elements */
  --sepia-text-primary: #5b4636; /* Dark text */
  --sepia-border-color: rgba(91, 70, 54, 0.3); /* Border color with some transparency */
  --sepia-card-bg: rgba(210, 190, 160, 0.6); /* Card background with transparency */
  --sepia-footer-bg: rgba(210, 190, 160, 0.5); /* Footer background with transparency */
  --sepia-banner-shadow: rgba(91, 70, 54, 0.5); /* Banner shadow color */
  --sepia-toast-bg: rgba(91, 70, 54, 0.9); /* Toast background */
  --sepia-toast-color: #f4ecd8; /* Toast text color */
  --sepia-status-loggedin-bg: #d4edda; /* Keep some original colors for status */
  --sepia-status-loggedin-color: #155724;
  --sepia-status-loggedin-border: #c3e6cb;
  --sepia-status-loggedout-bg: #f8d7da;
  --sepia-status-loggedout-color: #721c24;
  --sepia-status-loggedout-border: #f5c6cb;
  --sepia-loading-gradient-start: #d4c8b0; /* Loading box gradient */
  --sepia-loading-gradient-end: #c4b8a0;
  --sepia-loading-border: #8b7355;
  --sepia-chat-header-gradient-start: #8b7355; /* Chat box gradients */
  --sepia-chat-header-gradient-end: #a08a6d;
  --sepia-chat-input-bg: #c4b8a0;
  --sepia-user-message-bg: rgba(139, 115, 85, 0.2);
  --sepia-selene-message-bg: rgba(160, 138, 109, 0.2);
  --sepia-typing-indicator: #8b7355;
}

.sepia-mode {
  filter: sepia(75%) brightness(95%) contrast(95%); /* Slightly adjusted filter */
  background-color: var(--sepia-bg-primary) !important;
  color: var(--sepia-text-primary) !important;
}

.sepia-mode body {
    background-color: var(--sepia-bg-primary) !important;
}


.sepia-mode h1,
.sepia-mode h2,
.sepia-mode h3,
.sepia-mode p,
.sepia-mode a,
.sepia-mode li, /* Added list items */
.sepia-mode span { /* Added span */
  color: var(--sepia-text-primary) !important;
  text-shadow: none !important;
  /* Consider removing or adjusting background-color here if it causes issues on inline elements */
  /* background-color: rgba(244, 236, 216, 0.7) !important; */
}

/* Specific element styling */
.sepia-mode .game-card {
  background-color: var(--sepia-card-bg) !important;
  border: 1px solid var(--sepia-border-color) !important;
}

.sepia-mode footer {
  background: var(--sepia-footer-bg) !important;
  border-top: 1px solid var(--sepia-border-color) !important;
}

.sepia-mode .banner {
  box-shadow: 0 0 20px var(--sepia-banner-shadow) !important;
}

.sepia-mode .toast {
  background-color: var(--sepia-toast-bg) !important;
  color: var(--sepia-toast-color) !important;
}

.sepia-mode .status-box.logged-in {
  background-color: var(--sepia-status-loggedin-bg) !important;
  color: var(--sepia-status-loggedin-color) !important;
  border: 1px solid var(--sepia-status-loggedin-border) !important;
}

.sepia-mode .status-box.logged-out {
  background-color: var(--sepia-status-loggedout-bg) !important;
  color: var(--sepia-status-loggedout-color) !important;
  border: 1px solid var(--sepia-status-loggedout-border) !important;
}

.sepia-mode .loading-box {
  background: linear-gradient(135deg, var(--sepia-loading-gradient-start) 0%, var(--sepia-loading-gradient-end) 100%) !important;
  border: 2px solid var(--sepia-loading-border) !important;
}

.sepia-mode .loading-text {
  color: var(--sepia-text-primary) !important;
}

/* Chat Support in Sepia Mode */
.sepia-mode #chatBox {
  background: linear-gradient(135deg, var(--sepia-loading-gradient-start) 0%, var(--sepia-loading-gradient-end) 100%) !important; /* Reused loading gradient */
  border: 2px solid var(--sepia-loading-border) !important; /* Reused loading border */
}

.sepia-mode .chat-header {
  background: linear-gradient(to right, var(--sepia-chat-header-gradient-start), var(--sepia-chat-header-gradient-end)) !important;
}

.sepia-mode .chat-body {
  color: var(--sepia-text-primary) !important;
}

.sepia-mode .chat-input {
  background: var(--sepia-chat-input-bg) !important;
}

.sepia-mode .chat-input input {
  color: var(--sepia-text-primary) !important;
  background: transparent !important;
}

.sepia-mode .chat-input button {
  background: var(--sepia-loading-border) !important; /* Using a sepia tone for button */
  color: var(--sepia-toast-color) !important; /* Using light sepia for button text */
}

.sepia-mode .chat-input button:hover {
  background: var(--sepia-chat-header-gradient-end) !important; /* Slightly different sepia on hover */
}

.sepia-mode .user-message {
  background: var(--sepia-user-message-bg) !important;
}

.sepia-mode .selene-message {
  background: var(--sepia-selene-message-bg) !important;
}

.sepia-mode .typing-indicator {
  color: var(--sepia-typing-indicator) !important;
}

/* Potentially add more specific overrides for other elements as needed */
/* .sepia-mode button { ... } */
/* .sepia-mode input, .sepia-mode textarea { ... } */
/* .sepia-mode img { filter: sepia(75%); } - Apply filter to images if they shouldn't be fully sepia-toned by the body filter */
/* Enhanced Loading Popup Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-box {
    background: linear-gradient(135deg, #1a1625 0%, #2a2438 100%);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 94, 194, 0.3),
                0 0 30px rgba(255, 94, 194, 0.2);
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 94, 194, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: pulse 2s infinite alternate;
}

.loading-content {
    position: relative;
    z-index: 2;
}

.loading-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.loading-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 94, 194, 0.7));
}

.bounce {
    animation: bounce 1.5s infinite ease-in-out;
}

.bounce-delay {
    animation: bounce 1.5s infinite 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.loading-text {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 94, 194, 0.5);
    position: relative;
}

.loading-text::after {
    content: '...';
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: dots 1.5s infinite step-end;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5ec2, #ff8e53);
    border-radius: 3px;
    animation: progress 1.5s infinite ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.6) 50%, 
                rgba(255,255,255,0) 100%);
    animation: shine 1.5s infinite;
}

@keyframes progress {
    0% { width: 0%; left: 0%; }
    50% { width: 100%; left: 0%; }
    100% { width: 0%; left: 100%; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { transform: scale(1) translateZ(0); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); }
    100% { transform: scale(1.02) translateZ(20px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7); }
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 94, 194, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    animation: float 10s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0; }
}
/* Google Login Button Styles */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #757575;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.google-signin-btn:hover {
    box-shadow: 0 0 3px 3px rgba(66,133,244,0.3);
    transform: translateY(-1px);
}

.google-signin-btn:active {
    background-color: #eee;
    transform: translateY(0);
}

.google-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.button-text {
    font-family: 'Roboto', sans-serif;
}
/* Magical Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    background: rgba(34, 34, 34, 0.95);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 25px 60px rgba(255, 105, 180, 0.4),
        0 0 0 1px rgba(255, 105, 180, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.modal-content.active {
    transform: scale(1) translateY(0);
    box-shadow: 
        0 30px 70px rgba(255, 105, 180, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        #ff69b4, 
        #ff1493, 
        #ff00aa,
        #ff69b4);
    background-size: 300% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff69b4;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.close-btn:hover {
    color: white;
    background-color: rgba(255, 105, 180, 0.2);
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 15px white;
}

.modal-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff69b4, 
        #ff1493, 
        transparent);
    animation: underlinePulse 3s infinite;
    border-radius: 2px;
}

@keyframes underlinePulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scaleX(0.8); 
        background-position: 0% 50%;
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1); 
        background-position: 100% 50%;
    }
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.input-group input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.15);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    left: 20px;
    font-size: 0.9rem;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(255, 105, 180, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 105, 180, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    background: linear-gradient(to right, #ff1493, #ff69b4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 15px rgba(255, 105, 180, 0.6),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Magical Google Login Button */
.google-signin-btn.magical {
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.8), rgba(255, 69, 147, 0.7));
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    border-radius: 20px;
    padding: 15px 30px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.google-signin-btn.magical:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.6);
    text-shadow: 0 0 15px white;
    background: linear-gradient(145deg, rgba(255, 69, 147, 0.8), rgba(255, 105, 180, 0.7));
}

.google-signin-btn.magical:active {
    transform: scale(0.98);
}

.google-signin-btn.magical .google-logo {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}

.google-signin-btn.magical .button-text {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
}
/* Google Login Button Styles - Magical Pink Theme */
.google-signin-btn.magical {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.8), rgba(255, 69, 147, 0.7));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'Pacifico', cursive;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
}

.google-signin-btn.magical:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    background: linear-gradient(145deg, rgba(255, 69, 147, 0.8), rgba(255, 105, 180, 0.7));
}

.google-signin-btn.magical:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
}

.google-signin-btn.magical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255,255,255,0.3), 
                transparent);
    transition: 0.5s;
}

.google-signin-btn.magical:hover::before {
    left: 100%;
}

.google-signin-btn.magical .google-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.google-signin-btn.magical:hover .google-logo {
    transform: rotate(360deg);
}

/* Magical Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    background: rgba(34, 34, 34, 0.95);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 25px 60px rgba(255, 105, 180, 0.4),
        0 0 0 1px rgba(255, 105, 180, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.modal-content.active {
    transform: scale(1) translateY(0);
    box-shadow: 
        0 30px 70px rgba(255, 105, 180, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        #ff69b4, 
        #ff1493, 
        #ff00aa,
        #ff69b4);
    background-size: 300% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff69b4;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.close-btn:hover {
    color: white;
    background-color: rgba(255, 105, 180, 0.2);
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 15px white;
}

.modal-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff69b4, 
        #ff1493, 
        transparent);
    animation: underlinePulse 3s infinite;
    border-radius: 2px;
}

@keyframes underlinePulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scaleX(0.8); 
        background-position: 0% 50%;
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1); 
        background-position: 100% 50%;
    }
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.input-group input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.15);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    left: 20px;
    font-size: 0.9rem;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(255, 105, 180, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 105, 180, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    background: linear-gradient(to right, #ff1493, #ff69b4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 15px rgba(255, 105, 180, 0.6),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 105, 180, 0.5), 
        transparent);
}

.or-divider::before {
    margin-right: 15px;
}

.or-divider::after {
    margin-left: 15px;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.toggle-form a {
    color: #ff69b4;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
/* Magical Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    background: rgba(34, 34, 34, 0.95);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 25px 60px rgba(255, 105, 180, 0.4),
        0 0 0 1px rgba(255, 105, 180, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.modal-content.active {
    transform: scale(1) translateY(0);
    box-shadow: 
        0 30px 70px rgba(255, 105, 180, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        #ff69b4, 
        #ff1493, 
        #ff00aa,
        #ff69b4);
    background-size: 300% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff69b4;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.close-btn:hover {
    color: white;
    background-color: rgba(255, 105, 180, 0.2);
    transform: rotate(90deg) scale(1.1);
    text-shadow: 0 0 15px white;
}

.modal-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff69b4, 
        #ff1493, 
        transparent);
    animation: underlinePulse 3s infinite;
    border-radius: 2px;
}

@keyframes underlinePulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: scaleX(0.8); 
        background-position: 0% 50%;
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1); 
        background-position: 100% 50%;
    }
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.input-group input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.15);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    left: 20px;
    font-size: 0.9rem;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(255, 105, 180, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 105, 180, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    background: linear-gradient(to right, #ff1493, #ff69b4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 15px rgba(255, 105, 180, 0.6),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 105, 180, 0.5), 
        transparent);
}

.or-divider::before {
    margin-right: 15px;
}

.or-divider::after {
    margin-left: 15px;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.toggle-form a {
    color: #ff69b4;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Magical Google Login Button */
.google-signin-btn.magical {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.8), rgba(255, 69, 147, 0.7));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'Pacifico', cursive;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
    width: 100%;
}

.google-signin-btn.magical:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    background: linear-gradient(145deg, rgba(255, 69, 147, 0.8), rgba(255, 105, 180, 0.7));
}

.google-signin-btn.magical:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
}

.google-signin-btn.magical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255,255,255,0.3), 
                transparent);
    transition: 0.5s;
}

.google-signin-btn.magical:hover::before {
    left: 100%;
}

.google-signin-btn.magical .google-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.google-signin-btn.magical:hover .google-logo {
    transform: rotate(360deg);
}
/* Magical Login Modal Styles */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.login-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 40px;
  border-radius: 25px;
  width: 90%;
  max-width: 420px;
  box-shadow: 
    0 25px 60px rgba(255, 105, 180, 0.4),
    0 0 0 1px rgba(255, 105, 180, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease;
  backdrop-filter: blur(15px);
  overflow: hidden;
  border: 1px solid rgba(255, 105, 180, 0.3);
}

.modal-content.active {
  transform: scale(1) translateY(0);
  box-shadow: 
    0 30px 70px rgba(255, 105, 180, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, 
    #ff69b4, 
    #ff1493, 
    #ff00aa,
    #ff69b4);
  background-size: 300% 100%;
  animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #ff69b4;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.close-btn:hover {
  color: white;
  background-color: rgba(255, 105, 180, 0.2);
  transform: rotate(90deg) scale(1.1);
  text-shadow: 0 0 15px white;
}

.modal-content h2 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Pacifico', cursive;
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

.modal-content h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 20px;
  width: calc(100% - 40px);
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    #ff69b4, 
    #ff1493, 
    transparent);
  animation: underlinePulse 3s infinite;
  border-radius: 2px;
}

@keyframes underlinePulse {
  0%, 100% { 
    opacity: 0.7; 
    transform: scaleX(0.8); 
    background-position: 0% 50%;
  }
  50% { 
    opacity: 1; 
    transform: scaleX(1); 
    background-position: 100% 50%;
  }
}

.input-group {
  margin-bottom: 25px;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.3);
  border-radius: 12px;
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  border-left: 3px solid transparent;
}

.input-group input:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 
    0 0 20px rgba(255, 105, 180, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #ff69b4;
}

.input-group label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -10px;
  left: 15px;
  font-size: 0.8rem;
  background: linear-gradient(to right, #ff69b4, #ff1493);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(to right, #ff69b4, #ff1493);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 5px 20px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.3), 
    transparent);
  transition: 0.5s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.7),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
  background: linear-gradient(to right, #ff1493, #ff69b4);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 3px 15px rgba(255, 105, 180, 0.6),
    inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, 
    transparent, 
    rgba(255, 105, 180, 0.5), 
    transparent);
}

.or-divider::before {
  margin-right: 15px;
}

.or-divider::after {
  margin-left: 15px;
}

.toggle-form {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.toggle-form a {
  color: #ff69b4;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toggle-form a:hover {
  color: #ff1493;
  text-decoration: underline;
}

.forgot-password {
  text-align: right;
  margin-top: -15px;
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.forgot-password a {
  color: #ff69b4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #ff1493;
  text-decoration: underline;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin: 5px 0 15px;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.5s ease;
}

.success-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1003;
  animation: slideUp 0.5s ease;
}

.magic-sparkle {
  display: inline-block;
  animation: sparkle 1s infinite alternate;
}

@keyframes sparkle {
  0% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.login-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 105, 180, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: float-up 4s ease-out forwards;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

.modal-content.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Developer Mode Styles */
#chatBox.developer-mode {
    border: 2px solid #ff5ec2;
    box-shadow: 0 0 15px rgba(255, 94, 194, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 94, 194, 0.7); }
    50% { box-shadow: 0 0 20px rgba(255, 179, 71, 0.7); }
    100% { box-shadow: 0 0 10px rgba(255, 94, 194, 0.7); }
}

/* Glitch text effect for wrong password */
.glitched-text {
    color: #ff4081;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff;
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff; }
    25% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff; }
    50% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff; }
    100% { text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.035em 0 #fc00ff; }
}
/* Developer Mode indicators */
.dev-mode-active {
    position: relative;
}

.dev-mode-active::before {
    content: "Developer Mode Active";
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #ff5ec2;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 9999;
}

.dev-tools {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(30, 27, 41, 0.9);
    border: 2px solid #ff5ec2;
    padding: 15px;
    border-radius: 10px;
    z-index: 9998;
    max-width: 300px;
}

.dev-tools h3 {
    color: #ff5ec2;
    margin-top: 0;
}

.dev-tools button {
    background: #ff5ec2;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}
/* Auth Button Styles */
.auth-container {
  margin-left: 10px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #ff69b4, #ff1493);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
  background: linear-gradient(to right, #ff1493, #ff69b4);
}

.auth-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
              transparent, 
              rgba(255,255,255,0.3), 
              transparent);
  transition: 0.5s;
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.auth-btn:hover i {
  transform: scale(1.2);
}

/* Logged in state */
.auth-btn.logged-in {
  background: linear-gradient(to right, #45f3ff, #00bcd4);
  box-shadow: 0 4px 15px rgba(69, 243, 255, 0.4);
}

.auth-btn.logged-in:hover {
  background: linear-gradient(to right, #00bcd4, #45f3ff);
  box-shadow: 0 8px 25px rgba(69, 243, 255, 0.6);
}

/* User info display */
.user-info {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.user-name {
  color: white;
  font-size: 0.9rem;
  margin-right: 8px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ==========================================================================
   SUPERCHARGED Mobile Specific Styles (Screens up to 768px wide)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. General & Body Adjustments
    ----------------------------------------------------------------*/
    body {
        padding: 10px; /* Tighter padding for the body */
    }

    /* 2. Compact Typography
    ----------------------------------------------------------------*/
    h1, .modal-content h2, .loading-box h2 {
        font-size: 1.8rem; /* Drastically reduced h1 for a sleeker look */
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.5rem; /* Smaller h2 */
    }
    
    h3 {
        font-size: 1.2rem; /* Smaller h3 */
    }
    
    p {
        font-size: 0.9rem; /* Smaller paragraph text */
        line-height: 1.5;
    }

    /* Reduce padding on global text elements */
    h1, h2, h3, p, a {
        padding: 8px;
    }

    /* 3. Centered Header & Auth Controls
    ----------------------------------------------------------------*/
    .header-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap; 
        gap: 8px; /* Reduced gap between buttons */
        width: 100%;
        margin-bottom: 15px; 
    }

    /* Adjust auth button for smaller screens */
    .auth-btn, .google-signin-btn.magical {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* 4. Optimized Banner
    ----------------------------------------------------------------*/
    .banner {
        margin-left: auto;
        margin-right: auto;
        left: auto;
        right: auto;
        width: 95%; 
        height: 180px; /* Reduced banner height */
        margin-bottom: 15px;
        margin-top: 5px;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 0.8rem;
    }

    /* 5. REFINED 3-COLUMN GAME CARD LAYOUT
    ----------------------------------------------------------------*/
    .game-cards {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px; /* Tighter gap for the 3-column grid */
        padding: 0;
        margin-top: 20px;
    }

    .game-card {
    flex: 1 1 calc(50% - 10px);       /* 2-column layout */
    max-width: calc(50% - 10px);      /* Prevents growing too large */
    padding: 10px;                    /* Smaller padding */
    border-radius: 10px;
    transform: none;                 /* Reset transform for mobile */
}

    .game-card:hover {
        transform: translateY(-5px); /* Less dramatic lift on hover/tap */
    }

    .game-card img {
        max-width: 50%; /* Smaller images inside cards */
        height: auto;
    }

    .game-card h3 {
        font-size: 0.9rem; /* Smaller title to fit the card */
        margin-top: 8px;
    }

    .game-card p {
        font-size: 0.rem; /* Even smaller description */
        line-height: 1.4;
    }
    
    /* 6. Compact Modal & Popup Styles
    ----------------------------------------------------------------*/
    .login-modal .modal-content, .loading-box {
        width: 90%;
        max-width: 380px; /* Slightly smaller max-width */
        padding: 25px; /* Tighter padding */
        border-radius: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.6rem; /* Smaller modal titles */
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group input, .submit-btn {
        padding: 14px 18px; /* Slightly smaller inputs and buttons */
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .input-group label {
        font-size: 0.9rem;
    }

    .input-group input:focus + label,
    .input-group input:valid + label {
        font-size: 0.75rem;
    }

    /* 7. Floating Chat Adjustments
    ----------------------------------------------------------------*/
    #chatButton {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px; /* Smaller chat button */
        font-size: 14px;
        border-radius: 40px;
    }

    #chatWindow {
        width: calc(100% - 30px); /* Adjust width to account for padding */
        bottom: 70px;
        right: 15px;
        border-radius: 15px;
    }
    
    .chat-header {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .chat-messages {
        height: 120px; /* Shorter message history */
        font-size: 13px;
    }
    
    .chat-input input, .chat-input button {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 8. Footer Styling
    ----------------------------------------------------------------*/
    footer {
        margin-top: 30px;
        padding: 15px;
    }
    #sepiaModeToggle {
        display: block; /* Ensures it's visible */
        background: linear-gradient(145deg, #ff85c1, #ff57a1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 8px 15px;
        font-family: 'Quicksand', sans-serif;
        font-weight: bold;
        font-size: 0.85rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    #sepiaModeToggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
    }

    label[for="languageSelect"] {
        display: block; /* Ensures it's visible */
        color: #ffc0cb; /* A lighter, softer pink for the label */
        font-weight: bold;
        font-size: 0.85rem;
    }

    #languageSelect {
        display: block; /* Ensures it's visible */
        background-color: rgba(34, 34, 34, 0.8);
        color: #ff69b4;
        border: 1px solid rgba(255, 105, 180, 0.5);
        border-radius: 20px;
        padding: 8px 30px 8px 15px; /* Adjusted padding to not overlap arrow */
        font-family: 'Quicksand', sans-serif;
        font-weight: bold;
        font-size: 0.85rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff69b4%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22/%3E%3C/svg%3E');
        background-repeat: no-repeat;
        background-position: right 12px top 50%;
        background-size: 10px auto;
    }
    
    /* Make FAQ and Testimonials sections more compact */
    .faq-testimonials-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }

    .faq-section, .testimonials-section {
        background-color: rgba(34, 34, 34, 0.5);
        border: 1px solid rgba(255, 105, 180, 0.2);
        backdrop-filter: blur(8px);
        border-radius: 15px;
        padding: 15px;
    }

    .faq-section h2, .testimonials-section h2 {
        font-size: 1.3rem; /* Making headings smaller */
        margin-bottom: 15px;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-item strong {
        font-size: 0.9rem; /* Smaller question text */
        color: #ff69b4;
        margin-bottom: 5px;
        display: block;
    }

    .faq-item p, .testimonial p {
        font-size: 0.85rem; /* Smaller answer/testimonial text */
        line-height: 1.5;
        color: #e0e0e0; /* Slightly off-white for better readability */
        /* Overriding global styles for p within these sections */
        background: none;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        display: block;
    }

    .testimonial {
        padding-left: 12px;
        border-left: 3px solid #ff69b4;
        margin-bottom: 10px;
        background-color: rgba(255, 105, 180, 0.05);
    }
    
    .testimonial p {
      font-style: italic;
    }
}
