@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* approximate header heights used to offset anchor scrolling */
    --header-height-desktop: 140px;
    --header-height-mobile: 110px;
}

html {
    scroll-behavior: smooth;
    /* ensure anchor links (hash navigation) account for the fixed header */
    scroll-padding-top: var(--header-height-desktop);
}

body,h1,h2,p,ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Roboto Condensed', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-top: 0;
    margin: 0;
}

/* Hlavička */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #004e8a;
    color: white;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: auto;
}

header h1 {
    margin-bottom: 10px;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
}

.nav-menu a:hover {
    background-color: #0078d4;
}

/* Sekcie */
section {
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    /* ensure sections have enough top margin so anchors don't get hidden under the fixed header */
    scroll-margin-top: var(--header-height-desktop);
    /* aby sekcie neboli zakryté headerom */
}

/* Nadpisy sekcií */
section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #004e8a;
}

/* Úvod */
.uvod_content {
    width: 100%;
    max-width: none;
    background: linear-gradient(135deg, #0078d4, #00b4d8);
    color: white;
    text-align: center;
    padding: 120px 15% 80px;
    box-sizing: border-box;
    margin-top: 60px; 
}

.uvod_content h2 {
    color: white;
    margin: 50px;
}

.uvod_content p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* O nás, E-shop, Legislatíva */
.content {
    width: 100%;
    max-width: none;
    background: white;
    padding: 60px 15%;
    border-radius: 0;
    box-shadow: none;
}

.content>p {
    text-align: justify;
} 

.content.alt {
    background-color: #eef6ff;
}

#kontakt, #kontakt p {
    text-align: center;
}

#about {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-content {
    flex: 1;
    text-align: justify;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.btn {
    background-color: rgb(0, 78, 138);
    border-radius: 5px;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover{
    background-color: darkblue;
}

.list {
    margin: 20px;
}

/* Päta */
footer {
    background-color: #004e8a;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    #about {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* adjust anchor offset for mobile header size */
    html {
        scroll-padding-top: var(--header-height-mobile);
    }
    header {
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.2rem;
        margin-right: 50px;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #004e8a;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        margin: 10px 20px;
        font-size: 16px;
        text-align: center;
    }

    .content {
        padding: 40px 5%;
        text-align: justify;
    }

    .content>ul {
        margin: 20px
    };
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1rem;
        margin-right: 40px;
    }

    .nav-menu a {
        margin: 8px 15px;
    }

    .content {
        padding: 30px 5%;
        text-align: justify;
    }

    .content>ul {
        margin: 20px
    };
}