@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;
}

body {
  background-color: #dae0e2 !important;
  font-family: "Baloo Bhaijaan 2", arial;
  font-size: 8px;
  filter: none !important;
}

.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%;
}

.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: grid;
  margin: 20px 0;
  border-radius: 20px;
  box-shadow: 0  0 20px #0000008e;
  padding: clamp(0.625rem, 0.208rem + 1.667vw, 1.25rem);
  width: 100%;
}

.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: 40%;
  height: 40px;
  margin-bottom: 20px;
}

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

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

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

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

.rtl {
  direction: rtl;
}

table {
  border-collapse: collapse;
  width: 100%;
  direction: rtl;
  align-self: center;
}

th, td {
  padding: 8px 12px;
  text-align: center;
}

td {
    border: 1px solid silver;    
}

tr:nth-child(even) {
  background-color: #fafafa;
}

@media (max-width: 675px) {
  .bmi {
    grid-template-columns: repeat(1 ,1fr);
    grid-template-rows: repeat(4,1fr);
    flex-direction: column;
    display: flex;
  }

  button.pop {
    align-content: center;
    align-self: center;
    width: 50%;
  }
  .results {
      width: 100%;
      align-self: center;

  }
}

.results {
  background-color: #ffffff;
  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;
  justify-self: center;
  width: 80%;
}

textarea {
  width: 90%;
  margin: 10px;
  border-radius: 16px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border: solid 2px #112548;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
  outline: none;
  direction: rtl;
  padding: 10px;
  font-size: 18px;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  height: 253px;
}

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

.tt.show {
  opacity: 1;
  transition: opacity 0.5s ease; 
}
.tt {
  opacity: 0;
  transition: opacity 0.5s ease; 
}

.ad {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: right;
    padding-bottom: 0px;
    margin-bottom: 16px;
}

.rtl {
    direction: rtl;
}