@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
}

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%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #1D252C;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1D252C;
    overflow: hidden;
}

/* Loading container (centered logo + text) */
.loading-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: logoFadeIn 1s ease forwards;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    color: rgba(255, 255, 255, 0.75);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.loading-text.enter {
    animation: textEnter 0.45s ease forwards;
}

.loading-text.exit {
    animation: textExit 0.45s ease forwards;
}

@keyframes textEnter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#unity-progress-bar-empty {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #243A40;
    border-radius: 2px;
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #4979FF;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.light #unity-progress-bar-full {
    background: #4979FF;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}


#drop-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 32px;
    visibility: hidden;
    font-family: "Montserrat", sans-serif;
    background: rgba(50, 50, 50, 0.9);
    color: #eee;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

#recording-indicator {
    position: absolute;
    top: 3px;
    right: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    visibility: hidden;
    color: red;
    font-weight: bold;
    pointer-events: none;
    /* Makes clicks pass through */
    z-index: 999;
    /* Ensures it appears above other elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.opacity-pulse {
    animation: opacityPulse 1s ease-in-out infinite;
}

@keyframes opacityPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}
