/* =======================
    USTAWIENIA GLOBALNE
========================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    padding: 0;
    font-family:'Courier New', Courier, monospace;
}

p{
    line-height: 2rem;
    font-size: x-large;
}

/* =======================
    NAGŁÓWEK
========================== */

header {
    background-color:#262262;
    /* background-color:#714922; */
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
}

header img{
    height: 4rem;
    padding: 0.5rem;
}

nav a {
    margin-right: 0.5rem;
    text-decoration: none;
    color: white;
    font-size: x-large;
    font-weight: bold;
    cursor: pointer;
}

nav a:hover {
    color: #00AEF3;
}

.active {
    border-bottom: solid;
}

/* =======================
    CZĘŚĆ GŁÓWNA
========================== */
main{
    position: relative;
    top: -4rem;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
}

div{
    text-align: justify;
    line-height: 170%;
}

div h2{
    text-align: center;
    color: #262262;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.banner, .success{
    text-align: center;
    background-image: url(../img/banner.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 5rem;
    padding-left: 5rem;
    padding-right: 5rem;
    height: 40rem;
}

.success{
    height: 93vh;
    margin-bottom: -4rem;
}

.banner h1, .success h1{
    font-size: 5rem;
    line-height: 100%;
    color: #435BA7;
    margin-top: 8rem;
}

.banner p, .success p{
    font-size: 3rem;
    color: white;
    padding-bottom: 4rem;
}

.banner a:hover{
    background-color: #00AEF3;
}

.about{
    background-color:#435aa728;
    padding-top: 4rem;
    padding-left: 10rem;
    padding-right: 10rem;
    min-height: 45rem;
}

.offer{
    padding-top: 4rem;
    padding-left: 10rem;
    padding-right: 10rem;
    min-height: 35rem;
}

.about img{
    width: 100%;
}

.table{
    display: flex;
}

table{
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
}

table, th, td{
    text-align: center;
    border: 1px solid black;
    border-collapse: collapse;
}

th{
    background-color: #435BA7;
    color: white;
}

.gal{
    padding-top: 4rem;
    padding-left: 10rem;
    padding-right: 10rem;
    min-height: 45rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
  }
  
  .gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
  }
  
  .gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  }

.contact{
    background-color:#435aa728;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
    padding-left: 10rem;
    padding-right: 10rem;
    padding-bottom: 1rem;
    min-height: 40rem;
    text-align: center;
    margin-bottom: -4rem;
}

.contact a{
    text-decoration: none;
    color: #262262;
    font-size: x-large;
}

.contact-form{
    width: 100%;
}

input{
    width: 100%;
    height: 3rem;
    font-size: x-large;
}

textarea{
    width: 100%;
    height: 8rem;
    font-size: xx-large;
}

.submit{
    text-align: center;
    margin-bottom: 4rem;
}

.submit button{
    width: 14rem;
    border: none;
    color: white;
    font-weight: bold;
    background-color: #262262;
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: x-large;
}

.captcha{
    text-align: left;
}

.submit button:hover{
    background-color: #00AEF3;
    cursor: pointer;
}

/* =======================
    STOPKA
========================== */

footer {
    background-color:#262262;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
}

footer a{
    cursor: pointer;
    text-decoration: none;
    color: white;
}

/* =======================
    RWD
========================== */

@media(max-width: 1400px) {

    .about, .offer{
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .gal{
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .contact{
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media(max-width: 1000px) {

    p{
        line-height: 1.5rem;
        font-size: large;
    }

    nav a {
        font-size: large;
    }
    
    header {
        padding: 1rem;
    }

    header img {
        display: none;
    }

    .banner, .success{
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .banner h1, .success h1{
        font-size: 2.2rem;
        margin-top: 5rem;
    }

    .banner p, .success p{
        font-size: 2rem;
        line-height: 3rem;
    }

    div h2{
        font-size: 2rem;
    }

    .about, .offer{
        padding-left: 1rem;
        padding-right: 1rem;
    }

    table{
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .gal{
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact{
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact a{
        font-size: large;
    }

    input{
        height: 2rem;
        font-size: large;
    }
    
    textarea{
        height: 6rem;
        font-size: large;
    }

    .submit button{
        width: 8rem;
        font-size: large;
    }

    footer h2{
        display: none;
    }

    footer h3{
        font-size: medium;
        margin-left: 1rem;
    }

    footer h4{
        font-size: small;
    }
}

