/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* textarea custom scrollbar css start */
::-webkit-scrollbar {
  width: 0.2rem;
  margin-right: 0.3rem;
  /* display: none; */
}
::-webkit-scrollbar-track {
  background: #f2f2f2;
}

::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}

::-webkit-scrollbar-thumb:hover {
  background: #6e6e6e;
}
/* textarea custom scrollbar css end */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #4285f4;
}
.container {
  width: 30rem;
  max-height: 580px;
  background: #fff;
  border-radius: 8px;
  overflow: auto;
}
.container h2 {
  font-weight: 600;
  font-size: 1.31rem;
  padding: 1rem 1.175rem;
  border-bottom: 1px solid #d4dbe5;
}
.wrapper {
  height: 100%;
  margin: 1.25rem 1.75rem;
}
.wrapper-error {
  margin: 1.25rem 1.75rem;
}
/* Select Start */
.pass-type {
  display: flex;
  margin: 0 0 1rem 0;
}
.pass-type .pass-type-cover {
  display: flex;
  position: relative;
}
.pass-type select {
  outline: none;
  -webkit-appearance: none;
  margin-left: 0.8rem;
  padding-left: 0.2rem;
  width: 7.5rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  border: 2px solid #4285f4;
  border-radius: 5px;
  background: #fff;
  color: #555;
  line-height: normal;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.pass-type select option {
  font-family: inherit;
  line-height: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}
.pass-type span {
  position: absolute;
  color: #4285f4;
  top: 2px;
  right: 5px;
  bottom: 5px;
  pointer-events: none;
  cursor: pointer;
}
/* Select End */

.wrapper .input-box {
  position: relative;
}
.input-box textarea {
  width: 100%;
  height: 2.2rem;
  color: #000;
  background: none;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 1px;
  /* to fix cutting text area corners by custom scrollbar start*/
  border: 2.2px solid transparent;
  box-shadow: 0 0 0 1.2px #aaa;
  /* to fix cutting text area corners by custom scrollbar end*/
  border-radius: 4px;
  padding: 0 2rem 0 1rem;
  resize: none;
  /* overflow: hidden; */
}
.input-box span {
  position: absolute;
  right: 10px;
  cursor: pointer;
  line-height: 2rem;
  color: #707070;
}
.wrapper .pass-indicator {
  width: 100%;
  height: 5px;
  position: relative;
  background: #dfdfdf;
  margin-top: 0.75rem;
  border-radius: 25px;
}
.pass-indicator::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: #f1c80b;
  transition: width 0.3s ease;
}
.pass-indicator#weak::before {
  width: 20%;
  background: #e64a4a;
}
.pass-indicator#medium::before {
  width: 50%;
  background: #f1c80b;
}
.pass-indicator#strong::before {
  width: 100%;
  background: #02a031;
}
.wrapper .pass-length {
  margin: 1.5rem 0 1.25rem 0;
}
.pass-length .details {
  display: flex;
  justify-content: space-between;
}
.pass-length input {
  width: 100%;
  height: 0.5rem;
}
.pass-settings-title {
  display: flex;
  align-items: center;
}
.pass-settings-title span {
  cursor: pointer;
  margin-left: 2px;
  font-size: 1.3rem;
  color: #707070;
}
.pass-settings .options-password {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pass-settings .options-password .option {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  width: calc(100% / 2);
}
.options-password .option:first-child {
  pointer-events: none;
}
.options-password .option:first-child input {
  opacity: 0.5;
}
.options-password .option input {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
}
.options-password .option label {
  cursor: pointer;
  padding-left: 0.63rem;
}
.options-password .option:nth-child(5) {
  line-height: 0.85rem;
  display: flex;
  align-items: flex-start;
}
.options-password .option:nth-child(5) span {
  font-size: 0.6rem;
}
.options-password .option:nth-child(6) {
  line-height: 0.85rem;
  display: flex;
  align-items: flex-start;
}

/* Passphrase settings start */

.passphraseSettingsContainer {
  margin-top: 1rem;
  display: none;
}
.wordSeperator .wordSeparatorInput {
  /* margin-left: 1rem; */
  margin-top: 0.3rem;
  width: 35%;
  outline: none;
  padding: 0 0.5rem;
  height: 2rem;
  color: #000;
  background: none;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 1px solid #aaa;
  padding: 0.3rem 1.5rem 0.3rem 1rem;
}
.passphraseSettingsContainer .options-passphrase {
  display: flex;
  list-style: none;
}
.options-passphrase .option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: calc(100% / 2);
}

.options-passphrase .option input {
  height: 1rem;
  width: 1rem;
  cursor: pointer;
}
.options-passphrase .option label {
  cursor: pointer;
  padding-left: 0.63rem;
}

/* Passphrase settings end */

.wrapper .generate-btn {
  width: 100%;
  color: #fff;
  background: #4285f4;
  border: none;
  outline: none;
  border-radius: 5px;
  font-size: 1.06rem;
  text-transform: uppercase;
  padding: 0.4rem 0;
  /* margin: 0.94rem 0 1.3rem; */
  margin: 0.94rem 0 0;
  cursor: pointer;
}

.wrapper .loading {
  display: none;
  justify-content: center;
}

/* smartphones, Android phones, landscape iPhone */

@media (max-width: 480px) {
  .container {
    width: 23rem;
  }
  .container h2 {
    font-weight: 600;
    font-size: 1.2rem;
  }
  .input-box textarea {
    font-size: 1rem;
    font-weight: 500;
    max-height: 5rem;
  }
  .pass-settings .options-password {
    font-size: 0.85rem;
  }
}

/* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
@media (max-width: 360px) {
  .container {
    width: 20rem;
  }
  .container h2 {
    font-weight: 500;
    font-size: 1.1rem;
  }
  .wrapper {
    font-size: 0.9rem;
  }
  .input-box textarea {
    font-size: 0.8rem;
    font-weight: 400;
    max-height: 4rem;
  }
  .pass-settings .options-password {
    font-size: 0.7rem;
  }
  .wrapper .generate-btn {
    font-size: 0.9rem;
  }
}
