* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  text-transform: capitalize;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background-color: #38bdf8;
}

.container {
  width: 30%;
  background-color: #fff;
  border-radius: 7px;
  box-shadow: 0px 21px 21px rgba(0, 0, 0, 0.2);
  padding: 20px 10px;
}

.container header {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 6px;
}

.container header h1 {
  font-size: 18px;
  color: #333;
}

.display {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.display-area {
  width: 100%;
  display: flex;
  align-items: center;
  border: 1px solid lightgrey;
  padding: 0 6px;
  border-radius: 4px;
}

.display-area input {
  width: 100%;
  height: 40px;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  color: #000;
}

.display-area button {
  width: 100px;
  padding: 6px;
  background-color: #38bdf8;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}

.display-area button.active {
  display: block;
}

.password-level {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 30px;
  display: none;
}

.password-level.active {
  display: block;
}

.password-level div {
  width: 75%;
  height: 100%;
  display: block;
}

.password-level div.low {
  width: 25%;
  background-color: red;
}

.password-level div.mid {
  width: 56%;
  background-color: yellow;
}

.password-level div.normal {
  width: 75%;
  background-color: blue;
}

.password-level div.strong {
  width: 100%;
  background-color: green;
}

.pass-length {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.pass-length p {
  font-size: 16px;
  color: #000;
}

.range {
  width: 100%;
  height: 10px;
  cursor: pointer;
  accent-color: #38bdf8;
  outline: none;
  border: none;
}

.btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 81%;
  margin: 20px auto;
  gap: 10px;
}

.checkbox {
  width: 150px;
}

.checkbox input {
  font-size: 30px;
  text-align: center;
  user-select: none;
}

.checkbox label {
  font-size: 16px;
  cursor: pointer;
  text-transform: none;
  user-select: none;
}

button {
  width: 60%;
  height: 40px;
  background-color: #38bdf8;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  margin: 10px auto;
  cursor: pointer;
  outline: none;
  border: none;
  text-align: center;
  display: block;
}

@media (max-width: 450px) {
  .container {
    width: 90%;
  }
}
