@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #f8f8f8;
}

br {
  line-height: 1;
}

.bg {
  position: fixed;
  min-height: 100vh;
  min-width: 100vw;
  background-color: #e5e5f7;
  opacity: 0.1;
  background-image: radial-gradient(#000000 1.05px, #e5e5f7 1.05px);
  background-size: 21px 21px;
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding-inline: 10%;
  background-color: white;
}

main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  padding-inline: 10%;
  padding-top: clamp(1rem, 5vw, 5rem);
  padding-bottom: clamp(1rem, 5vw, 3rem);
  gap: 1.5rem;
}

.even {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  p {
    text-wrap: balance;
    max-width: 64ch;
  }
}

.even div:has(p) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.generator {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  button,
  input {
    max-width: 300px;
  }
  button {
    border: transparent;
    background-color: black;
    color: white;
    padding-block: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
  }
  .inputs {
    display: flex;
    justify-content: space-between;
    width: 300px;
    gap: 1rem;
    align-items: center;
  }
}

.result {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  padding-top: 0.5rem;
}

input.error {
  border: 2px solid red;
}

@media screen and (max-width: 800px) {
  main {
    flex-direction: column;
  }
  .copyright {
    opacity: 0;
  }
}
