body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

main {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.dark {
  background-color: #052227;
  color: white;
}

body.dark main .title {
  color: #90e0ef;
}

body main h1,
p {
  animation: fadein 1s ease-in;
  text-align: center;
}

body main p {
  max-width: 80%;
}

main .gradient {
  position: absolute;
  top: 30vh;
  width: 90%;
  height: 300px;
  background: radial-gradient(#2292a4);
  filter: blur(1000px);
  border: none;
}

.title {
  color: #2292a4;
  font-size: clamp(1.3rem, 50px, 2.5rem);
  margin: 0;
}

.subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 35px;
}

.theme-toggle {
  position: absolute;
  right: 10px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle .icon {
  font-size: 0.7rem;
  transition: font-size 1s ease;
}

.theme-toggle .icon.active {
  font-size: 1.2rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2292a4;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

@keyframes fadein {
  0% {
    opacity: 0.2;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
