/* Reset i ogólne ustawienia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-image: url('images/tło3.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* marginesy wewnętrzne po bokach */
    background-color: rgba(255, 255, 255, 0.7);
}

/* Nagłówek i nawigacja */
header {
    background-color: #e8f5e9; /* pastelowa zieleń */
    padding: 40px 20px 20px;
    text-align: center;
    border-radius: 10px;
}

header h1 {
    color: #2e7d32;
    font-size: 2.5em;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
    background-color: #c8e6c9;
}

/* Sekcja główna */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Galeria roślin */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.gallery article {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
    animation: fadeInUp 0.8s ease both;
}

/* Sekwencyjne opóźnienia animacji */
.gallery article:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery article:nth-child(2) {
    animation-delay: 0.2s;
}
.gallery article:nth-child(3) {
    animation-delay: 0.3s;
}
.gallery article:nth-child(4) {
    animation-delay: 0.4s;
}
.gallery article:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery article:hover {
    transform: scale(1.03);
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
}

.gallery h3 {
    color: #4caf50;
    margin-bottom: 10px;
}

/* Stopka */
footer {
    background-color: #e8f5e9;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #2e7d32;
    margin-top: 40px;
    border-top: 1px solid #c8e6c9;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery article {
        width: 90%;
    }

    main {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 2em;
    }

    iframe {
        width: 90%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tips li {
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.2s;
}

iframe {
    display: block;
    margin: 0 auto;
    width: 50%;
    max-width: 500px;
    height: 400px;
    border: 2px solid rgb(8, 46, 8); /* Obramowanie mapy */
    border-radius: 8px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Delikatny cień wokół mapy */
}

.filmyt {
    display: flex;
    justify-content: center; /* wyśrodkowanie w poziomie */
    margin: 20px 0;
    margin-bottom: 30px; /* Odstęp od innych elementów */
}
