html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height:100%;
}

body{
    /* min-height: 100vh !important; */
-webkit-overflow-scrolling: touch;
background: #6B5643;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: var(--accent-color);
 
    transition: all 0.4s;
}

.body_background{
    /* background: url("../img/rep_lokal_opacity1.png") no-repeat center center fixed;
    transform: translateZ(0); 
    will-change: transform;
    background-size: cover; */

  }

/* Stil za loading ekran */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: Arial, sans-serif;
    color: #555;
}

/* Stil za spinner */
.spinner {
    border: 5px solid #ccc;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animacija za spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loader Section */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vh;
    background: rgba(1, 1, 1, 0.164); 
    backdrop-filter: blur(8px); 
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
  }
  
  .logo_loading {
    width: 150px;
    height: auto;
    animation: bounce 2s infinite;
  }

  /* Bounce Animation for Logo */
@keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Content Section Hidden Initially */
  .main-content {
    /* background: url("../img/rep_lokal_opacity1.png") no-repeat center center fixed;
    transform: translateZ(0);
    will-change: transform; 
    background-size: cover; */
    opacity: 1;
  }



#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Ensures the background covers the viewport width */
    height: 100vh; /* Ensures the background covers the viewport height */
    background: url("../img/rep_lokal_opacity.png") no-repeat center center fixed;
    background-size: cover;
    z-index: -1; /* Ensure it stays behind content */
    transform: translateZ(0); /* Forces proper rendering */
    will-change: transform; /* Improves performance */

}

#background1 {
    position: fixed; /* Makes the background element itself fixed */
    top: 0;
    left: 0;
    width: 100vw; /* Ensures the background covers the viewport width */
    height: 100vh; /* Ensures the background covers the viewport height */
    background: url("../img/bg_karta.png") no-repeat center top fixed;
    background-size: cover;
    z-index: -1; /* Places the background behind other content */
    transform: translateZ(0); /* Forces proper rendering */
    will-change: transform; /* Improves performance */
}



p,h1,h2,h3, h4,h5, img,a{
    margin: 0 !important;

}

img {
    display: block;
    margin: 0; /* Ensures no extra margins are applied */
    padding: 0; /* Removes any default padding */
}

/* #scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}

#scrollToTop.visible {
    opacity: 0.8;
    pointer-events: auto;
} */

#scrollToTop {
  
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
 
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    opacity: 1;
    transform: scale(1.1); /* Slight zoom effect */
}

#scrollToTop svg {
    width: 25px;
    height: 25px;
}

/* Fade-in effect on page load
.fade {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade-out effect on click */
/* .fade-out {
    animation: fadeOut 0.5s ease-out forwards;
} */
/* 
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
} */ 

/* Smooth Transitions Across Browsers */
a {

    -webkit-tap-highlight-color: transparent; /* iOS/Safari */
    tap-highlight-color: transparent; /* Ostali pregledači */
    text-decoration: none; /* Keep links clean */
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease; /* Safari compatibility */
}

a:active {
    opacity: 0.5; /* Make the link disappear when clicked (fade-out effect) */
}

/* iOS-Specific Media Query for Additional Tweaks */
@supports (-webkit-touch-callout: none) {
    .kafa, .proizvod_info {
        padding: 10px; /* Adjust padding for Safari's quirks */
    }
}
  

.hero{
    display: flex;
    width: auto;
    min-height: 90vh; /* Stretch to the full height */
flex-direction: column;
justify-content: center;
align-items: center;
}

.logo_dugme{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 150px;
}

.logo{
    display: flex;
height: 100px;
flex-direction: column;
align-items: flex-start;
align-self: stretch;
}

.logo img{
    width: 300px;
height: auto;
flex-shrink: 0;
}

.dugme_karta_pica{
    display: flex;
padding: 20px 40px;
justify-content: center;
align-items: center;
gap: 10px;
border-radius: 0; /* Removes any rounded corners */
background: #897676;
border-radius: 10px;

}

.dugme_karta_pica a{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: normal;
text-decoration: none;
}

.header-hero-wrapper {
    background: url("../img/rep_lokal_opacity1.png");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Ako želite da pozadina bude statična */
    overflow: hidden; /* Možda je ovo neophodno da se spreči nestajanje slike */

}

.header1, .hero2 {
    height: auto; /* Visina sekcija koje će se pokriti slikom */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Ovaj deo možete prilagoditi u zavisnosti od vašeg dizajna */
}

.header1{
    display: flex;
    padding: 20px 150px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    align-self: stretch;
}

.hero2{
    display: flex;
padding: 150px 300px;
flex-direction: column;
align-items: center;
gap: 50px;
align-self: stretch;
}

.header-hero-wrapper {
    visibility: hidden; /* Prvo sakrijte wrapper */
    opacity: 0; /* Postavite opasnost na 0 */
    transition: opacity 0.5s ease-out; /* Glađi prelaz */
}

body.loaded .header-hero-wrapper {
    visibility: visible;
    opacity: 1;
}



.naslov_moto{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
align-self: stretch;
}

.naslov_pocetna{
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.naslov_pocetna h1{
    flex: 1 0 0;
    color: #FFF;
text-align: center;
font-family: "PT Serif", serif;
font-size: 70px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.moto_pocetna{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}

.moto_pocetna h3{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 25px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.meni{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 30px;
align-self: stretch;
}

.karta_pica_opis{
    display: flex;
align-items: center;
align-self: stretch;
}

.karta_pica_opis h3{
    color: #FFF;
text-align: center;
font-family: "Josefin Sans";
font-size: 25px;
font-style: italic;
font-weight: 400;
line-height: normal;
}

.slike_lokala{
    display: flex;
padding: 70px 0px;
justify-content: center;
align-items: center;
gap: 35px;
align-self: stretch;
background: #6B5643;
}

.slike_lokala img{
    width: 350px;
    height: 350px;
border-radius: 10px;

}



.sekcija{
    display: flex;
padding: 70px 150px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
align-self: stretch;
background:linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url("../img/pocetna_sekcija.jpeg") 50% / cover no-repeat;
position: relative; /* Required for absolute children */

}

.okvir_sekcija{
    display: flex;
    padding: 50px 100px;
    flex-direction: column;
    align-items: flex-end;
    gap: 33px;
    align-self: stretch;
    border-radius: 10px;
background: #E4E4E4;
position: relative; /* Required for absolute children */
z-index:0;

}

.tekst_sekcije{
    display: flex;
padding: 20px 0px 50px 0px;
flex-direction: column;
justify-content: center;
align-items: flex-end;
gap: 10px;
flex: 1 0 0;
}




.right-hr{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 400px;
    height: 2px;
    background: #897676;
}

.slika_sekcija{
    width: 258px;
height: 337px;
position: absolute;
left: 190px;
top: -94px;
}

.slika_sekcija img{
    width: 258px;
height: 337px;
z-index:-1;

}
.left-hr{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 400px;
    height: 2px;
    background: #897676;

}

.kartica_sekcije{
    display: flex;
    padding-left: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    align-self: stretch;
    border-radius: 20px;
}

.naslov_sekcije{
    display: flex;
justify-content: center;
align-items: center;
align-self: stretch;
}

.naslov_sekcije h3{
    flex: 1 0 0;
    color: #000;
text-align: right;
font-family: "PT Serif", serif;
font-size: 40px;
font-style: italic;
font-weight: 400;
line-height: normal;
}

.podnaslov_sekcije{
    display: flex;
justify-content: flex-end;
align-items: center;
align-self: stretch;
}

.podnaslov_sekcije p{
    flex: 1 0 0;
    color: #000;
text-align: right;
font-family: "PT Serif", serif;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.okvir_sekcija2{
    display: flex;
padding-left: 100px;
align-items: center;
gap: 33px;
align-self: stretch;
border-radius: 10px;
background: #E4E4E4;

}

.tekst_sekcije2{
    display: flex;
padding: 20px 0px 50px 0px;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
}

.kartica_sekcije2{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
align-self: stretch;
}

.naslov_sekcije2{
    display: flex;
justify-content: center;
align-items: center;
align-self: stretch;
}

.naslov_sekcije2 h3{
    flex: 1 0 0;
    color: #000;
font-family: "PT Serif", serif;
font-size: 40px;
font-style: italic;
font-weight: 400;
line-height: normal;
}

.podnaslovi_sekcije2{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    align-self: stretch;
}

.podnaslov_sekcije2{
    display: flex;
align-items: center;
align-self: stretch;
}

.podnaslov_sekcije2 p{
    flex: 1 0 0;
    color: #000;
font-family: "PT Serif", serif;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.slika_sekcija2{
    display: flex;
align-items: center;
}

.slika_sekcija2 img{
    width: 205px;
    align-self: stretch;
    border-radius: 10px;
}



footer{
    display: flex;
padding: 50px 150px;
justify-content: space-between;
align-items: flex-start;
align-self: stretch;
background: #6B5643;
gap: 30px;
}

.footer_moto{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
}

.moto_footer{
    display: flex;
justify-content: center;
align-items: center;
align-self: stretch;
}

.moto_footer p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.radno_vreme_lokala{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.radno_vreme{
    display: flex;
        /* flex-direction: column; */
        justify-content: center;
        text-align: center;
        gap: 10px;
        align-items: center;
}

.radno_vreme svg{
    width: 24px;
height: 24px;
}

.radno_vreme p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: normal;
text-align: left;

}

.dani_u_sedmici{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 20px;
}

.period_vreme{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
}

.period{
    display: flex;
width: 154px;
justify-content: center;
align-items: center;
gap: 10px;
}

.period p{
    flex: 1 0 0;
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.vreme_period{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.dan_vreme{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}

.dan{
    display: flex;
justify-content: center;
align-items: center;
}
.dan p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.vreme{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}

.vreme p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.nedelja{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}




.footer_wifi_adresa{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
}

.lokacija_adresa{
    display: flex;
align-items: center;
align-self: stretch;
}

.loc_icon{
    display: flex;
align-items: center;
gap: 10px;
}

.lokacija{
    display: flex;
justify-content: center;
align-items: center;
}

.lokacija p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.adresa{
    display: flex;
justify-content: center;
align-items: center;

}

.adresa button{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
background-color: transparent;
    border: none;
    padding: 0;
}

.wifi_lozinka{
    display: flex;
align-items: center;
align-self: stretch;
gap: 20px;
}

.wifi_icon{
    display: flex;
width: 161px;
align-items: center;
gap: 10px;
}

.wifi_txt{
    display: flex;
justify-content: center;
align-items: center;
}

.wifi_txt p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.lozinka_txt{
    display: flex;
justify-content: center;
align-items: center;
}

.lozinka_txt p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.insta_icon{
    display: flex;
width: 333px;
align-items: center;
gap: 10px;
flex: 1 0 0;
}

.insta_icon svg{
    width: 24px;
height: 24px;
flex-shrink: 0;
}

.insta_txt{
    display: flex;
justify-content: center;
align-items: center;
}

.insta_txt p{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}



.hero1{
    display: flex;    
    width: auto;
    min-height: 100vh;
    padding: 20px 150px;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    gap: 20px;
    /* background: url("../img/background.jpeg") 50% / cover no-repeat;
    background-attachment: fixed; */
    transition: opacity 0.5s ease; /* Smooth fade effect */

}

header{
    display: flex;
    width: auto;
justify-content: space-between;
align-items: center;
align-self: stretch;
}

.back_icon{
    display: flex;
width: 24px;
padding: 4px;
align-items: center;
gap: 10px;
}

.back_icon svg{
    height: 16px;
flex: 1 0 0;
fill: #FFF;
}

.logo1{
    display: flex;
    justify-content: end;
    align-items: flex-end;
    flex: 1 0 0;
}

.logo1 img{
    width: 200px;
    height: auto;
}

.pice{
    display: flex;
justify-content: center;
align-items: flex-start;
gap: 70px;
align-self: stretch;
}

.filter{
    display: flex;
padding: 10px 60px;
flex-direction: column;
align-items: center;
gap: 22px;
background: rgba(162, 131, 103, 0.54);
border-radius: 10px;
}

.kategorija{
    display: flex;
justify-content: center;
align-items: center;
}

.kategorija a{
    color: #FFF;
    text-align: center;
    font-family: "PT Serif", serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
text-decoration: none; /* No underline by default */
transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transitions */


}

.kategorija a:hover,
.kategorija a:focus{
    color: #d0cbcb;
    text-decoration: underline;
    transform: scale(1.05); /* Add a slight zoom effect */
}

.kategorija a.active {
    color: #d0cbcb; /* Istaknuta boja */
    font-weight: bold; /* Deblji tekst */
    text-decoration: underline; /* Podvlačenje */
}

.kafe{
    display: flex;
justify-content: space-between;
align-items: flex-start;
align-content: flex-start;
row-gap: 60px;
flex: 1 0 0;
flex-wrap: wrap;
}

.kafa{
    display: flex;
width: 344px;
flex-direction: column;
justify-content: center;
align-items: flex-start;
background: rgba(162, 131, 103, 0.54);
margin: 0 10px;
border-radius: 10px;

}

.slika_kafa{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
align-self: stretch;

}

.slika_kafa img{
    height: 170px;
    object-fit: cover;
    align-self: normal;
    border-radius: 10px;

}

.detalji_pica{
    display: flex;
padding: 10px;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
align-self: stretch;
}

.naziv_cena{
    display: flex;
justify-content: space-between;
align-items: center;
align-self: stretch;
}

.naziv{
    display: flex;
align-items: center;
gap: 10px;
flex: 1 0 0;
}

.naziv h3{
    flex: 1 0 0;
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 20px;
font-style: italic;
font-weight: 400;
line-height: normal;
}

.cena{
    display: flex;
justify-content: flex-end;
align-items: center;
margin-left: 10px;
}

.cena h3{
    flex: 1 0 0;
    color: #FFF;
text-align: right;
font-family: "PT Serif", serif;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.cena_mala_velika{
    display: flex;
    justify-content: flex-end;
    align-items: end;
    flex-direction: column;
    flex: 1 0 0;
}

.cena_mala_velika h3, .cena_mala_velika h5{
    flex: 1 0 0;
    color: #FFF !important;
text-align: right;
font-family: "PT Serif", serif;
font-style: normal;
font-weight: 400;
line-height: normal;

}

.cena_mala_velika h3{
    font-size: 16px;

}

.opis{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
align-self: stretch;
}

.opis p{
    flex: 1 0 0;
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.kartice{
    display: flex;
justify-content: space-between;
align-items: center;
align-content: flex-start;
row-gap: 36px;
flex: 1 0 0;
flex-wrap: wrap;
}

.kartica{
    display: flex;
padding-right: 10px;
margin: 0 5px;

justify-content: center;
align-items: center;
gap: 10px;
background: rgba(162, 131, 103, 0.54);
border-radius: 10px;

}

.slika_pica{
    display: flex;
align-items: cenlter;
gap: 10px;
}

.slika_pica img{flex: 1 0 0;
    width: 130px;
height: 137px;
border-radius: 10px;


}

.proizvod_info{
    display: flex;
    width: 203px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.naziv_cena_info{
    display: flex;
justify-content: space-between;
align-items: flex-start;
align-self: stretch;
}

.naziv_proizvoda{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex: 1 0 0;
}

.naziv_proizvoda h3{
    flex: 1 0 0;
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 20px;
font-style: italic;
font-weight: 400;
line-height: normal;
}

.cena_proizvoda{
    display: flex;
width: 50px;
justify-content: center;
align-items: center;
margin-left: 10px;
}

.cena_proizvoda h3{
    flex: 1 0 0;
    color: #FFF;
text-align: right;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.opis_proizvoda{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
align-self: stretch;
}

.opis_proizvoda p{
    flex: 1 0 0;
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.hero_levo{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 50px;
}

.poslovica{
    display: flex;
width: 300px;
justify-content: center;
align-items: center;
}

.poslovica h3{
    color: #FFF;
    font-family: "PT Serif", serif;
    font-size: 18px;
font-style: italic;
font-weight: 400;
line-height: normal;
text-align: center;

}


/* Alkohol */

.alkohol{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 50px;
flex: 1 0 0;
}

.vrsta_alkohola{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
align-self: stretch;
}

.naziv_vrste{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}

.naziv_vrste h3{
    color: #FFF;
font-family: "PT Serif", serif;
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: normal;
}



@media (min-width: 1024px) and (max-width: 1440px){

    /* Loader Section */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 1, 0.164); 
    backdrop-filter: blur(8px); 
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
  }
  
  .logo_loading {
    width: 150px;
    height: auto;
    animation: bounce 1.5s infinite;
  }
    .pice{
        gap: 50px;
    }

    .kafa{
        margin: 0 5px;
    }

    .okvir_sekcija{
        display: flex;
padding: 50px 70px;
flex-direction: column;
align-items: end;
gap: 33px;
align-self: stretch;
z-index: 0;
    }

    .tekst_sekcije{
        padding: 0;
    }

    .right-hr{
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        width: 400px;
        height: 2px;
        background: #897676;
    }

    .slika_sekcija{
        width: 258px;
height: 337px;
position: absolute;
left: 71px;
top: -98px;
z-index: -1;

    }

    .okvir_sekcija2{
        display: flex;
padding: 0px 70px;
    }

    .tekst_sekcije2{
        padding: 0;
    }


    .left-hr{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 400px;
        height: 2px;
        background: #897676;
    
    }


}



@media (min-width: 768px) and (max-width: 1024px){

/* Loader Section */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vh;
    background: rgba(1, 1, 1, 0.164); 
    backdrop-filter: blur(8px); 
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
  }
  
  .logo_loading {
    width: 150px;
    height: auto;
    animation: bounce 1.5s infinite;
  }
    .hero1{
        display: flex;
padding: 20px 50px;
flex-direction: column;
align-items: center;
gap: 20px;
align-self: stretch;
}
    .pice{
        width: 100%;
        gap: 70px;
    }

    .header1{
        display: flex;
        padding: 20px 100px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 10px;
        align-self: stretch;
    }
    
    .hero2{
        display: flex;
    padding: 150px 100px;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    }
    
    
    .naslov_pocetna h1{
        flex: 1 0 0;
        color: #FFF;
    text-align: center;
    font-family: "Josefin Sans";
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    }

    
    .moto_pocetna h3{
        color: #FFF;
    font-family: "Josefin Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    }
    
    
    .karta_pica_opis h3{
        color: #FFF;
    text-align: center;
    font-family: "Josefin Sans";
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    }
    
    
    .sekcija{
        display: flex;
    padding: 70px 100px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    background:linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url("../img/pocetna_sekcija.jpeg") 50% / cover no-repeat;
    position: relative; /* Required for absolute children */
    
    }
    
    .okvir_sekcija{
        display: flex;
        padding: 30px 40px;
        flex-direction: column;
        align-items: flex-end;
        gap: 33px;
        align-self: stretch;
        border-radius: 10px;
    background: #E4E4E4;
    position: relative; /* Required for absolute children */
    z-index:0;
    
    }
    
    
    
/*     
    .right-hr{
        width: 350px;
    height: 2px;
    background-color: #897676;
    color: #897676;
    position: absolute;
    right: 0;
    top: 10px;
    margin-right: 40px;
    } */
    
    .slika_sekcija{
        width: 201px;
        height: 275px;
        position: absolute;
        left: -30px;
        top: -102px;
    }
    
    .slika_sekcija img{
        width: 201px;
        height: 275px;
    z-index:-1;
    
    }
    .left-hr{
        width: 300px;
   
    
    
    }
    
    .okvir_sekcija2{
        display: flex;
        padding: 30px 40px;
        flex-direction: row;
        align-items: flex-start;
        gap: 33px;
        align-self: stretch;
        border-radius: 10px;
    background: #E4E4E4;
    }

    .tekst_sekcije2{
        padding: 0;
    }

 
    
    .naslov_sekcije h3{
        flex: 1 0 0;
        color: #000;
    text-align: right;
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    }

    
    .podnaslov_sekcije p{
        flex: 1 0 0;
        color: #000;
    text-align: right;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    }
    
    .naslov_sekcije2{
        display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    }
    
    .naslov_sekcije2 h3{
        flex: 1 0 0;
        color: #000;
        font-size: 30px;
    font-weight: 400;
    line-height: normal;
    }
    
    
    .podnaslov_sekcije2 p{
        flex: 1 0 0;
        color: #000;
        font-size: 20px;
    font-weight: 400;
    line-height: normal;
    }
    
    /* .slika_sekcija2{
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    right: -65px;
top: -89px;
    }
    
    .slika_sekcija2 img{
        width: 373px;
        height: 249px;
    } */
    
    
    
    footer{
        display: flex;
padding: 40px 70px;
flex-direction: column;
align-items: flex-start;
gap: 50px;
align-self: stretch;
background: #6B5643;
    }
    
    .footer_moto{
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    }

    
    .period{
        display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    }

    
    .footer_wifi_adresa{
        display: flex;
    width: 400px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    }
    
    

    

}



@media (max-width: 768px) {

    /* Loader Section */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 1, 0.164); /* Semi-transparent white */
    backdrop-filter: blur(8px); /* Blur effect */
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
  }
    #background1 {
        position: fixed; /* Makes the background element itself fixed */
        top: 0;
        left: 0;
        width: 100vw; /* Ensures the background covers the viewport width */
        height: 100vh; /* Ensures the background covers the viewport height */
        background: url("../img/bg_karta.jpg") no-repeat center top fixed;
        background-size: cover;
        z-index: -1; /* Places the background behind other content */
        transform: translateZ(0); /* Forces proper rendering */
        will-change: transform; /* Improves performance */
    }
    
    .logo1 img{
        width: 150px;
        height: auto;
    }
    .logo_dugme{
        gap: 150px;
    }
    .hero1{
        display: flex;
padding: 20px 20px;
align-items: center;
gap: 20px;
align-self: stretch;
    }

    .pice{
        display: flex;
        width: 100%;
flex-direction: column !important;
align-items: center;
gap: 40px;
align-self: stretch;
    }

    .kafe {
        display: flex;
        /* flex-direction: column !important; Ensure vertical layout */
        align-items: stretch;             /* Makes items fill container */
        gap: 30px;
        width: 100%;                      /* Avoids issues with fit-content */
    }

    .kafa {
        display: flex;
        flex-direction: column;           /* Stack content vertically */
        width: 100%;
        margin: 0px;
    }

    .slika_kafa{
        width: 100%;
    }

    .slika_kafa img{ 
        width: 100%;
    }

    .kartice{
        display: flex;
/* flex-direction: column; */
align-items: center;
gap: 30px;
align-self: stretch;
    }

    .kartica{
        display: flex;
padding-right: 10px;
justify-content: space-between;
align-items: center;
width: 100%;    
}

.proizvod_info{
    width: 100%;
}

.slika_pica img{
       min-width: 130px;
    }

    #scrollToTop {
        width: 60px;
        height: 60px;
    }

    #scrollToTop svg {
        width: 30px;
        height: 30px;
    }



    .header-hero-wrapper {
        background: url("../img/rep_lokal_opacity1.png");
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Ovdje koristimo scroll umesto fixed na mobilnim uređajima */
        overflow: hidden; /* Možda je ovo neophodno da se spreči nestajanje slike */
    
    }

    /* Pocetna */

    .header1{
        display: flex;
padding: 20px;
flex-direction: column;
justify-content: center;
align-items: flex-end;
gap: 10px;
align-self: stretch;
    }
    
    .hero2{
        display: flex;
padding: 100px 40px;
flex-direction: column;
align-items: center;
gap: 50px;
align-self: stretch;
    }
    
    
    .naslov_pocetna h1{
        flex: 1 0 0;
        color: #FFF;
text-align: center;
font-family: "PT Serif", serif;
font-size: 25px;
font-style: normal;
font-weight: 400;
line-height: normal;
    }

    
    .moto_pocetna h3{
        color: #FFF;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
    }

    
    
    .karta_pica_opis h3{
        flex: 1 0 0;
        color: #FFF;
text-align: center;
font-family: "PT Serif", serif;
font-size: 16px;
font-style: italic;
font-weight: 400;
line-height: normal;
    }


    .dugme_karta_pica a{
        color: #FFF;
    font-family: "PT Serif", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    }


    .slike_lokala{
        display: flex;
padding: 40px 20px;
align-items: center;
gap: 15px;
align-self: stretch;
    }

    .slika_pocetna{
        display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
align-self: stretch;
    }

    .slika_pocetna img{
        flex: 1 0 0;
align-self: stretch;
border-radius: 10px;
width: 170px;
    }
    
    .sekcija{
        display: flex;
padding: 30px 20px;
flex-direction: column;
align-items: flex-start;
align-self: stretch;
    background:linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url("../img/pocetna_sekcija.jpeg") 50% / cover no-repeat;
    position: relative; /* Required for absolute children */
    
    }
    
    .okvir_sekcija{
        display: flex;
        padding: 0px 5px;
        flex-direction: column;
        align-items: flex-end;
        gap: 33px;
        align-self: stretch;
        border-radius: 10px;
background: #EFEFEF;
    position: relative; /* Required for absolute children */
    z-index:0;
    
    }

    .tekst_sekcije{
        display: flex;
padding: 20px 15px;
flex-direction: column;
justify-content: center;
align-items: flex-end;
gap: 10px;
align-self: stretch;
    }
    
    

    .right-hr{
        display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
width: 179px;
height: 2px;
background: #897676;

    }
    
    .slika_sekcija{
        width: 117px;
height: 153px;
position: absolute;
left: -22px;
top: -13px;
    }
    
    .slika_sekcija img{
        width: 117px;
height: 153px;
    z-index:-1;
    
    }
    .left-hr{
        display: flex;
flex-direction: column;
align-items: flex-start;
align-self: stretch;
width: 179px;
height: 2px;
background: #897676;
    }
    

    .okvir_sekcija2{
        display: flex;
        padding: 0px 5px;
        align-items: center;
        gap: 5px;
        align-self: stretch;
    }

    .tekst_sekcije2{
        display: flex;
padding: 20px 0px 20px 15px;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
    }

    
    .naslov_sekcije h3{
        flex: 1 0 0;
        color: #000;
    text-align: right;
    font-family: "PT Serif", serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    }

    
    .podnaslov_sekcije p{
        flex: 1 0 0;
        color: #000;
    text-align: right;
    font-family: "PT Serif", serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    }
    
    .naslov_sekcije2{
        display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    }
    
    .naslov_sekcije2 h3{
        flex: 1 0 0;
        color: #000;
    font-family: "PT Serif", serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    }
    
    
    .podnaslov_sekcije2 p{
        flex: 1 0 0;
        color: #000;
    font-family: "PT Serif", serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    }
    
    .slika_sekcija2{
        display: flex;
align-items: center;
    }
    
    .slika_sekcija2 img{
        width: 134px;
height: 156px;
        flex: 1 0 0;
        border-radius: 10px;

    }

    footer{
        display: flex;
padding: 40px 20px;
flex-direction: column;
align-items: flex-start;
gap: 30px;
align-self: stretch;
background: #6B5643;
    }
    
    .footer_moto{
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    }

    
    .period{
        display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    }

    
    .footer_wifi_adresa{
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    }

    .wifi_lozinka{
        display: flex;
    align-items: center;
    align-self: stretch;
    gap: 20px;
    }
}




/* Resetovanje margina i paddinga */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Kontejner za slajdove */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background-color: #6B5643;
    display: flex;
    flex-wrap: wrap;  /* Omogućava raspored slajdova u više redova */
    justify-content: center;
    gap: 10px;
    padding: 10px 0 20px 0;
}

/* Stilovi za svaki slajd */
.slide {
    display: none;
    position: relative;
    width: 100%; 
    height: 100%;
    transition: opacity 1s ease-in-out;
    flex: 0 0 15%;
} *

/* Klasa za aktivni slajd */
.slide.active {
    display: block;  /* Samo aktivni slajd treba biti prikazan */
}

.slide_naslov {
    display: flex;
    justify-content: center;
    padding: 30px 20px 0 20px;
}

.slide_naslov h2{ 
    color: #FFF;
    font-family: "PT Serif", serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;    
}

/* Na manjim ekranima, postavite dva slajda u red */
@media screen and (max-width: 768px) {
    .slide {
        flex: 0 0 45%;  /* Na mobilnim uređajima, svaki slajd zauzima 50% širine */
    }
}

/* Slike i video snimci unutar slajdova */
.slide img, video {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 20px;
    display: block;  /* Osigurava da slike pravilno zauzimaju prostor */
}

/* Dodavanje stila za navigacijske dugmadi */
.prev, .next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    border-radius: 3px;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.copyright{
    display: flex;
    flex-direction: row;
    color: white;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    padding: 10px;
    background: #6B5643;
    a{
        color: #2a2a2a;
    }

    a:hover{
        color:#000;
    }
}


