.splash {
    background-color: var(--bkg-color);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.splash-loaded {
    animation: slideupoot 0.5s ease-in forwards;
}

@keyframes slideupoot {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
        display: none;
    }
}

.splash-logo-div {
    text-align: center;
    overflow: auto;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-top: calc(50vh - (240px/2) - 10px);
}

.splash-logo-div img {
    max-width: 240px;
    height: 240px;
    size: contain;
    z-index: 1;
}

.splash-logo-div .lds-dual-ring {
    width: 320px;
    height: 320px;
    position: absolute;
    top: 0;
    left: calc(50vw - (320px/2));
    top: calc(50vh - (320px/2));
    margin-top: 18px;
    overflow: hidden;
    text-align: center;
}

.splash-logo-div .lds-dual-ring:after {
    content: " ";
    display: inline-block;
    width: 250px;
    height: 250px;
    padding: 0;
    border-radius: 50%;
    border: 6px solid;
    border-color: #37cfa5 transparent #0037d4 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Reduced motion. The overlay retires by being removed from the document
   (js/splash.js), so nothing here may keep it on screen: animation:none alone would
   leave a full-viewport, z-index:1000 panel covering the page forever. The ring stops
   spinning because it is an infinite animation. */
@media (prefers-reduced-motion: reduce) {
    .splash.splash-loaded {
        animation: none;
        display: none;
    }

    .splash-logo-div .lds-dual-ring:after {
        animation: none;
    }
}