* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

/* header {
  background-image: url('header_img.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
} */

#header-img{
  /* fit the img to take up the entire top of the site  */
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

body,
.itemOfRestaurant,
.item-image-and-details,
.plus-button,
.total,
.cart-item,
.card-details-container>form {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  flex-direction: column;
  font-size: x-large;
  padding: 1.5rem;
  position: relative;
}

.itemOfRestaurant {
  justify-content: space-between;
  gap: 5rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid gray;
}

.itemImage>p {
  font-size: 8rem;
}

.item-image-and-details {
  gap: 1.5rem;
}

.plus-button {
  border: 1px solid #aeacac;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  cursor: pointer;
}

.ingredients {
  color: gray;
}

footer {
  display: none;
  margin-top: 2rem;
}

footer>h4 {
  text-align: center;
}

.card-details-container {
  width: 43rem;
  padding: 5rem;
  display: none;
  border: 1px solid black;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  box-shadow: 0px 0px 300px 50px rgb(53, 53, 53);
}

.card-details-container>h4 {
  margin-bottom: 5rem;
}

.card-details-container>form {
  flex-direction: column;
  margin: 1.5rem 0 0;
}

.card-details-container>form>input {
  margin: 0 1rem;
  padding: 1rem;
  width: 110%;
  margin-bottom: 1.5rem;
}

#pay-button {
  width: 110%;
  padding: 1rem 0;
  background-color: #16db99;
  color: white;
  cursor: pointer;
  border-radius: 1rem;
  font-size: large;
}

.order-placed {
  display: none;
}

.remove {
  color: #aeacac;
  cursor: pointer;
}

.cart-item {
  display: flex;
  gap: 13rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.total {
  justify-content: space-between;
  margin: 1rem 0 2rem;
}

#complete-order-btn {
  width: 100%;
  padding: 1.5rem 0;
  margin-bottom: 4rem;
  background-color: #16db99;
  color: white;
  font-size: large;
  cursor: pointer;
  border-radius: 1rem;
}

#order-placed-message {
  background-color: #ecfdf5;
  color: #065f46;
  padding: 3.5rem;
  margin-top: 2rem;
}

.plus-button:hover {
  background-color: #16db99;
  color: white;
}

@media screen and (max-width: 515px) {
  header {
    width: 118%;
    margin-top: -1.8rem;
  }

  body {
    font-size: large;
  }

  .card-details-container {
    width: 90%;
  }

  .itemImage>p {
    font-size: 6rem;
  }

  .itemOfRestaurant {
    flex-direction: column;
  }

  .itemDetails {
    text-align: center;
  }

  .item-image-and-details {
    gap: 0rem;
  }

  .itemOfRestaurant {
    gap: 2rem;
  }

  .cart-item {
    gap: 4rem;
  }
}