.topbar {
    position: fixed;
    z-index: 1000;
    width: 100%;
    display: flex;          /* układ w jednym wierszu */
    justify-content: space-between;  /* rozmieszcza elementy na całej szerokości */
    align-items: center;    /* wyrównanie w pionie */
    background-color: white;
    color: white;
    top: 0;
}

body, html {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    down: 0;
}

.menu {
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
}

.menu1{
    color: black;
    text-decoration: none;
}
.menu1:hover {
    color: #ef7c27;
}

.menu2{
    color: black;
    margin-right: 6px;
    margin-left: 6px;
    text-decoration: none;
}
.menu2:hover {
    color: #ef7c27;
}

.menu3{
    color: black;
    text-decoration: none;
    margin-right: 6px;
}
.menu3:hover {
    color: #ef7c27;
}

.menu4{
    color: black;
    text-decoration: none;
}
.menu4:hover {
    color: #ef7c27;
}

.menuButton{
    flex: 0 0 auto;
}

.logo {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    margin-left: 10px;
}

.sellang{
    color: #000000;
}

.fake-select {
    display: inline-block;
    position: relative;
    border: 1px solid #000000;
    padding: 8px;
    width: 150px;
    cursor: pointer;
    right: 30px;
}

.fake-select ul {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #555;
    background: white;
    right: 30px;
}

.fake-select:hover ul {
    display: block;
}

.fake-select ul li a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: black;
    right: 30px;
}

.fake-select ul li a:hover {
    background: #eee;
}

.element1{
    width: 100%;
    height: 450px;
    background-image: url("Images/header.jpg");
    background-position: center 50px;
    background-size: cover;
}

.zapis{
    margin-left: 50px;
    margin-top: 300px;
    height: 50px;
    width: 200px;
    background-color: #ef7c27;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 17px;
}

.zapis:hover {
    cursor: pointer;
    font-size: 18px;
    transition: transform 1s ease;
}

.zapis:active {
    transform: scale(0.95); /* efekt kliknięcia */
}

.h1_1{
    text-align: center;
    padding: 10px;
}

.h3_1{
    text-align: center;
    padding: 10px;
}

.p1{
    text-align: center;
    padding: 10px;
}

.h1_2{
    text-align: center;
    padding: 15px;
}

.h1_3{
    text-align: center;
    padding: 15px;
}

.h1_4{
    text-align: center;
    padding: 15px;
}

.opis_wstep {
    padding-top: 90px;
}

.doswiadczenie {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap; /* pozwala kartom się łamać */
    box-sizing: border-box;
}

.card {
    align-content: center;
    background: white;
    border-radius: 15px;
    padding: 10px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,1);
}


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

    .card {
        width: 90%;
        max-width: 350px;
    }
}


.kursy {
    display: flex;
    justify-content: center;
    gap: 40px;              /* odstęp między prostokątami */
}

.dziewczynka_png{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.matematyka_png{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.chuopak_png{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.kurs {
    background: white;
    border-radius: 18px;       /* zaokrąglone rogi */
    padding-top: 0px;
    padding-bottom: 30px;             /* odstęp wewnątrz */
    width: 300px;              /* szerokość prostokąta */
    box-shadow: 0 0 10px rgba(0,0,0,1); /* bardzo delikatny cień */
}

.pol{
    padding-left: 10px;
}

.polt{
    padding-left: 10px;
}

.ang{
    padding-left: 10px;
}

.angt{
    padding-left: 10px;
}

.mat{
    padding-left: 10px;
}

.matt{
    padding-left: 10px;
}

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

    .kurs {
        width: 70%;
    }
}

.sprcene{
    display: block;
    margin: 0 auto;
    margin-top: 30px;
    height: 70px;
    width: 250px;
    background-color: #ef7c27;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
}

.sprcene:hover {
    cursor: pointer;
    font-size: 20px;
    transition: transform 1s ease;
}

.sprcene:active {
    transform: scale(0.95); /* efekt kliknięcia */
}

.li1{
    margin-bottom: 5px;
}

.li2{
    margin-bottom: 5px;
}

.li3{
    margin-bottom: 5px;
}

.li4{
    margin-bottom: 5px;
}

.lokalizacje {
    display: flex;
    justify-content: center;
    gap: 40px;              /* odstęp między prostokątami */
}

.lokalizacja {
    background: white;
    border-radius: 18px;       /* zaokrąglone rogi */
    padding-top: 0px;
    padding-bottom: 30px;             /* odstęp wewnątrz */
    width: 300px;              /* szerokość prostokąta */
    box-shadow: 0 0 10px rgba(0,0,0,1); /* bardzo delikatny cień */
}


.lok1{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.lok2{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.lok3{
    border-radius: 15px;       /* zaokrąglone rogi */
    padding-bottom: 5px;             /* odstęp wewnątrz */
    width: 100%;
    height: 270px;
}

.adr1{
    padding-left: 10px;
}

.adr2{
    padding-left: 10px;
}

.adr3{
    padding-left: 10px;
}

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

    .lokalizacja {
        width: 70%;
    }
}

.formaty {
    display: flex;
    justify-content: center;
    gap: 40px;              /* odstęp między prostokątami */
}

.format {
    background: white;
    border: 3px solid #ff6600; /* pomarańczowa ramka */
    border-radius: 15px;       /* zaokrąglone rogi */
    padding: 30px;             /* odstęp wewnątrz */
    width: 300px;              /* szerokość prostokąta */
    box-shadow: 0 0 10px rgba(0,0,0,1); /* bardzo delikatny cień */
}

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

    .format {
        width: 50%;
    }
}

.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* bardzo delikatny cień */
}

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

    .slider {
        width: 70%;
    }
}

.opinie-wrapper {
    overflow: hidden;
}

.opinie {
    display: flex;
    transition: transform 0.5s ease;
}

.opinia {
    min-width: 100%;
    max-height: 290px;
    display: flex;
    justify-content: space-around;
}

.opinia img {
    width: 45%;
    border-radius: 5px;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
    z-index: 10;
}

.btn.left { left: 0; }
.btn.right { right: 0; }


/* Na hover */
.btn:hover {
    color: black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.modal-content {
    padding: 20px;
    width: 300px;
    margin: 4% auto;
    position: relative;
    border-radius: 12px;
    background-color: #ffffff; /* Białe tło */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}

.h1_zapis{
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"],
.modal select {
    width: 100%; /* Rozciąga na całą szerokość kontenera */
    padding: 7px 10px;
    margin-bottom: 10px; /* Odstęp między polami */

    /* Wygląd obramowania */
    border: 1px solid #ccc;
    border-radius: 8px;

    /* Czcionka i rozmiar */
    font-size: 12px;
    line-height: 1.2;

    /* Płynne przejście przy focusie */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box; /* Ważne, by padding nie zwiększał szerokości */
}

.modal input:focus,
.modal select:focus {
    border-color: #FF5733; /* Przykład koloru firmowego - czerwony */
    box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.2); /* Delikatna poświata */
    outline: none; /* Usuwa domyślną ramkę przeglądarki */
}

.modal button[type="submit"],
.modal input[type="submit"] {
    width: 100%;
    padding: 5px;

    /* Kolory i czcionka */
    background-color: #D22B2B; /* Silny kolor, np. ciemna czerwień */
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;

    /* Kształt */
    border: none;
    border-radius: 10px;

    /* Efekt wizualny po najechaniu myszą */
    transition: background-color 0.3s ease;
}

/* Efekt hover (po najechaniu myszą) */
.modal button[type="submit"]:hover,
.modal input[type="submit"]:hover {
    background-color: #FF5733; /* Jaśniejsza czerwień */
}

.close {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 24px;
}

.mod {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.mod-content {
    background: #fff;
    padding: 20px;
    width: 300px;
    margin: 4% auto;
    border-radius: 8px;
    position: relative;
}

.footer {
    display: flex;          /* układ w jednym wierszu */
    justify-content: space-between; /* odstępy między elementami */
    background-color: #eee;
    align-items: center;
}

.footer-item {
    margin: 0 10px;
}

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

    .footer-item {
        margin-top: 15px;
        margin-bottom: 0px;
        width: 65%;
    }
}

.polpryw{
    background-color: #ef7c27;
    border-radius: 10px;
    border: none;
    margin-bottom: 10px;
    width: 200px;
    height: 30px;
}

.polpryw:hover{
    cursor: pointer;
}

.modpolpryw {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    overflow: auto;
}

.mod-contentpolpryw {
    padding: 20px;
    width: 350px;
    margin: 4% auto;
    position: relative;
    border-radius: 12px;
    background-color: #ffffff; /* Białe tło */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}

.modpolpryw-body{
    overflow-y: auto;
    flex: 1;
}

.sosn{
    text-decoration: none;
    color: black;
}

.kato{
    text-decoration: none;
    color: black;
}