.header {
    background-image: url('images/fot4-reduce.jpg');
    color: white;
}

.header-text {
    position: absolute;
    /* top: 50px; */
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: "Finger Paint", sans-serif;
    font-weight: 400;
    font-style: normal;
    z-index: 2;
    top: -100px; /* Start above the viewport */
    opacity: 0; /* Start invisible */
    animation: dropFade 1.5s forwards;
}

.header-text h1 {
    font-size: 64px; /* Przykładowa wielkość czcionki */
}

@media (max-width: 768px) {
    .header-text h1 {
        font-size: 40px; /* Zmniejszenie rozmiaru czcionki */
    }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .header-text h1 {
        font-size: 64px; /* Zmniejszenie rozmiaru czcionki */
    }
}
@media (min-width: 1200px) {
    .header-text h1 {
        font-size: 80px; /* Zmniejszenie rozmiaru czcionki */
    }
}

@keyframes dropFade {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        top: 47%;
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* Start hidden */
    }
    100% {
        opacity: 1; /* Fade out */
    }
}



@keyframes typing {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* Kolor zaciemnienia */
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out; /* Czas trwania efektu */
}

/* Aktywna nakładka */
.active-transition #transition-overlay {
    opacity: 1; /* Pełne zaciemnienie */
    pointer-events: auto;
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    display: none; /* Domyślnie ukryty */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999; /* Bardzo wysoka wartość, by był nad innymi */
}

#scrollTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Animacja pojawiania */
#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Animacja ukrywania */
#scrollTopBtn.hide {
    opacity: 0;
    transform: scale(0);
}
#scrollTopBtn {
    color: white; /* Domyślny kolor */
    transition: color 0.3s ease-in-out; /* Płynne przejście */
}

#scrollTopBtn:hover {
    color: rgb(255, 64, 64); /* Czerwony kolor po najechaniu */
}