﻿@font-face {
    font-family: OpenSan;
    src: url("../fonts/OpenSans-Regular.ttf");
    font-weight: normal;
}
@font-face {
    font-family: OpenSan;
    src: url("../fonts/OpenSans-Bold.ttf");
    font-weight: bold;
}

@font-face {
    font-family: OpenSan;
    src: url("../fonts/OpenSans-Italic.ttf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: OpenSan;
    src: url("../fonts/OpenSans-BoldItalic.ttf");
    font-weight: bold;
    font-style: italic;
}

/* Základní nastavení */
html {
    scroll-behavior: smooth;
}

body {
    color: #01798E;
    font-family: OpenSan;
    margin: 0;
    padding: 0;
}

/* Hlavièka */
header {
    border-bottom: 1px solid #01798E;
    margin: 0;
    padding: 0;
}

/* Wrapper hlavièky */
.header-page,
.sub-nav,
article {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Logo */
.logo {
    height: 150px;
    width: 150px;
    background-image: url("../images/Lotus-Logo-150-150.png");
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Levá èást hlavièky */
.header-left {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    text-align: center;
    margin-left: 20px;
}

/* Nadpisy */
.header-name h1, .header-name h2 {
    font-size: 2.5em;
    margin: 0;
    color: #d1d190;
}

.header-name h2 {
    font-size: 2.0em;
    margin: 0;
}

/* Navigace */
.main-menu {
    margin-top: 10px;
    text-align: right;
}

    /* Seznam menu */
    .main-menu ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        height:23px;
    }

        /* Položky menu */
        .main-menu ul li {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 24px;
            padding: 0 15px;
            margin: 0;
            background-color: white;
            border: 1px solid #01798E;
            border-bottom: none;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
            box-sizing: border-box;
        }

            /* Odkazy v menu */

            .main-menu ul li a,
            .sub-nav-main ul li a {
                text-decoration: none;
                color: #01798E;
                font-size: 1.1em;
                display: block;
                width: 100%;
                text-align: center;
            }

        .main-menu ul li,
        .sub-nav-main ul li {
            background-color: #FFFFFF;
        }


            .sub-nav-main ul li a {
                font-size: 0.9em;
                color: #01798E;
            }

            /* Hover efekt */
            .main-menu ul li:hover,
            .main-menu ul li.main-menu-active,
            ul li.sub-menu-active,
            ul li:hover {
                background-color: #e0f7fa;
                box-shadow: #FFFFFF 0px 0px 8px;
            }

.sub-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffead1;
    width: 100%;
    border-bottom: 1px solid #01798E;
    height: 40px;
}

.sub-nav {
    padding-top: 9px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
}

.social-nav {
    width: 100px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

    .social-nav a img {
        width: 20px;
        margin: 0;
        padding: 0;
    }

.sub-nav-container {
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sub-nav-main {
    float: right;
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sub-nav ul {
    gap: 10px;
    margin: 0;
    padding: 0;
}

.sub-nav-main ul li {
    display: inline-flex;
    border: 1px solid #01798E;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 3px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 15px 0px 0px 5px;
}

    .sub-nav-main ul li a {
        text-decoration: none;
        display: block;
    }

article {
    display: block;
}


.footer-container {
    background-color: #ffead1;
    border-top: 1px solid #01798E;
    padding: 10px 10px;
    /*height: 10px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    color: #01798E;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

    .footer-container footer {
        max-width: 960px;
        width: 100%;
        text-align: center;
    }

p {
    text-align: justify;
}

.web-color {
    color: #01798E;
    background-color: #e0f7fa;
}

a.web-color:hover {
    color: #01798E;
    background-color: #00f7ff;
}

.image-profil img, .image-profil-right img {
    width: 45%;
    float: left;
    padding: 0px 5px 5px 0px;
    margin: 0px 15px 15px 0px; /* mezera kolem obrázku */
    border-radius: 25px 25px 25px 25px;
}

.image-profil-right img {
    float: right;
    padding-left: 15px;
}

ul li {
    margin-left: 5px;
}

.hamburger, .hamburger-float {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.gallery img {
    transition: transform .2s ease;
}

    .gallery img:hover {
        transform: scale(1.03);
    }

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* čtverec – můžeš změnit */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* vyplní box a ořízne */
        object-position: center; /* vycentruje */
    }
.to-top {
    position: fixed;
    bottom: 50px;
    right: 20px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

    .to-top.visible {
        opacity: 1;
        pointer-events: auto;
    }
@media (max-width: 576px) {
    h1, h2, h3 {
        line-height: 1.3;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 460px) {
    .header-name h1, .header-name h2 {
        font-size: 1.75em;
    }

    .header-page {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sub-nav,
    .sub-nav-container,
    .sub-nav-main ul {
        justify-content: center;
        text-align: center;
    }

    .reset {
        all: unset;
    }
    .hamburger-container {
        display:flex;
        flex-direction:row;
    }

    .sub-nav-main {
        display: none;
        flex-direction: column;
        background: #eee;
        padding: 1rem;
    }

        .sub-nav-main ul {
            display: flex;
            flex-direction: column;
        }

            .sub-nav-main ul li {
                border: 1px solid #01798E;
                border-bottom-left-radius: 5px;
                border-bottom-right-radius: 5px;
            }

        .sub-nav-main.open {
            display: flex;
            flex-direction: column;
        }

    .hamburger, .hamburger-float {
        display: flex;
        height: 20px;
        width: 60px;
        border: 1px solid black;
        justify-content: center;
        text-align: center;
        font-size: 0.8em;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    .hamburger-float {
        margin-left: 10px;
        width:70px;
    }
        .hamburger-float a {
            font-size: 1em;
            text-align:center;
            padding:0;
            margin:0;
        }

        .hamburger img {
            float:left;
        }
}

.button-menu {
    padding-bottom: 20px;
}

@media (max-width:550px) {
    .btn {
        margin-bottom: 5px;
    }

    .button-menu {
        display: flex;
        flex-direction: column; /* pod sebe */
        justify-content: center; /* na støed vertikálnì */
        align-items: center; /* na støed horizontálnì */
    }

    .image-profil img, .image-profil-right img {
        width: 150px;
    }
}
