@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --bg-color: #fcfcfc;
  --very-strong: #a3f080;
  --strong: #c1eeac;
  --good: #eecbac;
  --weak: #f09a80;
  --very-weak: #f27171;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3cm;
  padding: 4cm 1cm;
}

body {
  background-color: var(--bg-color);
}

section h1.title {
  font-size: xx-large;
  text-align: center;
}
section p.undertitle {
  font-size: 12px;
  text-align: center;
}

img {
  max-width: 20px;
  max-height: 20px;
}

#generatorSection > * {
  scale: 1.3;
}

#infoSection {
  background-color: #7abee297;
}
#infoSection .infoWarper {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
}
#infoSection .infoWarper .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 300px;
  background-color: #f4fbff;
  border: 3px dashed #7abee2d0;
  border-radius: 10px;
  padding: 30px 20px;
}
#infoSection .infoWarper .info img {
  max-width: 80px;
  max-height: 80px;
}
#infoSection .infoWarper .info p {
  font-size: 15px;
}

#generatedInfo {
  display: inline-flex;
  gap: 15px;
}

#generatedInfo button {
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px dashed #80d2ff;
  background-color: #80d3ff85;
  cursor: pointer;
  box-shadow: 0 0 8px #80d3ff9e;
  transition: box-shadow 200ms;
}

#generatedInfo button:hover {
  box-shadow: 0 0 1px #80d3ff9e;
}

#inputInfo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #4e687a;
  border-radius: 15px;
  box-shadow: inset 0 0 10px #6a92bd33;
}

#inputInfo input {
  border: none;
  outline: none;
}

#inputInfo span {
  font-size: x-small;
  background-color: var(--very-strong);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: bold;
  letter-spacing: 0.2px;
}

#inputInfo img {
  width: 18px;
  cursor: pointer;
}

.passwordLengthInputWarper {
  display: inline-flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 5px 10px;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.passwordLengthInputWarper img {
  cursor: pointer;
}

.passwordLengthInputWarper input {
  border: none;
  outline: none;
  text-align: center;
  font-weight: bold;
  font-size: larger;
  width: 100%;
}

.usedCaracters {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  gap: 15px;
  width: 100%;
}

.usedCaracters div {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.usedCaracters label {
  font-size: large;
  font-weight: bold;
  letter-spacing: 1px;
}

.usedCaracters input {
  appearance: none;
  padding: 10px;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  outline: none;
  border: 1px dashed #4e687a;
  box-shadow: inset 0 0 10px #6a92bd33;
  cursor: pointer;
  place-content: center;
  display: grid;
}

.usedCaracters input::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  transform: scale(0);
  background-color: #071d2b;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  box-shadow: 0px 2px 4px 0px #071d2b1f inset;
}
.usedCaracters input:checked::before {
  transform: scale(1);
}

@media (max-width: 700px) {
  #infoSection .infoWarper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 1cm;
  }
  #generatorSection {
    transform: scale(0.8);
  }
}

@media (max-width: 400px) {
  #generatorSection {
    transform: scale(0.68);
  }
}
