body {
  margin: 0%;
  background-color: #383838;
}

/* Header.module.css----------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;

  background-color: #b02a37;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3% 0 1%;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.main-image {
  width: 100%;
  height: 25rem;
  z-index: -1;
  overflow: hidden;
}

.main-image img {
  width: 110%;
  height: 100%;
  object-fit: cover;
  transform: rotateZ(-5deg) translateY(-4rem) translateX(-1rem);
}

/* Header.module.css ---------------------------------------------------------------------------------------*/
/* HeaderCart Button---------------------------------------------------------------------------------------*/

.button {
  cursor: pointer;
  font: inherit;
  border: none;
  background-color: #4d1601;
  color: white;
  margin-right: 75px;
  padding: 0.75rem 3rem;
  display: inline;
  justify-content: space-around;
  align-items: center;
  border-radius: 25px;
  font-weight: bold;
}
.logoName {
  font-family: "Source Sans Pro", sans-serif;
}
.button:hover,
.button:active {
  background-color: #2c0d00;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.5rem;
}

.badge {
  background-color: #b94517;
  padding: 0.25rem 1rem;
  border-radius: 25px;
  margin-left: 1rem;
  font-weight: bold;
}

.button:hover .badge,
.button:active .badge {
  background-color: #92320c;
}

.bump {
  animation: bump 300ms ease-out;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(0.9);
  }
  30% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* HeaderCart Button---------------------------------------------------------------------------------------*/
/*MealSummary Module------------------------------------------*/

#summaryUpper {
  text-align: center;
  max-width: 45rem;
  width: 90%;
  margin: auto;
  margin-top: -10rem;
  margin-bottom: 2rem;
  position: relative;
  background-color: #383838;
  color: white;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 1px 18px 10px rgba(0, 0, 0, 0.25);
}

#summaryUpper h2 {
  font-size: 2rem;
  margin-top: 0;
}

/*MealSummary Module------------------------------------------*/
/*MealItem.module.css------------------------------------------*/

.meal {
  display: flex;
  justify-content: space-between;
  margin: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.meal h3 {
  margin: 0 0 0.25rem 0;
}

.description {
  font-style: italic;
}

.price {
  margin-top: 0.25rem;
  font-weight: bold;
  color: #ad5502;
  font-size: 1.25rem;
}

/*MealItem.module.css------------------------------------------*/
/*Card------------------------------------------*/
.card {
  padding: 1rem;
  max-width: 60rem;
  width: 90%;
  margin: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  background-color: white;
}

/*Card------------------------------------------------------------*/
/*Form------------------------------------------------------------*/

.form {
  text-align: right;
}

.form button {
  font: inherit;
  cursor: pointer;
  background-color: #8a2b06;
  border: 1px solid #8a2b06;
  color: white;
  padding: 0.25rem 2rem;
  border-radius: 20px;
  font-weight: bold;
}

.form button:hover,
.form button:active {
  background-color: #641e03;
  border-color: #641e03;
}

/*Form------------------------------------------------------------*/
/*Input------------------------------------------------------------*/

.input {
  display: block;
  align-items: center;
  margin-bottom: 0.5rem;
}

.input label {
  font-weight: bold;
  margin-right: 1rem;
}

.input input {
  width: 3rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font: inherit;
  padding-left: 0.5rem;
}

/*Input------------------------------------------------------------*/
/*Cart Module------------------------------------------------------------*/

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 20rem;
  overflow: auto;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 1rem 0;
}

#actions {
  text-align: right;
}

#actions button {
  font: inherit;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid #8a2b06;
  padding: 0.5rem 2rem;
  border-radius: 25px;
  margin-left: 1rem;
}

#actions button:hover,
#actions button:active {
  background-color: #5a1a01;
  border-color: #5a1a01;
  color: white;
}

#actions .button--alt {
  color: #8a2b06;
}

#actions .button {
  background-color: #8a2b06;
  color: white;
  margin-right: 0;
}

/*Cart Module---------------------------------------------------------------------------------*/

/*Modal---------------------------------------------------------------------------------*/

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.75);
}

.modal {
  position: fixed;
  top: 10vh;

  left: 5%;
  width: 90%;
  background-color: white;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 30;
  animation: slide-down 300ms ease-out forwards;
}

@media (min-width: 768px) {
  .modal {
    width: 37.5rem;
    left: calc(50% - 20rem);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Modal--------------------------------------------------------------------------------------*/
/*CartIcon--------------------------------------------------------------------------------------*/

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #8a2b06;
  padding: 1rem 0;
  margin: 1rem 0;
}

.cart-item h2 {
  margin: 0 0 0.5rem 0;
  color: #363636;
}

.summary {
  width: 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: bold;
  color: #8a2b06;
}

.amount {
  font-weight: bold;
  border: 1px solid #ccc;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: #363636;
}

.actions {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .actions {
    flex-direction: row;
  }
}

.cart-item button {
  font: inherit;
  font-weight: bold;
  font-size: 1.25rem;
  color: #8a2b06;
  border: 1px solid #8a2b06;
  width: 3rem;
  text-align: center;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  margin-left: 1rem;
  margin: 0.25rem;
}

.cart-item button:hover,
.cart-item button:active {
  background-color: #8a2b06;
  color: white;
}

/*CartIcon--------------------------------------------------------------------------------------*/
/*HeaderButton Module--------------------------------------------------------------------------------------*/
.button {
  cursor: pointer;
  font: inherit;
  border: none;
  background-color: #4d1601;
  color: white;
  padding: 0.75rem 3rem;
  display: inline;
  justify-content: space-around;
  align-items: center;
  border-radius: 25px;
  font-weight: bold;
}

.button:hover,
.button:active {
  background-color: #2c0d00;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.5rem;
}

.badge {
  background-color: #b94517;
  padding: 0.25rem 1rem;
  border-radius: 25px;
  margin-left: 1rem;
  font-weight: bold;
}

.button:hover .badge,
.button:active .badge {
  background-color: #92320c;
}

.bump {
  animation: bump 300ms ease-out;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(0.9);
  }
  30% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/*--------------------------------------------------------------------------------------*/
.MealsLoading {
  text-align: center;
  color: white;
}

.MealsLoadingError {
  text-align: center;
  color: red;
}

/*--------------------------------------------------------------------------------------*/
/*checkout--------------------------------------------------------------------------------------*/
.checkOutform {
  margin: 1rem 0;
  height: 15.5rem;
  overflow: scroll;
}

.checkOutcontrol {
  margin-bottom: 0.5rem;
}

.checkOutcontrol label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  display: block;
}

.checkOutcontrol input {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 20rem;
  max-width: 100%;
}

.checkOutactions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.checkOutactions button {
  font: inherit;
  color: #5a1a01;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 2rem;
}

.checkOutactions button:hover,
.checkOutactions button:active {
  background-color: #ffe6dc;
}

.checkOutactions .checkOutsubmit {
  border: 1px solid #5a1a01;
  background-color: #5a1a01;
  color: white;
}

.checkOutactions .checkOutsubmit:hover,
.checkOutactions .checkOutsubmit:active {
  background-color: #7a2706;
}

.checkOutinvalid label {
  color: #ca3e51;
}

.checkOutinvalid input {
  border-color: #aa0b20;
  background-color: #ffeff1;
}
/*checkout--------------------------------------------------------------------------------------*/
