body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.nav-logo {
    height: 40px;
    width: auto;
    margin-left: 1em;
    margin-right: 1em;
    border-radius: 8px;
}
/* Responsive font sizes for nav li */
@media screen and (max-width: 480px) {
    nav li a {
        font-size: 0.95em;
    }
}

@media screen and (min-width: 481px) and (max-width: 900px) {
    nav li a {
        font-size: 1em;
    }
}

@media screen and (min-width: 901px) {
    nav li a {
        font-size: 0.8em;
    }
}
@media screen and (min-width: 1440px) {
    nav li a {
        font-size: 1em;
    }
}

/* Center all headings */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-family: 'Allura', 'Alex Brush', 'Great Vibes', cursive;
}

/* Center all buttons */
button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
body {
    font-family: Garamond, 'Times New Roman', serif;
    background: #344343;
    color: #f5f5f5;
    margin: 0;
    padding: 0 0 0 0;
}

.timeline {
   background-color: #eee7de;
   border: 2px solid #344343;
   color: #344343;
   width: 60%;
   margin-left: auto;
   margin-right: auto;
   align-self: center;
}

.timeline h2 {
    color: #344343;
    text-decoration: underline;
}

.timeline h3 {
    font-size: 150%;
    margin-bottom: -5%;
}



header {
    background-image: url(hero-bckgrnd.png);
    height: 100vh;
    background-size: cover;
    background-position: center center; /* Centers the image within the container */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 0 0 0;
    /* border-bottom: 2px solid #C24D2B; */
    color: #344343;
}

nav {
    background: #f5f5f5;
    padding: 0.5em 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    height: 50px;
}

.hero-text{
    margin-bottom: 10em;
    max-width: 90%;
}

.hero-text p {
    text-align: justifyS;
}

header h1 {
    text-align: center;
    font-size: 2em;
}

.slike-strana h1 {
    text-align: center;
    font-size: 4em;
}

.slike-strana p {
    text-align: center;
    font-size: 1.2em;
}

.slike-strana button {
    margin-top: 2em;
    font-size: 1.2em;
}

nav li {
    list-style: none;
    margin: 0;
    padding: 0;;
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1em;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
    /*z-index: 1500;*/
}
.hamburger i {
    font-size: 2em;
    color: #344343;
}

.desktop-nav {
    display: none;
}

p {
    margin-bottom: 1.5em;
    line-height: 1.6;
    font-size: 1.1em;
}
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 3.5em;
    right: 1em;
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 8px;
    vertical-align: middle; /* Added for vertical alignment */
    min-width: 180px;
    flex-direction: column;
    list-style: none;
    margin: 0;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(-10px);
}
.mobile-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.mobile-dropdown li {
    margin: 0.5em 0;
}
.mobile-dropdown a {
    text-decoration: none !important;
    color: #344343;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background 0.2s;
    display: block;
}
.mobile-dropdown a:hover {
    background: #4D7062;
    color: #f5fbe6;
}

button {
    border: #f5f5f5 2px solid;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 1em;
    transition: background 0.2s;
    align-self: center;
    width: 60%;
    background: #C24D2B;
    color: #f5f5f5;
    font-size: 1.1em;
    padding: 2%;
}

button:hover {
    background: #f5f5f5;
    color: #C24D2B;
    border-color: #C24D2B;
}

.container {
    background-color: #f5f5f5;
    border: #E6945C 3px solid;
    padding: 5%;
    color: #344343;;
    text-align: center;
}

#koista img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 2%;
    margin-bottom: 5%;
}

#koista i{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    color: #4D7062;
}

#dolazak ol {
    text-align: left;
}

#uspomene ul {
    text-align: left;
}


nav a {
    text-decoration: none !important;
    color: #333;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background 0.2s;
}
nav a:hover:not(:has(img)) {
    background: #343434;
    color: #f5f5f5;
}

#prva, #druga, #treca, #cetvrta, #peta, #sesta, #sedma {
    scroll-margin-top: 50px;
}


footer {
    text-align: center;
    background: #f5f5f5;
    color: #344343;
    padding: 1em 0;
    font-size: 1em;
    border-top: 2px solid #4D7062;
}

#hrana .timeline {
    width: 80%;
    padding: 5%;
}

#pice .timeline {
    width: 80%;
    Padding: 5%;
}

#hrana .timeline h3 {
    margin-bottom: -3%;
}

#pice .timeline h3 {
    margin-bottom: auto;
}


@media screen and (min-width: 769px) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        font-family: 'Allura', 'Alex Brush', 'Great Vibes', cursive;
    }

    .hamburger {
        display: none;
    }
    nav {
        justify-content: space-between;
    }
    nav img {
        margin-left: 2em;
        margin-right: 1em;
        order: 0;
    }

    .nav-logo {
        margin-left: 2%;
        width:auto;
    }
    .desktop-nav {
        display: flex !important;
        flex-direction: row;
        gap: 1em;
        justify-content: flex-end;
        align-items: center;
        margin-left: auto;
        margin-right: 1em;
        order: 1;
    }
    .mobile-dropdown {
        display: none !important;
    }
    section {
        max-width: 80%;
        margin: 3em auto;
        /*padding: 2.5em 1.5em;*/
    }
    header {
        padding: 3em 1em 2em 1em;
    }
   
    button {
        border: #f5f5f5 2px solid;
        border-radius: 999px;
        cursor: pointer;
        margin-top: 1em;
        transition: background 0.2s;
        align-self: center;
        width: 30%;
        background: #C24D2B;
        color: #f5f5f5;
        font-size: 1.1em;
        padding: 2%;
        font-family: Garamond, 'Times New Roman', serif;
    }

    .slike-strana {
        line-height: 0.1;
    }

    .slike-strana h1 {
        text-align: center;
        font-size: 6em;
    }

    .slike-strana button {
    margin-top: 2em;
    font-size: 1.2em;
    width: 20%;
    }

    .hero-text{
    font-size: 150%;;
    }

    .hero-text p {
        font-size: 120%;
        max-width: 80%;
        text-align: center;
        margin-left: 10%;
    }



    h2 {
        font-size: 200%;
    }

    .container{
        text-align: center;
    }
}

section {
    margin: 1.5em auto;
    max-width: 700px;
    padding: 1em 1.5em;
   /* border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
}


#koista li {
    list-style: none;
};





