@font-face {
    font-family: Metropolis-Bold;
    src: url(../assets/Metropolis-Bold.otf);
}
@font-face {
    font-family: Metropolis-Medium;
    src: url(../assets/Metropolis-Medium.otf);
}

body {
    font-family: 'Metropolis-Bold';
    background-color: #8CD790;
    text-align: center;
    color: #333;
    margin: 0;
}
h1 {
    margin: 84px 20px;
    font-size: 55px;
}
#sticky {
    background-color: #AAFCB8;
    justify-content: center;
    align-items: center;
    position: sticky;
    padding: 5px 0;
    display: flex;
    gap: 20px;
    top: 0;
} #sticky p { font-size: 40px; } 
#items {
    justify-content: center;
    margin: 5em 10% 0 10%;
    flex-wrap: wrap;
    display: flex;
    gap: 5px;
} #items .item {
    background-color: #8BD9A8;
    border: 3px solid #333;
    flex-direction: column;
    border-radius: 10px;
    align-items: center;
    padding: 2em 0;
    display: flex;
    width: 20em;
}
.name {
    margin: 15px 0 3px 0;
    font-size: 22px;
}
.price {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: red;
}
.controls {
    flex-direction: row;
    display: flex;
    gap: 10px;
}
button {
    font-family: 'Metropolis-Medium';
    padding: 0.8em 1.5em;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 16px;
    color: #333;
    border: none;
} button:nth-child(3) { background-color: #00CE52;  }
input {
    font-family: 'Metropolis-Bold';
    pointer-events: none;
    border-radius: 5px;
    text-align: center;
    border: none;
    color: #333;
    width: 5em;
} ::-webkit-outer-spin-button,
  ::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
} ::placeholder { color: #333; }
#receipt {
    margin: 2em auto 2em auto;
    flex-direction: column;
    display: flex;
    width: 25em;
} #receipt p {
    font-family: 'Metropolis-Medium';
    text-align: left;
    font-size: 20px;
    display: flex;
    margin: 0;
} #receipt p:last-child {
    font-family: 'Metropolis-Bold';
    margin-top: 15px;
} p span { margin-left: auto; }
#last { font-family: 'Metropolis-Medium'; }

@media screen and (max-width: 818px){
    #sticky img { height: 70px; }
    #sticky p { font-size: 36px; }
    #items { margin: 5em 5% 0 5%; }
}
@media screen and (max-width: 560px){
    h1 { font-size: 49px; }
    #sticky img { height: 62px; }
    #sticky p { font-size: 33px; }
    #items { margin: 5em 0 0 0; }
}
@media screen and (max-width: 480px){
    h1 { font-size: 45px; }
    #sticky img { height: 55px; }
    #sticky p { font-size: 29px; }
    #receipt { width: 22em; }
}
@media screen and (max-width: 410px){
    h1 { font-size: 40px; }
    #sticky img { height: 50px; }
    #sticky p { font-size: 25px; }
    #receipt { width: 20em; }
    #receipt p { font-size: 18px; }
}
@media screen and (max-width: 380px){
    h1 { font-size: 37px; }
    #sticky p { font-size: 23px; }
    #items .item { width: 19em; }
    #receipt { width: 18em; }
}
