
/* Sekcja główna */
main{
width: 100%;
height: 100%;
background-color: #fcfbf9;
float: left;
}
h2{
        font-size: 70px;
    }
.gallery {
    max-width: 90%;
    margin: 0 auto 30px;
    text-align: center;
    color: #333;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.display h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px #f0f0f0;
}

.screen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* odstęp między przyciskami a obrazkiem */
    position: relative;
}

.photo {
    position: relative;
    border: 5px solid #ccc; /* jednolity border */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo img {
    width: 70vh;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

/* Przyciski na zewnątrz obrazka */
.nav-btn {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background-color: #444;
    transform: scale(1.2);
}

/* Kropki pod zdjęciem */
.dots {
    margin-top: 15px;
    text-align: center;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: #666; /* kolor aktywnej kropki */
    transform: scale(1.2);
}
.return{
    border: none;
    background-color: #666;
    width: 20vh;
    height: 5vh;
    margin-top: 20px;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: bolder;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    
}
.return:hover {
    background-color: #444;
    transform: scale(1.2);
}
/* --- SEKCJA GŁÓWNA --- */
main {
    width: 100%;
    background-color: #fcfbf9;
    float: left;
}

/* --- GALERIA --- */
.gallery {
    max-width: 90%;
    margin: 0 auto 30px;
    text-align: center;
    color: #333;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.display h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px #f0f0f0;
}

/* --- EKRAN --- */
.screen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    flex-wrap: nowrap;
}

.photo {
    position: relative;
    border: 5px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo img {
    width: 70vh;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

/* --- PRZYCISKI --- */
.nav-btn {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background-color: #444;
    transform: scale(1.2);
}

/* --- KROPKI --- */
.dots {
    margin-top: 15px;
    text-align: center;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: #666;
    transform: scale(1.2);
}

/* --- PRZYCISK POWROTU --- */
.return {
    border: none;
    background-color: #666;
    width: 20vh;
    height: 5vh;
    margin-top: 20px;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: bolder;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.return:hover {
    background-color: #444;
    transform: scale(1.2);
}

/* ===================================================== */
/* ----------------- RESPONSYWNOŚĆ ---------------------- */
/* ===================================================== */

/* --- TELEFONY (do 600px) --- */
@media (max-width: 600px) {
    body {
        overflow-x: hidden; /* usuwa przesuwanie w bok */
    }

    .gallery {
        max-width: 100%;
        padding: 0 15px;
    }

    .display h3 {
        font-size: 1.2rem;
    }

    .screen {
        flex-direction: column;
        gap: 10px;
    }

    .photo img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .return {
        width: 60%;
        height: 45px;
        font-size: 14px;
    }
    h2{
        font-size: 60px;
    }
}

/* --- TABLETY (600–700px) --- */
@media (min-width: 601px) and (max-width: 700px) {
    .gallery {
        max-width: 90%;
        padding: 0 20px;
    }

    .photo img {
        width: 100%;
    }

    .display h3 {
        font-size: 1.3rem;
    }

    .nav-btn {
        width: 100px;
        height: 50px;
        padding: 5px 5px;
        font-size: 1.4rem;
        border-radius: 50%;
    }
    .return {
        width: 60%;
        height: 45px;
        font-size: 14px;
    }
    h2{
        font-size: 70px;
    }
}
/* Wieksze tablety*/

@media (min-width: 701px) and (max-width: 1200px) {
    .gallery {
        max-width: 90%;
        padding: 0 20px;
    }

    .photo img {
        width: 100%;
    }

    .display h3 {
        font-size: 1.3rem;
    }

    .nav-btn {
        width: 100px;
        height: 50px;
        padding: 5px 5px;
        font-size: 1.4rem;
        border-radius: 50%;
    }
    .return {
        width: 60%;
        height: 45px;
        font-size: 14px;
    }
    body{
        height: 1100px;
    }
    h2{
        font-size: 70px;
    }
}
