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

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background-color: #000;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Game View */
#game-view {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#input-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect */
}

#output-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    /* Above video */
}

/* Invite Text */
#invite-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Helvetica', sans-serif;
    font-size: 16pt;
    color: black;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 9999;
    pointer-events: none;
    display: none;
    /* Hidden by default */
}

/* Logic in JS will set display: block */

.hidden {
    display: none !important;
}

/* Exit View */
#exit-view {
    position: absolute;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: white;
    /* Requested white screen */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#exit-view .content {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.2rem;
}

button#play-again-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

button#play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

button#play-again-btn:active {
    transform: translateY(1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#download-analytics-btn {
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

#download-analytics-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#download-analytics-btn:active {
    transform: translateY(1px);
}