/* ------------------------------------------------------------------------- */
/*                              SPECIAL FONT                                 */
/* ------------------------------------------------------------------------- */

@font-face {
    font-family: 'Tele Marines';
    src: url('../../static/fonts/telemarines3d1.ttf') format('truetype');
    font-style: normal;
}

/* ------------------------------------------------------------------------- */
/*                          LOADING SCREEN                                   */
/* ------------------------------------------------------------------------- */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-family: 'Tele Marines', sans-serif;
    transition: opacity 0.5s ease, visibility 1s ease;
}

#loading-text {
    font-size: 6em;
    color: var(--color-text);
    display: flex;
    letter-spacing: 6vw;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ------------------------------------------------------------------------- */
/*                          APPEARANCE ORDER                                 */
/* ------------------------------------------------------------------------- */

.letter {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.letter:nth-child(5) { animation-delay: 0.2s; }
.letter:nth-child(7) { animation-delay: 0.4s; }
.letter:nth-child(3) { animation-delay: 0.6s; }
.letter:nth-child(2) { animation-delay: 0.8s; }
.letter:nth-child(1) { animation-delay: 1s; }
.letter:nth-child(6) { animation-delay: 1.2s; }
.letter:nth-child(4) { animation-delay: 1.4s; }
.letter:nth-child(8) { animation-delay: 1.6s; }

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ------------------------------------------------------------------------- */
/*                          PAGE TO PAGE LOADING                             */
/* ------------------------------------------------------------------------- */

body.page-exit > *:not(.navbar):not(script) {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

/* ------------------------------------------------------------------------- */
/*                              SMALL SCREENS                                */
/* ------------------------------------------------------------------------- */

@media (max-width: 1200px) {
#loading-text {
    font-size: 4em;
    letter-spacing: 7vw;
}
}

@media (max-width: 768px) {
    #loading-text {
        font-size: 3em;
        letter-spacing: 5vw;
    }
}

@media (max-width: 500px) {
    #loading-text {
        font-size: 2em;
        letter-spacing: 4vw;
    }
}

/* ------------------------------------------------------------------------- */

