@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');

html,
body {
    background-color: #222429;
}

body {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.webgl-content * {
    border: 0;
    margin: 0;
    padding: 0;
}

#game-container {
    background: transparent !important;
}

#canvas {
    opacity: 0;
    transition: 1s opacity ease-in;
}

#canvas.show {
    opacity: 1;
}

.webgl-content .loading-screen {
    align-items: center;
    color: white;
    display: flex;
    flex-direction: column;
    font-family: Verdana, sans-serif;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 1;
    position: absolute;
    top: 0;
    transition: visibility 0s ease-in 1s, opacity ease-in 1s;
    visibility: visible;
    width: 100%;
}

.webgl-content .loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.webgl-content .loading-screen .progress-bar {
    border: 2px solid white;
    border-radius: 20px;
    box-shadow: 0 0 24px 0 #ffffff29;
    height: 10px;
    padding: 2px;
    width: 60%;
}

.webgl-content .loading-screen .progress-bar .progress-bar__fill {
    background: rgb(25,231,217);
    background: linear-gradient(90deg, rgba(25,231,217,1) 0%, rgba(58,153,194,1) 50%, rgba(46,104,149,1) 100%);
    border-radius: 20px;
    box-shadow: 0 0 17px 0 #19E7D9;
    height: 100%;
    width: 50%;
}

.webgl-content .loading-screen > * {
    margin: 10px;
}

.logo {
    height: 170px;
}

.logo img {
    display: block;
    margin: auto;
}

#city-name {
    font-family: 'Alata', sans-serif;
    color: white;
    text-align: center;
    text-shadow: -2px 2px 4px #000000ba;
    font-size: 32px;
}

#fullscreen-button {
    background-image: url("fullscreen.jpg");
    bottom: 0;
    display: none;
    height: 38px;
    position: absolute;
    right: 0;
    width: 38px;
}

#fullscreen-button.show {
    display: flex;
}

html,
body {
    overflow: hidden;
}

body {
    position: relative;
}

/* #canvas {
    opacity: 0 !important;
} */

@media all and (view-mode: fullscreen) {
    #fullscreen-button {
        opacity: 0;
        transition: all 1s;
    }
}

#not-supported {
    display: none;
}

#not-supported,
#download a {
    color: white;
    font-family: "Verdana", sans-serif;
    text-align: center;
}

#download {
    margin-top: 50px;
}

#download a {
    font-size: 30px;
}

#rotate-device-warning {
    align-items: center;
    background: rgb(34, 36, 41);
    background: linear-gradient(
        45deg,
        rgba(34, 36, 41, 1) 0%,
        rgba(38, 50, 70, 1) 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    font-family: Verdana;
    font-size: 36px;
    height: 100vh;
    justify-content: center;
    position: absolute;
    width: 100vw;
    z-index: 1;
}

#rotate-device-warning div {
    text-align: center;
    margin: 20px 0;
}

#rotate-device-warning img {
    height: 200px;
    animation: rotate-device 3s ease-in-out infinite;
}

@keyframes rotate-device {
    0% {
        transform: rotate(0deg);
    }

    70% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(-90deg);
    }
}

@media (min-width: 1000px) {
    #rotate-device-warning {
        display: none;
    }
}

/*
.webgl-content .fullscreen {
    display: flex;
    height: 100vh;
    width: 100%;
    position: absolute;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
}
*/

/* #fullscreen-button {
    display: none;
    height: 100vh;
    width: 100%;
    position: absolute;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    z-index: 5;
    background: rgb(34, 36, 41);
    background: linear-gradient(
        45deg,
        rgba(34, 36, 41, 1) 0%,
        rgba(38, 50, 70, 1) 100%
    );
    color: white;
    opacity: 1;
}

#fullscreen-button.show {
    display: flex;
}

#fullscreen-button button {
    background-color: #fada80;
    border: none;
    color: #bb6b94;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 32px;
    font-family: "VT323-Regular", "Verdana", sans-serif;
} */

/* @font-face { */
/* font-family: "VT323-Regular"; */
/* src: url("VT323-Regular.eot"); IE9 Compat Modes */
/* src: url("VT323-Regular.eot?#iefix") format("embedded-opentype"), */
/* IE6-IE8 url("VT323-Regular.woff") format("woff"), */
/* Modern Browsers url("VT323-Regular.ttf") format("truetype"), */
/* Safari, Android, iOS url("VT323-Regular.svg#svgFontName") */
/* format("svg"); Legacy iOS */
/* } */

/* @media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
    html body.mobile {
        transform: rotate(-90deg);
        transform-origin: left top;
        width: 100vh;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }
} */
