html {
  height: 100%;
  scroll-behavior: smooth;
  background-image: url(../assets/background.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: 100vw 100vh;
}

body {
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  text-align: center;
  font-family: Arial;
  font-size: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  word-wrap: break-word;
}

.flex-container {
  display: flex;
  flex-direction: column;
  width: 70vw;
  height: 98.7vh;
  margin: 0;
  gap: 2.7vh;
  justify-content: flex-start;
  align-items: center;
  background: #f7f7f7;
  border-radius: 20px;
  color: #2d6ecd;
  font-weight: bold;
  word-wrap: break-word;
  overflow: auto;
}

.flex-container * {
  margin: 0;
  justify-content: center;
  word-wrap: break-word;
}

h1 {
  max-width: 70vw;
  padding-top: 5vh;
  font-size: 5vh;
  animation: brighten 1s;
}

@keyframes brighten {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.link {
  font-size: 15px;
}

span {
  font-size: 2.5vh;
}

input {
  border: solid 1px #2196f4;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 #00000037, 0 6px 20px 0 #00000030;
  margin-left: 3.7px !important;
}

input:focus {
  box-shadow: none;
}

/* A checkbox container */
.checkbox-container {
  display: block;
  position: relative;
  padding-right: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 2.5vh;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  right: 0;
  height: 25px;
  width: 25px;
  border-radius: 5px;
  background-color: #eeeeee;
  box-shadow: 0 4px 8px 0 #00000037, 0 6px 20px 0 #00000030;
}

.checkmark:active {
  box-shadow: none;
  transition: 1s;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
  background-color: #cccccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background-color: #2196f4;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Show the checkmark when checked */
input:checked ~ .checkmark:after {
  display: block;
}

a.button {
  position: relative;
  display: inline-block;
  padding: 2vh 2vh;
  margin: -10px 0;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.7vh;
  letter-spacing: 0.2vh;
  border-radius: 37px;
  background: linear-gradient(90deg, #0162df, #50b0f0);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 8px 0 #00000037, 0 6px 20px 0 #00000030;
}

a.button::before {
  content: "Generate and Copy";
}

a.button:active {
  box-shadow: none;
  transition: 1s;
}

#ripples {
  position: absolute;
  background: #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  animation: animate 1s linear infinite;
}

@keyframes animate {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.5;
  }

  100% {
    width: 1000px;
    height: 1000px;
    opacity: 0;
  }
}

#button {
  display: block;
}

#length {
  width: 7vw;
  text-align: center;
}

#password {
  position: fixed;
  width: 70vw;
  height: 30vh;
  padding: 1vh 0 5.5vh;
  margin: 0 1vw;
  bottom: 2.25vh;
  border-radius: 0 0 20px 20px;
  font-size: 3.7vh;
  word-wrap: break-word;
  overflow: auto;
  background: linear-gradient(90deg, #0162c8, #50b0f0);
  color: #ffffff;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* For older versions of Firefox */
  appearance: textfield;
}

input {
  font-size: 2.5vh;
}

#footerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 93vh;
  width: 70vw;
  height: 4.5vh;
  padding: 1vh 0;
  font-size: 2.5vh;
  border-top: solid 1px #f2f2f2;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(90deg, #0162c8, #50b0f0);
  color: #f2f2f2;
}

#footerContainer a {
  text-decoration: underline;
}

#footerContainer a:visited {
  color: #f2f2f2;
}

/* noscript */

noscript #enable-javascript {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 70vw;
  margin: 10vh 5vw 1vh;
  padding: 0 2vw 2vh;
  font-size: 16px;
  background-color: #f2f2f2;
  border-radius: 10px;
}

noscript h1 {
  display: none;
}

noscript main {
  display: none;
}

noscript h2 {
  padding: 1vh 0 0;
}

noscript p {
  width: 50vw;
  margin: 1vh 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.5em;
  color: #2f2f2f;
}

noscript details {
  width: 50vw;
  margin: 1vh 0;
  text-align: left;
}

noscript details summary {
  text-align: left;
  cursor: pointer;
}

noscript li {
  margin: 2vh 0;
  font-size: 16px;
  line-height: 1.5em;
}
