﻿/* Colors */
:root {
    --gold: #f4c77d;
    --gold2: #d0a85c;
    --background1: #0d0d0d;
    --background2: #1b1b1b;
}

/* Container */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, var(--background1), var(--background2), #222, #111);
    background-size: 300% 300%;
    animation: bgMove 12s ease infinite;
    color: var(--gold);
    z-index: 99999;
}

@keyframes bgMove {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* Skyline */
.skyline-container {
    width: 70%;
    max-width: 520px;
}

.skyline {
    width: 100%;
    stroke: var(--gold);
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(255, 200, 120, .6));
}

/* Line Draw Animation */
.line {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawLine 2.5s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Title */
.app-name {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    margin-top: 20px;
    letter-spacing: 3px;
    text-align: center;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 200, 120, .4);
    animation: fadeIn 1.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading text */
.loading-text {
    font-size: 18px;
    margin-top: 8px;
    opacity: 0.8;
}

/* Dots loader */
.loading-dots::after {
    content: "...";
    width: 0;
    overflow: hidden;
    display: inline-block;
    animation: dots 1.4s infinite;
}

@keyframes dots {
    0% {
        width: 0;
    }

    100% {
        width: 24px;
    }
}

/* Fade-out when ready */
.preloader-hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}
