body {
    background: #0e0e16;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    width: 800px;
    height: 450px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid #2d3748;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    z-index: 20;
    transition: opacity 0.5s ease, visibility 0.5s;
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
    font-family: sans-serif;
}

#start-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    text-align: center;
    max-width: 80%;
}

.game-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.game-subtitle {
    font-size: 24px;
    font-weight: bold;
    color: yellow;
    margin: 0 0 30px 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.glow-button {
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ffcc00 0%, #ff6600 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.glow-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 35px rgba(255, 204, 0, 0.7);
}

.glow-button:active {
    transform: translateY(-1px) scale(0.98);
}

#qte-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*background: rgba(0, 0, 0, 0.5);*/
    /* Dims video slightly during QTE */
    color: white;
    font-family: 'Outfit', sans-serif;
}

#qte-prompt {
    display: none;
}

.button-grid {
    position: absolute;
    left: 145px;
    top: 335px;
    display: grid;
    grid-template-columns: repeat(3, 20px);
    grid-template-rows: repeat(3, 20px);
    gap: 3px;
    z-index: 15;
}

.qte-btn {
    width: 20px;
    height: 20px;
    background: #555;
    /* gray background */
    color: #fff;
    /* white label */
    border: 1px solid #333;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    font-family: 'Outfit', sans-serif;
}


.qte-btn:hover {
    background: #666;
    border-color: #888;
}

/* Glow effect when button is pressed */
.qte-btn:active {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
    box-shadow: 0 0 8px #ffcc00;
    animation: pressGlow 0.3s ease-in-out forwards;
}

.qte-btn.pressed {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
    box-shadow: 0 0 8px #ffcc00;
    animation: pressGlow 0.3s ease-in-out forwards;
}

@keyframes pressGlow {
    from {
        box-shadow: 0 0 4px #ffcc00;
    }

    to {
        box-shadow: 0 0 12px #ffcc00;
    }
}

.qte-keys {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 20;
}

.qte-key-btn {
    width: 40px;
    height: 40px;
    background: #555;
    color: #fff;
    border: 1px solid #333;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    font-family: 'Outfit', sans-serif;
}

.qte-key-btn:hover {
    background: #666;
    border-color: #888;
}

.qte-key-btn.pressed {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
    box-shadow: 0 0 8px #ffcc00;
}

#lives-container {
    position: absolute;
    left: 510px;
    top: 380px;
    /*width: 115px;
    //height: 50px;*/
    display: flex;
    justify-content: flex-start;
    /*align-items: center;*/
    gap: 1px;
    z-index: 30;
}



.life-icon {
    width: 45px;
    height: 50px;
    background-image: url('assets/life.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}



/*
/* Class to highlight the specific button the player needs to press */
.qte-btn.active-target {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
    box-shadow: 0 0 6px #ffcc00;
    animation: blink 0.4s infinite alternate;
}

*/ #skip-prompt {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    animation: skipPulse 1.5s infinite ease-in-out;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes skipPulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.hidden {
    display: none !important;
}

@keyframes blink {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.3));
    }

    to {
        filter: drop-shadow(0 0 15px rgba(255, 102, 0, 0.6));
    }
}

#player-name-input {
    position: absolute;
    left: 220px;
    top: 375px;
    width: 120px;
    height: 25px;
    background: #000;
    color: #ffcc00;
    border: 1px solid #333;
    border-radius: 2px 2px 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    z-index: 15;
    outline: none;
    text-shadow: 1px 1px 1px #444;
}

#player-name-input:focus {
    border-color: #ffcc00;
}

#score-counter {
    position: absolute;
    left: 220px;
    top: 400px;
    width: 120px;
    height: 25px;
    background: #000;
    color: #fff;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 2px 2px;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: left;
    align-items: center;
    box-sizing: border-box;
    padding-left: 15px;
    z-index: 15;
    user-select: none;
    text-shadow: 1px 1px 1px #444;
}