@import url('https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
    --body-bgColor: #EEE;
    --darkBlue: #388BC5;
    --extraDarkblue: #24587d;
    --lightBlue: #a9dcff;
    --cart-bgColor: #9ccbe6;
    --cartButton-bgColor: #48d05f;
    --cartButton-borderColor: #63f77c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 15px;
    font-family: 'Lato', Helvetica, sans-serif;
    background-color: var(--body-bgColor);
    min-height: 100vh;
    display: flex;
}

.models {
    display: none;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 60px;
    background-color: var(--darkBlue);
    display: none;
    justify-content: flex-end;
    align-items: center;
}

.menu-opener {
    font-size: 26px;
    padding: 5px 20px;
    margin-right: 15px;
    border-radius: 5px;
    display: inline-block;
    background-color: var(--lightBlue);
}

.menu-opener span {
    margin-right: 10px;
}

main {
    flex: 1;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

h1 {
    font-family: 'Hepta Slab', Helvetica, serif;
    margin: 20px 0;
}

.pizza-item {
    flex: 1;
    text-align: center;
    max-width: 250px;
    font-family: 'Hepta Slab', Helvetica, serif;
    margin: auto;
    margin-bottom: 50px;
}

.pizza-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.pizza-item--img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0px 10px 50px #BBB;
}

.pizza-item--add {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border-radius: 50%;
    background-color: var(--darkBlue);
    color: #FFF;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pizza-item a:hover .pizza-item--add {
    background-color: var(--extraDarkblue);
}

.pizza-item--img img {
    width: 100%;
    height: auto;
}

.pizza-item--price {
    color: #555;
    margin: 5px 0;
}

.pizza-item--name {
    font-size: 20px;
    font-weight: 600;
}

.pizza-item--desc {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}


aside {
    width: 0vw;
    background-color: var(--cart-bgColor);
    font-family: 'Hepta Slab', Helvetica, serif;
    overflow-x: hidden;
    transition: all .2s ease;
}

aside.show {
    width: 30vw;
}

.cart {
    margin-bottom: 20px;
}

.cart--area {
    padding: 20px;
}

.menu-closer {
    display: none;
    font-size: 25px;
}

.cart--item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pizzaIcon {
    width: 40px;
    height: 40px;
}

.pizzaIcon img {
    width: 100%;
}

.cart--itemName {
    flex: 1;
    padding-left: 20px;
}

.cart--itemQt {
    height: 30px;
    display: flex;
    align-items: center;
    background-color: var(--body-bgColor);
    border-radius: 10px;
    font-weight: bold;
}

.cart--itemQt button {
    padding: 0 10px;
    background-color: transparent;
    border: 0;
    outline: 0;
    font-weight: 700;
    cursor: pointer;
}

.cart--itemQt--qt {
    padding: 0 5px;
    background-color: transparent;
    font-size: 13px;
}

.cart--details div {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    color: rgba(0, 0, 0, 0.6);
}

.cart--details span {
    font-weight: normal;
}

.cart--details--total {
    margin-bottom: 20px;
}

.cart--details--total,
.cart--details--total span {
    color: #000;
    font-size: 20px;
    font-weight: 900;
}

.cart--button {
    width: 100%;
    padding: 20px 0;
    background-color: var(--cartButton-bgColor);
    border: 1px solid var(--cartButton-borderColor);
    border-radius: 20px;
    color: #FFF;
    font-size: 16px;
    font-family: 'Hepta Slab', Helvetica, serif;
    cursor: pointer;
}


.pizzaWindow {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255, .5);
    overflow-y: auto;
    transition: all .5s ease;
}

.pizzaWindoBody {
    width: 900px;
    background-color: #FFF;
    display: flex;
    align-items: center;
    border-radius: 10px;
    font-family: 'Hepta Slab', Helvetica, serif;
    box-shadow: 0px 0px 15px #999;
}

.pizzaInfo--CancelMobileButton {
    line-height: 40px;
    display: none;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Lato', Helvetica, sans-serif;
}

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

.pizzaBig img {
    width: auto;
    height: 400px;
}

.pizzaInfo {
    flex: 1;
    padding-bottom: 50px;
}

.pizzaInfo h1 {
    margin-top: 50px;
}

.PizzaInfo--desc {
    color: #999;
    font-size: 15px;
    font-family: 'Lato', Helvetica, sans-serif;
}

.pizzaInfo--sector {
    color: #CCC;
    margin: 30px 0 10px 0;
    text-transform: uppercase;
}

.pizzaInfo--sizes {
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
}

.pizzaInfo--size {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    background-color: #EEE;
}

.pizzaInfo--size span {
    font-weight: normal;
    color: #999;
}

.selected, .selected span {
    background-color: #399ade;
    color: #FFF;
}

.selected span {
    color: #CCC;
}

.pizzaInfo--price {
    display: inline-flex;
    align-items: center;
}

.pizzaInfo--actualPrice {
    font-size: 28px;
    margin-right: 30px;
}

.pizzaInfo--qtarea {
    display: inline-flex;
    align-items: center;
    background-color: #EEE;
    border-radius: 10px;
}

.pizzaInfo--qtminus,
.pizzaInfo--qtplus {
    padding: 0 10px;
    font-size: 17px;
    background-color: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
}

.pizzaInfo--qt {
    padding: 0 5px;
    font-size: 12px;
    line-height: 30px;
    font-weight: 700;
}

.pizzaInfo--addButton {
    padding: 20px 30px;
    background-color: #48d05f;
    color: #FFF;
    display: inline-block;
    margin: 30px 30px 0 0;
    border-radius: 20px;
    cursor: pointer;
}

.pizzaInfo--addButton:hover {
    background-color: #339f45;
}

.pizzaInfo--cancelButton {
    display: inline-block;
    cursor: pointer;
}




@media (max-width: 1000px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    main {
        padding-top: 60px;
    }

    header {
        display: flex;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .pizza-item {
        max-width: 100%;
    }

    .pizzaWindow {
        align-items: flex-start;
    }

    .pizzaWindoBody {
        width: 100vw;
        padding: 20px;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .pizzaInfo--CancelMobileButton {
        display: block;
    }

    .pizzaBig img {
        width: 75%;
        height: auto;
    }

    .pizzaInfo h1 {
        margin-top: 20px;
    }

    .pizzaInfo--qtminus,
    .pizzaInfo--qtplus {
        padding: 0 25px;
        font-size: 25px;
    }

    .pizzaInfo--qt {
        padding: 0 5px;
        line-height: 60px;
        font-size: 20px;
    }

    .pizzaInfo--addButton {
        width: 100%;
        margin: 30px 0;
        text-align: center;
        font-size: 20px;
    }

    .pizzaInfo--cancelButton {
        display: none;
    }

    aside {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 100vw;
    }
    .cart--area {
        width: 100vw;
    }

    aside.show {
        width: auto;
    }

    .menu-closer {
        display: block;
    }
}