@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Acme&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  background-color: #373b69;
  color: white;
  font-family: "Poppins", sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url(./img/key.jpg) center center;
  background-size: cover;
}

header {
  background-color: #22254b;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  min-height: 10vh;
  opacity: 1;
  animation: slideUp 2s;
  box-shadow: 0px 10px 10px #22254b;
}

header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Acme", sans-serif;
  font-size: 2.5rem;
}

#copy {
  border-radius: 20px;
}

section {
  width: 100vw;
  flex: 1;
  opacity: 1;
}

.pw-container {
  border-radius: 15px;
  background-color: #22254b;
  box-shadow: 30px 30px 10px rgba(0, 0, 0, 0.5);
  width: 33rem;
  height: 25rem;
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 100vh;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
  animation: slideRight 2s;
}

.pw-header {
  padding: 1rem;
}

.pw {
  background-color: #373b69;
  display: flex;
  font-size: 1.5rem;
  align-items: center;
  height: 70px;
  width: 100%;
  position: relative;
  padding: 1rem;
  overflow: auto;
  border-radius: 15px;
}

.pw button {
  background-color: white;
  border: none;
  color: rgb(29, 2, 56);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  padding: 0.25rem;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0, 20%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
}

.pw:hover button {
  opacity: 1;
  transform: translate(0, 0%);
}

.pw-body {
  padding: 0 1rem 1rem;
}

.form-control {
  color: #eee;
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 0;
}

.generate {
  background-color: #373b69;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.75rem;
  margin-top: 1rem;
  width: 100%;
  border-radius: 20px;
  outline: none;
}
.generate:hover {
  background-color: #fff;
  border: none;
  color: #373b69;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.75rem;
  margin-top: 1rem;
  width: 100%;
  border-radius: 20px;
  outline: none;
}

/* footer  */

footer {
  background-color: #22254b;
  display: flex;
  justify-content: flex-end;
  padding: 2rem;
  min-height: 10vh;
  opacity: 1;
  animation: slideDown 2s;
  box-shadow: 30px 30px 10px 40px #22254b;
}

footer p {
  margin: 0;
  opacity: unset;
}

@keyframes slideDown {
  0% {
    transform: translateY(200px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
