:root {
    --splash-height: calc(var(--header-height)*3);
    --splash-height-mobile: calc(var(--splash-height)/2);
}

#splashscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#splashscreen.gone {
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease;
}

#splash-gif, #splash-img {
    height: var(--splash-height-mobile);
    width: auto;
}


@media screen and (min-width: 992px) {
    #splash-gif, #splash-img {
        height: var(--splash-height);
    }
}

#splash-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
}

#splash-img {
    display: none;
    transform-origin: center;
    z-index: 9999;
    pointer-events: none;
}

#splash-img.blurred {
    filter: blur(0.5px) brightness(85%);
    -webkit-filter: blur(0.5px) brightness(85%);
}

#splashscreen.gone #splash-gif {
    display: none;
}

#splashscreen.gone + #splash-svg-container #splash-img {
    display: block;
}
