@font-face {
  font-family: "IranYekan";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/regular.ttf);
}

@font-face {
  font-family: "IranYekan";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/medium.ttf);
}

@font-face {
  font-family: "IranYekan";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/bold.ttf);
}

@font-face {
  font-family: "IranYekan";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/extra-bold.ttf);
}

@font-face {
  font-family: "IranYekan";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/black.ttf);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: IranYekan;
  background-color: #FAFAFA;
}

#image-modal {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#image-modal .relative {
  max-width: 600px;
  /* Set the modal width */
  max-height: 90%;
  /* Ensure it doesn't exceed viewport height */
  background-color: #fff;
  /* Ensure the background is white */
  padding: 20px;
  overflow: hidden;
  border-radius: 12px;
  /* Rounded corners */
}

#image-modal img {
  max-width: 100%;
  /* Ensure the image fits within the modal */
  height: auto;
  border-radius: 8px;
  /* Optional: Round image corners */
}

#image-modal button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  /* Semi-transparent background */
  color: #000;
  cursor: pointer;
}

#image-modal button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.disable-dbl-tap-zoom {
  touch-action: none !important;
}
