@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');
/*l-mode*/
:root {
    --bg: white;
    --blc: black;
    --whi: white;
    --hvice: #2e2e2e;
    --natlacitkobtn: #747272;
    --druhdiv: grey;
    --img-filter-ob: none;
}
/*d-mode*/
.dark-mode {
    --bg: #1e1e1e;
    --blc: white;
    --whi: black;
    --hvice:#d1d1d1;
    --natlacitkobtn: #8b8d8d;
    --druhdiv: #7f7f7f;
    --img-filter-ob: invert(1);

}
*{
    font-family: Inconsolata;
    color: var(--blc);
}
html, body {
    overflow-x: hidden;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: 0px;
    padding: 0px;
    max-width: 100vw;
    background-color: var(--bg);
}
.body2{
    width: 100vw;
}
/*hlavní nadpis*/
h1{
    font-size: 3rem;
    width: 100%;
    text-align: center;
    margin-top: 60px;
}
/*projekt*/
.posp{
    margin: 0px 10px;
    margin-bottom: 20px;
    width: calc(100% - 20px);
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-margin-top: 50px;
}
/*text u projektů*/
.natext{
    padding: 8px;
}
.natext h3{
    width: 100%;
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin: 5px;
    margin-top: 20px;
    font-weight: 500;
}
.natext ul li{
    color: white;
    font-size: 1rem;
    padding: 5px;
    font-weight: 300;
    text-align: justify;
}
.natext ul{
    padding-left: 20px;
}
/*obrázek u projektů*/
.posp img{
    object-fit: contain;
    width: calc(100% - 30px);
    margin: 15px;
    filter: saturate(0);
}
.posp img:hover{
    filter: saturate(1);
    transition: all 0.5s ease-in-out;
}
/*na tlačítko pro  popup*/
.navice{
    padding-bottom: 20px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content:center;
}
/*tlacitko pro popup*/
.vice{
    width: 250px;
    height: 100%;
    border: 1px solid var(--whi);
    background-color: var(--blc);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--whi);
    font-size: 1.3rem;
    cursor: pointer;
}
.vice:hover{
    background-color: var(--hvice);
    transition: all 0.2s ease-in-out;
}
/*filtry/seradit*/
.natlacitko{
    width: calc(100% - 10px);
    margin-left: 10px;
    margin-bottom: 20px;;
    display: flex;
}
.natlacitko button{
    background-color: var(--natlacitkobtn);
    border: none;
    color: white;
    padding: 5px 10px;
    width: 120px;
    cursor: pointer;
    font-size: 1.1rem;
}
.seraddiv{
    display: none;
}
.filtrdiv{
    display: none;
}
#closeseradButton{
    display: none;
}
#closefiltrButton{
    display: none;
}
.natlacitko div{
    display: flex;
    flex-direction: column;
}
.nafiltrovat{
    margin-left: 15px;
}
/*popup + pozadi*/
.napodrobnosti{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
}
/*stmaveni pozadi*/
.bilepozadi{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 110;
    background-color: var(--whi);
    opacity: 1;
}
/*popup*/
.podrobnosti{
    z-index: 150;
    background-color: var(--whi);
    position: fixed;
    margin: 1.25vh 2.5vw;
    width: 95vw;
    height: 97.5vh;
    overflow-y: auto;
}
.krizek{
    position: fixed;
    width: 30px;
    top: 15px;
    right: 15px;
    z-index: 200;
    cursor: pointer;
    filter: var(--img-filter-ob);
}
.podrobnosti h2{
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 15px;
}
/*druh projektu*/
.druh{
    width: 100%;
    display: flex;
    justify-content: center;
}
.druh div{
    background-color: var(--druhdiv);
    padding: 5px;
    color: white;
    margin: 10px;
}
/*odkaz*/
.moznosti{
    margin-top: 5px;
    margin-right: 20px;
    width: calc(100% - 20px);
    display: flex;
    justify-content: start;
}
.moznosti a{
    margin: 0px 10px;
}
.moznosti a img{
    height: 30px;
}
.podrobnosti ul{
    padding-left: 30px ;
    padding-right: 20px;
}
.podrobnosti ul li{
    margin-top: 7px;
    font-size: 1.1rem;
    text-align: justify;
}
.naobrazky{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.navisku{
    display: flex;
    width: 100%;
    margin: 5px 0px;
}
.navisku img{
    width: 50%;
}
.naobrazky .doprostreddavac > img{
    width: 100%;
}
#naprojekty{
    width: 100%;
}
/*skrití*/
.hidden{
    display: none;
}
/*patička*/
footer{
    margin-top: 50px;
}
/*pro pc*/
@media (orientation: landscape) and (min-width: 1000px) {
    /*odkaz v popupu*/
    .moznosti{
        margin-top: 20px;
    }
    /*nazev projektu v popupu*/
    .podrobnosti h2{
        margin-top: 0px;
    }
    .body2{
        width: 80vw;
        margin-left: 20vw;
    }
    .body2 h1{
        font-size: 4rem;
    }
    /*filtr/seradit*/
    .natlacitko{
        width: calc(100% - 50px);
        margin-left: 50px;
        margin-top: 50px;
        margin-bottom: -30px;
    }
    /*projekt*/
    .posp{
        display: flex;
        margin: 0px 50px;
        width: calc(100% - 140px);
        margin-top: 100px;
        height: auto;
        padding: 20px;
        padding-bottom: 50px;
        scroll-margin-top: 20vh;
    }
    .natext{
        width: 55%;
    }
    .netext{
        width: 45%;
    }
    .navice{
        margin-top: 10px;
        justify-content: end;
    }
    .vice{
        margin-right: 10px;
    }
    .natext ul li{
        font-size: 1.5rem;
    }
    .natext h3{
        font-size: 3rem;
    }
    .posp img{
        margin-top: 60px;
    }
    /*popup + pozadi*/
    .napodrobnosti{
        width: 80vw;
        margin-left: 20vw;
    }
    /*popup*/
    .podrobnosti{
        margin: 10vh 5vw;
        width: 70vw;
        height: 80vh;
        display: flex;
        flex-direction: row-reverse;
        border: 2px solid var(--blc);
        border-radius: 30px;
    }
    .naobrazky{
        width: 35%;
        height: 100%;
        margin-bottom: 0px;
    }
    .neobrazky{
        width: 65%;
        height: 100%;
    }
    .bilepozadi{
        opacity: 0.7;
        background-color: black;
    }
    .krizek{
        margin-top: 10vh;
        margin-right: 5vw;
    }
    .doprostreddavac{
        margin: 0px 10px;
        width: calc(100% - 20PX);
    }
}