:root {
  --clr-1: rgb(41, 139, 230);
  --clr-2: #283328;
  --clr-3: rgb(66, 80, 72);
  --clr-4: rgb(126, 247, 204);
}
body {
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--clr-2);
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 5%;
  font-family: Poppins, Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  gap: 100px;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#output {
  width: 80%;
  min-height: 150px;
  padding: 5%;
  padding-top: 2%;
  padding-bottom: 3%;
}

#output h3 {
  text-align: center;
  font-size: 2rem;
  margin: 1%;
}
#output p {
  margin-top: 1%;
  font-size: 1.1rem;
}

#output h1,
h2,
h4 {
  margin: 0;
  margin-bottom: 1%;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.border {
  border-radius: 10px;
  position: relative;
  background-color: var(--clr-3);
  width: 80%;
}
.border::after,
.border::before {
  content: "";
  position: absolute;
  background-image: conic-gradient(
    from var(--angle),
    var(--clr-1),
    var(--clr-4),
    var(--clr-1),
    var(--clr-4),
    var(--clr-1)
  );
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -10;
  padding: 5px;
  border-radius: 10px;
  animation: 10s spin linear infinite;
}
.border::before {
  filter: blur(2rem);
  opacity: 0.5;
}
@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

#api-key-form {
  width: 80%;
  margin: auto;
  margin-top: 2%;
  margin-bottom: 1%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(20deg, var(--clr-1), var(--clr-4));
  border: solid var(--clr-2) 5px;
  padding: 2%;
  border-radius: 10px;
}

#api-key-form button {
  background: transparent;
  border: none;
  color: white;
  font-weight: bolder;
  font-size: 1.5rem;
  text-decoration: underline;
}

#api-key-form div input {
  background: transparent;
  border: solid var(--clr-2) 2px;
  border-radius: 4px;
  width: 300px;
  color: white;
}
