*{
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;  
}
body{
  background-color: blueviolet;
}
nav{
    width: 100%;
    height: 75px;
    /* background-color: rgb(78, 76, 155); */
    background-color: blueviolet;
    overflow: hidden;
    user-select: none;
}
nav img{
  width: 120px;

  position: relative;
  top: -27%;
  left: 5px;

}

.main-section{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* background-color: blueviolet; */

  position: relative;
}
.title-logo{
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: baseline;
  user-select: none;
}
.main-section img{
  width: 70px;
  margin-bottom: 20px;
  position: relative;
  top: 75px;
  left: 15px;
}

.main-section h2{
  position: relative;
  top: 91px;
  font-family: sans-serif;
  font-size: 40px;
}


.main-section .button{
  width: 90%;
  margin: auto;
  height: fit-content;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  /* background-color: aqua; */
  position: relative;
  top: 100px;


}




.main-section button{
  width: 130px;
  height: 40px;
  cursor: pointer;
  background-color: rgb(103, 103, 240);
  border: none;

  font-size: 15px;
  border-radius: 7px;

  
}

.main-section button:hover{
  background-color: blue;
}




.main-section form{
  width: 50%;
  height: 10rem;
  margin-top: 150px;
  margin-left: 20px;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: aqua; */
}

.main-section form input{
 width: 100%;
 height: 55px;
 padding: 20px;
 font-size: 16px;
 border-radius: 7px;
 border: none;
 position: absolute;
 user-select: none;

}
.main-section form button{
  position: absolute;
  right: 0px;
  margin-right: 20px;

  width: 100px;
  height: 40px;
  cursor: pointer;
  
}
.main-section form button:hover{
  background-color: rgb(77, 190, 77);
}



.msg{
  width: fit-content;
  height: 40px;
  margin-bottom: 10px;
  margin-left: 5px;

  display: block;
  opacity: 1;
  padding: 10px;
  border-radius: 5px;

  transform: translateX(0px) scale(1);
  transition:
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

  position: fixed;
  bottom: 10px;
  z-index: 999;


   animation: hideMsg 0.5s forwards;
   animation-delay: 11s; /* wait until loading finishes */



}


.msg .item{
width: 100%;
display: flex;
flex-direction: row-reverse;
align-items: center;
text-align: center;
justify-content: space-between;
}

.msg .load{
  width: 0%;
  height: 5px;
  background-color: brown;
  position: absolute;
  left: 0px;
  bottom: 0px;

 transition: width 1s ease-in-out;
 animation: loads 10s forwards;

}




@keyframes loads {
  0%{
   width: 100%;
  }
  10%{
    width: 95%;
  }
  20%{
    width: 90%;
  }
  30%{
    width: 85%;
  }
  35%{
   width: 80%;
  }
  40%{
   width: 70%;
  }
  45%{
   width: 65%;
  }
  50%{
   width: 60%;
  }
  55%{
   width: 55%;
  }
  60%{
   width: 50%;
  }
  65%{
   width: 45%;
  }
  70%{
   width: 40%;
  }
  80%{
   width: 30%;
  }
  90%{
   width: 20%;
  }
  100%{
   width: 0%;

  }
}



@keyframes hideMsg {
  to{
    opacity: 0;
    visibility: hidden;
  }
}






.success{
  /* display: none; */
  background-color: rgb(0, 255, 166);
}
.success p{
  font-size: 16px;
}
.error{
  background-color: rgb(245, 116, 116);
}
.error p{
  font-size: 16px;
}





/* Mobile size */
/* width <= 575.98px */
@media screen and (max-width: 575.98px) {

  body, nav{
    background-color: white;
  }


  .title-logo{
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  user-select: none;
  /* background-color: aqua; */
  margin-bottom: 30px;
  
  }
 
  .title-logo > img{
   margin: auto; 
   position: relative;
   left: 0px;
   right: 0px;
   width: 100px;
  }


/* button */
.button{
  margin: auto;

  

}

.main-section button {
  /* position: relative;
  right: 0px;
  margin-right: 20px;

  width: 50%;
  height: 40px;
  cursor: pointer;
  background-color: rgb(103, 103, 240);
  border: none;

  font-size: 15px;
  border-radius: 7px; */


  width: 100%;
  font-size: 17px;
  font-weight: bold;
  color: aliceblue;

  
}



/* input */


.main-section form{
  width: 90%;
  height: 10rem;
  align-content: center;
  color: rgb(161, 109, 41);
  /* background-color: aqua; */
  margin: 30% auto;
}

.main-section form input{
 border: 0.5px solid;
 outline: 1px;

}

.main-section .count{
position: absolute;
bottom: 100px;
  
}




}