:root {
    --BAR-COLOR: linear-gradient(#5BC6E8, #03BCF6);
    --SHADOW-BOX: 0px 5px 10px 10px rgba(34, 60, 80, 0.2);
    --HEIGHT-LOADBAR: 18px;
}

canvas:focus {
    outline: none;
}

html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    -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);
    height: 100%;
    background-image: var(--BAR-COLOR);
    background-position-x: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#unity-container {
    position: fixed;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 2160px;
    max-height: 1080px;
    background-image: var(--BAR-COLOR);
    background-position-x: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    -webkit-box-shadow: var(--SHADOW-BOX);
    -moz-box-shadow: var(--SHADOW-BOX);
    box-shadow: var(--SHADOW-BOX);
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo {
    width: 400px;
    height: 185px;
    background: url('logo.png?v=1.0.2.3');
    background-position: center;
    background-repeat: no-repeat;
    border: 10px solid transparent;
    border-image: linear-gradient(45deg, #E25E98, #31C2F8) 10;
}

#unity-progress-bar-empty {
    width: 160px;
    height: var(--HEIGHT-LOADBAR);
    margin-top: 10px;
    background: url('loader-empty.png?v=1.0.2.3');
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}

#unity-progress-bar-full {
    width: 0%;
    height: var(--HEIGHT-LOADBAR);
    background: url('loader-full.png?v=1.0.2.3');
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--BAR-COLOR);
    z-index: 9999;
    display: none;
}

.error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--BAR-COLOR);
    z-index: 9999;
    display: none;
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #124250;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    -webkit-box-shadow: var(--SHADOW-BOX);
    -moz-box-shadow: var(--SHADOW-BOX);
    box-shadow: var(--SHADOW-BOX);
}

.message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #5BC6E8;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    -webkit-box-shadow: var(--SHADOW-BOX);
    -moz-box-shadow: var(--SHADOW-BOX);
    box-shadow: var(--SHADOW-BOX);
}

p {
    font-family: Arial;
    color: white;
}

@media screen and (orientation: portrait) {
    .overlay {
        display: block;
    }
}

@media screen and (max-width: 1920px) and (orientation: landscape){  #unity-canvas {height: 100%;} }
@media screen and (max-width: 1600px) and (orientation: landscape){  #unity-canvas {height: 100%;} }
@media screen and (max-width: 1368px) and (orientation: landscape){  #unity-canvas {height: 90%;} }
@media screen and (max-width: 1024px) and (orientation: landscape){  #unity-canvas {height: 100%;} }
@media screen and (max-width: 768px) and (orientation: landscape){  #unity-canvas {height: 100%;} }
@media screen and (max-width: 640px) and (orientation: landscape){  #unity-canvas {height: 36%;} }
@media screen and (max-width: 480px) and (orientation: landscape){  #unity-canvas {height: 25%;} }
@media screen and (max-width: 360px) and (orientation: landscape){  #unity-canvas {height: 22%;} }
@media screen and (max-width: 240px) and (orientation: landscape){  #unity-canvas {height: 15%;} }



@keyframes rotate-clockwise {
    0% {transform: rotate(0deg);}
    50% {transform: rotate(15deg);}
    100% {transform: rotate(0deg);}
}

@keyframes rotate-error {
    0% {transform: rotate(-10deg);}
    50% {transform: rotate(10deg);}
    100% {transform: rotate(-10deg);}
}

.rotate-animation {
    animation: rotate-clockwise 2s linear infinite;
}

.error-animation {
    animation: rotate-error 2s linear infinite;
    width: 80px;
    height: 80px;
}
