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

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  outline: none;
  border-radius: 0;
  border: none;
  background: #18171F;
}

[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  background: #E6E5EA;
  border-radius: 50%;
  cursor: pointer;
}

[type=range]::-moz-range-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  background: #E6E5EA;
  border-radius: 50%;
  cursor: pointer;
}

/***** Focus Styles *****/
/* Removes default focus */
input[type=range]:focus {
  outline: none;
}

/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type=range]:active::-webkit-slider-thumb {
  border: 2px solid #A4FFAF;
  background: #18171F;
}

/******** Firefox ********/
input[type=range]:active::-moz-range-thumb {
  border: 2px solid #A4FFAF;
  background: #18171F;
}

input[type=checkbox] {
  width: 20px;
  height: 20px;
  appearance: none;
  background-color: #24232C;
  border: 2px solid #817D92;
  cursor: pointer;
  position: relative;
}

input[type=checkbox]:hover {
  border: 2px solid #A4FFAF;
}

input[type=checkbox]:checked {
  background-color: #A4FFAF;
  border-color: #A4FFAF;
  background-image: url("../assets/images/icon-check.svg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/static/JetBrainsMono-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/static/JetBrainsMono-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}
body {
  font-family: "JetBrains Mono", monospace;
  background-color: #08070B;
  color: #E6E5EA;
  font-size: 1rem;
}

.fw700 {
  font-weight: 700;
}

.container {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password_gen_app_card_wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password_gen_app {
  line-height: 1.3;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #817D92;
  text-align: center;
}

.password_gen_app_top, .password_gen_app_bottom {
  background: #24232C;
  padding: 1rem;
  display: flex;
}

.password_gen_app_top {
  align-items: center;
  justify-content: space-between;
}

.password_gen_app_bottom {
  flex-direction: column;
  gap: 2rem;
}

.password_gen_app_top_password {
  color: #E6E5EA;
  opacity: 0.25;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.password_gen_app_top_password.active {
  opacity: 1;
}

.password_gen_app_top_password_copy {
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.password_gen_app_top_password_copy_text {
  color: #A4FFAF;
  font-size: 1.125rem;
  line-height: 1.3;
  display: none;
}

.password_gen_app_top_password_copy.active .password_gen_app_top_password_copy_text {
  display: block;
}

.password_gen_app_top_password_copy:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(1%) hue-rotate(187deg) brightness(106%) contrast(101%);
}

.password_gen_app_top_password_copy.active:hover img {
  filter: none;
}

.password_gen_app_char_length_text {
  display: flex;
  justify-content: space-between;
  margin-block-end: 0.5rem;
  align-items: center;
}

.password_gen_app_char_length_slider {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.3;
  color: #E6E5EA;
}

.password_gen_app_char_length_p {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.3;
  color: #A4FFAF;
}

.password_gen_app_strength_wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.label_input_wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.label_input_wrap label {
  line-height: 1.3;
  font-size: clamp(1rem, 2vw, 1.125rem);
  cursor: pointer;
}

.password_gen_strength_ind {
  padding: 0.875rem 1rem;
  background: #18171F;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.password_gen_strength_text {
  color: #817D92;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.password_gen_strength {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  opacity: 0;
}

.password_gen_strength.active {
  opacity: 1;
}

.password_gen_strength_ind_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}

.password_gen_strength_ind_boxes_wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password_gen_strength_ind_box {
  border: 2px solid #E6E5EA;
  width: 10px;
  height: 28px;
}

.too_weak div:nth-child(1) {
  background: #F64A4A;
  border: 2px solid #F64A4A;
}

.weak div:nth-child(1) {
  background: #FB7C58;
  border: 2px solid #FB7C58;
}
.weak div:nth-child(2) {
  background: #FB7C58;
  border: 2px solid #FB7C58;
}

.medium div:nth-child(1) {
  background: #F8CD65;
  border: 2px solid #F8CD65;
}
.medium div:nth-child(2) {
  background: #F8CD65;
  border: 2px solid #F8CD65;
}
.medium div:nth-child(3) {
  background: #F8CD65;
  border: 2px solid #F8CD65;
}

.strong div:nth-child(1) {
  background: #A4FFAF;
  border: 2px solid #A4FFAF;
}
.strong div:nth-child(2) {
  background: #A4FFAF;
  border: 2px solid #A4FFAF;
}
.strong div:nth-child(3) {
  background: #A4FFAF;
  border: 2px solid #A4FFAF;
}
.strong div:nth-child(4) {
  background: #A4FFAF;
  border: 2px solid #A4FFAF;
}

.submit_btn {
  padding: 1.125rem;
  background: #A4FFAF;
  color: #24232C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  line-height: 1.3;
  font-size: clamp(1rem, 2vw, 1.125rem);
  border: 2px solid #A4FFAF;
  cursor: pointer;
}

.submit_btn:hover, .submit_btn:focus {
  background: #24232C;
  color: #A4FFAF;
}

.submit_btn:hover img, .submit_btn:focus img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(50%) saturate(307%) hue-rotate(65deg) brightness(98%) contrast(111%);
}

.attribution {
  padding: 0.63rem;
  text-align: center;
  color: #E6E5EA;
}

.attribution a {
  color: #A4FFAF;
}

@media screen and (min-width: 35.75rem) {
  .container {
    max-inline-size: 33.75rem;
    margin: auto;
    padding: 8.31rem 0 12.25rem 0;
    min-height: 100vh;
    gap: 1.94rem;
  }
  .password_gen_app_card_wrap {
    gap: 1.5rem;
  }
  .password_gen_app_top {
    padding: 1.25rem 2rem;
  }
  .password_gen_app_bottom {
    padding: 1.5rem 2rem 2rem 2rem;
    gap: 2rem;
  }
  .password_gen_app_char_length {
    gap: 1rem;
  }
  .password_gen_app_strength_wrap {
    gap: 1.25rem;
  }
  .password_gen_strength_ind {
    padding: 1.25rem 2rem;
  }
  .submit_btn {
    padding: 1.25rem;
  }
  .password_gen_app_char_length_text {
    margin-block-end: 1rem;
  }
}