@import url("../css/fonts.css");
.modal {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.modal.show {
  animation: fadeIn 0.3s ease;
}
.modal.hide {
  animation: fadeOut 0.3s ease;
  display: none;
}
.modal .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 20px 5px 5px 20px;
  width: 60%;
  height: 80%;
  margin-right: calc(-1.5 * (100vw - 100%));
  position: relative;
  overflow: auto;
  scrollbar-width: 0;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  font-family: "Source Sans 3";
}
.modal .modal-content img {
  width: 30%;
  max-height: 80%;
  display: block;
  filter: drop-shadow(2px 2px 7px black);
}
.modal .modal-content h2,
.modal .modal-content .product_price {
  font-size: 2.6vw;
}
.modal .modal-content .product_desc {
  text-align: center;
}
.modal .modal-content #confirm_btn {
  width: 65%;
  height: 50px;
  border-radius: 25px;
  border: none;
  outline: none;
  color: black;
  background-color: transparent;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.3s;
}
.modal .modal-content #confirm_btn:hover {
  background-color: rgb(0, 0, 0);
  color: white;
  transition: 0.4s;
}

.scroll-lock {
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media screen and (max-width: 1024px) {
  .modal .modal-content h2,
  .modal .modal-content .product_price {
    font-size: 5vw;
  }
  .modal .modal-content img {
    width: 80%;
    height: auto;
  }
  .modal .modal-content #confirm_btn {
    font-size: 2.5vw;
  }
}
@media screen and (max-width: 450px) {
  .modal .modal-content {
    width: 85%;
    height: 60%;
  }
  .modal .modal-content h2,
  .modal .modal-content .product_price {
    font-size: 7vw;
  }
  .modal .modal-content img {
    width: 90%;
    height: auto;
  }
}