:root {
    --current-target-vw: 19.2;
    --current-target-vmax-mul: 1;
    --current-target-vmin-mul: 1;
}

/*
    Titan does not expose vmin/vmax of the titan canvas, only width (--current-target-vw)
    Multipliers to help transform --current-target-vw into vmax/vmin in landscape and portrait.
    Used to ensure consistent font sizing.
    Assumes 16:9 aspect. Titan should be updated to expose these values for future games.
*/
@media (orientation: portrait) {
    :root {
        --current-target-vmax-mul: 1.777777;
        --current-target-vmin-mul: 1;
    }
}
@media (orientation: landscape) {
    :root {
        --current-target-vmin-mul: 0.565;
        --current-target-vmax-mul: 1;
    }
}

.visible-page {
    width: 100%;
    height: 100%;
    margin: auto;
    position: absolute;
    color: #000000;
    top: 0;
    left: 0;
    pointer-events: all;
}

.hidden-page {
    pointer-events: none;
}

#settings-iframe {
    width: 100%;
    height: 100%; /* Fallback for old iOS versions */
    height: 100dvh; /* Use 100% of available screen estate where possible */
    position: fixed;
    border: none;
}

/* Common CSS */
.developmentStats {
    z-index: 10000;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
}

body {
    margin: 0;
    background-color: #000;
    font-family: Arial Rounded Bold;
    color: #fff;
    overscroll-behavior: none;
}

.oprompt-mobile {
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.oprompt-ipad {
    background-position: center;
    background-repeat: no-repeat;
}

.oprompt-tablet {
    background-position: center;
    background-repeat: no-repeat;
}

.splash-screen {
    background-image: url("./assets/vendors/gi/web/load/SplashScreen.jpg");
    background-size: cover;
    position: fixed;
    max-width: 1280px;
    max-height: 720px;
}

.webGLAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%;
}

.removeNavBar {
    background-image: url("./assets/scroll-up.gif");
    background-position: 50% 20%;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 340px;
    background-repeat: no-repeat;
    text-align: center;
    font-size: 1em;
    display: block;
}

canvas {
    font-family: Arial Rounded Bold;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#spinner {
    position: absolute;
    width: 2vw;
    left: calc(50% - 1vw);
    top: 70%;
    animation-name: spin;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}