/*  reset styles */
html{ width:100%; height:100%; }
body{ width:100%; height:100%; }
html, body{  margin:0; padding:0; scroll-behavior: smooth;  }
body *{ margin:0; padding:0; box-sizing:border-box; }
a{ text-decoration:none; }
ol, ul{ list-style-type:none; }
@import url('https://fonts.googleapis.com/css?family=Livvic&display=swap');

body{
   background:rgb(252, 234, 205);
   font-family: 'Livvic', sans-serif;
}

/* section 1 */
#pocetna{
    background-image: url("../images/pica-u-peci-na-drva.jpeg");
    background-position: center 80%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh; 
    color:rgba(226, 201, 142, 0.856); 
    font-size: 1.2rem;
}
#pocetna a{
    color:rgba(226, 201, 142, 0.856); 
}
#pocetna a:hover{
    color:rgba(226, 201, 142);
    font-weight: bold;
}
#logo a img{
    width: 20vw;
    height: auto;
    opacity: 0.9;
    position: absolute;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    top:4%;
}
#header-text{
    float:right;
    width:50%;
    margin-right: 25%; 
    margin-left: 25%; 
    text-align: center;
    margin-top:20%; 
}
#header-text h1{
    color:rgba(226, 201, 142); 
    font-size: 2rem;
    line-height: 2rem;
}
#languages{
    position: absolute;
    top:4%;
    left:2%;
}
#menu-bar{
    position: absolute;
    top:4%;
    right:2%;
}
#menu-bar a{
    margin-right: 20px;
}
#info{
    color:rgba(226, 201, 142, 0.856);
    position: absolute;
    bottom:4%;
    left:2%;
}
#follow-us-links{
    position: absolute;
    bottom: 4%;
    right:2%;
    text-align: right;
}

/* section 2 */
#jelovnik{
    min-height: 100vh;;
    padding-bottom: 2em;
    text-align: center;
    position: relative;
    box-shadow: inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623),inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623);
}
#jelovnik .section-heading{
    padding-top: 4em;
    padding-left: 8vw;
}
.section-heading{
    text-align: left;
    line-height: 14vh;
}
.section-heading h3{
    font-size: 12vh;
    font-family: 'Charm', cursive;
    color:rgb(133, 39, 42);
    opacity: 0.9;
    white-space: nowrap;
    display: inline-block;
}
.section-heading a img{
    height: 14vh;
}
.section-heading a {
    vertical-align: middle;
}
#menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#menu a{
    color:rgb(133, 39, 42);
}
#menu .food-category{  
    width: 350px;
    height:450px;
    margin:1.8vw;
    text-align: center;
    border-radius:3%;
    transition: box-shadow 0.3s ease-in-out;
    background: linear-gradient(to bottom,  rgba(129, 68, 32, 0.37) 0%, rgba(252, 234, 205, 0.589) 50%);
    box-shadow:0 0 20px rgb(185, 155, 141);
}
#menu .food-category:hover {
    box-shadow:0 0 20px rgb(102, 61, 43);
    cursor:pointer;
}
#menu .food-category h2{
    margin:1vw;
    font-weight: bold; 
    padding-top: 2vw;
}
#menu .food-category img{
    width: 250px;
    height: 250px;
    margin: 10px;
    border-radius: 3%;
}

/* section 3 */
#o-nama{
    position:relative;
    min-height: 85vh;
    padding-bottom:15vh;
    padding-top:2em;
    color:rgb(88, 52, 40);
    box-shadow: inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623),inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623);
}
#background-fire{
    background-image: url("../images/pec_na_drva.jpg");
    background-position:-500px 100px;
    position:absolute; top:0; left:0; bottom:0; right:0;
    opacity: 0.4;
}
#text-about{
    position:relative;
    z-index:1000;
    /* width: 35vw; */
    width: 40vw;
    border-radius: 76px;
    background-color: rgba(252, 234, 205, 0.8);
    text-align: center;
    font-weight: bold;
    margin-left: 6vw;
    padding: 10px;
    padding-bottom: 2em;
    font-family: 'Charm', cursive;
}
#text-about .section-heading{
    padding-top: 3em;
    padding-left: 2vw; 
}
#text-about .section-heading h4{
    font-size: 12vh;
    font-family: 'Charm', cursive;
    color:rgb(133, 39, 42);
    opacity: 0.9;
    white-space: nowrap;
    display: inline-block;
}
#text-about p{
    display: flex;
    font-size: 4.5vh;
    line-height: 1.5em;
    font-weight: normal;
    color: rgb(88, 37, 17);
}
#text-about p:last-child{
    padding-top: 1em;
}
#text-about, #images-about{
    display:inline-block;
}
#images-about{
    /* position: relative; */
    width: 40vw;
    height: 65vh;
    margin-top: 10vh;
    margin-right:7vw; float:right;
}
#images-about div{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623),inset 0px 0px 30px 5px rgba(129, 68, 32, 0.623);
    /* border-radius: 76px; */
}
#images-about div:nth-child(1){
    background: url('../images/picerija_enterijer1.jpg') no-repeat ;
    background-position: center;
    background-size: cover;
}
#images-about div:nth-child(2){
    background: url('../images/picerija_enterijer2.jpg') no-repeat;
    background-position: center;
    background-size: cover;
}
#images-about div:nth-child(3){
    background: url('../images/picerija_enterijer3.jpg') no-repeat;
    background-position: center;
    background-size: cover;
}
#images-about div:nth-child(4){
    background: url('../images/picerija_enterijer4.jpg') no-repeat;
    background-position: center;
    background-size: cover;
}

@keyframes promenaPozadine1 {
    0% { opacity: 1;}
    25% { opacity: 1;}
    50% { opacity: 0;}
    75% { opacity: 0;}
    95% { opacity: 0;}
    100% { opacity: 1;}
}
#images-about div:nth-child(1) {
    animation: promenaPozadine1 20s ease 5s infinite normal both;
}
@keyframes promenaPozadine2 {
    0% { opacity: 0;}
    20% { opacity: 0;}
    25% { opacity: 1;}
    50% { opacity: 1;}
    75% { opacity: 0;}
    100% { opacity: 0;}
}
#images-about div:nth-child(2) {
    animation: promenaPozadine2 20s ease 5s infinite normal both;
}
@keyframes promenaPozadine3 {
    0% { opacity: 0;}
    25% { opacity: 0;}
    45% { opacity: 0;}
    50% { opacity: 1;}
    75% { opacity: 1;}
    100% { opacity: 0;}
}
#images-about div:nth-child(3) {
    animation: promenaPozadine3 20s ease 5s infinite normal both;
}
@keyframes promenaPozadine4 {
    0% { opacity: 1;}
    5% { opacity: 0;}
    25% { opacity: 0;}
    50% { opacity: 0;}
    70% { opacity: 0;}
    75% { opacity: 1;}
    100% { opacity: 1;}
}
#images-about div:nth-child(4) {
    animation: promenaPozadine4 20s ease 5s infinite normal both;
}
.footer, .copyright{
    width:100%;;
    background-image: url("../images/drvena_pozadina1.jpg") ;
    background-repeat: repeat;
    background-position:center;
    color:rgb(206, 163, 130);
    font-size: 1.1rem;
}
.footer{
    height:15vh;
    display:flex;
}
.copyright{
    line-height:1.9em;
    text-align: center;
}
.footer-cell{
    flex-basis: 20%;
    align-self: center;
    text-align: center;
}
.footer-cell i{
    font-size: 1.7rem;
}
.footer-cell a i:hover{
    font-weight: bold;
}
.footer-cell a, .copyright a{
    color:rgb(206, 163, 130);
}
.footer-cell a:hover{
    font-weight: bold;
}
.copyright a:hover{
    font-weight: bold;
}
.fa-phone{
    display: block;
}

/* screen sizes 1660px and down */
@media(max-width: 1660px){
    #menu .food-category{  
        width: 300px;
        height: 25vw;
        margin-top:5vh;
    }
}

/* screen sizes 1400px and down */
@media(max-width: 1400px){
    #header-text{
        width:80%;
        margin-right: 10%; 
        margin-left: 10%; 
    } 
    #menu .food-category{  
        width: 270px;
        height:auto;
        text-align: center;
    }
    .footer, .copyright {        
        background-image: url("../images/drvena_pozadina2.jpg") ;
    }
}

/* screen sizes 1300px and down */
@media(max-width: 1300px){
    #menu .food-category{  
        width:250px;
    }
    #menu .food-category img{
        width: 200px;
        height: 200px;
    }
    .footer, .copyright{
        font-size: 1rem;
    }
}

/* screen sizes 1200px and down */
@media(max-width: 1200px){
    #menu .food-category{  
        width:300px;
        margin:50px;
        height: 400px;
    }
    #menu .food-category img{
        width: 250px;
        height: 250px;
    }
    .footer, .copyright{
    font-size: 0.7rem;
    }
}

/* screen sizes 900px and down */
@media(max-width: 900px){
    #header-text{
        /* margin-top:35%;  */
        margin-top:20%; 
    }
    #menu-bar{
       font-size: 1rem;
    }
    #menu .food-category{  
        margin:10px;
    }
    .footer-cell i{
        font-size: 1rem;
    }
    .footer, .copyright{
        font-size: 0.65rem;
    }
}

/* screen sizes 750px and down */
@media(max-width: 750px){
    .footer, .copyright{
        font-size: 0.55rem;
    }
}

/* screen sizes 639px and down */
@media(max-width: 639px){
    .footer, .copyright{
        font-size: 0.5rem;
    }
    #info, #follow-us-links{
        font-size: 0.9rem;
    }
}

/* screen sizes 600px and down */
@media(max-width: 600px){
    #pocetna{
        background-position: 100%;
    }
    #languages{
        margin-left:auto;
        margin-right:5%;
        margin-top:5px;
    }
    #logo a img{
        width: auto;
        height: 12vw;
        top: 39%;
    }
    #header-text{
        width:90%;
        margin-right: 5%; 
        margin-left: 5%; 
        margin-top:12%;
    }
    #header-text h1{
        font-size: 1.2rem;
        line-height: 1.2rem;
    }
    #menu-bar{
        top:60%;
        width:200px;
        left: 0; 
        right: 0; 
        margin-left: auto; 
        margin-right: auto; 
    }
    #menu-bar a{
        display: block;
        width:200px;
        text-align: center;
    }
    #info{
        width:90%;
        margin-right: 5%; 
        margin-left: 5%; 
        font-size: 0.9rem;
        text-align: center;
        bottom: 5%;
    }
    #follow-us-links{
        width:90%;
        margin-left: 5%; 
        font-size: 1rem;
        text-align: center;
        bottom: 1%;
    }
    #follow-us-links p{
        display: inline-block;
        margin-left:5px;
        margin-right:5px;
    }
    #background-fire{
        display: none;
    }
    .footer{
        height: auto;
        padding:1em auto;
        flex-wrap: wrap;
        justify-content:center;
        font-size: 0.65em;
    }
    .footer-cell{
        flex-basis: 33%;
        padding: 0.2em;
    }
    .footer, .copyright{
        /* font-size: 0.4rem; */
    }


}
@media(max-width: 500px){
    .footer {
        justify-content: space-between;
        
    }
    .footer div:nth-child(4){
        flex-basis: 50%;
    }
    .footer div:nth-child(5){
        flex-basis: 50%;
    }
}

/* screen sizes 400px and down */
@media(max-width: 400px){
    #pocetna{
        background-position: 100% 100%;
    }
    #languages{
        width:200px;
    }
    #header-text h1{
        margin-top:50px;
    }
    #info{
        font-size: 0.8rem;
        bottom: 9%;
    }
    #info p:last-child{
        font-size: 0.7rem;
    }
    #follow-us-links{
        bottom: 5%;
    }
    #background-fire{
        display: none;
    }
    .footer, .copyright{
        height: auto;
        font-size: 1rem;
    }
    .footer-cell{
        flex-basis: 100%;
    }
    .footer {
    justify-content: space-around;
        
    }
    .footer div:nth-child(4){
        flex-basis: 100%;
    }
    .footer div:nth-child(5){
        flex-basis: 100%;
    }
}


@media (max-aspect-ratio: 8/5) {
    #jelovnik .section-heading h3, #text-about .section-heading h4{ 
        font-size:8vw;
    }
    #images-about{
        width: 80%;
        margin-left: 10%;
        display: block; float:none;
        position: relative;
    }
    #text-about{
        width: 80%;
        display: block;
        margin-left:10%;
        text-align: center;
    }
    #background-fire{
        background-position: 50% 35%;
        height: auto;
        background-size: cover;
        background-repeat:no-repeat;
    }
}

@media (max-aspect-ratio: 1/1){
    #menu-bar a {
        margin-right: 20px;
    }
    #jelovnik .section-heading, #text-about .section-heading{
        padding-top: 1em;
        text-align: center;
        padding-left: 0;    
    }
    #jelovnik a img, #text-about a img{
        width: auto;
        height: 10vw;
    }
    #header-text h1{
        margin-top:13%;
        font-size: 1.5rem;
        line-height: 2rem;
    }
    #logo a img{
        width: 35vw;
        height: auto;
    }

}

@media (max-width: 330px) {
    #header-text h1{
        font-size: 1.3rem;
        line-height: 1.5rem;
    }
    /* #info p:last-child{
        font-size: 0.7rem;
    } */
}