@import "utils/colors.css";
@import "hero.css";
@import "footer.css";

html {
    overflow: hidden;
}
body {
    height: 100vh;
    /*overflow-y: hidden;*/
    touch-action: manipulation;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}
section {
    /*overflow-y: scroll;
    height: 100vh;*/
    scroll-snap-align: start;
}

.row {
    width: 100%;
    min-height: 40px;
}
ul {
    list-style: none;
}
#menu {
    display: flex;
    --width-division: min(40vw, 100vh);
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

@media (orientation: portrait) {
    #menu {
        --width-division: min(40vh, 100vw);
    }
}
#Adivision, #Bdivision, #Cdivision {
    background-color: #0a0a16;
    position: relative;
    display: flex;
    max-height: 100vh;
    max-height: 100dvh;
}

#Cdivision {
    background-color: blue;
}

#Adivision, #Cdivision {
    /*transition: margin 300ms;*/
    align-items: center;
    justify-content: start;
    overflow: hidden;
    --gutter-x: 1.5rem;
    --gutter-y: 0;
    flex: 0 0 var(--width-division);
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    background-color: #0a0a16;
    transition:
            flex-basis 300ms ease,
            transform 300ms ease,
            margin-left 300ms ease;
}
/*
#Adivision img, #Cdivision img{
    padding: 1rem;
    display: block;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}*/
#Adivision {
    margin-left: calc(-1 * var(--width-division));
    /*transform: translateX(-100%);*/
}
#Bdivision {
    flex: 1 1 auto;
    min-width: 0;
    color: #b9a144
    /*transition: flex 300ms ease;*/
}
#Cdivision {
    margin-right: calc(-1 * var(--width-division));
}

#menu.left #Adivision {
    /*margin-left: 0;*/
    /*flex-basis: var(--width-division);
    transform: translateX(0);*/
    margin-left: 0;
}
#menu.right #Cdivision {
    margin-right: 0;
}



#selectCourse {
    position: absolute;
    bottom: 0;
    /*min-width: max-content;*/
    background-color: #2b2b2b;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    min-width: 40%;
    text-align: center;
    z-index: 2;
}
#selectCourse span {
    padding: 0.5rem 2.5rem;

}

#listCourse {
    margin: auto;
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 1rem;
    overflow-y: scroll;
    max-height: 100%;
    justify-content: space-around;
}
#listCourse > .listElement {
    min-width: 40vw;
    max-width: 40vw;
    width: 30vw;
    /*width: max-content;*/
    /*padding: 0.4rem 0.8rem;*/
    margin: 10px 1.5vw;
    /*background-color: gray;*/
    display: flex;
    flex-direction: column;
    align-items: start;
    word-wrap: anywhere;
}
.allergens-icons.active {
    color: #0b5ed7;
}
h4.titleElement {
    font-size: 0.8rem;
    width: 100%;
    border-bottom: 1px dashed #ccc;
    padding: 0 0 0.4rem 0;
}
.priceElement {
    margin-left: 0.2rem;
    float: right;
}
.defaultIngredients {
    padding: 0.4rem 0 0 0.4rem;
    width: 100%;
    font-size: 0.7rem;
    color: white;
}
.priceElement::after {
    content: "\20AC";;
}
#menu.left #listCourse > .listElement, #menu.right #listCourse > .listElement {
    max-width: 80%;
}

.rightLeft, .leftRight {
    position: absolute;
    top: 0;
    height: 100%;
    padding: 1rem 0.5rem;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    font-weight: bolder;

}

.rightLeft {
    right: 0;
}
.rightLeft::before {
    content: "<";
}
.leftRight::before {
    content: ">";
}
.leftRight {
    left: 0;
}
/*#menu.courses .leftRight, #menu.courses .rightLeft {
    display: none;
}
#menu.left .leftRight {
    display: none;
}
#menu.right .rightLeft {
    display: none;
}*/
#menu.left .leftRight::before {
    content: "<";
}
#menu.left .rightLeft {
    display: none;
}
#menu.right .rightLeft::before {
    content: ">";
}
#menu.right .leftRight {
    display: none;
}

.dishFigure {
    position: relative;
}
.allergensList {
    /*font-size: 2rem;
    justify-content: space-evenly;
    display: flex;
    margin: 0.5rem 0;
    */
    font-size: 2rem;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    container-type: size;
}
.allergensList .allergens-icons:nth-child(1) {
    --rotate: calc(27.7deg);
}
.allergensList .allergens-icons:nth-child(2) {
    --rotate: calc(2 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(3) {
    --rotate: calc(3 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(4) {
    --rotate: calc(4 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(5) {
    --rotate: calc(5 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(6) {
    --rotate: calc(6 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(7) {
    --rotate: calc(7 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(8) {
    --rotate: calc(8 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(9) {
    --rotate: calc(9 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(10) {
    --rotate: calc(10 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(11) {
    --rotate: calc(11 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(12) {
    --rotate: calc(12 * 27.7deg);
}
.allergensList .allergens-icons:nth-child(13) {
    --rotate: calc(13 * 27.7deg);
}

.allergensList .allergens-icons {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) rotate(var(--rotate)) translate(calc(40cqw)) rotate(calc(-1 * var(--rotate)));
    /*z-index: 100;*/
    color: gray;
}
.allergensList .allergens-icons.active {
    color: #d8c872;
}
.dishFigure {
    /*display: flex;
    flex-direction: column;
    align-items: center;*/
    gap: .75rem;
    margin: 1.5rem;
    width: max-content;
    max-width: 90%;
}

.dishFigure img {
    display: block;
    width: 100%;
    max-width: 350px;      /* oppure 100% */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.dishFigure figcaption {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}
#menuCourses {
    position: absolute;
    display: none;
    height: 100vh;
    width: 100vw;

    z-index: 5;
    justify-content: center;
    align-items: center;
    /*background-color: rgba(125,125,125,0.8);*/
}
#menuCourses .categoriesList {
    display: none;
}
#menuCourses.categories .coursesList {
    display: none;
}
#menuCourses.categories .categoriesList {
    display: grid;
}

#menuCourses .backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#menu.left #menuCourses, #menu.right #menuCourses {
    background-color: #c0ccca22;/*#128CFC;*/
    width: var(--width-division);
}
#menu.courses #menuCourses {
    display: flex;
}
#menu.left #menuCourses {
    left: 0;
    top: 0;
    transform: none;
    height: 100vh;
}
#menu.right #menuCourses {
    left: unset;
    right: 0;
    top: 0;
    transform: none;
    height: 100vh;
}

.dishInfo {
    position: absolute;
    bottom: 0;
    /*background-color: black;*/
    width: 100%;
    display: flex;
    flex-direction: column;
    color: ghostwhite;
    padding: 0 1rem;
}

.dishInfo .dishName {
    color: hsl(50 60 40);
}
#menu .dishInfo p {
    display: none;
}
#menu.info .dishInfo p {
    display: unset;
}
.dishName {
    padding: 0.5rem;
}
.preferences {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}
#menu.info .dishInfo {
    position: unset;
    flex: 1;
}
#menu.info .dishFigure {
    display: none;
}
#menu.info .preferences {
    max-height: unset;
    flex: 1 1 0;
    margin-bottom: 2rem;
    overflow-y: scroll;
}
.dishInfo select {
    width: 100%;
}
.items {
    position: relative;
    display: flex;
    max-height: 80vh;
    max-height: 80dvh;
    flex-direction: column;
    background-color: #1f1f1f;
    /*max-*/width: 80%;
    /*background: #fffffe;*/
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    border-top: 10px solid #0B5AA2;
    z-index: 2;
    font-weight: bolder;
    color: whitesmoke;
}

.items-head p {
    padding: 5px 20px;
    margin: 10px;
    color: #0B5AA2;
    font-weight: bold;
    font-size: 20px;
    text-transform: capitalize;
}

#menuCourses.categories .items-head p::after {
    content: "\f105";
    position: absolute;
    right: 15px;
    font-size: 24px;
    color: #0B5AA2;
    transform: rotateZ(90deg);
    font-family: 'Font Awesome 5 Free';

}
.items-head hr {
    width: 20%;
    margin: 0px 30px;
    border: 1px solid #0B5AA2;
}

.items-body {
    padding: 10px;
    margin: 10px;
    /*display: grid;
    grid-gap: 10px;*/
    max-height: 100%;
    overflow-y: scroll;
}

.items-body-content {
    padding: 10px;
    padding-right: 0px;
    display: grid;
    grid-template-columns: 10fr 1fr;
    font-size: 13px;
    grid-gap: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}
/* .items-body-content:hover, */
.items-body-content.active {
    border-radius: 15px;
    border: 1px solid #0B5AA2;
}

.items-body-content i {
    align-self: center;
    float: right;
    font-size: 15px;
    color: #0B5AA2;
    font-weight: bold;
    animation: icon 1.5s infinite forwards;
}

@keyframes icon {
    0%, 100% {
        transform: translate(0px);
    }
    50% {
        transform: translate(3px);
    }
}

@media (orientation: portrait) {
    #menu {
        flex-direction: column;
    }
    #menu.info .dishFigure {
        display: unset;
    }
    #Cdivision {
        display: none;
    }
    #Adivision {
        margin-left: 0;
        overflow: unset;
        flex-flow: column-reverse;
    }
    .rightLeft, .leftRight {
        display: none;
    }
    .dishInfo {
        position: absolute;
        background: black;
        bottom: unset;
        border-bottom: 2px solid var(--light);
        /*height: calc(2rem + var(--width-division));*/
        flex: unset;
    }
    #menu.info .dishInfo {
        top: 0;
        flex: unset;
        height: 100%;
        position: absolute;
    }
    .dishFigure {
        padding: 0;
        margin-top: 2.5rem;
    }
    .dishFigure img {
        max-width: 35vh;
    }
    .allergensList {
        margin-top: 0;
    }
    #Bdivision {
        overflow-y: scroll;
        flex-direction: column;
    }
    #selectCourse {
        position: unset;
        transform: unset;
        border-radius: unset;
    }
    #selectCourse {
        background-color: unset;
        margin: 0.5rem 0;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
    }
    #selectCourse::after, #selectCourse::before {
        display: block;
        content: '';
        flex: 1;
        height: 2px;
        margin: 4px;
        background-color: black;
    }
    #selectCourse span {
        background-color: #2b2b2b;
        text-transform: uppercase;
    }
    #menu #menuCourses {
        height: 100vh;
        width: 100vw!important;
        z-index: 3;
        background: none!important;

    }
    #menu #menuCourses .backdrop {
        display: unset!important;
    }
}

.menu-dish {
    position: relative;
}
.menu-dish > img.ciboimg {
    /*width: 70%;
    height: 70%;*/
    width: 70%;
    height: 70%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    clip-path: circle(50%);
}


/* Gallery */

#gallery-begin/*, #gallery-end*/ {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: transparent;
}
/*#gallery-end {
    bottom: 0;
}*/
#gallery-begin {
    top: 0px;
}
section#gallery {
    max-width: 100vw;
}
section#gallery > div.content {
    display: flex;
    justify-content: center;
    min-height: 25rem;
    padding: 2rem 0;
    flex-direction: column;
}
.images {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    align-items: stretch;
    justify-content: space-around;
    margin: auto;
    row-gap: 30px;
}
.images > .galleryItem {
    min-width: 200px;
    min-height: 200px;
    max-width: 300px;
    max-height: 300px;
    flex: 1 1 auto;
    margin: 0.3em;
    position: relative;
}
.images > .galleryItem img {
    max-width: 100%;
    max-height: 100%;
}


.preferences > .row {
    flex-wrap: wrap;
    margin-bottom: 10px;
    text-transform: uppercase;
    justify-content: space-between;
    gap: 10px;
    color: whitesmoke;
}
.preferences > .row.check > div {
    margin-right: 30px;
}
.preferences input[type="checkbox"]{
    display: none;
}
.preferences label {
    display: block;
    text-transform: uppercase;
    width: 100%;
    position: relative;
    padding-left: 2rem;
}
.preferences label::before {
    position: absolute;
    left: 0;
    font-family: "Font Awesome 5 Free";
    display: inline;
    font-weight: 900;
    content: "\f00d";
}
.preferences input[type="checkbox"]:checked + label::before {
    content: "\f00c";
}
.preferences select {
    text-transform: uppercase;
    border: 2.6px solid;
    padding: 0.4rem;
    background: none;
    color: whitesmoke;
    width: 100%;
}