/* Tło strony */
body {
    text-align: center;

    min-height: 100vh;
    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: visible;

    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;

    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: parallax 30s infinite linear;
}

main {
    margin-bottom: 20px;
    flex: 1;
}

/* Animacja dla tła */
@keyframes parallax {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Ustawienia dla nagłówka */
/* Nagłówek */
#sekcjaEfektuTeczy {
    background: linear-gradient(rgba(255, 255, 255, 0.115), rgba(0, 255, 0, 0.179), rgba(255, 255, 0, 0.218), rgba(255, 0, 0, 0.267), rgba(0, 128, 0, 0.037));
}
#naglowek {
    color: white;
    padding: 20px 10px;
    text-align: center;
    border-radius: 10px;
    animation: slideIn 0.8s forwards ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

/* Animacja wjazdu */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tekst w nagłówku */
.header-text {
    font-size: 24px;
    margin-top: 10px;
    text-shadow: 
        2px 1px 0 #161616,
        -1px -1px 0 #353535,
        1px -1px 0 #313131,
        -1px 1px 0 #232323,
        0px 0px 6px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}


.header-text:hover {
    transform: scale(1.1);
}

/* Rz pod tekstem nagłówka */
.header-subtext {
    font-size: 17px;
    margin-top: 5px;
    color: #eee;
    text-shadow: 
        2px 1px 0 #161616,
        -1px -1px 0 #353535,
        1px -1px 0 #313131,
        -1px 1px 0 #232323,
        0px 0px 6px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Obraz nagłówka - Obraz Wilenski */
.header-img {
    width: 128px;
    height: 128px;
    border-radius: 20%;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.header-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}



/* Karty */
.card {
    width: 80%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    color: rgb(0, 0, 0);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
    .card-title {
        transition: border-bottom 1.5s ease;
    }
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    .card-title {
        border-bottom: 2px solid #0d5aff;
    }
}


.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dc3545; /* Czerwony pasek pod tytułem */
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.card-text {
    font-size: 17px;
}

/* Stylizacja linków kart */ 

.card {
    a {
        color: #fbff00; 
        text-decoration: underline;
        text-decoration: none;
    }
    a:hover {
        color: #00d9ff; 
    }
    
}

/* Karuzela obrazów */
.carousel-inner img {
    height: 400px;
    width: 500px;
    object-fit: contain;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Modale */
.modal {
    overflow-y: scroll;
}

.obraz .modal-dialog {
    margin: auto;
    max-width: 80vw;
    max-height: 60vh;
    text-align: center;
}

.obraz .modal-body {
    padding: 0;
}

.obraz .modal-content img {
    max-height: 80vh;
    height: 80%;
    width: auto;
}

.obraz .modal-content {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.305);
}

.obraz .modal-header {
    background-color: rgba(0, 0, 0, 0.305);
    border-bottom: 0px;
}


/* NAVBARY STRONY */ 
.navbar {
    background: linear-gradient(90deg, rgba(102, 0, 0, 0.8), rgba(46, 46, 46, 0.8));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    position: sticky;
    display: flex;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: white !important;
    text-transform: uppercase;
}

.navbar-brand img {
    margin-right: 10px;
    border-radius: 50%;
}


.nav-link {
    color: #eee !important;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: yellow !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: yellow;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: yellow !important;
    font-weight: bold;
}

.tytulNavbar {
    margin-top: 15px;
}



/* Zmiana tła i stylu dropdowna */
.navbar .dropdown-menu {
    background: rgba(48, 0, 0, 0.695);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
    width: auto; 
    min-width: 200px;
}

/* Stylowanie elementów w dropdownie */
.navbar .dropdown-item {
    color: #eee !important; 
    font-size: max(1vw, 14px); 
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative; 
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Styl dla wszystkich linków navbar */
.nav-link {
    color: #eee !important;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Podkreślenie pod nav-link */
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: yellow;
    bottom: 0; 
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after, .nav-link:focus::after {
    transform: scaleX(1);
}



/* Styl aktywnego linku */
.nav-link.active {
    color: yellow !important;
    font-weight: bold;
}

.navbar .dropdown-item:hover {
    background-color: rgba(30, 0, 0, 0.695) !important;
}

/* Podkreślenie w dropdown-item (wysuwanej liście w navbar */
.navbar .dropdown-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgb(93, 0, 0);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.navbar .dropdown-item:hover::after {
    transform: scaleX(1);
}

/* Stylizacja przycisku, który otwiera dropdown */
.navbar .navbar-toggler {
    border: none;
    background: rgba(126, 0, 0, 0.695);
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}


/* Navbar - optymalna szerokość, aby było wszystko widoczne */
@media (max-width: 1200px) {
    .navbar-brand, .nav-link {
        font-size: 14px !important;
    }
}



/* Stopka strony */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#stopkaContent {
    margin-top: 40px;
    padding-top: 30px;
    background-color: rgba(102, 0, 0, 0.566);
    padding-bottom: 15px;
    a {
        text-decoration: none;
    }
    p {
        color: #eee;
        font-size: 18px;
        text-transform: uppercase;
        font-weight: 500;
        width: 100%;
        opacity: 1;
        transform: translateY(0);
        transition: color 0.3s ease;
    }

}


#stopkaContent:hover {
    p {
        animation: shakeText 0.5s ease infinite;
        color: #FFD700;
    }
}


@keyframes shakeText {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Stylizacja dla przycisków */
button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
}


/* Dzienniczek Św. siostry Faustyny */
.quote {
    background-color: rgba(255, 255, 255, 0.3);
    border-left: 5px solid #FFD700; 
    padding: 10px 20px;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Georgia', serif; 
    font-style: italic; 
    color: #000000; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}


.quote:hover {
    transform: translateX(10px); 
    background-color: rgba(255, 255, 255, 0.5); 
}

.quote p {
    font-size: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

u {
    text-decoration: underline;
    text-decoration-color: #FFD700;
    text-decoration-thickness: 2px;
}


/* Ogólny wygląd tytułu w navbar */
.tytulNavbar {

    font-weight: bold;
    display: inline-block;
    letter-spacing: 0.1px; 
    text-transform: uppercase;
    color: white; 
}

/* Animacja tytułu w navbar - ANIMACJA UTWORZONA PRZY POMOCY AI */ 
.tytulNavbar span {
    display: inline-block;
    animation: letterAnimation 25s infinite;
    animation-delay: calc(var(--i) * 0.1s); 
}

/* Animacja */
@keyframes letterAnimation {
    0% {
        color: white; 
    }
    50% {
        color: yellow;
    }
    100% {
        color: white;
    }
}

.tytulNavbar span:nth-child(1) { --i: 0; }
.tytulNavbar span:nth-child(2) { --i: 1; }
.tytulNavbar span:nth-child(3) { --i: 2; }
.tytulNavbar span:nth-child(4) { --i: 3; }
.tytulNavbar span:nth-child(5) { --i: 4; }
.tytulNavbar span:nth-child(6) { --i: 5; }
.tytulNavbar span:nth-child(7) { --i: 6; }
.tytulNavbar span:nth-child(8) { --i: 7; }
.tytulNavbar span:nth-child(9) { --i: 8; }
.tytulNavbar span:nth-child(10) { --i: 9; }
.tytulNavbar span:nth-child(11) { --i: 10; }
.tytulNavbar span:nth-child(12) { --i: 11; }
.tytulNavbar span:nth-child(13) { --i: 12; }
.tytulNavbar span:nth-child(14) { --i: 13; }
.tytulNavbar span:nth-child(15) { --i: 14; }
.tytulNavbar span:nth-child(16) { --i: 15; }
.tytulNavbar span:nth-child(17) { --i: 16; }
.tytulNavbar span:nth-child(18) { --i: 17; }
.tytulNavbar span:nth-child(19) { --i: 18; }
.tytulNavbar span:nth-child(20) { --i: 19; }
.tytulNavbar span:nth-child(21) { --i: 20; }
.tytulNavbar span:nth-child(22) { --i: 21; }
.tytulNavbar span:nth-child(23) { --i: 22; }
.tytulNavbar span:nth-child(24) { --i: 23; }


/* Animacja najechania na logo adobe w zakładce Doumenty i logo telefonu w zakładce Kontakt */
#logo-adobe {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

#logo-adobe:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Stylizacja daty publikacji na stronie głównej */
.opublikowano {
    color: #232323;
    font-size: 14px;
}

/* Animacja najechania na logo tła w zakładce Wsparcie */
#wsparcie-tlo {
    height: auto;
    transition: transform 0.3s ease;
}

#wsparcie-tlo:hover {
    transform: rotate(5deg) scale(0.9);
}
#stopkaPrawa {
    color: red !important;
    font-size: 14px !important;
}
