html {
  height: 100%;
}

body {
  min-width: 320px;
  height: 100%;
  margin: 0 auto;
  font-family: "Titillium Web", sans-serif;
  display: flex;
  flex-direction: column;
}

::selection {
  background-color: #4CAF50; /* Background color of the selection */
  color: white; /* Text color of the selection */
}

h1, h2 {
  line-height: 1;
  margin: 0;
}

h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 3rem;
}

div.wrapper {
  background-color: #3F51B5;
}
div.wrapper.top {
  height: 100vh;
  min-height: 600px;
  overflow: auto;
}
div.wrapper div.inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  padding-bottom: 2rem;
}
div.options {
  color: white;
}

div.textarea-buttons-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
div.textarea-buttons-wrap div.textarea-wrap {
  border-bottom: 2px solid white;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}
div.textarea-buttons-wrap div.textarea-wrap textarea.pw {
  font-family: "Titillium Web", sans-serif;
  background-color: transparent;
  border: 0;
  color: white;
  outline: none;
  font-size: 1.5rem;
  line-height: 1.4;
  height: 232px;
  width: 100%;
  flex-grow: 1;
  resize: none;
  margin-right: 8px;
  word-break: break-all;
  padding: 0;
  overflow: hidden;
}
div.textarea-buttons-wrap div.textarea-wrap textarea.pw.smaller {
  font-size: 1rem;
}
div.textarea-buttons-wrap div.textarea-wrap button.btn-refresh {
  height: 2rem;
  width: 2rem;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  border: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23FFFFFF' d='M20.944 12.979c-.489 4.509-4.306 8.021-8.944 8.021-2.698 0-5.112-1.194-6.763-3.075l1.245-1.633c1.283 1.645 3.276 2.708 5.518 2.708 3.526 0 6.444-2.624 6.923-6.021h-2.923l4-5.25 4 5.25h-3.056zm-15.864-1.979c.487-3.387 3.4-6 6.92-6 2.237 0 4.228 1.059 5.51 2.698l1.244-1.632c-1.65-1.876-4.061-3.066-6.754-3.066-4.632 0-8.443 3.501-8.941 8h-3.059l4 5.25 4-5.25h-2.92z'/></svg>");
}
div.textarea-buttons-wrap div.textarea-wrap button.btn-refresh.loading {
  transform-origin: center center;
  animation: spin 0.8s ease-in-out forwards;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

button {
  font-family: "Titillium Web", sans-serif;
}

div.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
div.controls-row.options3 {
  flex-direction: column;
}
@media (max-width: 500px) {
  div.controls-row {
    align-items: flex-start;
  }
}
div.controls-row.pwlen {
  margin-bottom: 1rem;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: baseline;
}
div.controls-row.pwlen select {
  height: 2.5rem;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background-color: #5d70d1;
  font-size: 16px;
  color: #fff;
  outline: 0;
  font-family: "Titillium Web", sans-serif;
  cursor: pointer;
  transition: all 0.5s ease;
  margin-bottom: 15px;
}
div.controls-row.pwlen select:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
div.controls-row.pwlen label.control-label {
  margin-right: 1rem;
}
div.controls-row.options3 label {
  margin-right: 1rem;
}
div.controls-row .custom-checkbox {
  display: flex;
  cursor: pointer;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
div.controls-row .custom-checkbox input[type=checkbox] {
  opacity: 0;
  position: absolute;
}
div.controls-row .custom-checkbox .checkmark {
  position: relative;
  min-height: 20px;
  min-width: 20px;
  background-color: #eee;
  margin-right: 10px;
  border-radius: 3px;
}
div.controls-row .custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
div.controls-row .custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}
div.controls-row .custom-checkbox input:checked ~ .checkmark {
  background-color: #4CAF50;
}
div.controls-row .custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
div.controls-row .custom-checkbox div.label-text {
  line-height: 1;
}
div.controls-row .custom-checkbox span.character-list {
  font-family: "Inconsolata", monospace;
  color: rgba(255, 255, 255, 0.2784313725);
}

a#permalink {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
}

