﻿/* loading-screen.css */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.text-container {
    position: relative;
    margin-bottom: 2rem;
}

.outline-text {
    font-size: 20vw;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #333;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
}

#mask1 {
    background-image: linear-gradient(45deg, #00ff87, #60efff);
}

#mask2 {
    background-image: linear-gradient(45deg, #0061ff, #60efff);
}

#mask3 {
    background-image: linear-gradient(45deg, #ff00a8, #00ff87);
}

.signature-container {
    position: relative;
    margin-top: 30px;
    height: 60px;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: white;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

    .signature span {
        opacity: 0;
        position: relative;
        display: inline-block;
        transform: translateY(20px);
    }

        .signature span.active {
            animation: writeChar 0.5s ease-out forwards;
        }

/* Dodajemy styl dla paska postępu */
.progress-bar {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #00ff87, #60efff, #ff00a8);
    border-radius: 3px;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
    max-width: 300px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes writeChar {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media screen and (max-width: 600px) {
    .signature {
        font-size: 32px;
    }

    .progress-bar {
        max-width: 80%;
        bottom: 80px;
    }
}
