/* styles.css ~ Copyright (©) 2025 Owen E. Denby ~ v2.0.10 ~ Made with <3 in the City of Lakes */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root[data-theme="light"] {
  --text: #000000;
  --background: #C0FCF4;
  --primary: #005c3d;
  --secondary: #61ffca;
  --accent: #57b771;
}
:root[data-theme="dark"] {
  --text: #ffffff;
  --background: #021811;
  --primary: #a3ffe0;
  --secondary: #009e69;
  --accent: #48a861;
}

/* General font settings */
body,
button {
  font-family: "Manrope";
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: var(--text);
  background-color: var(--background);
}

/* Make the footer stay at the bottom */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Ensures the main content pushes the footer down */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5dvh;
}

.main-content h1 {
  font-size: 80px;
  font-weight: 800;
  text-align: center;
  margin: 10dvh 0 0 0;
}

.main-content p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0px 20%;
  text-align: center;
}

/* SVG and object adjustments */
object {
  height: 20px;
  width: 20px;
  margin: 5px;
}

/* Button stuff */

* {
  box-sizing: border-box;
}

.btn {
  :active,
  :hover,
  :focus {
    outline: 0 !important;
    outline-offset: 0;
  }
}

::before,
::after {
  position: absolute;
  content: "";
}

.btn {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0px 5px 0px;
  min-width: 150px;
}

#ctaBtn {
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ctaBtn svg {
  height: 24px;
  width: auto;
  margin-right: 10px;
}

#ctaBtn img {
  height: 24px;
  width: auto;
  margin-right: 10px;
}

.btn span {
  position: relative;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  transition: 0.3s;
}

/*--- btn-1 ---*/
.btn-1::before {
  background-color: var(--primary); /* Use primary color */
  transition: 0.3s ease-out;
}

.btn-1 span {
  color: var(--background); /* Text color */
  border: 1px solid var(--primary); /* Border color */
  transition: 0.2s 0.1s;
}

.btn-1 span:hover {
  color: var(--primary); /* Text color on hover */
  transition: 0.2s 0.1s;
}

/* hover-filled-slide-right */
.btn.hover-filled-slide-right::before {
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
}

.btn.hover-filled-slide-right:hover::before {
  width: 0%;
}

/*--- btn-2 ---*/
.btn-2::before {
  background-color: var(--primary); /* Use primary color */
  transition: 0.3s ease-out;
}

.btn-2 span {
  color: var(--primary); /* Text color */
  border: 1px solid var(--primary); /* Border color */
  transition: 0.2s;
}

.btn-2 span:hover {
  color: var(--background); /* Text color on hover */
  transition: 0.2s 0.1s;
}

/* hover-slide-right */
.btn.hover-slide-right::before {
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0%;
}

.btn.hover-slide-right:hover::before {
  width: 100%;
}


@media screen and (max-width: 768px) {
  .main-content {
    gap: 20px; /* Reduce spacing */
    padding: 20px;
    text-align: center;
  }

  .main-content h1 {
    font-size: 40px; /* Smaller heading */
  }

  .main-content p {
    font-size: 16px;
    margin: 0 10%; /* Widen text layout */
  }

  /* Ensure buttons stack correctly */
  .homepage-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px; /* Add space between buttons */
  }

  .btn {
    width: 90%; /* Adjust button width */
    max-width: 280px; /* Keep a max width */
    padding: 12px 20px;
  }

  .btn-1 span,
  .btn-2 span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px; /* Adjust text size */
  }

  /* Fix hover effects for mobile */
  .btn:hover::before {
    width: 100% !important;
  }
}


/* SNOW ANIMATION */

@keyframes snowfall {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: var(--size);
  height: var(--size);
  background: white;
  border-radius: 50%;
  opacity: var(--opacity);
  animation: snowfall linear infinite;
}

/* Randomized properties using nth-child */
.snowflake:nth-child(1)  { --size: 6px;  --opacity: 0.9; left: 2%;  animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(2)  { --size: 4px;  --opacity: 0.7; left: 10%; animation-duration: 7s; animation-delay: 3s; }
.snowflake:nth-child(3)  { --size: 8px;  --opacity: 0.8; left: 15%; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(4)  { --size: 5px;  --opacity: 0.6; left: 25%; animation-duration: 6s;  animation-delay: 5s; }
.snowflake:nth-child(5)  { --size: 7px;  --opacity: 0.9; left: 30%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(6)  { --size: 6px;  --opacity: 0.5; left: 40%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(7)  { --size: 4px;  --opacity: 0.7; left: 50%; animation-duration: 9s; animation-delay: 4s; }
.snowflake:nth-child(8)  { --size: 9px;  --opacity: 0.8; left: 55%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(9)  { --size: 5px;  --opacity: 0.6; left: 60%; animation-duration: 7s; animation-delay: 3s; }
.snowflake:nth-child(10) { --size: 7px;  --opacity: 0.9; left: 65%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(11) { --size: 6px;  --opacity: 0.5; left: 70%; animation-duration: 8s; animation-delay: 5s; }
.snowflake:nth-child(12) { --size: 4px;  --opacity: 0.7; left: 75%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(13) { --size: 8px;  --opacity: 0.8; left: 80%; animation-duration: 12s; animation-delay: 3s; }
.snowflake:nth-child(14) { --size: 5px;  --opacity: 0.6; left: 85%; animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(15) { --size: 7px;  --opacity: 0.9; left: 90%; animation-duration: 11s; animation-delay: 4s; }
.snowflake:nth-child(16) { --size: 6px;  --opacity: 0.5; left: 95%; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(17) { --size: 4px;  --opacity: 0.7; left: 98%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(18) { --size: 9px;  --opacity: 0.8; left: 3%;  animation-duration: 12s; animation-delay: 3s; }
.snowflake:nth-child(19) { --size: 5px;  --opacity: 0.6; left: 8%;  animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(20) { --size: 7px;  --opacity: 0.9; left: 12%; animation-duration: 11s; animation-delay: 4s; }
.snowflake:nth-child(21) { --size: 6px;  --opacity: 0.5; left: 17%; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(22) { --size: 4px;  --opacity: 0.7; left: 22%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(23) { --size: 8px;  --opacity: 0.8; left: 27%; animation-duration: 12s; animation-delay: 3s; }
.snowflake:nth-child(24) { --size: 5px;  --opacity: 0.6; left: 32%; animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(25) { --size: 7px;  --opacity: 0.9; left: 37%; animation-duration: 11s; animation-delay: 4s; }
.snowflake:nth-child(26) { --size: 6px;  --opacity: 0.5; left: 42%; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(27) { --size: 4px;  --opacity: 0.7; left: 47%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(28) { --size: 9px;  --opacity: 0.8; left: 52%; animation-duration: 12s; animation-delay: 3s; }
.snowflake:nth-child(29) { --size: 5px;  --opacity: 0.6; left: 57%; animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(30) { --size: 7px;  --opacity: 0.9; left: 62%; animation-duration: 11s; animation-delay: 4s; }


[data-theme="light"] .snowflakes {
  display: none;
}

/* Login Form */

form {
  position: relative;
  display: inline-block;
  max-width: 700px;
  box-sizing: border-box;
  background-color: var(--background);
}

/* =========================
   Inputs + Labels
   ========================= */
/* login form text boxes */

.question {
  position: relative;
  padding: 20px 0;
}

/* email */

.question input[type="email"] {
  appearance: none;
  background: none;
  border: 1px solid var(--primary);
  font-size: 16px;
  width: 100%;
  display: block;
  padding: 15px 20px; /* centers vertically */
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
  background-color: transparent;
}

.question input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Labels inside input (float on focus) */
.question label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  transition: 0.2s ease;
}

.question input[type="email"]:focus ~ label,
.question input[type="email"]:valid ~ label {
  font-size: 12px;
  font-style: italic;
  top: 4px;
  left: 15px;
  background: var(--background);
  padding: 0 4px;
  color: var(--accent);
}

/* password */

.question input[type="password"] {
  appearance: none;
  background: none;
  border: 1px solid var(--primary);
  font-size: 16px;
  width: 100%;
  display: block;
  padding: 15px 20px; /* centers vertically */
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
  background-color: transparent;
}

.question input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Labels inside input (float on focus) */
.question label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  transition: 0.2s ease;
}

.question input[type="password"]:focus ~ label,
.question input[type="password"]:valid ~ label {
  font-size: 12px;
  top: 4px;
  left: 15px;
  background: var(--background);
  padding: 0 4px;
  color: var(--accent);
  font-style: italic;
}

.loginBtns {
  align-items: left;
  padding: 20px 0px;
  display: flex;
  justify-content: space-evenly;
}

.label-replacement,
.password-label-replacement {
  position: absolute;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  font-size: 12px;
  top: -3px;
  left: 15px;
  background: var(--background);
  padding: 0 4px;
  color: var(--accent);
  font-style: italic;
}

/* End Login Form CSS */

/* a tag animation */

#createAccountLink.hover-underline-animation {
    display: inline-block;
    position: relative;
}

#createAccountLink.hover-underline-animation::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #a0a0a0;
    transition: transform 0.25s ease-out;
}

#createAccountLink.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

#createAccountLink.hover-underline-animation.left::after {
    transform-origin: bottom right;
}

#createAccountLink.hover-underline-animation.left:hover::after {
    transform-origin: bottom left;
}

/* Disable hover animation on mobile */
@media (max-width: 768px) {
    #createAccountLink.hover-underline-animation::after {
        transition: none; /* Remove transition for smoother mobile experience */
    }
  }

#createAccountLink.hover-underline-animation {
    color: #a0a0a0 !important;
    text-decoration: none;
  }

/* keeping footer raised above bottom */

footer {
  margin-bottom: 60px; /* Creates visible space under footer */
}


footer,
footer * {
  margin-bottom: 0;
}

footer::after {
  content: "";
  display: block;
  height: 60px; /* same as margin-bottom */
}

