@font-face {
    font-family: TitleFont;
    src: url('./Fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body, html {
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #151515;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

canvas:focus {
    outline: 0;
}

body {
    margin: 0;
}

#unity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #151515;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background-color: #151515;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: #151515;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Bebas Neue', sans-serif;
}

.loading-text-wrapper {
    width: 100%;
    position: relative;
    text-align: center;
}

.loading-text {
    font-family: TitleFont, sans-serif;
    font-size: clamp(2rem, 10vw, 10vh);
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 
                 0 0 30px rgba(255, 255, 255, 0.4), 
                 0 0 45px rgba(255, 255, 255, 0.3);
}

.loading-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.5s forwards;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#circle-1, #circle-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
}

#circle-1 {
    width: 50px;
    height: 50px;
    background-color: #fff;
    animation: circle-grow-1 2.5s forwards 3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                0 0 40px rgba(255, 255, 255, 0.4),
                0 0 60px rgba(255, 255, 255, 0.2);
}

#circle-2 {
    width: 40px;
    height: 40px;
    background-color: #151515;
    animation: circle-grow-2 2.5s forwards 3.5s;
}

@keyframes circle-grow-1 {
    0% {
        opacity: 1;
        width: 50px;
        height: 50px;
    }
    100% {
        opacity: 1;
        width: 500vw;
        height: 500vw;
    }
}

@keyframes circle-grow-2 {
    0% {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    100% {
        opacity: 1;
        width: 500vw;
        height: 500vw;
    }
}

#logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(20vw, 20vh);
    height: min(20vw, 20vh);
    max-width: 250px;
    max-height: 250px;
    min-width: 100px;
    min-height: 100px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 1));
}

#logo, #slider {
    opacity: 0;
    animation: fade-in 1s forwards 4s;
}

#slider {
    position: absolute;
    top: calc(40% + 150px);
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    min-width: 200px;
    height: 9px;
    background-color: #262626;
    border-radius: 30px;
    z-index: 10000;
    border: 1px solid #3d3d3d;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

#slider-progress {
    width: 0%;
    height: 100%;
    background-color: #fff;
    transition: width 0.3s;
    border-radius: 30px;
}
