@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

h1 {
    font-size: 24px;
}
.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  padding: clamp(-0.125rem, 0.4464285714285714rem + 0.8571428571428572vw, 1.25rem);
  margin: clamp(-0.125rem, -0.0892857142857143rem + 1.4285714285714286vw, 1.25rem);
  background-color: #ffffff;
  border-radius: 20px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #112548;
  width: 100%;
  height: fit-content;
}

.description {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  text-align: right;
  font-size: clamp(0.875rem, 0.731rem + 0.638vw, 1.25rem);
}

.bmi {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  border-radius: 20px;
  box-shadow: 0  0 20px #0000008e;
  padding: clamp(0.625rem, 0.208rem + 1.667vw, 1.25rem);
  width: 100%;
  align-items: center;
}

.pop {
  font-size: 1.2rem;
  border: none;
  border-radius: 25px;
  background: linear-gradient(to right, #112548,#112548);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  font-family: "Baloo Bhaijaan 2", sans-serif;
  justify-self: center;
  width: 100%;
  height: 40px;
}

.description-title {
  font-size: clamp(1rem, 0.809rem + 0.851vw, 1.5rem);
  color: #112548;
}

button:hover {
  background: linear-gradient(to right,#34236b, #375891);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}

button:active {
  background: linear-gradient(to right,#34236b, #375891);
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}

h3 {
    font-size: 18px;
    align-self: center;
}

input {
  -moz-appearance: textfield;
  font-size: 16px;
  border:2px solid #112548;
  outline:none;
  height: 46px;
  border-radius:24px;
  width:220px;
  margin-top: 10px;
  box-shadow: 3px 5px 10px 0px #00000061;
  text-align: center;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  transition: all 0.5s;
  margin-bottom: 19px;
}

input:focus {
  border:2px solid #1a4faa;
  box-shadow: 3px 5px 10px 0px #273751;
  transition: all 0.5s;
  transform: scale(1.01);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rtl {
  direction: rtl;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(3 ,1fr);
    grid-template-rows: repeat(1 ,1fr);
    width: 100%;
    justify-content: center;
}

.share {
  width: clamp(2.5rem, 2.26rem + 0.962vw, 3.125rem);
  height: clamp(2.5rem, 2.26rem + 0.962vw, 3.125rem);
  border-radius: 70px;
  background: linear-gradient(to right,#1d1148, #112548);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  border: none;
}

.download {
  width: clamp(2.5rem, 2.26rem + 0.962vw, 3.125rem);
  height: clamp(2.5rem, 2.26rem + 0.962vw, 3.125rem);
  border-radius: 70px;
  background: linear-gradient(to right,#1d1148, #112548);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  border: none;
  justify-self: right;
}

.imgs {
    width: 40%;
    height: 40%;
}

.imgs2 {
    width: 60%;
    height: auto;
}

.results {
    border: 1px solid transparent;
    border-radius: 20px;
    display: flex;
    margin-bottom: 20px;
    padding: 2px;
    background-image: 
      linear-gradient(white, white),
      linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    background-origin: border-box;
    background-clip: content-box, border-box;

}

.qr {
    padding: 10px;
    border-radius: 25px;
    height: clamp(11.25rem, 9.567rem + 6.731vw, 15.625rem);
}

.notification {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-180%);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #ffff9a;
  width: fit-content;
  padding: 10px;
  border-radius: 10px;
  color: #999;
  box-shadow: 0 0 18px #ffff9a;
  margin: 0px;
  opacity: 0;
  transition: all 1s ease-in-out;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: center;
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-180%) translateX(-50%);
    }
    to {
      opacity: 1;
      transform: translateY(20%) translateX(-50%);
    }
  }
}

.close {
  padding: 1rem;
  display: flex;
  cursor: pointer;
}

.show {
  transition: all 1s ease-out;
  display: flex;
  opacity: 1;
  transform: translateY(20%) translateX(-50%);
  flex-direction: column;
}

.show2 {
  transition: all 1s ease-out;
  display: flex;
  opacity: 0;
  transform: translateY(-180%) translateX(-50%);
  flex-direction: column;
}
.notification .progress {
    height: 4px;
    background-color: #ffc400;
    width: 100%;
    border-radius: 3px;
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.ezafi {
    display: flex;
    flex-direction: row;
}


.animate {
    animation: shrink 5s linear forwards;
}
