﻿/* Ustawienia ogólne */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    background-color: #0073e6;
    color: white;
    padding: 20px;
    border-bottom: 4px solid #005bb5;
    
}

    header img {
        display: block;
        margin: 0 auto;
    }

    header h1 {
        font-size: 2.5rem;
        margin: 10px 0;
    }

    header p {
        font-size: 1.2rem;
        margin: 5px 0;
    }

.back-to-home {
    text-align: center;
    margin: 20px 0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .back-button:hover {
        background-color: #0056b3;
    }

.logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

    .logo-container img {
        max-width: 280px; /* Maksymalna szerokość dla dużych ekranów */
        height: auto;
    }

.top-right-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: 280px;
    height: auto;
}

/* Media queries dla mniejszych ekranów */
@media (max-width: 1024px) {
    .logo-container img,
    .top-right-logo {
        max-width: 100px; /* Zmniejszenie rozmiaru dla średnich ekranów */
    }
}

@media (max-width: 768px) {
    .logo-container img,
    .top-right-logo {
        max-width: 100px; /* Jeszcze mniejsze loga dla tabletów */
    }
}

@media (max-width: 480px) {
    .logo-container img,
    .top-right-logo {
        max-width: 100px; /* Najmniejsze loga dla telefonów */
        top: 5px; /* Zmniejszenie odstępu od góry */
        left: 5px; /* Dostosowanie marginesu */
        right: 5px;
    }
}





/* Główna sekcja */
main {
    padding: 20px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.magazine-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .magazine-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .magazine-item canvas {
        width: 100%;
        height: 150px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .magazine-item p {
        font-size: 1rem;
        margin: 10px 0;
        color: #555;
    }

    .magazine-item a {
        display: inline-block;
        text-decoration: none;
        background-color: #0073e6;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 0.9rem;
        transition: background-color 0.3s;
    }

        .magazine-item a:hover {
            background-color: #005bb5;
        }

.pdf-icon {
    margin-right: 8px;
    font-size: 1.2rem;
    color: #0073e6; /* Kolor ikony */
    vertical-align: middle; /* Wyrównanie z tekstem */
    transition: color 0.3s;
}

a:hover .pdf-icon {
    color: #005bb5; /* Ikona zmienia kolor przy najechaniu */
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ebook-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .ebook-item a {
        text-decoration: none;
        color: #007BFF;
        font-weight: bold;
    }


.podcasty {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.podcast-item {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

    .podcast-item p {
        margin-top: 10px;
        font-weight: bold;
        color: #333;
    }



/* Stopka */
footer {
    text-align: center;
    background-color: #f1f1f1;
    padding: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #777;
}

    footer p {
        margin: 5px 0;
    }

/* Responsywność */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .magazine-item p {
        font-size: 0.9rem;
    }

    .magazine-item a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
/* Ustawienia dla sekcji magazynów */
.magazine-grid {
    display: grid; /* Tworzy siatkę */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsywność */
    gap: 20px; /* Odstęp między elementami */
    padding: 20px; /* Wewnętrzne odstępy */
    justify-items: center; /* Wyrównanie elementów do środka */
}

/* Stylizacja każdego elementu magazynu */
.magazine-item {
    text-align: center; /* Wyrównanie tekstu do środka */
    background-color: #f9f9f9; /* Jasne tło */
    border: 1px solid #ddd; /* Obramowanie */
    border-radius: 8px; /* Zaokrąglone rogi */
    padding: 10px; /* Wewnętrzne odstępy */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Lekki cień */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efekty hover */
}

    .magazine-item:hover {
        transform: scale(1.05); /* Powiększenie przy najechaniu */
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Większy cień */
    }

    /* Stylizacja obrazów (miniaturki) */
    .magazine-item img {
        max-width: 100%; /* Szerokość obrazu dostosowana do kontenera */
        height: auto; /* Zachowanie proporcji obrazu */
        border-radius: 4px; /* Zaokrąglone rogi */
        margin-bottom: 10px; /* Odstęp między obrazem a tekstem */
    }

    /* Stylizacja tekstu */
    .magazine-item p {
        font-size: 14px; /* Rozmiar tekstu */
        color: #333; /* Kolor tekstu */
        margin: 10px 0; /* Odstępy wokół tekstu */
    }

    /* Stylizacja linków (przycisków) */
    .magazine-item a {
        display: inline-block; /* Link jako blok w stylu przycisku */
        padding: 8px 12px; /* Wewnętrzne odstępy */
        background-color: #0078d4; /* Kolor przycisku (niebieski) */
        color: #fff; /* Biały tekst */
        text-decoration: none; /* Usunięcie podkreślenia */
        border-radius: 4px; /* Zaokrąglenie przycisku */
        font-size: 14px; /* Rozmiar czcionki */
        transition: background-color 0.3s ease; /* Efekt hover */
    }

        .magazine-item a:hover {
            background-color: #005a9e; /* Ciemniejszy niebieski przy hover */
        }

#przydatne-linki {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

    #przydatne-linki h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
        color: #333;
    }

    #przydatne-linki ul {
        list-style-type: none;
        padding: 0;
    }

    #przydatne-linki li {
        margin-bottom: 15px;
    }

    #przydatne-linki a {
        text-decoration: none;
        color: #007bff;
        font-weight: bold;
    }

        #przydatne-linki a:hover {
            text-decoration: underline;
        }





.video-container iframe {
    width: 100%;
    max-width: 400px; /* Maksymalna szerokość filmu */
    height: auto; /* Wysokość automatyczna, proporcjonalna do szerokości */
    margin: 0 auto;
    display: block;
}


#intro-video {
    text-align: center;
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

lite-youtube {
    width: 100%;
    max-width: 560px;
}



.ebook-link {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
}

    .ebook-link a {
        color: #0073e6;
        text-decoration: none;
        font-weight: bold;
    }

        .ebook-link a:hover {
            text-decoration: underline;
        }