html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
*{
    box-sizing: border-box;
}
body{
    background-color: whitesmoke;
    margin: 0;
    align-items: center;
    flex-direction: column;
}
header{
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 60px;
    padding: 10px 20px;
    background-color: whitesmoke;
    z-index: 1000;
    height: 100px;
    
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;

}
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: black;
    font-size: 24px;
    cursor: pointer;  
    padding: 0 20px;
    position: absolute;
    left: 0;
    top: 0;
    height: 60px;
    z-index: 1001;
}
nav{
    position: relative;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

nav ul{
    text-decoration: none;
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 15px 30px;
    padding: 0 15px;
    margin: 0;
}
nav ul li a{
    text-decoration: none;
    font-size: 20px;
    color: #2e2e2e;
    font-weight: bold;
    padding: 5px 10px;
    white-space: nowrap;
    display: inline-block;
}
nav ul li a:hover{
    color: palevioletred;
    transform: translateY(-5px); /*proc nefunguje*/
}
section{
    width: 100%;
    min-height: 100vh;
    max-width: 1550px;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    padding: 80px 30px;
    flex-direction: column;
    margin: 0 auto;
}
#start{
    min-height: 100vh;
    background: repeating-linear-gradient(135deg, #7cb18f, #7cb18f 2%, whitesmoke 2%, whitesmoke 4%);
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 100px 20px;
    width: 100%;
}
#start div{
    background-color: #f1ada2;
    padding: 10px;
    width: 100%;
    max-width: 700px;
    border: 10px;
    border-radius: 20px;
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
#start div h1{
    color: #2e2e2e;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 500px;
    width: 90%;
    height: 60px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background-color: #eb8272;
    border-radius: 10px;
}
#start div p{
    font-size: 25px;
    color: #2e2e2e;
}
#omne{
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#omne h1{
     color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;
    width:80%;
    height: 10%;
    font-size: 40px;
    background-color: #7cb18f;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    padding-left: 50px;
    margin-top: 40px;
    margin-bottom: 0;
}

#text{
    background-color: #5e846c;
    height: 50%;
    width: 80%;
    border: 10px;
    border-radius: 0 0 20px 20px;
}
#table{
    width: 100%;
    height: 20%;
    background: repeating-linear-gradient(135deg, #7cb18f, #7cb18f 2%, whitesmoke 2%, whitesmoke 4%);
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-top: 80px;
}
#omne a{
    text-decoration: none;
    color: #2e2e2e;
}
#omne a:hover{
    color: #5e846c;
}

#omne div p{
    font-size: 25px;
    color: whitesmoke;
    margin: 20px;
    text-wrap: inherit;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}
#dovednosti{
    width: 100%;
    height: 100vh;
    background-color: #d8e7dd;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#dovednosti h2 {
    color: #2e2e2e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 5vw; /*velikost podle sirky*/
    text-align: center;
    margin-bottom: 5%;
}
#dovednosti div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3%;
    width: 90%;
}
#dovednosti div ul{
    list-style: none;
    padding-left: 0;
    flex: 1 1 40%;
    margin-bottom: 3%;
}
#dovednosti div ul li{
    list-style: none;
    margin-bottom: 3%;
    background-color: whitesmoke;
    border-radius: 20px;
    border-style: dotted;
    border-color: #7cb18f;
    padding: 5%;
    font-size: 1.1em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#galerie div{
    display: grid;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 3%;
    grid-template-columns:repeat(3, 20%);
    grid-template-rows: repeat(2, 55%);
    padding-top: 4%;
    padding-bottom: 4%;
    background-color: #5e846c;
 }
 #galerie div img{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
 }
 #galerie div img:hover{
    transform: translateY(-5px);
 }

 #formular{
    background: repeating-linear-gradient(135deg, #7cb18f, #7cb18f 2%, whitesmoke 2%, whitesmoke 4%);
    width: 100%;
    align-items: center;
    text-align: center;
    flex-direction: column;
    display: flex;
 }
 #formular h1{
    display: flex;
    align-items: center;
    
    justify-content: center;
    width: 70%;
    height: 50px;
    background-color: whitesmoke;
    border-radius: 20px;
    border-color: #eb8272;
    border-style: solid;
    color: #2e2e2e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
 }
 #form-container{
    background-color: whitesmoke;
    width:70%;
    height: 450px;
    border-radius: 20px;
    border-color: #eb8272;
    border-style: solid;
 }
 .form-group{
    text-align: left;
    padding-left: 30px;
    padding-top: 20px;
    color: #2e2e2e;   
    font-family: Arial, Helvetica, sans-serif;
 }
 .form-group label{
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    color: #2e2e2e;
 }

 .form-group input{
    width: 96%;
    height: 45px;
    padding-left: 10px;
    border-radius: 10px;
    border: 1px solid rgb(157, 157, 157);
 }
 .form-group textarea{
    width: 96%;
    height: 100px;
    padding-left: 10px;
    padding-top: 5px;
    border-radius: 10px;
    border: 1px solid rgb(157, 157, 157);
 }

 #formular div form button{
    width: 90%;
    height: 50px;
    margin-top: 20px;
    background-color: #f1ada2;
    border-radius: 10px;
    border-color: #eb8272;
 }
#formular div form button:hover{
    cursor: pointer;
    background-color: #eb8272;
    transform: translateY(-2px);
}


#kontakt{
    align-items: center;
    text-align: center;
    flex-direction: column;
    display: flex;
    background-color: rgb(226, 223, 223);
    color: rgb(245, 245, 245);
    padding: 20px;
}

#kontakt h2{
    color: #2e2e2e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    margin-bottom: 40px;
}


#kontakt-container
{
    background-color: whitesmoke;
    width: auto;
    height: auto;
    flex-direction: row;
    display: flex;
    padding: 30px;
    border-radius: 10px
    ;
}

.info-box{
    text-align: left;
    background-color: rgb(234, 234, 234);
    width: 450px;
    height: 320px;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 40px;
    margin-right: 60px;
    font-size: 20px;
    white-space: nowrap;
    color: #2e2e2e;
}

.map{
    width: 400px;
    height: 400px;
    background-color: rgb(234, 234, 234);
    border-radius: 10px;
    overflow: hidden;
}

footer {
    background-color: rgb(142, 142, 142);
    color: whitesmoke;
    padding: 30px 0;
    text-align: center;
}

.footer-links{
    margin: 10px;
}
footer div div a{
    text-decoration: none;
    color: whitesmoke;
    padding-left: 10px;
}
footer div div a:hover{
    color: #5e846c;
}

@media (max-width: 1024px) {

    header nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    #dovednosti > div {
        display: flex;
        gap: 2rem;
        justify-content: center;
    }

    #grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    #grid img {
        max-width: 100%;
        height: auto;
    }

    #kontakt-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #kontakt-container iframe {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 768px) {

    header {
        position: relative;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    #start h1 {
        font-size: 2rem;
        text-align: center;
    }

    #start p {
        text-align: center;
        font-size: 1rem;
    }

    #omne #text {
        padding: 0 1rem;
        text-align: center;
    }

    #dovednosti > div {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #dovednosti ul {
        padding: 0;
        text-align: center;
    }

    #grid {
        grid-template-columns: 1fr;
    }

    #form-container {
        padding: 0 1rem;
    }

    form {
        width: 100%;
    }

    #kontakt-container{
        flex-direction: column;
    }

    input,
    textarea,
    button {
        width: 100%;
    }

    footer div {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    #start h1 {
        font-size: 1.6rem;
    }

    section {
        padding: 2rem 0.5rem;
    }

    #kontakt-container iframe {
        height: 250px;
    }

    button {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media print {
    body {
        font-family: "Times New Roman", Georgia, serif;
        background: none !important;
        color: black !important;
    }

    header, .menu-toggle, nav {
        display: none !important;
    }

    a {
        text-decoration: underline !important;
        color: black !important; 
    }

    section, #start div, #omne #text, #dovednosti div ul li, #galerie div, #formular div, #kontakt-container, .info-box, .map, footer {
        background: none !important;
        color: black !important;
    }

    img {
        page-break-inside: avoid;
    }
    #omne div p{
        color: #2e2e2e;
    }
    #galerie div{
        grid-template-columns: 2, 55%;
        grid-template-rows: 3, 20%;
    }
}
