
/* =================================
   QDOTADS SPLASH SCREEN
================================= */

html.qdot-splash-seen .qdot-splash {
    display: none !important;
}


.qdot-splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FCC021;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.qdot-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main content */

.qdot-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Logo */

.qdot-animated-logo {
    width: 180px;
    max-width: 48vw;
    height: auto;
    overflow: visible;
    animation: qdot-logo-enter 0.8s ease-out both;
}

/* Main symbol */

.qdot-main-ring {
    transform-origin: center;
    animation: qdot-ring-enter 0.8s ease-out both;
}

/* Inner outline */

.qdot-inner-outline {
    stroke-dasharray: 650;
    stroke-dashoffset: 650;
    animation: qdot-draw 1s ease forwards 0.25s;
}

/* Dot */

.qdot-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: qdot-dot-enter 0.65s ease-out 0.7s both;
}

/* Shine */

.qdot-shine {
    opacity: 0;
    animation: qdot-shine 1.2s ease-in-out 1.1s infinite;
}

/* Brand name */

.qdot-brand-name {
    margin-top: 24px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #111111;
    opacity: 0;
    animation: qdot-text-enter 0.6s ease forwards 0.75s;
}

/* Tagline */

.qdot-tagline {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #222222;
    opacity: 0;
    animation: qdot-text-enter 0.6s ease forwards 1s;
}

.qdot-tagline span {
    padding: 0 3px;
}

/* Loading line */

.qdot-loader {
    width: 100px;
    height: 3px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.15);
    opacity: 0;
    animation: qdot-text-enter 0.4s ease forwards 1.1s;
}

.qdot-loader span {
    display: block;
    width: 40%;
    height: 100%;
    background: #111111;
    border-radius: 20px;
    animation: qdot-loading 1.1s ease-in-out infinite;
}



/* =================================
   KEYFRAMES
================================= */

@keyframes qdot-logo-enter {
    from {
        opacity: 0;
        transform: scale(0.75);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes qdot-ring-enter {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes qdot-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes qdot-dot-enter {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes qdot-shine {
    0%, 100% {
        opacity: 0.4;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: translate(-2px, -2px);
    }
}

@keyframes qdot-text-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qdot-loading {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(260%);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .qdot-animated-logo {
        width: 145px;
    }

    .qdot-brand-name {
        font-size: 25px;
        letter-spacing: 5px;
    }

    .qdot-tagline {
        font-size: 8px;
        letter-spacing: 1.3px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .qdot-splash *,
    .qdot-splash *::before,
    .qdot-splash *::after {
        animation: none !important;
        transition: none !important;
    }

    .qdot-splash-content,
    .qdot-brand-name,
    .qdot-tagline,
    .qdot-loader {
        opacity: 1;
    }

    .qdot-inner-outline {
        stroke-dashoffset: 0;
    }

    .qdot-dot {
        opacity: 1;
    }

    .qdot-shine {
        opacity: 0.8;
    }
}
