body, html {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    animation: slide-in-from-back 0.5s forwards;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #2a4c6a;
    color: white;
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: 100%;
}

header h1 {
    text-align: center;
    font-size: 2.5vw; 
}

header #logo-szkoły, header #bip {
    width: 100px;
    height: auto;
}

#schools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1em;
    flex-grow: 1;
    position: relative;
}

.segment {
    width: 100%;
    max-width: 45vw; 
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    animation: slide-in-from-back 2s forwards;
}

.segment img {
    border-radius: 5%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.segment:hover img {
    transform: scale(1.03);
    opacity: 0.83;
}

.row {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

@keyframes slide-in-from-back {
    0% {
        transform: translateZ(-1000px);
        opacity: 0;
    }
    100% {
        transform: translateZ(0);
        opacity: 1;
    }
}

#logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#logo {
    width: 350px; 
    height: auto;
}

@media (max-width: 1200px) {
    #logo {
        width: 300px; 
    }
}

@media (max-width: 768px) {
    #logo {
        width: 250px; 
    }
}

@media (max-width: 480px) {
    #logo {
        width: 200px; 
    }
}


@media (max-width: 1200px) {
    .segment {
        max-width: 48vw; /
    }

    header h1 {
        font-size: 3vw; 
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: center;
    }

    .segment {
        max-width: 80vw; 
    }

    header h1 {
        font-size: 5vw; 
    }
}

@media (max-width: 480px) {
    .segment {
        max-width: 90vw; 
    }

    header h1 {
        font-size: 6vw;
    }
}

footer {
    background-color: #2a4c6a;
    color: white;
    text-align: center;
    padding: 1em;
    width: 100%;
    margin-top: auto;
}




.segment {
    max-width: 40vw; /* Zmniejszenie szerokości obrazków */
    aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
    .segment {
        max-width: 75vw; /* Mniejsze obrazki na tabletach */
    }

    #logo-container {
        display: none; /* Ukrycie logo na mniejszych ekranach */
    }
}

@media (max-width: 480px) {
    .segment {
        max-width: 85vw; /* Jeszcze mniejsze obrazki na telefonach */
    }
}



