@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap");
body {
  font-family: "Libre Franklin", sans-serif;
  background-color: hsl(195, 17%, 90%);
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
  /* overflow: hidden; */
}
h2 {
  margin-bottom: 40px;
}
h2,
h3,
#valitse,
#customer,
#seeOrder {
  color: #ab590a;
}
#valitse,
#customer,
#seeOrder {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 15px 0;
}
.container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100vw;
}

.image-container {
  position: relative;
  flex: 1;
  min-height: 100vh;
  height: 100vh;
}

.image-container img {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.form-container {
  flex: 1;
  margin-left: 100px;
  padding: 20px;
  min-height: 100vh;
  overflow-y: auto;
}

.price-banner {
  position: fixed;
  top: 40px;
  right: 50%;
  margin-right: 40px;

  background-color: #ab590a;
  color: white;
  border-radius: 50%;
  border: 5px solid white;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}

h3 {
  margin-top: 15px;
}

input[type="checkbox"] {
  margin-right: 5px;
  margin-left: 40px;
  color: hsl(190, 16%, 29%);
  cursor: pointer;
  accent-color: #ab590a;
  width: 18px;
  height: 18px;
}

select,
label {
  display: block;
  margin-top: 10px;
}
select {
  padding: 10px;
  margin-left: 40px;
  border-radius: 8px;
  border: 2px solid #ab590a;
  background-color: #fff;
  font-size: 16px;
  outline-color: #ab590a;
  color: #3d5054;
  cursor: pointer;
}
#customerName {
  padding: 10px;
  margin-left: 40px;
  border-radius: 8px;
  border: 2px solid #ab590a;
  background-color: #fff;
  font-size: 16px;
  outline-color: #ab590a;
  color: #3d5054;
}
#totalPriceDisplay,
#seeOrder {
  background-color: white;
  /* background-color: hsl(3, 52%, 80%); */
  display: inline-block;
  border-radius: 10px;
  border: 2px solid #ab590a;
  margin: 20px;
  padding: 10px 20px;
}
option {
  background-color: #fef6f0;
  color: #3d5054;
  font-weight: bold;
}

i {
  margin-right: 8px;
  color: #ab590a;
  font-size: 1.2em;
}
input[type="radio"] {
  margin-right: 5px;
  margin-left: 40px;
  color: hsl(190, 16%, 29%);
  cursor: pointer;
  accent-color: #ab590a;
  width: 18px;
  height: 18px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #333;
}

.close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(171, 89, 10, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 10px 10px rgba(171, 89, 10, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(171, 89, 10, 0);
  }
}

.price-banner {
  transition: background-color 0.3s ease;
}

.price-banner.updated {
  animation: pulse 0.4s ease;
}

@media (max-width: 700px) {
  body {
    display: flex;
    flex-direction: column;
    overflow: auto;
    align-items: flex-start;
  }

  .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .image-container,
  .form-container {
    /* flex: none; */
    width: 100%;
    min-height: auto;
    padding: 20px;
    margin: 0;
  }

  .image-container img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .form-container {
    margin-left: 0;
  }
  #pancakeForm {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .price-banner {
    top: 12%;
    left: 75%;
    width: 80px;
    height: 80px;
    font-size: 18px;
    /* top: 20px;
    right: 20px; */
    margin-right: 0;
  }

  select,
  #customerName {
    font-size: 14px;
    padding: 8px;
    width: calc(100% - 60px);
  }

  label,
  h3 {
    font-size: 16px;
  }

  h2 {
    font-size: 20px;
    text-align: center;
    margin: 0;
  }

  .PriceDisplay h3 {
    font-size: 18px;
  }

  #seeOrder,
  #totalPriceDisplay {
    font-size: 14px;
    padding: 8px 16px;
  }
}
