@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;
  font-family: 'Baloo Bhaijaan 2', arial;
  font-size: 8px;
  max-width: 100%;
}

.main-container {
  display: flex;
  flex-direction: row;
  background-color: #dae0e2;
  max-width: 100%;
  padding: 0;
}

.main-content {
  padding: clamp(0.5rem, 0.031rem + 1.5vw, 1.25rem);
  margin: clamp(0.75rem, 0.438rem + 1vw, 1.25rem);
  background-color: #ffffff;
  border-radius: 20px;
  font-size: 19px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #112548;
  max-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: 20px;
}

.calculator {
  margin: 40px 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0  0 20px #0000008e;
  padding: 20px;
  max-width: 100%;
}

.display {
  background: #ffffff;
  color: #000000;
  font-size: 2rem;
  text-align: right;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: inset 0 0 7px #0000009e;
  direction: ltr;
  overflow-x: auto;
  white-space: nowrap;
  word-break: keep-all;
  max-width: 100%;
}

.display::-webkit-scrollbar {
  display: none;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
}

.num {
  padding: 18px 0;
  font-size: 1.2rem;
  border: none;
  border-radius: 20px;
  background: #dae0e280;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.473);
}

.calculator-buttons button:hover {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.623);
}

.calculator-buttons button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.623);
}

.pop {
  padding: 18px 0;
  font-size: 1.2rem;
  border: none;
  border-radius: 20px;
  background-color: #214a93;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

button.pop:hover {
  background: #1b3e7a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}  

.description-title {
  font-size: 24px;
  color: #112548;
}

#equal {
  width: 100%;
  margin-top: 20px;
  background: #214a93;
}

button#equal:hover {
  background: #1b3e7a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}

button#equal:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.678);
}