
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #1C1C1C;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

section {
  width: 90%;
  max-width: 550px;
  height: auto;
  background-color: #1F2937;
  margin: auto;
  padding: 115px 52px 52px 52px;
}

.light-mode section {
  background-color: #ECFDF5;
}



h1 {
  font-size: 40px;
  font-weight: bolder;
  font-family: "Karla", sans-serif;
  margin: 0 0 10px 0;
}

.green-txt {
  color: #4ADF86;
}

.light-mode .green-txt {
  color: #10B981;
}

.white-txt {
  color: white;
}

.light-mode .white-txt {
  color: black;
}

.sub-h {
  margin: 0 0 51px 0;
}

.off-white-txt {
  font-size: 20px;
  color: #D5D4D8;
  font-family: "Inter", sans-serif;
}

.light-mode .off-white-txt {
  color: #6B7280;
}

input {
  margin-bottom: 10px;
}

button {
  width: 191px;
  height: 42px;
  font-size: 16px;
  color: white;
  background-color: #10B981;
  border: none;
  border-radius: 6px;
  margin: 35px 0 35px 0;
}

.checkbox {
  accent-color: #10B981;
}

#line {
  background-color: #2F3E53;
  height: 1px;
  width: 446px;
  margin: 0 auto 35px auto;
}

.light-mode #line {
  color: #D5D4D8;
}

#pw-length-input {
  width: 60px;
  height: 39px;
  background-color: #273549;
  border: none;
  border-radius: 6px;
  color: #55F991;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  text-align: center;
}

#pw-length-input.light-mode-input {
  background-color: #F3F4F6;
  color: black;
}

.pw.light-mode-pw-text {
  color: black;

}

#pw-box-container {
  display: flex;
  justify-content: space-between;
  height: 39px;
  width: 100%;
  max-width: 446px;
  /* border: 2px solid #10B981; */
}
@media (max-width: 630px) {
  #pw-box-container {
    flex-direction: column;
    height: auto;
    gap: 1em;
  }
}

.pw-box {
  height: 39px;
  width: 211px;
  background-color: #273549;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-box.light-mode-pw-box {
  background-color: #F3F4F6;
  color: black;
}

.pw {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #55F991;
  text-align: center;
}

.light-mode #line {
  color: #5DEF92;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

#dark-light-btn {
  background-color: transparent;
  border: 2px solid #10B981;
  color: #10B981;
  display: relative;
  left: 200px;
}

.light-mode #dark-light-btn {
  border: 2px solid #6B7280;
  color: #6B7280
}

/* Input */

/* Hide default arrows for WebKit browsers (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide default arrows for Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* TOGGLE SWITCH */

.toggle {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 4px;
  bottom: 2px;
  background-color: #FFF;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10B981;
}

input:checked + .slider:before {
  transform: translateX(9px);
}