@import url('https://fonts.googleapis.com/css2?family=Smythe&display=swap');

:root {
  font-family: 'Smythe', cursive;
  --main-color: #16db99;
  --confirmation-color: #ecfdf5;
  --confirmation-font: #065f46;
}

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

#menu-items,
nav,
#order-items,
.container {
  margin: 0 auto;
  max-width: 768px;
}

nav {
  font-size: x-large;
  color: white;
  padding: 1.5rem;
  background: url(./img/header.png);
  background-size: cover;
}

.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d2d2d2;
}

.name,
.price {
  font-size: 1.5rem;
  font-weight: bold;
}

.ingredients {
  font-size: 0.9rem;
  color: #666;
}

.add-btn {
  color: #000;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hidden {
  display: none;
}

#order-details {
  text-align: center;
}

.container {
  padding: 1.5rem 0;
}

.cart h1 {
  text-align: center;
}

.order-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: x-large;
}

.remove-btn {
  display: block;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: #bbb;
}

.item-cart {
  display: flex;
  gap: 0.785rem;
  align-items: center;
}

.order-checkout {
  display: flex;
  border-top: 1px solid #000;
  padding: 1.5rem 0 0 0;
  justify-content: space-between;
  align-items: center;
  font-size: x-large;
}

.checkout {
  display: flex;
}

#checkout-btn,
#pay {
  border: none;
  width: 100%;
  padding: 0.85rem 3rem;
  background-color: var(--main-color);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 0.25rem;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  -ms-border-radius: 0.25rem;
  -o-border-radius: 0.25rem;
  cursor: pointer;
}

#modal {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  max-width: 20rem;
  max-height: 20rem;
  justify-content: center;
  align-items: center;
  z-index: 100;
  text-align: center;
}

.modal-card {
  padding: 2rem;
  border-radius: 0.25rem;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  -ms-border-radius: 0.25rem;
  -o-border-radius: 0.25rem;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.modal-card,
#form {
  display: flex;
  gap: 1.25rem;
  flex-direction: column;
  background-color: #fff;
}

input {
  border: 1px solid #212529;
  padding: 10px;
  width: 100%;
  border-radius: 3px;
}

.confirmation-details {
  background-color: var(--confirmation-color);
  font-size: x-large;
  padding: 1.5rem;
  color: var(--confirmation-font);
  text-align: center;
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 85%;
  }
}
