html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    box-sizing: border-box;
}

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

canvas,
#unity-canvas {
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent !important;
}

#unity-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: #000;
}

#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: 50%;
}

#unity-progress-bar-empty {
    width: 250px;
    height: 24px;
    border-radius: 5px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid #bf36fb;
    box-shadow: 0 0 8px #bf36fb, 0 0 8px #bf36fb, 0 0 8px #bf36fb;
    padding: 2px;
}

#unity-progress-bar-full {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.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 #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

.menu-container {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: fixed;
    opacity: 0.85;
    top: 16%;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 999;
}

.main-button {
    background-color: #333;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 10px 80px 80px 10px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.main-button:hover {
    background-color: #333;
}

.submenu {
    display: none;
    margin-left: 1px;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100vw - 60px);
}

.submenu.show {
    display: flex;
}

.submenu a {
    text-decoration: none;
}

.submenu button {
    background-color: #333;
    border: none;
    border-radius: 8px;
    padding: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.submenu button:hover {
    background-color: #555;
}

.submenu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

@media (max-width: 500px) {
    .submenu {
        flex-wrap: wrap;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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