:root {
    --bg-color: #021b21;
    --text-color: #FFFFFF;
    --accent-color: #00e5ff;
    /* Cyan/Turquoise for 109 vibe */
    --font-main: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
    /* Gradient Background for that "Club" depth */
    background: linear-gradient(180deg, #021b21 0%, #013a40 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    /* Prevent scrolling on kiosk */
    display: flex;
    flex-direction: column;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    background: transparent;
    /* Allow body gradient to show */
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* --- IDLE SCREEN --- */
.main-logo {
    width: 60%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
    /* Cyan glow */
}

.logo-container {
    text-align: center;
    margin-bottom: 50px;
}

.cta-container {
    margin-top: 100px;
    animation: pulse 2s infinite;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* --- CAMERA SCREEN --- */
#webcam-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect */
}

#btn-snap {
    position: absolute;
    bottom: 50px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 4px solid white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

#btn-snap:active {
    transform: scale(0.95);
}

.btn-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

#countdown-overlay {
    position: absolute;
    font-size: 15rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px var(--accent-color);
    z-index: 20;
}

.hidden {
    display: none !important;
}

/* --- REVIEW SCREEN --- */
.preview-container {
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#photo-preview {
    max-height: 100%;
    max-width: 90%;
    border: 10px solid white;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

.controls {
    height: 20%;
    display: flex;
    gap: 40px;
    align-items: center;
}

.btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--bg-color);
    box-shadow: 0 0 20px white;
}

.btn-solid {
    background: var(--accent-color);
    color: #000;
}

.btn-solid:hover {
    background: #ffffff;
    box-shadow: 0 0 30px var(--accent-color);
}

/* --- PRINTING SCREEN --- */
.printing-content {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-top: 8px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

#scanner-input {
    opacity: 0;
    position: absolute;
    top: -1000px;
}

/* --- SUCCESS SCREEN --- */
.success-content {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-color);
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px var(--accent-color);
}

.checkmark {
    width: 30px;
    height: 60px;
    border-bottom: 8px solid #000;
    /* Contrast with cyan */
    border-right: 8px solid #000;
    transform: rotate(45deg);
    margin-top: -10px;
}

.small {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 20px;
    font-style: italic;
    color: var(--accent-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}