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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.main {
  display: grid;
  margin: 20px 0;
  border-radius: 20px;
  box-shadow: 0  0 20px #0000008e;
  width: 100%;
  padding: clamp(0.625rem, 0.208rem + 1.667vw, 1.25rem);
}

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

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

h2 {
    font-size: 32px;
}

input {
  -moz-appearance: textfield;
  font-size: clamp(1.25rem, 1.13rem + 0.481vw, 1.563rem);
  border: 2px solid #7a7a7a;
  outline:none;
  height: clamp(2.5rem, 2.139rem + 1.442vw, 3.438rem);
  width: clamp(2.5rem, 2.139rem + 1.442vw, 3.438rem);
  vertical-align:middle;
  position:relative;
  border-radius: clamp(1.063rem, 0.918rem + 0.577vw, 1.438rem);
  box-sizing:border-box;
  margin-top: 10px;
  align-self: center;
  box-shadow: 3px 5px 10px 0px #00000061;
  text-align: center;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
}

input: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.001)
}

input:fucus

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

.rtl {
  direction: rtl;
}

.keybord {
  margin-top: 15px;
  background-color: #ffffff;
  border-radius: 12px;
  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;
  height: 330px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.first {
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: fit-content;
    align-self: center;
    justify-self: center;
    gap: clamp(0.188rem, 0.139rem + 0.192vw, 0.313rem);
    top: 5px;
}

.second {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    width: fit-content;
    align-self: center;
    justify-self: center;
    gap: clamp(0.188rem, 0.139rem + 0.192vw, 0.313rem);
    margin-top: clamp(-0.375rem, -0.639rem + 1.058vw, 0.313rem);
}

.third {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: fit-content;
    align-self: center;
    justify-self: center;
    gap: clamp(0.188rem, 0.139rem + 0.192vw, 0.313rem);
    margin-top: clamp(-1.5rem, -2.197rem + 2.788vw, 0.313rem);
}

.forth {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    width: fit-content;
    align-self: center;
    justify-self: center;
    gap: clamp(0.188rem, 0.139rem + 0.192vw, 0.313rem);
    margin-top: clamp(-2.75rem, -3.928rem + 4.712vw, 0.313rem);
}

.fifth {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(0.063rem, -0.034rem + 0.385vw, 0.313rem);
    margin-top: 5px;
    align-self: center;
    justify-self: center;
    width: 276px;
    height: 105px;
}

.keybord .keys {
    background-color: #80808033;
    width: clamp(1.875rem, 1.514rem + 1.442vw, 2.813rem);
    height: clamp(2.5rem, 2.38rem + 0.481vw, 2.813rem);
    border-radius: 9px;
    align-content: center;
    cursor: pointer;
}



.last {
    width: 139px;
    background-color: #80808033;
    height: 45px;
    border-radius: 9px;
    align-content: center;
    cursor: pointer;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.reset {
    width: 282px;
    background-color: #80808033;
    height: 45px;
    border-radius: 2px;
    align-content: center;
    margin-bottom: 10px;
    cursor: pointer;    
    grid-column: 1/3;
    justify-self: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.delete {
    justify-self: right;
}

#custom-alert {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  justify-self: center;
  align-content: center;
  width: fit-content;
}

.alert-box {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  font-family: 'Baloo Bhaijaan 2', sans-serif;
  text-align: center;
  font-size: 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  height: 160px;
}

.alert-box button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 50px;
  width: 100px;
  font-family: 'Baloo Bhaijaan 2', sans-serif;
  font-size: 15px;
}

.hidden {
  display: none;
}

.picture {
    height: 80px;
    width: 80px;
    margin-bottom: 18px;
    background-color: transparent;
}

/* رنگ دکمه در حالت موفقیت */
.success-button {
  background-color: #60daa8 !important;
}

/* رنگ دکمه در حالت خطا */
.error-button {
  background-color: #fd5c6f !important;
}

.warning-button {
  background-color: #ffc048 !important;
}

.key-hint {
    background-color: #b9b9b9bb
}

a {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}