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

body {
  min-height: 100vh;
  font-family: Open sans, Helvetica, sans-serif;
  background: #111;
  padding: clamp(20px, 5vw, 50px) 10px 10px;
  color: white;
  font-family: Open ;
  font-size: clamp(10px,1.8vw,18px);
}

.container{
  max-width: 600px;
  margin:100px auto ;
  padding:20px;
}

.heading{
  margin-bottom:10px;
  font-weight: 100;

}

.password-contain{
  display: flex;
  align-items: flex-end;
 
}
.password-contain p{
 margin-right: 15px;
 letter-spacing: 1px;
 padding:10px 0;
 width: 100%;
 border-bottom: 1px solid #f1f1f1;
}

.copy-btn{
 width:50px;
 height: 50px;
 border:none;
 border-radius: 5px;
 cursor:pointer;
position: relative;

}

.copy-btn:hover{
  background-color: #fff;
}

.copy-btn img{
  width:50%;
}
.copy-btn::before{
  content: "Copié ✔️";
  font-size: 16px;
  padding:6px;
  white-space : nowrap;
  display: block;
  position: absolute;
  top: -80%;
  left:50%;
  transform:  translateX(-50%);
  border-radius: 5px;
  background: #fff;
  display: none;
}

.copy-btn.active::before{
  display: block;
  animation: toast 0.6s ease-out;
}

@keyframes toast{
  to{
    transform: translateX(-50%),translateY(-2px);
  }
}




.range-group{
  margin:30px 0;
  
}
.range-group label,.range-group input{
 display: block;
}

label[for="range"]{
  font-size: 16px;
}

.range-group input{
  margin-top: 10px;
  width:100%;
  height: 4px;
  cursor:pointer;
}

.chekboxes-container{
margin:30px 0;

}
.checkbox-group{
  display: flex;
  align-items: center;
}
.checkbox-group:not(:first-of-type){
  margin-top: 20px;
}

.checkbox-group input{
  border:none;
  cursor:pointer;
}

.checkbox-group label{
  font-size: 16px;
  font-weight: 100;
  padding-left: 16px;
  cursor: pointer;
}

.generate-password-btn{
  font-size: 18px;
  min-width: 150px;
  padding:10px 0;
  margin:0 auto;
  display:block;
  background: transparent;
  color:#d1d1d1;
  border:1px solid #f1f1f1;
  border-radius: 3px;
  cursor: pointer;
}

.generate-password-btn:hover{
  background: #f1f1f1;
  color:#333;
}

.error-msg{

  text-align: center;
  color:#fff;


}