@font-face {
    font-family: comic-sans;
    src: url(./fonts/comic-sans.ttf);
}
@font-face {
    font-family: consola;
    src: url(./fonts/consola.ttf);
}
@font-face {
    font-family: Opensans;
    src: url(./fonts/OpenSans-Regular.ttf);
}
@font-face {
    font-family: SourceCode;
    src: url(./fonts/SourceSansPro-Regular.ttf);
}
@font-face {
  font-family: iransans;
  src: url(./fonts/IRANSansXNoEn-Regular.ttf);
}
*{
    padding: 0px;
    margin: 0px;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: SourceCode,Opensans,sans-serif;
    background-color: #645CAA;
    color: white;
}

h1{
    text-align: center;
    margin-top: 10px;
}

h3{
    text-align:center;
}

h3 a{
    color: #00cbd6;
}

.WholeNumberContainer{
    background-color: white;
    box-shadow: 0 0 10px white;
    border-radius: 20px;
    max-width: 600px;
    height: 300px;
    margin: auto;
    color: black;
    margin-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

.HeaderChooseBases{
    font-family: consola;
    width: fit-content;
    margin: auto;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.HeaderChooseBases span{
    font-size: 30px;
    flex-basis: 100%;
    text-align: center;
}

.SelectTagsContainer{
    display: flex;
    justify-content: space-between;
    flex-basis: 50%;
    margin: auto;
    font-size: 25px;
    margin-top: 10px;
}

.numbers_select{
    font-size: 20px;
    font-family: comic-sans;
}

.input-group {
    position: relative;

   }
   
   .input {
    border: solid 1.5px #9e9e9e;
    border-radius: 1rem;
    background: none;
    padding: 1rem;
    font-size: 1rem;
    color: black;
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
   }
   
   .user-label {
    position: absolute;
    left: 15px;
    color: #5a5a5a;
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
   }
   
   .input:focus, input:valid {
    outline: none;
    border: 1.5px solid #A084CA;
   }
   
   .input:focus ~ label, input:valid ~ label {
    transform: translateY(-50%) scale(0.8);
    background-color: white;
    padding: 0 .2em;
    color: #BFACE0;
   }

   .InputsContainer{
    display: flex;
    justify-content: space-evenly;
    margin-top: 50px;
    align-items: center;
   }

   .InputsContainer svg{
    height: 20px;
   }

   .Explaination{
    background-color: white;
    box-shadow: 0 0 10px white;
    border-radius: 20px;
    max-width: 600px;
    margin: auto;
    color: black;
    margin-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
    position: relative;
   }

   .Explaination h2{
    text-align: center;
    padding-top: 10px;
    font-family: OpenSans,iransans;
   }

   .Explaination p{
    margin-top: 20px;
    font-size: 18px;
    font-family: Opensans;
    text-align: justify;
   }

   .Explaination span{
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
   }

   footer{
    background-color: white;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    margin-top: 70px;
    font-size: 18px;
   }
   footer a{
    color: blue;
   }

   .InputsContainer .PointingDownSVG{
    display: none;
   }

   #Persian-exp p{
    font-family: iransans;
    direction: rtl;
   }
   #Persian-exp span{
    left: 15px;
    direction: rtl;
    right: auto;
   }

   .LanguageSelect{
    position: absolute;
    top: 15px;
    right: 30px;
    width: 75px;
    height: 25px;
    border: 1px solid black;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    flex-direction: row-reverse;
    overflow: hidden;

   }
   .LanguageSelect div{
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content:center;
    cursor: pointer;
    user-select: none;
   }
   .LanguageSelect div:first-child{
    border-left: 1px solid gray;
   }
   .LanguageSelect .activeLang{
    background-color: #eee;
   }
   @media only screen and (max-width:730px){
    .WholeNumberContainer {
        max-width: 500px;
        height: 250px;
      }
      .Explaination{
        max-width: 500px;
      }
   }

   @media only screen and (max-width:620px){
    .WholeNumberContainer {
        max-width: 400px;
      }
      .Explaination{
        max-width: 400px;
      }
      .HeaderChooseBases span{
        font-size: 25px;
      }
      .SelectTagsContainer{
        flex-basis: 70%;
      }
      .InputsContainer {
        display: block;
        margin-top: 30px;
        text-align: center;
      }
      .WholeNumberContainer {
        height: 350px;
      }
      .InputsContainer svg{
        display: none;
      }
      .InputsContainer .PointingDownSVG{
        display: block;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 10px;
      }
      .input-group{
        width: fit-content;
        margin: auto;
      }
      .Explaination p{
        font-size: 16px;
      }
   }

   @media only screen and (max-width:520px){
    .WholeNumberContainer {
        max-width: 250px;
        padding-top: 30px;
        padding-left: 30px;
        padding-right: 30px;
      }
      .Explaination{
        padding-right: 30px;
        padding-left: 30px;

      }
      .Explaination{
        max-width: 250px;
      }
      .HeaderChooseBases span{
        font-size: 20px;
      }
      .SelectTagsContainer{
        flex-basis: 100%;
        font-size: 20px;
      }
      .numbers_select{
        font-size: 16px;
      }
           .LanguageSelect{
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
       }
            .Explaination p:first-child{
        margin-top: 45px;
       }
   }