/*plynulí přechod módu*/
.theme-transition * {
    transition: 0.5s;
}

/*světlý režim*/
:root {
    --blc: black;
    --nav: #E3E3E3;
    --img-filter-ob:none;
}
/*tmavý režim*/
.dark-mode {
    --blc: white;
    --nav: #101010;
    --img-filter-ob:invert(1);
}
/*tlačítka na navbar*/
.openbtn{
    position: fixed;
    top: 8px;
    left: 8px;
    display: block;
    z-index: 100;
}
.closebtn{
    position: fixed;
    top: 8px;
    left: 8px;
    display: none;
    z-index: 100;
}
/*navbar*/
.sidenav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--nav);
    overflow: hidden;
    transform-origin: top left;
    opacity: 0;
    z-index: -10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
/*div s tlačítky na změnu téma*/
.namod{
    width: 100%;
    height: 43px;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 10px;
    min-height: 43px;
}
.namod button{
    border: none;
    background: none;
    height: 100%;
    cursor: pointer;
}
.namod button img{
    height: 100%;
    margin-right: 10px;
}
#light{
    filter: invert(1);
}
/*výsuvné menu funguje pouze na mobilu*/
@media (orientation: portrait), (max-width: 999px) {
    /*naimace pro otevření*/
    @keyframes curtainIn {
        0% {
            transform: translateX(-100vw) skewY(10deg);
            filter: blur(10px);
            opacity: 0;
        }
        50% {
            filter: blur(5px);
        }
        100% {
            transform: translateX(0) skewY(0deg);
            filter: blur(0);
            opacity: 1;
        }
    }
    /*animace pro zavření*/
    @keyframes curtainOut {
        0% {
            transform: translateX(0) skewY(0deg);
            filter: blur(0);
            opacity: 1;
        }
        50% {
            filter: blur(5px);
        }
        100% {
            transform: translateX(-100vw) skewY(10deg);
            filter: blur(10px);
            opacity: 0;
        }
    }
    .animate-open {
        animation: curtainIn 0.5s ease-out forwards;
        z-index: 50;
    }
    
    .animate-close {
        animation: curtainOut 0.5s ease-in forwards;
    }
}
/*velke logo v navbaru*/
.velkelogo{
    height: 35%;
    padding-bottom: 4.4vh;
    padding-top: 4.4vh;
    cursor: pointer;
    filter: var(--img-filter-ob);
}
/*odkazy na stranky*/
.navbarvrch a{
    text-decoration: none;
    color: var(--blc);
    padding: 1.1vh;    
    font-size: 2.2rem;
}
.navbarvrch a:hover {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
/*talčítka navbaru*/
.nav-btn{
    text-decoration: none;
    background: none;
    border: none;
    width: 43px;
    cursor: pointer;
}
.openbtn img{
    width: 100%;
    filter: var(--img-filter-ob);
}
.closebtn img{
    padding: 5px;
    width: calc(100% - 10px);
    filter: var(--img-filter-ob);
}
/*navbar vrchní část*/
.navbarvrch{
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*navbar spodní část*/
.navbarspodek{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}
/*odkaz socílních sítí*/
.soc{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 23px;
    width: 30%;
    text-decoration: none;
}
.soc img{
    height: 100%;
    filter: var(--img-filter-ob);
}
.soc p{
    font-size: 1.5rem;
    color: var(--blc);
}
.soc p:hover {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
/*přepnutí orientace navbaru pro počítač*/
@media (orientation: landscape) and (min-width: 1000px) {
    .velkelogo{
        width: 240px;
        height: 240px;
    }
    .sidenav{
        position: fixed;
        width: 20vw;
        z-index: 50;
        opacity: 1;
    }
    .nav-btn{
        display: none;
    }
}
/*změna velikosti loga*/
@media only screen and (min-width: 1000px) and (max-width: 1200px) and (orientation: landscape) {
    .velkelogo{
        width: 98%;
    }
}

/*patička*/
footer {
    box-sizing: border-box;
    text-align: center;
    height: 100px;
    background: var(--nav);
    padding: 20px 0 0 0;
    clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
}
.f-text{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.f-soc{
    display: flex;
    flex-direction: row;
    padding-left: 2%;
    width: 100%;
    justify-content: center;
}
.f-soc a{
    margin: 0px 20px;
    text-decoration: none;
    color: var(--blc);
}
/*pro skrytí*/
.hidden{
    display: none;
}
@media (orientation: portrait), (max-width: 999px) {
    footer{
        height: 110px;
    }
    .f-text p{
        margin: 7px 0px;
    }
}
#active{
    font-weight: 500;
}
#dark, #light {
  display: none;
}
