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

.overlay-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* animation: fadeIn 0.5s ease forwards; */
  animation: fadeInZoom 0.5s ease forwards;
  transform: scale(1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
  }
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(1.2); /* Start slightly zoomed in */
  }
  to {
    opacity: 1;
    transform: scale(1); /* End at normal scale */
  }
}

@keyframes fadeOutZoom {
  from {
    opacity: 1;
    transform: scale(1); /* Start at normal scale */
  }
  to {
    opacity: 0;
    transform: scale(0.8); /* Zoom out slightly */
  }
}

.image-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  bottom: 0;
  object-fit: fill;
  z-index: -1;
}

/* Popup content styling */
.popup-card {
  background: linear-gradient(0deg, #41b0ff, #ffeec6, #fff);
  padding: .3rem 0.3rem 0.3rem;
  width: 500px;
  height: min(800px, 56vh);
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 2;
  transition: all 1s ease-in-out;
  aspect-ratio: 800/500;
  /* padding-top: calc(500 / 800 * 100%); */
}

.popup-card.landscape {
  padding: 0 0 1.9rem;
}

/* .popup-card.landscape .popup-content h2 {
  display: none;
} */

.popup-card.landscape .info-container h2 {
  display: block;
}

.popup-card .info-container .cta-button {
  display: none;
}

.popup-card.landscape .info-container .cta-button {
  display: block;
}

.popup-card .main-container {
  width: 100%;
  display: flex;
  max-width: 60%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  gap: 1rem;
  top: -5%;
}

.popup-card.landscape .main-container {
  max-width: 55%;
  padding-top: 1rem;
}

/* Close button styling */
.popup-card .popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  /* border-radius: 50%; */
  color: #ff9107;
  border: none;
  outline: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.popup-card .popup-close svg {
  width: 28px;
  object-fit: contain;
}

.popup-card.landscape .popup-close svg {
  width: 25px;
}

.popup-card.landscape .popup-close {
  top: 0.5rem;
  right: 0.5rem;
}

#popup.hide {
  opacity: 0 !important;
  display: none !important;
  animation: fadeOutZoom 0.3s ease forwards;
}

.popup-close:hover {
  transform: scale(1.2);
}

.background-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 20px;
  z-index: -1;
  left: 0;
  top: 0;
}

.skyline-image {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.light-beam-image {
  width: 900px;
  max-width: 140%;
  max-height: 100%;
  height: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  /* transform: translate(-50%, -50%); */
  transform-origin: center;
  will-change: transform;
  animation: rotate 20s linear infinite;
}

.popup-card.landscape .light-beam-image {
  display: none;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.popup-content {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  max-height: 75%;
  max-width: 100%;
  /* padding-top: 0.9rem; */
  /* gap: 0.5rem; */
}

.popup-card.landscape .popup-content {
  max-height: 90%;
  padding: 0;
  flex-direction: row;
  align-items: center;
}

.popup-card h2, 
.popup-card h3{
  text-transform: uppercase;
  color: #bf6b02;
  margin:0;
  font-weight: bolder;
}

.popup-card h2{
  font-size: 2.5rem;
  /* max-width: 75%; */
  line-height: 2rem;
  font-family: "Geologica", sans-serif;
}

.popup-card h3{
  font-size: 2.2rem;
  max-width: 90%;
  line-height: 1rem;
  font-family: "Geologica", sans-serif;
}
.popup-card.landscape h2 {
  max-width: 100%;
  font-size: 1.5rem;
}

.popup-card.landscape h3 {
  max-width: 100%;
  font-size: 2rem;
  line-height: 2.3rem;
}

.popup-card.landscape .title-message-container .sale-message h3 {
  font-size: 1.5rem;
  line-height: 1.8rem;
  max-width: 78%;
}

.popup-card.landscape .title-message-container .sale-message {
  gap: 0.5rem;
}

.popup-card figure {
  width: 100%;
  max-width: 100%;
}

.popup-card figure > img {
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); Example for removing white backgrounds */
}

/*** sale message frame **/

/*** will change each popup**/

.title-message-container {
  /* width: 90%; */
  /* max-height: 25%; */
  /* margin-right: auto; */
  gap:.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 1;
}

.popup-card.landscape .title-message-container {
  flex-direction: column;
  width: 40%;
  gap:0.2rem;
}

.title-message-container .sale-title {
  width: 100%;
  /* grid-column: 1 / 1 */
}

.title-message-container .sale-message {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  /* grid-column: 2 / 3 */
}

.title-message-container .sale-message h2 {
  font-size: 1.5rem;
  text-transform: capitalize;
}
/*** end sale message frame **/

/*** main theme frame ***/

.main-theme-container {
  /* gap: 0.5rem; */
  position: relative;
  object-fit: contain;
  max-width: 90%;
  max-height: 100%;
  width: 100%;
  aspect-ratio: 432 / 302;
  height: 0;
  padding-top: calc(302 / 432 * 100%); /* Fallback for older browsers */
}

.main-theme-container > figure {
  position: absolute;
}

.cloud {
  width: 40% !important;
  animation: cloud-move 4s infinite alternate;
}

.cloud.small {
  width: 30% !important;
}

.main-theme-container #back-cloud {
  left: 0;
  bottom: -7%;
  z-index: 2;
}

.main-theme-container #front-cloud {
  right: 0;
  top: 20%;
  z-index: 6;
  animation-delay: 1s;
}

.main-theme-container #luggage {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.main-theme-container #plane {
  left: -5%;
  top: 15%;
  width: 68%;
  z-index: 5;
  animation: fly 6s linear infinite alternate; /* Fly animation */
}

.main-theme-container #fedex-banner {
  right: 2%;
  bottom: 6%;
  width: 50%;
  /* height: 10%; */
  z-index: 3;

  filter: drop-shadow(inset 0px 0px 30px rgba(0, 0, 0, 0.2));
}

/* Keyframes for the fly animation */
@keyframes fly {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px); /* Move up */
  }
}

@keyframes cloud-move {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px); /* Move up */
  }
}

/*** end main theme frame ***/
.popup-card .info-container {
  max-height: 25%;
  padding: 2rem 0 1rem;
}

.popup-card.landscape .info-container {
  max-height: 100%;
  display: flex;
  justify-content: space-around;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.popup-card .info-container h2 {
  display: none;
}

.contact-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  /* flex-wrap: wrap; */
  /* padding: 1rem 0rem; */
  flex-basis: 100%;
  position: relative;
  /* top: 1rem; */
  /* left: 0;
  bottom: 3rem; */
}

.popup-card.landscape .contact-container {
  padding: 0;
  flex-basis: 40%;
}

.contact-container .call-us,
.contact-container .chat-with-us {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-basis: 40%;
}

.contact-container .chat-with-us:hover,
.contact-container .call-us:hover {
  transform: scale(1.1);
}

.popup-card .contact-container #contact_form {
  position: relative;
  margin-right: 20px;
  flex-basis: 60%;
}

.popup-card .contact-container #contact_form input {
  border-radius: 8px;
  border: none;
  color: grey;
  background-color: rgb(238, 237, 237);
  padding: 1rem 1.5rem;
  height: 35px;
  width: 100%;
  outline: 2px solid #41b0ff;
  font-size: 1.3rem;
}

.popup-card .contact-container #contact_form input::placeholder {
  text-transform: capitalize;
}

.popup-card .contact-container #contact_form button[type="submit"] {
  background-color: #41b0ff;
  color: white;
  border: none;
  outline: 2px solid orange;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -20px;
  font-size: 1.3rem;
}

.popup-card .note {
  /* color: gray; */
  color: #e9880f;
  font-size: 9pt;
  font-weight: 700;
  margin: 0rem;
  padding: 0rem 0.5rem;
  text-transform: capitalize;
}

.popup-card.landscape .note {
  font-size: 7pt;
  padding: 0rem 0.5rem;
  font-weight: bold;
}

.popup-card .highlight {
  color: #419dff;
}

.cta-button {
  width: 60%;
  position: relative;
  border: none;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  z-index: 50;
}

.cta-button:active {
  transform: scale(0.9);
}

.cta-button img {
  max-width: 100%;
}

.cta-button:hover {
  transform: scale(1.1);
  text-shadow: 6px 6px 10px black;
  filter: drop-shadow(4px 4px 5px rgba(0, 0, 0, 0.5));
}

.popup-card .popup-content .cta-button {
  display: block;
}

/* .popup-card.landscape .popup-content .cta-button {
  display: none;
} */

.popup-card a {
  max-width: 100%;
}

.message,
q {
  font-size: 14pt;
  text-transform: uppercase;
  font-weight: 500;
}

q {
  quotes: none;
}



.bg-modal {
  background: linear-gradient(0deg, #41b0ff, #ffeec6, #fff);
}

#shiptostorage_redirect #redirect_btn{
  background-color: #ff9107;
  color: white;
  border: none;
  outline: none;
  padding: 1rem 2rem;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: bold;
}

#shiptostorage_redirect .popup-card {
  height: max-content !important;
  aspect-ratio: unset !important;
}

#shiptostorage_redirect .popup-content {
  max-height: 100%;
}

#shiptostorage_redirect .skyline-image{
  bottom: -72px;
}

#shiptostorage_redirect .popup-card .popup-close {
  z-index: 100;
}

/* Pulse animation keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1); /* Slightly larger scale */
    opacity: 1; /* Reduce opacity */
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media screen and (min-width: 321px) {
  .popup-card {
    padding: 1.5rem 1rem 1.4rem;
    gap: 1rem;
  }

  .popup-card.landscape .info-container {
    padding: 0rem 0 1.5rem;
  }

  #closeButton {
    margin-bottom: 2rem;
  }

  .social-links ul {
    flex-wrap: nowrap;
  }

  .title-message-container{
    gap:.6rem
  }

  .title-message-container .sale-title {
    font-size: 2.2rem;
  }

  .title-message-container .sale-message{
    gap:.7rem
  }
  .title-message-container .sale-message > figure{
    max-width:70%;
  }


  /* .popup-card .main-container {
    max-width: 80%;
  } */

  /* .cta-button .text {
    font-size: 1.5rem;
  } */
}
@media screen and (max-width: 320px) and (max-height: 700px) {
  .popup-card .main-container {
    max-width: 70% !important;
    top: -5% !important;
  }

  .title-message-container .sale-title {
    width: 90%;
    max-width: 100%;
    font-size: 2rem;
  }
  
}

@media screen and (min-width: 321px) and (max-height: 1023px) {
  .title-message-container .sale-message h3 {
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: bolder;
    text-transform: uppercase;
  }
  .popup-card .main-container {
    max-width: 70%;
    top: 1% !important;
  }
  .title-message-container {
    width: 78%;
    margin: 0 auto;
  }
  .title-message-container .sale-message > figure{
    max-width:70%;
  }
}

@media screen and (min-width: 321px) and (max-height: 700px) {
  .title-message-container .sale-message h2 {
    font-size: 1.3rem;
    line-height: 1.6rem;
    font-weight: bolder;
    text-transform: uppercase;
  }
  .popup-card.landscape .title-message-container .sale-message h2 {
    font-size: 1rem;
    line-height: 1.2rem;
    text-transform: uppercase;
  }

  .popup-card .main-container {
    max-width: 60%;
    top: -2% !important;
  }
  .popup-card.landscape .main-container {
    max-width: 35%;
    padding-top: 3rem;
  }

 
  .popup-card h3{
    font-size: 1.5rem;
  }

  .title-message-container {
    width: 60%;
    margin: 0 auto;
  }

  .title-message-container .sale-title {
    width: 100%;
    max-width: 100%;
    font-size: 2.2rem;
  }

  .title-message-container .sale-message > figure{
    max-width:80%;
  }

  .popup-card.landscape .title-message-container {
    width: 32%;
  }
}

@media screen and (min-width: 768px) {
  .popup-card {
    padding: 2rem 1rem 1rem;
    gap: 1rem;
    height: min(800px, 70vh);
    max-height: 85vh;
  }
  .popup-card .contact-container #contact_form input {
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
  }

  .main-theme-container {
    top: -2%;
  }
  #closeButton {
    margin-bottom: 1rem;
  }

  .cta-button {
    /* width: %; */
    top: 1%;
  }

  .popup-card .note {
    margin: 0.5rem 0rem;
    font-size: 13pt;
    /* align-self: flex-start; */
  }
  .title-message-container .sale-title {
    width: 80%;
    font-size:3rem
  }

  .popup-card.landscape .title-message-container .sale-title {
    width: 90%;
    font-size:2rem;
  }

  .title-message-container .sale-message > figure{
    max-width:82%;
  }

  .title-message-container .sale-message h3 {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: bolder;
    text-transform: uppercase;
  }

  .popup-card .main-container {
    max-width: 75%;
  }
  /* .cta-button .text {
    font-size: 2rem;
  } */
}

@media screen and (min-width: 768px) and (max-height: 890px) {
  .title-message-container .sale-message h3 {
    font-size: 2rem;
    line-height: 2.2rem;
    font-weight: bolder;
    text-transform: uppercase;
  }
  .popup-card .main-container {
    max-width: 70%;
    top: -5% !important;
  }

  .popup-card.landscape .main-container {
    max-width: 45%;
    padding-top: 3rem;
  }
  .title-message-container {
    width: 78%;
    margin: 0 auto;
  }

  .popup-card.landscape .title-message-container {
    width: 33%;
  }
}

/* Glow effect on hover */
.popup-card:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.popup-card:hover::after {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .popup-card,
  .light-beam-image,
  .main-theme-container {
    animation: none;
  }
}

@media screen and (min-width: 1024px) {
  .popup-card .main-container {
    top: 2% !important;
  }
}


@media screen and (min-width: 1024px) and (max-height: 890px) {
  .popup-card .main-container {
    max-width: 58%;
  }
}

@media screen and (min-width: 1440px) {

  .title-message-container .sale-message h3 {
    font-size: 2rem;
    line-height: 2.7rem;
    font-weight: bolder;
    text-transform: uppercase;
  }
}

@media screen and (min-width: 1440px) and (max-height: 890px) {
  .title-message-container .sale-message h3 {
    font-size: 2rem;
    line-height: 2.2rem;
    font-weight: bolder;
    text-transform: uppercase;
  }
}

@media screen and (min-height: 600px) {
  /* .title-message-container .sale-title {
    width: 90%;
    max-width: 100%;
    font-size: 2.5rem;
  }

  .title-message-container .sale-message > figure{
    max-width:72%;
  } */
}

@media screen and (min-height: 1100px) {
  .popup-card {
    height: min(700px, 60vh);
    padding: 2rem 1rem 1rem
  }

  /* .title-message-container{
    gap:1.5rem;
  } */
  .title-message-container .sale-title {
    width: 90%;
    max-width: 100%;
    font-size: 3.2rem;
  }

  /* .title-message-container .sale-message{
    gap:1.5rem;
  } */

  .title-message-container .sale-message > figure{
    max-width:80%;
  }

  .main-container{
    max-width: 70%;
    top:2%;
  }
  .popup-card .note{
    font-size:16pt;
  }
}
