html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100vw;
    height: 100%;
    background-color: #120216;
}

@font-face {
    font-family: "MTSText";
    src: url("./MTSText-Medium.otf") format('otf');
    font-weight: normal;
    font-style: normal;
}

#full-screen-container.unity-desktop {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 100dvh;
}

#full-screen-container.unity-mobile {
    position: relative;
    width: 100vw;
    height: 100%;
}

#background-container{
    position: absolute;
    background-image: url('bg.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index : 0;
    overflow: hidden;
}

#unity-container.unity-desktop {
    position: relative;
    aspect-ratio: 9 / 16;
    height: 100%;
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;

    border-left: 3px solid #304544;
    border-right: 3px solid #304544;
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

#unity-canvas.unity-desktop {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

#unity-canvas.unity-mobile {
    width: 100%;
    height: 100%
}

/* Стили для загрузки */
#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-size: cover;
    color: rgb(0, 0, 0);
    z-index: 9994; /* Поверх всего */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
}

#loading.unity-desktop {
    aspect-ratio: 9 / 16;
    height: 100%;
}

#loading.hide {
    display: none;
}

.loading-texts
{
    position: fixed;
    width: 90%;
    bottom: 5%;
    filter: brightness(0) invert(1);
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 80%);
}

#loading-icon
{
    position: relative;
    display: flex;
    transform: translate(0%, -50%);
    mix-blend-mode: lighten;
    align-items: center;
    justify-content: center;
}

#loading-icon img
{
    position: absolute;
    width: 180px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.layer1 {
    z-index: 1;
    animation: rotate-cw 24s linear infinite;
}

.layer2 {
    z-index: 2;
    animation: rotate-ccw 20s linear infinite;
}

.layer3 {
    z-index: 3;
    animation: rotate-cw 32s linear infinite;
}

.layer4{
    z-index: 4;
    animation: rotate-ccw 38s linear infinite;
}

@keyframes rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}


.noselect {
    pointer-events: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.loading-bg{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgb(0, 0, 0);
    z-index: 9997; /* Поверх всего */
}

.loading-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 80px 0;
    color: #C2C2C3;
    font-family: "MTSText", sans-serif;
    font-size: large;
}

/* Стили для окна отсутствия интернета */
.internetIndicator {

    display: none;
    width: 100%;
    height: 100%;
    color: rgb(0, 0, 0);
    z-index: 9998; /* Поверх всего */
    align-items: center;
    text-align: center;
    font-family: "MTSText", sans-serif;
    justify-content: center;
    flex-direction: column;
    width: inherit;
    align-items: center;
    position: relative;
}

.internetIndicator h1 {
    letter-spacing: 2px;
    color: #CFCFCF;
    font-size: xx-large;
}

.internetIndicator p {
    font-size: x-large;
    letter-spacing: 1px;
    color: #CFCFCF;
}


/* Стили для уведомления */
.rotate-notification {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    color: white;
    z-index: 9998; /* Поверх всего */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
}

.rotate-notification.show {
    display: flex; /* Показываем, если добавлен класс .show */
}

.rotate-icon img {
    width: 120px;
    height: 120px;
    animation: rotate 2s infinite linear; /* Анимация (если нужно) */
    z-index: 9999; /* Поверх всего */
    filter: brightness(0) invert(1);
}

@keyframes rotate {
    0% {
        transform: rotate(-90deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
