/* Snow Animation Styling */

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0d1b2a, #1b263b, #415a77, #778da9);
  color: white;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.snow-container {
  position: fixed; /* Keep snow animation fixed */
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none; 
}

.snowflake {
  position: absolute;
  top: -10px;
  font-size: 1em;
  color: white;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.text-overlay {
  position: relative; /* Make it part of the document flow */
  padding: 20px;
  margin: 10px auto 0;
  max-width: min(90%, 700px); 
  text-align: center;
  z-index: 2;
  padding-top: 20vh; /* 20% of the viewport height */
}

.text-overlay h2 {
  font-size: 3em;
  margin: 0;
}

.text-overlay p {
  font-size: 1.2em;
  margin: 10px 0 0;
}

.body-text {
  position: relative; /* Make it scrollable */
  margin: 50px auto;
  max-width: min(1000px, 90%);
  text-align: center;
  font-size: 1em;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 10px;
  z-index: 2;
}

.body-text a {
    color: white; /* Makes hyperlinks white */
    text-decoration: underline; /* Adds underline to hyperlinks */
}

.body-text a:hover {
    color: #ddd; /* Optional: slightly lighter color on hover */
}

/* Mobile styles */
@media (max-width: 768px) {
  .text-overlay h2 {
    font-size: 2em;
  }

  .text-overlay p {
    font-size: 1em;
  }

  .body-text {
    font-size: 0.9em;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .text-overlay h2 {
    font-size: 1.5em;
  }

  .text-overlay p {
    font-size: 0.9em;
  }

  .body-text {
    font-size: 0.8em;
    padding: 8px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #ccc; 
  border-radius: 10px;
  background-color: rgba(26, 37, 57, 0.5);
  color: #fff;
}

.card h5 {
  font-size: 1.2rem;
  font-weight: bold;
}

.card img {
  border-radius: 6px;
}
