/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

/* Age verification card */
.age-verification {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.age-verification.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-yes {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-yes:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.btn-no {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.btn-no:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
}

.btn-back {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    margin-top: 15px;
}

.btn-back:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

/* Loading screen */
.loading-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-screen.show {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-screen p {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.modal p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Responsive design for tablets and desktop */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .age-verification {
        padding: 40px 35px;
    }
    
    .warning-icon {
        font-size: 64px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .description {
        font-size: 18px;
    }
    
    .question {
        font-size: 20px;
    }
    
    .buttons {
        flex-direction: row;
        gap: 20px;
    }
    
    .btn {
        flex: 1;
        padding: 18px 30px;
        font-size: 18px;
    }
    
    .modal {
        padding: 40px 35px;
    }
    
    .modal-icon {
        font-size: 64px;
    }
    
    .modal h2 {
        font-size: 28px;
    }
    
    .modal p {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }
    
    .age-verification {
        padding: 50px 40px;
    }
    
    .modal {
        padding: 50px 40px;
    }
}

/* Hover effects for touch devices */
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
}

/* Animations */
.age-verification {
    animation: slideIn 0.6s ease-out;
}

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