html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #E9EEF4;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#unity-loading-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    pointer-events: none;
}

#unity-logo img {
    max-width: 80%;
    max-height: 80%;
    pointer-events: none;
}

#unity-progress-bar-empty {
    width: 30%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.5s ease;
}

.light #unity-progress-bar-empty { /* added by Max */
    width: 60%;
    height: 6vh;
    padding: 0px;
    margin: 0px 0px 8vh 0px;
    background: #083C47;
    border: 0.2vh solid;
    border-image: linear-gradient(#F5D89A, #9A7A39) 1;
}

.light #unity-progress-bar-full { /* added by Max */
    background: linear-gradient(#147679, #0C4C5B);
}

@font-face { /* added by Max */
  font-family: 'LoraBold';
  src: url('Fonts/Lora-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: bold;
  font-display: swap; /* Чтобы текст не был невидимым во время загрузки */
}

.tip-container { /* added by Max */
    display: flex;
    max-width: 100vw;
    min-height: 10vh;
    align-items: center;
    margin-top: 20px;
    margin-right: 20vh;
    margin-left: 20vh;
    padding: 10px 20px;
    border: 20px solid transparent;
    border-image: url('Images/bg_paper.png') 50 fill;
}

.tip-container .tip-text { /* added by Max */
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-family: "LoraBold";
    color: #4E4E4E;
    font-weight: 600;
}

.loading-spinner {
    width: 10vh;
    height: 10vh;
    top: 20px;
    right: 20px;
    position: absolute;
    transform-origin: 50% 50%;
    animation: spinner-spin 2s infinite alternate ease-in-out;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
