:root[page-theme="light"]{
    --page-bg: white;
    --a-color: rgb(42, 42, 43);
    --hoover-bg: #62B055;
    --nav-bg: rgb(248, 239, 231);
    --header-bg: rgb(231, 223, 216);
    --text-cl: rgb(0,0,0);
    --fade-out-cl: rgb(255, 255, 255, 0);
    --arrow-color: rgb(0,0,0);
    --ikons-color: rgb(0,0,0);
    --wave-bg: rgb(255,255,255,1);
    --small-hamb: rgba(255,255,255,0.95);
    --hamb: rgb(255, 255, 255);
}

:root[page-theme="dark"]{
    --page-bg: rgb(58, 58, 58);
    --a-color: rgb(197, 190, 190);
    --hoover-bg: #62B055;
    --nav-bg: rgb(41, 43, 42) ;
    --header-bg: rgb(42,42,43);
    --text-cl: rgb(255,255,255);
    --fade-out-cl: rgba(42, 42, 43, 0);
    --arrow-color: rgb(255,255,255);
    --ikons-color: rgb(255,255,255);
    --wave-bg: rgb(42,42,43);
    --small-hamb: rgba(34, 34, 34, 0.95);
    --hamb: rgb(42,42,43);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    outline: none;
}
 
header{
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    height: 70px;
    position: absolute; top: 0; right: 0;
    
}
/* Page content */
.content {
    padding-top: 16px;
    margin-left: 87px;
    
}

/*nav*/
.logo{
    text-align: center;
    display: flex;
    transition: all 0.5s ease;
    margin: 10px 0 0 10px;

}
.logo img{
    width: 50px;
    height: 50px;
}
.logo span{
    font-weight: bold;
    padding-left: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

nav a{
    position: relative;
    color: var(--a-color);
    font-size: 14px;
    display: table;
    width: 300px;
    padding: 10px;
}
.fas{
    position: relative;
    width: 70px;
    height: 40px;
    top: 14px;
    font-size: 20px;
    text-align:center;
}
.nav-item{
    position: relative;
    top: 12px;
    margin-left: 10px;
}
a:not(.logo):hover{
    background: var(--hoover-bg);
    color: var(--nav-bg);
    font-weight: bold;
}
nav:hover{
    width: 280px;
    transition: all 0.5s ease;
}
.napiste{
    position: absolute;
    bottom: 0;
}
nav{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: 90px;
    overflow: hidden;
    transition: width 0.2s linear;
    background: var(--nav-bg);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1) ;
    z-index: 1;
}
/* Hamburger Menu - Hidden by Default */
.hamburger-menu {
    position: absolute;
    top: 15px;
    left: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none; /* Hidden on large screens */
}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: max-height 0.3s ease-in-out;
}
.hamburger-menu i {
    font-size: 28px;
    color: var(--text-cl);
}

/*stránka*/
body{
    background-color: var(--page-bg);
    padding: 1rem;
    color: var(--text-cl);
    overflow-x: hidden;
    padding-left: 10vh;
}

h1{
    font-size: 15px;
    text-align: center;
    padding-top: 40px;
    color:rgb(0,0,0)
    
}
.footer-text{
    font-size: 15px;
    text-align: center;
    padding-top: 40px;
}
h3{
    font-size: 25px;
    padding-top: 10px;
    margin-left: 87px;
}
.odrazky{
    margin-left: 40px;
    margin-top: 20px;
}
.podnadpis{
    font-size: 25px;
    padding-top: 0;
    margin-left: 0;
    margin-top: 20px;
}

footer{
    height: 100px;
    width: 100%;
    background-color: rgb(248, 239, 231);
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 50px;
    
}
.mobile-logo{
    display: none;
}

/*jiné velikosti*/
@media screen and (max-width: 570px) {
    * {
        max-width: 100%;
    }
    #top-obr{
        margin-top: 10px;
    }
    body{
        display: flex;
        flex-direction: column;
        margin: 0;
        min-height: 100vh;
        overflow-x: hidden;
        width: 100%;
        background: var(--wave-bg);
        padding: 0;
    }
    h3{
        font-size: 20px;
        padding-top: 100px;
        margin-left: 30px;
        padding-bottom: 20px;
    }
    .podnadpis{
        font-size: 17px;
    }

    table, tr, td, th{
        border: 20px solid var(--wave-bg);
        border-collapse: collapse;
    }
    th{
        font-size: 13px;
    }
    td{
        font-size: 13px;
    }

    /*navigace-hamburger menu*/
    a{
        position: relative;
        color: var(--a-color);
        font-size: 14px;
        display: table;
        width: 300px;
        padding: 10px;
    }
    .hamburger-container {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 10px;
        padding: 10px;
    }
    .hamburger-menu {
        display: block; /* Show hamburger icon */
    }
    nav.open .mobile-logo {
        display: block;
        position: absolute;
        left: 200px;
        top: 20px;
    }
    nav {
        width: 23%;
        height: 10vh; /* Default small height */
        background: var(--hamb);
        text-align: center;
        transition: height 0.3s ease-in-out;
        overflow: hidden;
        position: absolute;
        top: 0;
    }
    nav.open {
        height: 65vh;
        background: var(--small-hamb);
    }
    #nav-list {
        display: none;
    }
    #nav-list.show {
        display: flex;
        flex-direction: column;
        text-align: left;
        background: var(--small-hamb);
        height: 65vh;
    }
    .logo{
        visibility: hidden;
    }
    .mobile-logo {
        display: none;
        width: 50px;
        height: auto;

    }

    /*ostatní*/
    .content{
        flex: 1;
        margin-left: 15px;
        padding: 16px;
        padding-top: 0;
    }

    .logo{
        visibility: hidden;
    }
    #theme-switcher{
        top: 15px;
    }
    .napiste{
        position: relative;
    }
    #scroll{
        display: none;
    }
    #directionality{
        display: none;
    }
    footer {
        position: static;
        text-align: center;
        width: 100%;
        margin-top: auto;
    }
}