﻿/* Age verification overlay */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 42, 58, 0.85), rgba(44, 62, 80, 0.9)), url('../images/vapesmokebg.jpg');
    background-size:cover;
   color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index:999999;
}


 
/* Smoke animation container */
#smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.smoke-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    animation: smoke-drift linear infinite;
}

@keyframes smoke-drift {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(var(--drift-y, -100px)) translateX(var(--drift-x, 20px)) scale(1.5);
        opacity: 0;
    }
}

/* Age verification popup */
#age-verification-popup {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    transform: scale(0.8);
    opacity: 0;
    animation: popup-appear 1.2s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

@keyframes popup-appear {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    70% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.9;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#age-verification-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.vape-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #e74c3c;
    filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.5));
    animation: vape-pulse 3s infinite alternate;
}

@keyframes vape-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(231, 76, 60, 0.7));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.5));
    }
}

#age-verification-popup h2 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#age-verification-popup p {
    margin-bottom: 25px;
    color: #bdc3c7;
    font-size: 16px;
    line-height: 1.6;
}

.legal-notice {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
    color: #ecf0f1;
    border-radius: 0 4px 4px 0;
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.age-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

    .age-btn::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: left 0.5s;
    }

    .age-btn:hover::before {
        left: 100%;
    }

#yes-btn {
    background: linear-gradient(145deg, #27ae60, #219653);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

    #yes-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    }

#no-btn {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

    #no-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }

/* Underage message */
#underage-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

    #underage-message .sad-icon {
        font-size: 80px;
        color: #e74c3c;
        margin-bottom: 20px;
    }

    #underage-message h2 {
        color: #e74c3c;
        margin-bottom: 20px;
    }

    #underage-message p {
        margin-bottom: 15px;
        font-size: 18px;
        max-width: 500px;
    }

/* Responsive styles */
@media (max-width: 768px) {
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }

    .age-btn {
        width: 100%;
        max-width: 250px;
    }

    #age-verification-popup {
        padding: 30px 20px;
    }
}