html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
    background-color: black;
    /* Remove scroll */
    overflow: hidden;
    /* Remove IOS long-tap */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* Background for aspect ratio. */
    background-image: url("../background.png");
    background-position: center center;
    background-size: cover;
}

img {
    pointer-events: none;
}

#mirra-games-logo {
    display: flex;
    height: 128px;
    margin-top: -8px;
    margin-left: 36px;
}

#mirra-games-logo-image {
    display: inline-block;
    height: 96px;
    margin-top: 16px;
    margin-bottom: 16px;
}

#mirra-games-logo-gif {
    display: inline-block;
    height: 128px;
}

canvas {
    display: block;
}

canvas:focus {
    outline: none;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url("../background.png");
    background-position: center center;
    background-size: cover;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
}

#unity-logo img {
    max-width: 80%;
    border-radius: 8px;
    border: 1px solid white;
    margin-bottom: 16px;
}

#unity-progress-bar-empty {
    width: 326px;
    height: 40px;
    margin-bottom: 16px;
    text-align: left;
    border: 1px solid white;
    border-radius: 8px;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 8px;
}

.light #unity-progress-bar-empty {
    border-color: black;
}

.light #unity-progress-bar-full {
    background: black;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid white;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 400px) {
    #mirra-games-logo-image {
        display: inline-block;
        height: 64px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    #mirra-games-logo-gif {
        display: inline-block;
        height: 80px;
    }
    #unity-progress-bar-empty {
        width: 210px;
        height: 40px;
        margin-bottom: 16px;
        text-align: left;
        border: 1px solid white;
        border-radius: 8px;
        padding: 2px;
    }
}
