@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,600;0,800;1,100;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@1,300&display=swap');


*{
  font-family: 'Raleway', sans-serif;
  color: rgb(59, 49, 59);
}


.about-me-container{
  display: flex;
  
}

#description{
  display: flex;
  margin: 9% 10%;
  align-items: center;
  justify-content: space-between;
  
}


#description p{
  font-size: x-large;
}



main h1{
  margin-left: 20%;
  margin-top: 10%;
}

section h1{
  margin-top: 10%;
  margin-left: 20%;
}



nav{
  display:flex;
  justify-content: space-around;
  padding: 4%;
  font-size: 20px;
  font-weight: 800;
  background-color: #4a114a;
}

nav a, footer a{
  display: inline-flex;
  text-decoration: none;
  color: rgb(243, 236, 236);
}



nav a:hover, div a:hover{
  font-size: 102%;
  text-decoration: underline;
}


.dropdown, .dropdown-content{
  display: none;
}


#myPic{
  display: inline-block;
  width: 250px;
  height: auto;
  border: 3px dashed rgb(119, 87, 119);
  border-radius: 50%;
  margin-top: 2%;
}




li, p{
  font-weight: 600;
  font-size: large;
}

i{
  font-weight: 300;
  color: hsl(260, 12%, 5%);
}


li h5:first-child {
  margin-bottom: -10px;
}

li, i, p, h4{
  margin-left: 12%;
  margin-right: 15%;
}






          /*about me section ends here*/


#contact{
  background-image: url(./images/contact-page-background-desktop.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  
}

#registerBody{
  background-image: url(./images/Register-background.webp);
  background-size: 115%;
  background-position: 70% 95%;
  background-repeat: no-repeat;
  
}


#backToTop{
  display: flex;
 justify-content: center;
} 

#backToTop a{
  text-decoration: none;
  font-size: normal;
  font-weight: 600;
 
}  


#backToTopMobile{
  display: none;
}
      


.arrow{
  width: 14px;
  margin-left: 1%;
 
}


h1{
  font-size: 50px;
  font-weight: 800;
}

h3{
  margin-left: 2%;
}

i{
  font-weight: 400;
}


label{
  font-weight: 800;
}


#message{
  width: 450px;
  height: 400px;
  border-radius: 8%;
  background-color: #f4f6f6;
  border-width: 2.3px;
}

button{
  background-color: #4a114a;
  color: rgb(243, 236, 236);
  font-weight: 800;
  font-size: large;
  border: none;
  border-radius: 7px;
  width: 150px;
  height: 50px;
  margin-left: 20%;
  
}

button:hover{
  font-size: x-large;
  color: rgb(160, 157, 157);
  width: 153px;
  height: 54px;
}


form{
  margin-left: 45%;
}


form input, select{
  font-size: large;
  width: 450px;
  height: 50px;
  border-radius: 10px;
  background-color: #f4f6f6;
  border-width: 2.3px;
}

input::placeholder{
  padding-left: 5%;
}


.login-body{
  background-image: url(./images/login-background-desktop.jpg);
  background-repeat: no-repeat;
  background-size:140%;
  background-position: 25% 1%;
}









/*  the calculators begin here */


#calculator1, #calculator2{

  font-size: x-large;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(./images/math-background-desktop.jfif);
}


#calculator1 h1, #calculator2 h1{
  margin-left: -10%;
  
  background-color: #f4f6f6;
  box-shadow: 1px 2px 20px rgb(102, 101, 101);
}



.calc-flex-container, .calc-table-container{
  width: 400px;
  border: 1px solid grey;
  border-radius: 10px;
  background-color: #ebf3f7;
  box-shadow: 1px 2px 25px rgb(102, 101, 101);
  margin-left: 18%;
}


#inputArea1, #inputArea2 {
  width: 350px;
  height: 80px;
  margin: 10% 5% 5%;
  font-size:xx-large;
  box-shadow: inset 1px 2px 0.5px grey;
  background-color: #d8dddf;
}



.calculator1 input, .calculator2 input{
  font-family: 'Roboto Mono', monospace;
  font-size: larger;
  font-weight: 400;
  width: 80px;
  height: 80px;
  margin: 1%;
  border-radius: 5px;
  border: 1px solid grey;
  box-shadow: 1px 2px 0.5px grey;
  
}


.calculator1 input:hover, .calculator2 input:hover, #c:hover, #equals:hover, #equalsTable:hover{
  box-shadow: none;
}


.inner-calc-btns{
  display: flex;
  justify-content: space-between;
  margin: 3.5%;
  margin-bottom: 6%;
  
}


td{
 padding: 2%;
}


.side-btns{
  align-content: space-between;
}


.side-btns input{
  display: flex;
  flex-direction: column;
  margin-top:8%;
  
}

#c{
  width: 175px;
  height: 80px;
  background-color: rgb(183, 32, 32);
  color: azure;
  font-weight: 800;
  font-size: larger;
  box-shadow: 1px 2px 0.5px rgb(94, 36, 36)
}


.top-row-btns{
  margin: 4% 3%;
}


#equalsTable{
  background-color: rgb(62, 188, 95);
  color: azure;
  box-shadow: 1px 2px 0.5px rgb(45, 135, 86)
}

#equals{
  width: 80px;
  height: 160px;
  background-color: rgb(62, 188, 95);
  color: azure;
  font-weight: 800;
  font-size: larger;
  box-shadow: 1px 2px 0.5px rgb(45, 135, 86)
}






            /*footer starts here*/

footer{
  background-color: #855e85;
  height: 90px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: larger;
  font-weight: 600 ;
}

footer a:hover{
  font-size: 103%;
  color: rgb(160, 157, 157);
}







                /* mobile responsiveness  */


@media  screen and (max-width : 800px) {

  
  
  
  #navbar{
      display: none;
  }



  .dropdown {
    display: flex;
    align-items: center;
    background-color: #4a114a;
    height: 80px;
  }


  .dropdown-content{
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    
    overflow: auto;
    width: 280px;
    height: 190px;
    background-color: #fcfbfc;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  }

  .dropdown-content a{
    text-decoration: none;
   font-size: medium;
   font-weight: 600;
   margin: 3%;
  }

  .dropdown-content a:hover{
    text-decoration: underline;
  }

  .show{
      display: flex;
      margin: 60% 5% 0% 25%;
    }

    
  #hamburgerBtn{
    display: inline-block;
    width: 60px;
    margin-left: 80%;
   
  }

  .hamburger{
    width: 90%;
    height: 100%;
    background-color: #4a114a;
  }

  .hamburger:hover{
    
    box-shadow: 0px 8px 16px 0px rgba(99, 96, 99, 0.2);
  }

  #pic-div{
    padding-top: 20%;
    margin-left: 1.5%;
  }

  #myPic{
    border-width: 1.7px;
    width: 120px;
  }
  
  #description{
    justify-self: center;
  }


  #description p{
    font-size: large;
  }
  
  
  
  main h1{
    margin-left: 8%;
    margin-top: 10%;
  }
  
  section h1{
    margin-left: 8%;
  }
  
  
  
  li, p{
    font-weight: 600;
    font-size: medium;
  }
     
  /*about me section, for mobile, ends here*/

  
  
  
  
  #contact{
    background-image: url(./images/contact-page-background-mobile.jpg);
    background-size: 290%;
  
  }


  #registerBody{
    background-image: url(./images/Register-background.webp);
    background-size: 415%;
    background-position: 40% 100%;
    background-repeat: no-repeat;
    
    
  }


  #backToTop{
    display: none;
  }


  #backToTopMobile{
    display: flex;
   justify-content: center;
  } 


   #backToTopMobile a{
     font-size: normal;
   }    
  
  .arrow{
    width: 12px;
    margin-left: 1%;
   
  }
  
  
  h1{
    font-size: 30px;
    margin-left: 5%;
  }
  
  
  #message{
    width: 80%;
    height: 300px;
    border-radius: 8%;
  }
  
  button{
    
    font-size:medium;
    width: 110px;
    height: 40px;
    margin-left: 48%;
    
  }
  
  button:hover{
    font-size: large;
    width: 112px;
    height: 42px;
  }
  
  
  form{
    margin-left: 16%;
  }
  
  
  form input, select{
    font-size: large;
    width: 80%;
    height: 40px;
  }


  .login-body h1{
    margin-top: 45%;
    margin-left: 10%;
    margin-bottom: 8%;
  }

  .login-body{

    background-image: url(./images/login-background-mobile.jpg);
    background-repeat: no-repeat;
    background-size:370%;
    background-position: 50% 5%;
  }
  
  
  
  /*  the mobile calculators begin here */
  
  
  #calculator1, #calculator2{
    display: flex;
    flex-direction: column;
    justify-items: center;
    font-size: large;
    
  }


  #calculator1 h1, #calculator2 h1{
    
    font-size: larger;
    margin-bottom: 10%;
  }
  
  
  .calc-flex-container, .calc-table-container{
    width: 300px;
    border-radius: 10px;
    
   
  }
  
  
  #inputArea1, #inputArea2 {
    width: 260px;
    height: 60px;
    margin: 10% 5% 5%;
    font-size:x-large;
  
  }
  
  
  
  .calculator1 input, .calculator2 input{
    
    font-size: large;

    width: 60px;
    height: 60px;
    margin: 1%;
    
  }
  
  
  .inner-calc-btns{
    
    margin: 3.5%;
    margin-bottom: 6%;
    
  }
  
  
  .side-btns{
    align-content: space-between;
  }
  
  
  .side-btns input{
    
    margin-top:8%;
    
  }

  
  #c{
    width: 128px;
    height: 60px;
   
    font-size: large;
    
  }
  
  
  .top-row-btns{
    display: block;
    margin: 4% 3.5%;
  }
  
  
  #equals{
    width: 60px;
    height: 120px;
   
    font-size: large;
    
  }
  

  
  footer{
    
    height: 70px;
    font-size: large;
    
  }
  
}



@media  screen and (max-width:400px) {



  .dropdown-content{
    
    width: 190px;
    height: 190px;
  }



  .show{
    display: flex;
    margin: 70% 5% 0% 36%;
  }

  #description p{
    font-size: 98%;
  }

  #contact{
    background-image: url(./images/contact-page-background-mobile.jpg);
    background-size: 330%;
  }


  #backToTopMobile{
    font-size: small;
  }

  #calculator1, #calculator2{
    display: flex;
    flex-direction: column;
    justify-items: center;
    font-size: large;
    margin-left: -7%;
  }


}
  