*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    padding: 0;
    margin: 0;
    overflow: hidden;

    font-family: 'Outfit', sans-serif;
}

.loading_screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(135deg, #1e121c, #2d1720);

    z-index: 100000;
    transition: opacity 0.2s ease, visibility 0.4s ease;
}

.loading_bar_svg {
    width: 30vmin;
    height: 30vmin;
    max-width: 40vh;
    max-height: 40vh;
}

.loading_progress {
    width: 0;
    height: 100%;
    border-radius: 1vmin;

    background: linear-gradient(
        90deg,
        #ff4f2a 0%,
        #ff7f50 25%,
        #ffaa7a 50%,
        #ff7f50 75%,
        #ff4f2a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 0 2vmin rgba(255, 127, 80, 0.6);

    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    transition: stroke-dashoffset 0.2s ease;
}

.loading_screen_hidden {
    opacity: 0;
    visibility: hidden;
}

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

    height: 10vmin;
    width: 90vw;
    max-width: 60vmin;

    color: #ffaa7a;
    font-size: 5vmin;
    font-weight: 1000;
    text-align: center;
}

.loading_text span {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

.loading_text.no_animation span {
    animation: none !important;
    transform: translateY(0) !important;
}

.loading_text span:nth-child(1) { animation-delay: 0.1s; }
.loading_text span:nth-child(2) { animation-delay: 0.2s; }
.loading_text span:nth-child(3) { animation-delay: 0.3s; }
.loading_text span:nth-child(4) { animation-delay: 0.4s; }
.loading_text span:nth-child(5) { animation-delay: 0.5s; }
.loading_text span:nth-child(6) { animation-delay: 0.6s; }
.loading_text span:nth-child(7) { animation-delay: 0.7s; }
.loading_text span:nth-child(8) { animation-delay: 0.8s; }
.loading_text span:nth-child(9) { animation-delay: 0.9s; }
.loading_text span:nth-child(10) { animation-delay: 1.0s; }
.loading_text span:nth-child(11) { animation-delay: 1.1s; }
.loading_text span:nth-child(12) { animation-delay: 1.2s; }
.loading_text span:nth-child(13) { animation-delay: 1.3s; }
.loading_text span:nth-child(14) { animation-delay: 1.4s; }
.loading_text span:nth-child(15) { animation-delay: 1.5s; }
.loading_text span:nth-child(16) { animation-delay: 1.6s; }

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1vmin);
    }
}

.start_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;

    width: 100vw;
    height: 100vh;

    backdrop-filter: blur(1.25rem) saturate(120%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0.8vmin 3.2vmin 0 rgba(0, 0, 0, 0.3);
    z-index: 10000;

    opacity: 1;
    transition: opacity 0.2s ease;
}

.start_menu_hide {
    opacity: 0;
    pointer-events: none;
}

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

    height: 60vmin;
    width: 100vw;
}

.start_menu_title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vmin;

    border-radius: 3vmin;
    background: rgba(0, 0, 0, 0.5);
    border: 0.0625rem solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.95);

    font-size: 14vmin;
    font-weight: 500;
    color: #f9f9fb;

    transition: ease 0.1s;
}

.start_menu_title:hover {
    scale: 1.1;
    background: rgba(0, 0, 0, 0.4);
    border: 0.0625rem solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 1vmin 2vmin rgba(255, 255, 255, 0.15);
}

.start_menu_bottom {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5vmin;

    width: 100vw;
    flex: 1;
}

.enter_desktop_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    width: 10rem;
    height: 5rem;
    border-radius: 2rem;

    background: rgba(0, 0, 0, 0.5);
    border: 0.0625rem solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.95);

    transition: ease 0.2s;
}

.enter_desktop_button:hover {
    scale: 1.1;
    background: rgba(0, 0, 0, 0.4);
    border: 0.0625rem solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 1vmin 2vmin rgba(255, 255, 255, 0.15);
}

.enter_desktop_button_pressed {
    animation: enterDesktopButtonPress 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes enterDesktopButtonPress {
    0% {
        transform: translateY(-0.8vmin) scale(1.1);
    }
    40% {
        transform: translateY(-1.8vmin) scale(1.3);
    }
    70% {
        transform: translateY(-0.5vmin) scale(0.95);
    }
    100% {
        transform: translateY(-0.8vmin) scale(1.1);
    }
}