* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply custom font to header title */
@font-face {
    font-family: 'AlluraCustom';
    src: url('https://fonts.gstatic.com/s/allura/v15/9oRPNYsQpS4zjuA_iwgW.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.main-title {
    font-family: 'AlluraCustom', cursive;
    font-size: 3rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.main-header {
    margin: 20px; /* Adds white space around the header */
    background: linear-gradient(135deg, #7dbb42 0%, #f7e9b0 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-bottom: 4px solid #7dbb42;
    min-height: 70vh;
    width: calc(100% - 40px); /* Adjust width to account for margin */
    overflow: hidden;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
}

.offcanvas {
    background: linear-gradient(135deg, #7dbb42 0%, #e6c6a7 100%);
    color: #222;
}
.offcanvas .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    color: #222;
}
.offcanvas .nav-link:hover {
    color: #fff;
}

.header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('fotky/nahledovkav3.webp') center center/cover no-repeat;
    filter: blur(5px); /* Přidán rozmazaný efekt */
    z-index: 1;
}
.header-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.main-header nav {
    z-index: 5;
}
.btn-custom {
    background-color: #e6c6a7;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.7em 2em;
    border: none;
    border-radius: 0;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.btn-custom:hover {
    background-color: #d1b08a;
    color: #fff;
}
.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.main-header h1 {
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
}
.main-header .lead {
    font-size: 1.3rem;
    font-style: italic;
}
.main-img {
    border: 4px solid #7dbb42;
    background: #fffbe6;
}
footer {
    font-size: 1.1rem;
    color: #555;
}
.logo-box {
    z-index: 3;
    top: 0;
    right: 0;
    left: auto;
    margin: 0;
    position: absolute;
    display: flex;
    align-items: center;
}
.header-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}
.main-header .navbar-collapse {
    z-index: 4;
}

/* Style for horizontal navigation links on larger screens */
.navbar-nav.flex-row {
    display: flex; /* Make navigation links visible */
    gap: 1rem;
}
.navbar-nav.flex-row .nav-link {
    font-size: 1rem;
    color: #222;
    text-shadow: none;
}

/* Hide the hamburger menu button by default */
.navbar-toggler {
    display: none; /* Hide hamburger menu on larger screens */
}

/* Show the hamburger menu button only on small screens */
@media (max-width: 768px) {
    .navbar-nav.flex-row {
        display: none; /* Hide navigation links on smaller screens */
    }

    .navbar-toggler {
        display: block; /* Show hamburger menu on smaller screens */
    }

    /* Reduce header height on mobile screens */
    .main-header {
        min-height: 50vh; /* Reduce height */
        padding: 10px; /* Adjust padding */
        display: grid; /* Use grid layout */
        grid-template-rows: auto auto auto; /* Separate rows for elements */
        align-items: center; /* Center content */
        justify-items: center; /* Center items horizontally */
    }

    .main-title {
        font-size: 2rem; /* Adjust font size */
        top: 30%; /* Adjust vertical position */
        margin: 0; /* Remove unnecessary margins */
        color: white; /* Ensure text color is visible */
    }

    #onas-btn {
        position: absolute;
        left: 30%;
        bottom: 20%;
        margin: 0;
        border-radius: 0;
        z-index: 4;
    }

    .logo-box {
        margin: 10px 0; /* Add spacing */
    }
}
