@font-face {
    font-family: 'material symbols outlined';
    src: url(fonts/icon.ttf) format('truetype');
}

@font-face {
    font-family: 'Josefin';
    src: url(fonts/Josefin.ttf) format('truetype');
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-size: 14px;
}

.icon {
    font-family: material symbols outlined;
    font-size: 1.5rem;
    padding: 0.2rem 0.4rem;
    font-variation-settings:
        'FILL' 1
}

img {
    max-width: 100%;
    margin: auto;
}

li {
    list-style-type: none;
}

button {
    border: none;
    background-color: #ffffff;
}

body {
    font-family: "Josefin", sans-serif;
}

.noneM,
.SL .noneD,
.add.noneM,
.vegetable .noneM {
    display: none
}


/* FLEX */
header,
nav,
nav div,
nav div p,
nav ul,
nav li,
.SS,
main,
.principal,
.order,
.price,
.buy,
.qty,
.buy a,
.aside,
.add,
.scroll,
.bubble,
.bubble ul,
.salad,
.salad .desS,
.desS p,
.desS ul {
    display: flex;
}

#mobNav,
main,
.principal,
.order,
.bubble,
.bubble ul,
.salad,
.salad .desS {
    flex-direction: column;
}

nav,
nav div,
nav div p,
nav ul,
nav li,
.salad {
    align-items: center;
}


/* ROUNDED */
.sign,
.log,
.qty,
.buy,
.buy a,
.buyI,
.bubble,
.bubble .img,
.salad .desS,
.salad .desS ul,
.salad .desS p {
    border-radius: 3rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
}

.qty,
.add,
.salad .imgS {
    justify-content: center;
    align-items: center;
}

header,
.buy div,
.desS ul {
    justify-content: space-between;
    align-items: center;
}

/* SIZE */
nav,
nav .SL,
.principal,
.buy,
.buy a,
.order,
.add,
.bubble,
.scroll,
.desS ul {
    gap: 1rem
}


.principal p {
    font-size: 1.2rem;
}

H4,
H5,
.buyI,
.buy .qty p {
    font-size: 2.6rem;
}

H3,
H4 {
    font-weight: 300;
}

H6 {
    font-size: 1rem;
}

/* COLOR & SHADOW */

header,
#mobNav {
    background-color: #ffffff;
    box-shadow: 2px 2px 8px #00000060;
}

.log,
.notif,
.buyI,
.salad .desS {
    background-color: #F48F1D;
}

.buy a,
.desS p {
    background-color: #000000;
}

#mobNav,
.order p {
    color: #00000080;
}

.notif,
.buy a,
.salad .desS {
    color: #ffffff;
}

/* HEADER */
header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    height: 4rem;
    padding: 0 1rem;
    z-index: 4;
}

nav {
    flex-direction: row-reverse;
}

#mobNav {
    display: none;
    position: fixed;
    align-items: flex-end;
    top: 4rem;
    right: 1rem;
    width: calc(100vw - 6rem);
    padding: 0 2rem;
    z-index: 3;
}

#mobNav .active {
    font-weight: 900;
    color: #000000;
}

#mobNav li {
    justify-content: flex-end;
    height: 5rem;
    width: 100%;
    border-block-start: 1px solid #00000040;
}

.notif {
    vertical-align: super;
    border-radius: 1rem;
    font-size: 0.6rem;
    position: relative;
    left: -0.5rem;
    top: -0.5rem;
    padding: 0.2rem;
    margin: 0;
}


.sign {
    border: 2px solid #000000;
}


/* MAIN */
/*M order */

main {
    padding: 2rem 1rem
}

H2 {
    font-size: 4em;
}

H3 {
    font-size: 3.5rem;
}

.qty {
    border: 1px solid #F48F1D;
}

.qty p {
    padding: 0 2rem;
    color: #F48F1D;
    border-right: 1px solid #00000080;
    border-left: 1px solid #00000080
}

.buy a {
    justify-content: flex-start;
    width: 60%;
    font-size: 1.5rem;
    box-shadow: 2px 6px 20px #00000060;
}

.buyI {
    padding: 0.5rem 0.8rem;
}

/*ADD */

.add {
    width: 100%;
    overflow-y: scroll;
}

.addP::before {
    content: "$ ";
    font-size: 0.8rem;
    color: #bf1689;
}

.add button {
    box-shadow: 2px 2px 8px #00000060;
    border-radius: 3rem;
    height: 2rem;
    width: 2rem;
}

.scroll {
    overflow-y: hidden;
    width: calc(100% - 7rem);
    padding: 1rem 0;
}

.bubble {
    justify-content: flex-start;
    text-align: center;
    padding: 0.5rem 0.5rem 1rem;
    font: 0.9rem;
    white-space: nowrap;
}

.bubble ul {
    gap: 0.5rem;
}

.bubble .img {
    min-width: 50px;
    background-color: #ffffff;
}

.bubble.burger {
    background-color: #E2FFC3;
}

.bubble.coffee {
    background-color: #FEE1ED;
}

.bubble.donuts {
    background-color: #FCE5CD;
}

/*M aside */

.salad {
    margin-bottom: -13rem;
    flex: 2.2;
}

.salad .imgS {
    z-index: 2;
    flex: 1;
}

.salad .desS {
    padding: 11rem 2rem 1rem;
    position: relative;
    top: -13rem;
    z-index: 1;
}

.desS ul {
    font-size: 2rem;
}

.desS p {
    width: 100%;
}

footer {
    padding: 2rem;
}


/* ORDI */
@media (min-width:768px) {
    html {
        font-size: 16px;
    }

    body {
        background-image: url("./img/Mask.svg");
        background-position-y: 0%;
        background-position-x: 100%;
        background-repeat: no-repeat;
        background-size: 45%;
        max-width: 1300Px;
        margin: auto;
    }

    .noneD {
        display: none
    }

    .noneM,
    .SL .noneD,
    .add.noneM,
    #mobNav {
        display: flex
    }

    header {
        position: static;
        background: none;
        box-shadow: none;
        margin: auto;
        width: 90%;
        gap: 5vw;
        justify-content: flex-start
    }

    #mobNav {
        flex-direction: row;
        position: static;
        align-items: flex-start;
        box-shadow: none;
        width: fit-content;
        padding: 0;
    }

    #mobNav li {
        border: none;
        padding: 0;

    }

    nav {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 7.5vw;
    }

    nav .icon {
        padding: 0;
    }


    .SL p {
        padding: 0 1.2rem 0 0.8rem;
    }

    .sign {
        border: 2px solid #ffffff;
        color: #ffffff;
    }

    nav ul,
    nav .SL,
    .buy {
        gap: 2rem
    }


    /* MAIN */
    main {
        flex-direction: row;
        padding: 2rem 0 0 5%;
    }

    .principal {
        width: 40%;
    }

    H2 {
        font-size: 5.5rem;
    }

    H3 {
        font-size: 4.5rem;
        font-weight: 300;
    }

    .principal p {
        font-size: 1.3rem;
    }

    H5 {
        font-size: 3.5rem;
        font-weight: 500;
    }

    H4 {
        font-size: 3.5rem;
        font-weight: 300;
    }

    .buy a {
        font-size: 2rem;
    }

    .scroll {
        width: calc(380px - 6rem)
    }

    .aside {
        width: 60%;
        justify-content: center;
        align-items: flex-start;
    }

    .salad .desS {
        padding: 9rem 2rem 1rem;
        top: -10rem;
    }

    .vegetable {
        flex: 1;
        position: relative;
        left: -3rem;
        justify-content: flex-start;
        align-items: center;
    }

}