*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-size: 0;
    box-sizing: inherit;
}

html, body {
    height: 100%;
    background-color: #93a5ee;
    /* REMOVE SCROLL BAR */
    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 BEHIND UNITY CONTAINER */
    background-position: center center;
    background-size: cover;
    background-image: url('../gameBackground.png');
}

img {
    /* PREVENT IMAGE DRAG AND DROP */
    pointer-events: none;
}

#unity-container {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: none;
}

#diagnostics-icon {
    position: fixed;
    bottom: 10px;
    right: 0px;
}

#diagnostics-icon, #diagnostics-overlay * {
    font-size: 16px;
    pointer-events: all;
}

#diagnostics-btn {
    min-width: 40px;
    min-height: 40px;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
}

#unity-logo {
    --unity-loading-progress: 0%;
    position: relative;
    width: 256px;
    height: 256px;
}

#unity-logo-base,
#unity-logo-fill {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-image: url('prime-logo-mask.png');
}

#unity-logo-base {
    opacity: 0.28;
}

#unity-logo-fill {
    background-image: none;
    background: linear-gradient(180deg, #ffc928 0%, #ff8500 52%, #ff2a14 100%);
    -webkit-mask-image: url('prime-logo-mask.png');
    mask-image: url('prime-logo-mask.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    clip-path: inset(calc(100% - var(--unity-loading-progress)) 0 0 0);
    transition: clip-path 120ms linear;
}

/* ADAPTATION FOR TOO SMALL DISPLAYS */
@media (max-width: 500px), (max-height: 500px) {

    #unity-logo {
        width: 128px;
        height: 128px;
    }

}
