﻿
/* GALAXY NAILS & SPA - CHAMPAGNE LOADER */

#galaxy-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 45%,
            #FFFFFF 0%,
            #FDFBF8 65%,
            #F7F2E9 100%
        );

    transition: opacity .8s ease,
               visibility .8s ease;
}

#galaxy-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.galaxy-loader-inner {
    width: 280px;
    text-align: center;
}

/* GOLD ROTATING RING */
.galaxy-loader-ring {
    width: 76px;
    height: 76px;
    margin: 0 auto 25px;

    border: 1px solid rgba(213,177,111,.2);
    border-top: 2px solid #C9A15E;
    border-right: 2px solid #E9D4A9;

    border-radius: 50%;
    position: relative;

    animation: galaxyRotate 2s linear infinite;
}

.galaxy-loader-dot {
    position: absolute;
    width: 7px;
    height: 7px;

    background: #D5B16F;
    border-radius: 50%;

    top: -4px;
    left: 50%;

    box-shadow: 0 0 12px rgba(213,177,111,.7);
}

/* GALAXY BRAND */
.galaxy-loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;

    animation: galaxyFade 1.8s ease infinite alternate;
}

.galaxy-loader-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 4px;

    background: linear-gradient(
        120deg,
        #A77B3D 0%,
        #E5C78D 35%,
        #C49A55 65%,
        #92703D 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.galaxy-loader-logo small {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 5px;

    color: #A88956;
    margin-top: 7px;
}

/* CHAMPAGNE LOADING BAR */
.galaxy-loader-line {
    width: 155px;
    height: 2px;

    background: #F0E7D9;
    margin: 28px auto 16px;

    overflow: hidden;
}

.galaxy-loader-line span {
    display: block;
    height: 100%;
    width: 40%;

    background: linear-gradient(
        90deg,
        #B58A43,
        #F1D9A8,
        #C49A55
    );

    animation: galaxyProgress 1.5s ease-in-out infinite;
}

/* TEXT */
.galaxy-loader-inner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;

    color: #AD956F;
}

/* ANIMATION */
@keyframes galaxyRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes galaxyFade {
    from {
        opacity: .7;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes galaxyProgress {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(380%);
    }
}
