﻿#main-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    width: 90%;
    height: 90%;
    margin: auto;
}

.is-hidden {
    display: none !important;
}

.game-preview__image,
.game-option__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 5px #c3dc44 !important;
    filter: brightness(1.1);
    border-radius: 5px;
}

#game-page {
    width: 100%;
    height: 100%;
}

#game-error-message {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.game-preview-container {
    max-width: 1280px;
    max-height: 720px;
    width: 100%;
    height: 100%;
    border: 2px solid aliceblue;
    margin: 0 auto;
}

.game-preview {
    width: 100%;
    height: auto;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.game-preview__image,
.game-preview__video {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

/* Fullscreen sizing (keep video within screen) */
.game-preview__video:fullscreen,
.game-preview__video:-webkit-full-screen,
.game-preview__video:-ms-fullscreen {
    width: 100vw;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
}

.game-hud {
    position: absolute;
    background-color: #0606065c;
    color: #fff;
    z-index: 5;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border-radius: 2px;
    text-align: center;
    display: none;
}

.game-hud__title {
    top: 1%;
    left: 1%;
}

.game-hud__points {
    top: 1%;
    right: 1%;
}

.game-options {
    width: 50%;
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translate(-50%, 0%);
    background-color: #000000d1;
    color: #fff;
    text-align: center;
    display: none;
    max-height: 80%;
    overflow-y: auto;
    box-sizing: border-box;
}

.game-option {
    padding: 0.5rem;
    cursor: pointer;
}

.game-option__content {
    display: inline-block;
}

.game-option__image {
    height: auto;
    max-width: 100%;
    max-height: 100px;
}

.game-option__video {
    width: 100%;
    height: auto;
}

.game-option__text {
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.game-option:hover,
.game-option--selected {
    background-color: #00ff005c;
}

.game-control {
    position: absolute;
    bottom: 1%;
    z-index: 5;
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    background-color: #00000080;
    display: none;
}

.game-control--fullscreen {
    left: 1%;
}

.game-control--skip {
    display: none;
}

.game-control--play {
    display: none;
}

.game-control--fullscreen:hover,
.game-control--skip:hover,
.game-control--play:hover {
    background-color: #00a200ed;
}


.game-snackbar {
    visibility: hidden;
    position: absolute;
    top: 5%;
    left: 50%;
    background-color: #b3000091;
    color: white;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border-radius: 2px;
    text-align: center;
    z-index: 20;
    transform: translate(-50%, -50%);
}

.game-snackbar--visible {
    visibility: visible;
    animation: gameFadeIn 0.5s, gameFadeOut 0.5s 2.5s;
}

@keyframes gameFadeIn {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 5%;
        opacity: 1;
    }
}

@keyframes gameFadeOut {
    from {
        top: 5%;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

.game-first-screen {
    max-height: 720px;
    height: 100vh;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-first-screen--message .game-message {
    width: 50%;
    background-color: #00000080;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    border: none;
    z-index: 6;
    text-align: center;
}

.game-message__title {
    margin-bottom: 0.5rem;
}

.game-message__text {
    margin-bottom: 0;
}

.game-start-button,
.game-continue-button {
    text-align: center;
    background-color: #00f500ee;
    color: white;
    font-size: 1.5rem;
    padding: 0.35rem 1.6rem;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.game-start-button:hover,
.game-continue-button:hover {
    background-color: #00a200ed;
}

.game-message-box {
    width: 100%;
}

.game-result-message {
    border-radius: 5px;
    background-color: #eee;
    width: 100%;
    padding: 0.75rem;
}

.game-result-message--success {
    color: green;
}

.game-result-message--error {
    color: red;
}

.game-result-message__icon {
    margin-right: 0.25rem;
}

.game-result-message__hint {
    display: block;
    margin-top: 0.25rem;
}

audio::-webkit-media-controls-timeline,
video::-webkit-media-controls-timeline,
audio::-webkit-media-controls,
video::-webkit-media-controls {
    display: none;
}

@media (max-width: 500px) {
    .game-first-screen {
        max-height: 50vh;
    }

    .game-control {
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }


    .game-option__text {
        font-size: 0.7rem;
    }

    .timeline__content {
        font-size: 0.95rem !important;
        padding: 0.45rem !important;
    }

    .game-options {
        left: 50%;
        transform: translate(-46%, 50%);
        bottom: 50%;
        width: 100%;
    }

    .game-hud {
        font-size: 0.7rem;
    }


    .game-first-screen--message .game-message {
        width: 80%;
    }
}

@media (min-width: 501px) and (max-width: 900px) {
    .game-first-screen {
        max-height: 50%;
    }

    .timeline__content {
        font-size: 1.1rem !important;
        padding: 0.45rem !important;
    }

    .game-hud {
        font-size: 0.9rem;
    }

    .game-option__text {
        font-size: 0.9rem;
    }


}
