﻿.site-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-text {
    animation: fadeSlide 1s ease-out;
}

/*animowany tekst np. z miganiem liter*/
/*.animate-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: white;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}
*/

/*przesuwanie gradientu po literach:*/
/*.animate-text {
    background: linear-gradient(90deg, #fff, #ddd, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}*/

/*1. Fade-in (wygaszenie do pojawienia się)*/
/*@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-text {
    animation: fadeIn 1.5s ease-in;
}*/

/*
2. Typewriter (efekt pisania tekstu)*/
/*.animate-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: typing 3s steps(30, end), blink .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}*/

/*3. Shine (przesuwający się błysk) nawet dober za szybkie*/
.animate-text {
    /* background: linear-gradient(90deg, #fff, #bbb, #fff);
    background: linear-gradient(90deg, #ffffff, #999999, #ffffff);*/
    background: linear-gradient(90deg, #ffffff, #666666, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 15s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/*4. Bounce (podskakujący tekst)*/
/*.animate-text {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}*/

/*5. Pulse (delikatne pulsowanie)*/
/*.animate-text {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}*/

/*6. Glow (poświata/neon) nawet fajne by musiala byc dyskretniejasz*/
/*.animate-text {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #00e6e6, 0 0 20px #00e6e6;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #00e6e6;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #00e6e6;
    }
}*/

/*7. Wave (falowanie tekstu)*/
/*.animate-text span {
    display: inline-block;
    animation: wave 1.5s infinite;
}

    .animate-text span:nth-child(2) {
        animation-delay: 0.1s;
    }

    .animate-text span:nth-child(3) {
        animation-delay: 0.2s;
    }*/
/*i tak dalej */

/*@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}*/

.offcanvas-body ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.offcanvas-body li {
    margin-bottom: 1rem; /* zwiększony z 0.6rem do 1rem */
    line-height: 1.5; /* delikatnie zwiększona wysokość wiersza */
}

.offcanvas-body a {
    text-decoration: none;
    /*color: #007bff;*/
    font-weight: 500;
}

    .offcanvas-body a:hover {
        text-decoration: underline;
    }

.offcanvas ul li a {
    font-size: 1rem; /* lub dokładny rozmiar z .buttons-nav, np. 1.25rem */
    font-weight: 500;
    font-family: var(--bs-body-font-family); /* lub to co masz w menu */
    /*color: #f8f9fa;*/ /* jasny jak w navbar-dark */
}

.mobile-icons {
    display: flex;
    gap: 0.25rem; /*mniejszy odstęp między ikonami */
    font-size: 0.8rem; /*mniejsza ikona */
}

@media (max-width: 768px) {
    .navbar-brand {
        margin-right: 0 !important;
    }
}

@media (max-width: 390px) {
    .site-name {
        font-size: 1.2rem; /* ok. 19px – dobry kompromis */
    }
}

.offcanvas .btn-close {
   /* font-size: 2rem;
    width: 1.1rem;
    height: 1.1rem;*/
    padding: 0.5rem;
    opacity: 1; /* upewnij się że jest widoczny */
    color: white; /* jeśli nie działa, użyj filter */
    filter: invert(1); /* działa na ikonę SVG */
}

#tocOffcanvas .offcanvas-body {
    padding-bottom: 0.5rem;
}

#tocOffcanvas.offcanvas {
    height: auto !important;
    width: auto !important;
    max-height: unset;
    max-width: 90vw;
    top: 1rem;
    right: 1rem;
    bottom: auto;
    left: auto;
}

#tocOffcanvas a {
    display: block;
    margin-bottom: 1.4rem;
}

.offcanvas-title {
    color: white !important;
}

#tocOffcanvas.offcanvas:not(.show) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0rem 1rem;
}

.offcanvas-body {
    flex-grow: 1;
    padding: 0.5rem 1rem;
    overflow-y: auto;
}