html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #1e4d6b;  /* Darker blue background */
}

.display-4 {
  color: white;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.snowflake {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  font-size: 1.5em;
  position: absolute;
  top: -20px;
  animation: fall linear infinite;
}

/* Different sizes for variety */
.snowflake:nth-child(3n) { font-size: 1.8em; }
.snowflake:nth-child(3n+1) { font-size: 1.2em; }

/* Positions and animations for all 15 snowflakes */
.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(2) { left: 12%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 20%; animation-duration: 8s; animation-delay: 3s; }
.snowflake:nth-child(4) { left: 28%; animation-duration: 15s; animation-delay: 4s; }
.snowflake:nth-child(5) { left: 35%; animation-duration: 11s; animation-delay: 5s; }
.snowflake:nth-child(6) { left: 42%; animation-duration: 9s; animation-delay: 6s; }
.snowflake:nth-child(7) { left: 50%; animation-duration: 13s; animation-delay: 7s; }
.snowflake:nth-child(8) { left: 58%; animation-duration: 14s; animation-delay: 8s; }
.snowflake:nth-child(9) { left: 65%; animation-duration: 10s; animation-delay: 9s; }
.snowflake:nth-child(10) { left: 72%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(11) { left: 80%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(12) { left: 88%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(13) { left: 95%; animation-duration: 13s; animation-delay: 4s; }
.snowflake:nth-child(14) { left: 25%; animation-duration: 14s; animation-delay: 5s; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 10s; animation-delay: 6s; }

@keyframes fall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}
