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

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  font-family: "Poppins";
}

h1 {
  font-size: 3rem;
}

p {
  font-size: 0.8rem;
  font-weight: 500;
}

.display-button {
  margin: 2rem;
  display: flex;
  justify-content: space-between;
}

.display-pass{
  height:3rem;
  width:29rem;
  border-radius: 2rem;
  border:1px solid black;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem;
  box-sizing:border-box;
  box-shadow: inset 1px 1px 5px rgb(173, 173, 173);
}

.random-pass{
  border:none;
  outline: none;
  margin-right: 1rem;
  padding-left: 1rem;
  font-size: 1rem;
  background-color: transparent;
}

.strength{
  height:1.4rem;
  width:7rem;
  border:none;
  background-color: #9ae437;
  font-size: 0.8rem;
  padding: 0.1rem 0 0 1.1rem;
  border-radius: 3px;
  font-weight: 600;
}

img{
  cursor: pointer;
}


.copyBtn {
  height: 3rem;
  width: 5rem;
  border-radius: 2rem;
  border: none;
  background-color: rgb(87, 87, 255);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.copyBtn:hover {
  background-color: rgb(41, 41, 255);
}

.length-slider {
  margin: 2rem;
}

.pass-lenth {
  margin-right: 9rem;
  font-weight: 500;
}

.minus,
.plus {
  height: 2rem;
  width: 2rem;
  border-radius: 2rem;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: rgb(87, 87, 255);
  color: white;
}

.styled-range {
  width: 12rem;
  cursor: pointer;
}

.options > p {
  margin-right: 4rem;
  font-size: 1em;
  font-weight: 500;
}

input[type="checkbox"] {
  display: none;
}

label {
  display: inline-block;
  position: relative;
  padding-left: 15px;
  cursor: pointer;
  user-select: none;
  padding-left: 24px;
  margin-left: 2rem;
  font-weight: 600;
}

label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 5px rgb(173, 173, 173);
  background-color: #fff;
  border-radius: 4px;
}

input[type="checkbox"]:checked + label::before {
  background-color: white;
}

label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7.5px;
  width: 3px;
  height: 7px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

input[type="checkbox"]:checked + label::after {
  opacity: 1;
}

.feedback-message {
  display: none;
  position: absolute;
  top: 35rem;
  bottom: 0;
  left: 45rem;
  right: 0;
}

.error-message{
  display: none;
  position: absolute;
  top: 35rem;
  bottom: 0;
  left: 34rem;
  right: 0;
}


@media (max-width: 730px) {
  h1 {
    font-size: 2.2rem; 
    text-align: center;
  }
  .des{
    font-size: 0.6rem;
  }
  .display-button{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    width: 100%;
    gap: 1rem;
  }
  .display-pass{
    width:23rem;
  }
  .strength{
    width:7rem;
  }
  .random-pass{
    width: 8rem;
  }
  .length-slider{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    margin: 0;
  }
  .pass-lenth{
    text-align: center;
    margin-left: 8rem;
    width: 100%;
  }
  .options{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    text-align: center;
  }
  .options > p{
    margin-left: 4rem;
  }

}
