:root {
    --suggestions-max-visible: 5.6;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: "Roboto", sans-serif;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.video-container {
    position: relative;
    height: 99.6vh;
}

#opening-video {
    width: 100vw;
    height: 99.5vh;
}

#blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(150px);
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
    transition-duration: 2s;
}

#blur-overlay.off {
    backdrop-filter: blur(1px);
}

.game-ui {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(3px);
    width: 90%;
    width: max-content;
    padding: 20px;
    border-radius: 10px;
    background-color: #121212;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box;
    border: 1px solid #444;
    transition-duration: .35s;
    z-index: 15;
}

.game-ui:hover {
    transform: translate(-50%, -50%) translateY(0);
}

.information-display {
    text-align: left;
    margin-bottom: 17px;
    display: grid;
    grid-template-columns: 100%;
    grid-gap: 7px;
}

.score-display {
    font-size: 1rem;
}

span.extra {
    opacity: 50%;
}

#queue-indicator {
    opacity: 35%;
}

.guess-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 100px;
    grid-gap: 5px;
}

#guess-input {
    width: calc(100%-20px);
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #0f0f0f;
    color: white;
}

#suggestions {
    position: absolute;
    width: 100%;
    max-width: 312px;
    margin-top: 46px;
    max-width: 100vw;
    max-height: calc(35px * var(--suggestions-max-visible));
    overflow-y: auto;
    background-color: #121212;
    border-radius: 4px 2px 10px 10px;
    z-index: 100;
    display: none;
    border: 1px solid #444;
    border-top: none;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-top: 1px solid #444;
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #222;
}

#submit-guess {
    height: 100%;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#submit-guess:hover {
    background-color: #45a049;
}

#result-message {
    font-size: 1rem;
    min-height: 30px;
    width: 100%;
    transition-duration: .25s;
}

#result-message.shown {
    margin-top: 20px;
    opacity: 1;
    height: auto;
}

#result-message.hidden {
    margin-top: 0;
    opacity: 0;
}

.correct {
    color: #4CAF50;
}

.incorrect {
    color: #f44336;
}

.queue-indicator {
    margin-bottom: 10px;
}

/* For mobile responsiveness */
@media (max-width: 600px) {
    .game-ui {
        padding-top: 12px;
        max-width: none;
        width: 100vw;
        bottom: 0 !important;
        height: 40vh;
        top: auto;
        left: auto;
        transform: none;
        border-radius: 0;
    }
    .game-ui:hover {
        transform: none;
    }
    #submit-guess {
        width: 100%;
    }
    #guess-input {
        width: calc(100% - 20px);
        padding: 10px;
    }
    #suggestions {
        max-width: none;
    }
    .guess-container {
        grid-template-columns: 100%;
    }
    .information-display {
        margin-top: 5px;
        margin-bottom: 22px;
    }
}
@media (max-height: 850px) {
    :root {
        --suggestions-max-visible: 4.6;
    }
}
@media (max-height: 750px) {
    :root {
        --suggestions-max-visible: 3.6;
    }
}
@media (max-height: 650px) {
    :root {
        --suggestions-max-visible: 2.6;
    }
}