/* 
    Effects Stylesheet
    * Used for visual and sound effects
*/

/* -------------------------------------- */

/* Fonts */
@font-face {
    font-family: "Sixtyfour";
    src: url('../Fonts/Sixtyfour/Sixtyfour-Regular-VariableFont_BLED_SCAN.ttf') format("truetype");
}

.sixtyfour {
    font-family: "Sixtyfour", monospace, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "BLED" 0, "SCAN" 0;
}

.eagle-lake-regular {
    font-family: "Eagle Lake", serif;
    font-weight: 400;
    font-style: normal;
}

.space-grotesk {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.orbitron {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* -------------------------------------- */

/* CRT Filter Styles - https://oudkee.neocities.org/tutorials/tutcrt  */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Can change flicker instensity by modifying opacity values */
@keyframes flicker {
    0% {
        opacity: 0.27861;
    }

    5% {
        opacity: 0.34769;
    }

    10% {
        opacity: 0.23604;
    }

    15% {
        opacity: 0.10626;
    }

    20% {
        opacity: 0.18128;
    }

    25% {
        opacity: 0.10626;
    }

    30% {
        opacity: 0.18128;
    }

    35% {
        opacity: 0.23604;
    }
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

.crt.paused::before,
.crt.paused::after {
    animation: none !important;
    opacity: 0 !important;
    background: none !important;
}

/* -------------------------------------- */

/* Loading Screen Styles - https://dev.to/lensco825/how-to-quickly-add-a-loading-screen-onto-your-website-7ga */
.loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 49;
    background-color: #000;
    background-image: url('../Images/2-Minute_Tabletop_Map_Starry_Space.jpg');
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-text {
    color: lightskyblue;
    font-family: Orbitron;
}

.loading-screen.paused {
    visibility: hidden;
    background: transparent;
    color: transparent;
    pointer-events: none;
}

/* -------------------------------------- */

/* News Color Effect */
.news-color {
    color: #5c8caa
}

/* -------------------------------------- */

