
/* header top bar css *************************************************************************/
/* change default header and search bar styling for the page */
/* static header */
header{
    position: static;
}

/* we remove the box shadow's search-bar in the header */
#search-bar{
    box-shadow: unset;
    border: 1px solid var(--lighter_warm_gray);
}

@media only screen and (max-width: 900px) {
    #search-bar{
        display: none;    
    }      
}



/* photos section css **************************************************************************/

#photos-section .wrraper{
    margin-top: 50px;
    display: flex;
    gap: 20px;
    height: 400px ;
    width: 1200px;
}

#photos-section .wrraper > div:nth-of-type(2), #photos-section .wrraper > div:last-of-type{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

#photos-section .main-displayed-image{
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow:  0px 4px 10px 4px rgba(0, 0, 0, 0.10);
    cursor: pointer;
}

#photos-section .wrraper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#photos-section .main-displayed-image span{
    position: absolute;
    color: white;
    font-size: 1.1em;
    white-space: nowrap;
}

#photos-section .wrraper > div:first-of-type{
    flex: 3;
}

#first-restaurant-card-image-container{
    height: 400px;
    position: relative;
}

#first-restaurant-card-image-container  span{
    top: 90%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding: 5px 13px;
    background-color: #0000007a;
    border-radius: 16px;
}

#photos-section .wrraper > div:nth-of-type(2){
    flex: 2;
}

#photos-section .wrraper > div:nth-of-type(2) > div:last-child {
    display: flex;
    justify-content: space-between;
    gap: 2%;
}

#second-restaurant-card-image-container, 
#fifth-restaurant-card-image-container, 
#sixth-restaurant-card-image-container{
    height: 190px; 
}

#third-restaurant-card-image-container, #fourth-restaurant-card-image-container{
    width: 48%;
    height: 190px;
}

#photos-section .wrraper > div:last-of-type{
    flex: 1;
}

#sixth-restaurant-card-image-container{
    position: relative;
}

#sixth-restaurant-card-image-container img{
    filter: brightness(0.5) blur(1px);
}

#sixth-restaurant-card-image-container span{
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);

}


@media only screen and (max-width: 900px) {

    #photos-section .wrraper > div:first-of-type{
        flex: 2;
    }

    #photos-section .wrraper > div:nth-of-type(2){
        display: none;
    }
    
    #photos-section .wrraper{
        height: 300px ;
    }

    #photos-section .main-displayed-image span{
        font-size: 1em;
    }

    #first-restaurant-card-image-container{
        height: 300px;
    }
 
    #fifth-restaurant-card-image-container, 
    #sixth-restaurant-card-image-container{
        height: 140px; 
    }

}



/*restaurant gallery section **********************************************************************/

.gallery{
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0px;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.90);

    display : none;
    align-items: center;
}

.close-gallery-button{
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 1.5em;
    color: gray;
    background-color: var(--Light_beige);
    cursor: pointer;
}

.close-gallery-button:hover{
    background-color: var(--warm_light_gray);
}

.gallery-container{
    display : flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 30px;
    width: 100%;
}

.gallery-container .swiper-button{
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--Light_beige);
}

.gallery-container .swiper-button:hover{
    background-color: var(--warm_light_gray);
}

.gallery-container span{
    padding: 10px 8px;
    font-size: 1.5em;
    color: gray;
}

.gallery-container .swiper-wrraper{
    overflow: hidden;    
}

.gallery-container .swiper-container{
    display: flex;
    transition: transform 0.3s ease-in-out;
    will-change: transform; 
    align-items: center;   
}

.gallery-container .gallery-image-container{
    width: 100%;
    height: 80vh;
    flex-shrink: 0;
    text-align: center;
    overflow: hidden;
}

.gallery-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media only screen and (max-width: 700px) {

    .gallery-container .swiper-button{
        display: none;
    }

    html, body {
        margin: 0;
        /* height: 100%;
        overflow: hidden */
    }
}



/*restaurant details section *******************************************************************/

#restaurant-details .wrraper{
    width: 1200px;
    margin-top: 50px;
    display: flex;
    /*overflow that the time slots may cause*/
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}


/* main **************************************************/

#restaurant-details main{
    width: 63%;
    margin-right: 4%;
}

/* general info division ------------------- */

#general-infos > div:first-child{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#general-infos > div:first-child img{
    height: 45px;
}

#general-infos > div:first-child button{
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

#general-infos li{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#general-infos ul li div:first-child{
    margin-right: 10px;
}

#general-infos li img{
    height: 30px;
}

#general-infos p{
    margin: 7px 0px;
    font-size: 1.05em;
}

#restaurant-details aside{
    width: 33%;
}

#detailed-infos{
    margin-top: 55px;
}

#detailed-infos nav{
    padding: 7px 0px;
    border-bottom: 1px solid var(--gray);
    background-color: white;
    position: sticky;
    top: 0px;
    z-index: 3;
}

#detailed-infos nav ul{
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

#detailed-infos nav a{
    padding: 10px 0px;
    border: 2px solid var(--lighter_warm_gray);
    border-radius: 5px;
    display: inline-block;
    width: 100px;
    text-align: center;
}

#detailed-infos nav a:hover{
    color: var(--red);
    border: 2px solid var(--red);
}

/* about division --------------------------*/

#about p{
    margin: 30px 0px;
    line-height: 25px;
}

#map {
    height: 300px;
    border-radius: 5px;
    z-index: 2;
}

#about address{
    display: flex;
    align-items: center;
    text-indent: 10px;
    margin: 15px 0px;
}

#about address img{
    height: 30px;
}

#about ul{
    margin:50px 0px;
    border: 1px solid var(--warm_light_gray);
    border-radius: 20px;
}

#about ul li{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--warm_light_gray);
}

#about ul li:last-of-type{
    border-bottom: none;
}

#about ul li img{
    height: 35px;
    padding: 25px;
}

#about ul li p, #about ul li h1{
    margin: 15px 0px;
    font-size: 1em;
}

#more-details h2{
    font-size: 1.1em;
}

#more-details > div{
    border: 1px solid var(--warm_light_gray);
    border-radius: 20px;
}

#more-details > div > div{
    margin: 25px 30px;
}

#more-details > div > div h3{
    font-size: 1.1em;
}

/*menu division -------------------------*/

#menu {
    margin-top: 80px;
}

#menu h1{
    font-size: 2em;
}

#menu-photos h2{
    font-size: 1.4em;
}

#menu-photos > div{
    display: flex;
    margin-top: 60px;
    gap: 20%;
}

#menu-photos > div > div{
    width: 40%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

#menu-photos > div > div> img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#menu-photos > div > div > img.menu-see-more{
    filter: brightness(0.5) blur(1px);
}

#menu-photos > div > div:last-of-type span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    font-size: 1.1em;
    white-space: nowrap;
}

#menu-content{
    margin-top: 20px;
}

#menu-content .menu-section{
    padding: 30px 0px;
    border-bottom: 1px solid var(--gray);
}

#menu-content .menu-section h1{
    font-size: 1.4em;
}

#menu-content .menu-section li{
    display: flex;
    justify-content: space-between;
}

#menu-content .menu-section li p:nth-child(2){
    color: var(--gray);
}

#menu-content .menu-section li p.dish-price{
    white-space: nowrap;;
}

#menu-content li.hidden{
    display: none;
}

#view-more, #leave-review{
    padding: 15px;
    text-align: center;
}

#view-more button, #leave-review a{
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--red);
    color: var(--red);
    background-color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

#view-more button:hover, #leave-review a:hover{
    color: white;
    background-color: var(--red);
}

/*review division -------------------------*/

#reviews{
    margin-top: 50px;
}

#rating{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 35px 0px;
    font-size: 1.1em;
}

/*meter gauge css*/
#rating meter {
    --background: #dadada;
    --optimum: forestgreen;
    --sub-optimum: gold;
    --sub-sub-optimum: crimson;
  
    /* The gray background in Firefox */
    background: var(--background);
    display: inline-block;
    width: 80%;
    border-radius: 10px;
    height: 11px;
}
  
/* The gray background in Chrome, etc. */
meter::-webkit-meter-bar {
    background: var(--background);
}
  
/* (edited) i think gollden yellow is the best for all cases */
/* The green (optimum) bar in Firefox */
meter:-moz-meter-optimum::-moz-meter-bar {
    background: var(--golden_yellow);
}
  
/* The green (optimum) bar in Chrome etc. */
meter::-webkit-meter-optimum-value {
    background: var(--golden_yellow);
}
  
/* The yellow (sub-optimum) bar in Firefox */
meter:-moz-meter-sub-optimum::-moz-meter-bar {
    background: var(--golden_yellow);
}
  
/* The yellow (sub-optimum) bar in Chrome etc. */
meter::-webkit-meter-suboptimum-value {
    background: var(--golden_yellow);
}
  
/* The red (even less good) bar in Firefox */
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
    background: var(--golden_yellow);
}
  
/* The red (even less good) bar in Chrome etc. */
meter::-webkit-meter-even-less-good-value {
    background: var(--golden_yellow);
}


#rating div:first-child{
    width: 30%;
    text-align: center;
    background-color: #eeeeee;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.10);
}

#rating > div:first-child h1{
    margin: 20px 0px;
    font-size: 3em;
}

#rating > div:last-child{
    width: 65%;
    text-align: center;
    display: flex;
    justify-content: end;
}

#rating > div:last-child table{
    width: 80%;
}

#rating td{
    padding: 10px 0px;
}

#rating tr td:nth-of-type(2) {
    width: 70%;
    padding: 10px 0px;
}

#rating > #no-rating-msg{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    width: 100%;
}

#rating > #no-rating-msg p{
    margin: 50px;
    font-size: 1.1em;
    color: var(--gray);
}

#review-list{
    margin-top: 50px;
}  

#review-list li{
    padding: 30px 0px;
    border-bottom: 1px solid var(--gray);
}

#review-list li > div:first-child{
    display: flex;
    justify-content: space-between;
    align-items: center;
} 

#review-list .reviewer{
    display: flex;
    justify-content: space-between;
}  
#review-list .reviewer + div{
    font-weight: bold;
}  

#review-list .reviewer > div:first-child{
    height: 60px;
}  

#review-list .reviewer div:first-child{
    display: flex;
}

#review-list .reviewer p{
    margin:5px;
}

#review-list .reviewer small{
    font-size: 0.85em;
    color: gray;
}

#review-list .reviewer img{
    height: 50px;
    padding-right: 5px;
}

#review-list li > p{
    margin: 20px 0px 30px 60px;
} 

#review-list li > div:last-child{
    text-align: end;
} 

#review-list li > div:last-child a{
    color: var(--red);
    font-weight: bold;
    font-size: 0.9em;
} 

#pagination{
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

#step-links{
    display: flex;
    align-items: center;
}

#step-links div{
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--lighter_warm_gray);
}

#step-links .current{
    background-color: var(--red);
}

#step-links .current:hover{
    background-color: var(--hover_red);
}

#step-links a{
    padding: 10px 8px;
    font-size: 1.2em;
    color: gray;
}

#step-links span{
    padding: 10px 15px;
    font-size: 1.2em;
    color: white;
}

#step-links div:hover{
    background-color: var(--warm_light_gray);
}



/* aside form reservation ***********************************/

aside > div{
    box-shadow: 0px 0px 5px 4px var(--lighter_warm_gray);
    border-radius: 5px;
    position:sticky;
    top: 20px;
    max-height: 100vh;
    overflow-y: auto;
    margin-top: 20px;
}

#form-header h1{
    text-align: center;
    background-color: var(--Light_beige);
    padding: 25px;
    margin-top: 0px;
    margin-bottom: 7px;
    border-radius: 5px 5px 0px 0px;
    font-size: 1.4em;
}

#form-header .close-button{
    display: inline-block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translate(0, -50%);
    display: none;
}

#form-header .close-button img{
    width: 28px;
}

aside form{
    padding: 15px;
}

aside .form-field{
    display: flex;
    align-items: center;
    background-color: var(--lighter_warm_gray);
    border-radius: 5px;
    margin-bottom: 15px;
}

aside .form-field img{
    height: 45px;
    margin: 0px 5px;
}

aside .form-field input, aside .form-field select{
    background-color: var(--Light_beige);
    width: 100%;
    padding: 20px 0px;
    padding-left: 18px;
    font-size: 1em;
    border: none;
    border-radius: 0px 5px 5px 0px;
    cursor: pointer;
}

aside .form-field input[type="date"]{
    font-size: 1.25em;
}

aside .form-field input::placeholder {
    color: black;
    opacity: 1; /* Firefox */
}

aside .form-field input::-ms-input-placeholder { /* Edge 12 -18 */
    color: black;
}

aside form h1{
    font-size: 1.15em;
    font-weight: normal;
}

aside form h2{
    font-size: 1em;
    font-weight: normal;
    color: var(--gray);
}

.service-time-slots{
    overflow-x: auto;
    white-space: nowrap;
}

.time-box{
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin: 0px 10px 10px 0px;
    padding: 10px 20px;
    color: white;
    background-color: var(--red);
    cursor: pointer;
}

.time-box:hover{
    background-color: var(--orange);
}

.not-available-time-box {
    display: inline-block;
    border: 2px solid var(--red);
    border-radius: 5px;
    padding: 10px 20px;
    color: var(--red);
    background-color: white;
}

.promo{
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translate(-50%, +50%);
    display: inline-block;
    padding: 1px 10px;
    background-color: #FFB732;
    font-size: 0.7em;
    border-radius: 20px;
}

#form-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 0px;
}

#form-footer button{
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    background-color: var(--red);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
}

#form-footer button:hover{
    background-color: var(--hover_red);
}


@media only screen and (max-width: 900px) {

    #restaurant-details .wrraper {
        display: flex;
        flex-wrap: wrap;
    }

    #restaurant-details main {
        width: 100%;
        margin-right: 4%;
    }

    #restaurant-details aside > div{
        background-color: white;
        position: fixed;
        top: unset;
        left: 0px;
        bottom: 0px;
        box-sizing: border-box;
        width: 100%;
        z-index: 4;
        border-radius: 30px 30px 0px 0px;
        /* scrollbar-width: none; */
        max-height: 100vh;
        padding: 0px;
        box-shadow: 0px 4px 10px 4px rgba(0, 0, 0, 0.3);
        transform: translateY(calc(100% - 75px));
        transition: transform 0.3s ease;
    }

    #restaurant-details aside > div.open{
        transform: translateY(0);
    }

    #form-header{
        position: sticky;
        top: 0px;
        color: var(--red);
        display: block;
        z-index: 1;
    }

    #form-header .close-button{
        display: none;
    }

    #restaurant-details aside > div.open .close-button{
        display: block;
    }

    /* cover when click botton*/
    #cover{
        display: none;
    }
        
}

@media only screen and (max-width: 600px) {

    #general-infos h1{
        font-size: 1.6em;
    }

    #rating {
        flex-wrap: wrap;
    }

    #rating div:first-child{
        width: 70%;
        margin-bottom: 50px;
    }
          
    #rating div:last-child{
        width: 90%;
        text-align: center;
        justify-content: center;
        background-color: #eeeeee;
        border-radius: 5px;
        box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.10);
    }

    #rating div:last-child table{
        width: 100%;
    }
        
}
