body {
    font-family: sans-serif;
    margin: 0;
    background-color: #111;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                radial-gradient(circle, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 20px 20px, 30px 30px;
    animation: moveStars 50s linear infinite;
    z-index: -1;
}

@keyframes moveStars {
    from { background-position: 0 0, 0 0; }
    to { background-position: -100% -100%, -60% -60%; }
}

h1 {
    color: #00ccff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ccff;
    text-align: center;
    display: none;
}

h2 {
    color: #aaa;
    margin-bottom: 10px;
    text-align: center;
}

h3 {
    color: #bbb;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

#video-container {
    width: 95%;
    max-width: 800px;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: black;
    border-radius: 4px;
}

#prompt-container {
    margin-top: 20px;
    text-align: center;
}

#prompt-text {
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ddd;
}

#decision-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    padding: 12px 25px;
    font-size: 1em;
    border: 2px solid #00ccff;
    background-color: transparent;
    color: #00ccff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.2);
    margin-bottom: 10px;
}

button:hover {
    background-color: #00ccff;
    color: #111;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

.choice-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 10px;
    cursor: pointer;
    border: 1px solid #fff;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.choice-button:hover {
    background-color: #333;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#playButton {
    display: block;
    margin: 20px auto;
    font-family: 'Sci-Fi', sans-serif;
    animation: flicker 1.5s linear infinite;
    font-size: 1.5em;
    padding: 15px 30px;
    border: 2px solid #00ccff;
    background-color: transparent;
    color: #00ccff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* Intensified glow */
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.8);
    position: relative;
    z-index: 1;
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

#restart-button {

}

/* Existing mobile styles */
@media (max-width: 600px) {
    h1 {
        font-size: 2.0em; /* Slightly smaller than before, adjust as needed */
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.0em; /* Adjust as needed */
        margin-bottom: 6px;
    }

    h3 {
        font-size: 1.1em; /* Adjust as needed */
        margin-top: 10px;
        margin-bottom: 6px;
    }

    button, .choice-button, #playButton {
        padding: 10px 15px; /* Slightly smaller padding */
        font-size: 0.9em;
        margin-bottom: 8px; /* Less bottom margin */
    }

    #prompt-text {
        font-size: 1.0em; /* Adjust as needed */
        margin-bottom: 10px;
    }

    #video-container {
        margin-bottom: 20px; /* Less bottom margin */
        padding: 15px; /* Slightly less padding */
    }
}

/* Further mobile adjustments */
@media (max-width: 400px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 0.9em;
    }
    h3 {
        font-size: 1.0em;
    }
    button, .choice-button, #playButton {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    #prompt-text {
        font-size: 0.95em;
    }
    #decision-container {
        gap: 10px; /* Reduce gap between buttons on very small screens */
    }
}

/* Adjust video container for better mobile fit */
#video-container {
    width: 98%; /* Take up more horizontal space on smaller screens */
    margin-left: auto;
    margin-right: auto;
}

#start-screen h2 {
    font-size: 3em; /* Adjust start screen title size on mobile */
}

#playButton {
    font-size: 1.2em; /* Adjust play button size on mobile */
    padding: 12px 25px;
}

/* Start Screen Styles */
#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
    overflow: hidden;
}

/* Enhanced CSS-generated smoke effect around the edges */
#start-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(200, 200, 200, 0.3) 10%, transparent 60%),
        radial-gradient(circle, rgba(100, 100, 100, 0.15) 20%, transparent 70%),
        radial-gradient(circle, rgba(220, 220, 220, 0.2) 15%, transparent 65%);
    background-size: 400px 400px, 600px 600px, 500px 500px;
    background-position: center;
    animation: cssSmokeEnhanced 10s linear infinite;
    opacity: 0.8;
    /* background-blend-mode: overlay; */
}

@keyframes cssSmokeEnhanced {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
        background-size: 400px 400px, 600px 600px, 500px 500px;
    }
    25% {
        transform: translate(20px, -10px) rotate(5deg) scale(1.03);
        opacity: 0.7;
        background-size: 420px 420px, 620px 620px, 520px 520px;
    }
    50% {
        transform: translate(50px, -30px) rotate(15deg) scale(1.06);
        opacity: 0.6;
        background-size: 440px 440px, 640px 640px, 540px 540px;
    }
    75% {
        transform: translate(30px, -20px) rotate(10deg) scale(1.04);
        opacity: 0.7;
        background-size: 420px 420px, 620px 620px, 520px 520px;
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
        background-size: 400px 400px, 600px 600px, 500px 500px;
    }
}

#start-screen h2 {
    font-size: 4em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    z-index: 1;
}
