/* Base styles */
body {
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left section styling */
.left-section {
    width: 20%;
    background-color: #252525;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    box-sizing: border-box;
    transition: width 0.3s ease;
}

.left-section img {
    width: 80%;
    margin-bottom: 30px;
}

.title {
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 2em;
    margin: 0;
}

/* Navigation styling */
.navigation {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation li {
    margin: 15px 0;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-family: Helvetica, sans-serif;
    font-size: 1.6em;
}

.navigation a:hover {
    text-decoration: underline;
}

/* Contact info styling */
.contact-info {
    margin-top: auto;
    text-align: center;
    color: #fff;
    font-family: Helvetica, sans-serif;
    width: 100%;
    padding: 20px 0;
}

.contact-info a {
    color: #fff !important;
    text-decoration: none;
    font-family: Helvetica, sans-serif;
    font-size: 1em;
    overflow-wrap: normal;
    white-space: normal;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Right section styling */
.right-section {
    flex: 1;
    background-image: url('index-bg-rs.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Overlay styling */
.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    max-width: 100%;
}

.overlay h1,
.overlay p {
    margin: 0;
}

.overlay h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.5em;
}

/* Hamburger menu system */
.hamburger {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .container {
        flex-direction: column;
        width: 100vw;
        height: 100dvh;
        overflow: hidden;
        position: relative;
    }
    .left-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        z-index: 1001;
        background: #252525;
        transform: translateX(-100vw);
        transition: transform 0.3s;
        padding: 60px 20px 20px 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Dole dost místa pro kontakt a copyright */
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .right-section {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100vw;
        min-width: 0;
        padding: 18px 6px 30px 6px;
        box-sizing: border-box;
    }
    /* Výchozí stav - pravá sekce vidět, levá schovaná */
    .menu-toggle:not(:checked) ~ .hamburger ~ .container .left-section {
        transform: translateX(-100vw);
    }
    .menu-toggle:not(:checked) ~ .hamburger ~ .container .right-section {
        display: flex !important;
    }
    /* Po kliknutí na hamburger - levá sekce vidět, pravá schovaná */
    .menu-toggle:checked ~ .hamburger ~ .container .left-section {
        transform: translateX(0);
    }
    .menu-toggle:checked ~ .hamburger ~ .container .right-section {
        display: none !important;
    }
    .left-section img {
        width: 60%;
        max-width: 180px;
        margin-bottom: 20px;
    }
    .title {
        font-size: 2.1em;
        margin-bottom: 10px;
    }
    .navigation a {
        font-size: 1.4em;
        padding: 10px 0;
        display: block;
    }
    .navigation li {
        margin: 10px 0;
    }
    .contact-info {
        font-size: 1em;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        margin-bottom: 0 !important;
    }
}
