/*"aspect-ratio" requires new browsers (Edge 88, Firefox 89, Safari 15, Chrome 88, Opera 74)*/

.fadeOutText {
    opacity: 0%;
    transition: opacity 1s ease-in-out;
}
#gameSpace {
    line-height: normal;
    font-family: sans-serif;
    user-select: none;
    box-sizing: content-box;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 2px solid grey;
    background-color: grey;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: 2fr 4fr 2fr;
    justify-content: space-around;
    position: relative;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0%;
    transition: opacity 1s ease-in-out;
}
.foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 100%;
    transition: opacity 1s ease-in-out;
}

#screenMessageContainer {
    display: flex;
    justify-content: center;
    width: 65%;
    height: 100%;
    margin: auto;
    margin-top: 12%;
    text-align: center;
    animation: fadeIn 1s;
    -webkit-animation: fadeIn 1s;
    -moz-animation: fadeIn 1s;
    -o-animation: fadeIn 1s;
    -ms-animation: fadeIn 1s;
}

.hidden {
    animation: fadeOut 1s;
    -webkit-animation: fadeOut 1s;
    -moz-animation: fadeOut 1s;
    -o-animation: fadeOut 1s;
    -ms-animation: fadeOut 1s;
}

#screenMessage {
    color: white;
    font-size: 21px;
        line-height: 1.5;
}

#gameContainer:fullscreen #gameSpace {
    box-sizing: content-box;
    position: relative;
    background-color: black;
    padding: 0;
    margin: 0;
    border: 0px;
    width: auto;
    height: 100%;
    aspect-ratio: 16/9;
}

#gameContainer {
    margin: 5vh 0 5vh 0;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    background-color: #fff;
    position: relative;
    display: flex;
    justify-content: space-around;
}

#gameContainer:fullscreen {
    box-sizing: border-box;
    background-color: rgb(0, 0, 0);
    position: relative;
    display: flex;
    justify-content: center;
    padding-bottom: 0%;
}

/* CSS needed for fullscreen / aspect ratio */
.vertical#gameContainer:fullscreen {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    align-items: center;
    display: flex;
    background-color: rgb(0, 0, 0);
}

.vertical#gameContainer:fullscreen #gameSpace {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background-color: black;
    padding: 0;
    margin: 0;
    border: 0px;
}

#overLayer {
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

#mapImage {
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#map {
    width: 100%;
    height: 100%;
}

.newImage {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

#nadine_txt {
    position: absolute;
    width: 7%;
    height: 10%;
}

#sophia_txt {
    position: absolute;
    width: 7%;
    height: 10%;
}

#clemens_txt {
    position: absolute;
    width: 7%;
    height: 10%;
}

#popUp {
    padding: 5px;
    color: rgb(255, 255, 255);
    position: relative;
    z-index: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background-color: rgba(0, 0, 0, 0.85);
    height: 100%;
    width: 100%;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 15px;
    justify-content: space-around;
}

.popUpOptions {
    display: flex;
    width: 100%;
    height: 40%;
    justify-content: space-around;
}

.popUpOptions button {
    display: block;
    flex: 0 0 auto;
    font-size: inherit;
    height: auto;
    border: 8px, solid rgba(0, 0, 0, 0);
    border-radius: 5px;
}

.popUpOptions button:hover {
    border-color: rgb(247, 243, 12);
}

.popUpOptions[data-options="1"] button {
    width: 90%;
}

.popUpOptions[data-options="2"] button {
    width: 45%;
}

.popUpOptions[data-options="3"] button {
    width: 30%;
}

.popUpOptions[data-options="4"] button {
    width: 20%;
}

#playButton {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('../images/independent/play.png');
    z-index: 2;
    height: 100%;
    width: 100%;
    transition: opacity .2s ease-in-out;
    opacity: 0%;
}

#playButton:hover {
    transform: scale(1.08);
    transition: transform .2s;
    opacity: 100%;
    cursor: pointer;
}

#layer1 {
    opacity: 100%;
    z-index: 1;
    background-image: url('../images/independent/Thumbnail.jpg');
}

#narrator{
    pointer-events: none;
}

.blink {
    animation: fade 1s ease infinite;
    /* -webkit-animation: fade 1000ms infinite; */
    -webkit-animation: fade 1s ease infinite;
    /* filter: invert(99%) sepia(1%) saturate(1507%) hue-rotate(30deg) brightness(117%) contrast(100%); */
}

@keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0;
    }

    to {
        opacity: 1.0;
    }
}

@-webkit-keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0;
    }

    to {
        opacity: 1.0;
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-moz-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-o-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-ms-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}