/* Ensure full-screen layout always */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-width: 100vw;
}

nav {
  text-align: center;
  background: linear-gradient(to right,	#ffe1e1, #ff9d9d, #ffe1e1);
  padding: 10px 0;
  border-radius: 20px 20px 20px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin: 0 15px; 
  text-decoration: none;
  color: #444;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #d45d79;
}

nav p {
  margin: 0 0 5px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #444;
}

/* Background image wrapper using a pseudo-overlay for opacity */
body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;

  /* Background image */
  background-image: url('https://i.pinimg.com/736x/65/99/4c/65994cc973c74407c450bb8f64ff3048.jpg');
  background-repeat: repeat-y;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  
}



/* Content container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

/* Fun facts section layout */
.fun-facts {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Each fun fact row */
.fun-fact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* Image styles */
.fun-fact img {
  width: 100%;
  max-width: 300px;
  height: auto; 
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Text next to image */
.fun-fact .fact-text {
  flex: 1;
  min-width: 250px;
}

/* Alternate layout (image on right) */
.fun-fact.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

/* Optional background image tweaks */
.background-image {
  opacity: 0.9;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 20px auto;
  max-width: 800px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.fact {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  background: transparent;
}

.fact img {
  width: 150px;
  height: 150px;
  object-fit: cover;  /* crops the image to fill the square */
  border-radius: 10px;
  flex-shrink: 0;
}

.fact-text {
  flex: 1;  /* text takes remaining width */
  text-align: left;
}



footer {
  text-align: center;
  }
  
body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* Titles and headers – thicker and colored */
h1, h2 {
  font-weight: 800;
  font-size: 2rem;
  color: #2b6c2b;
  margin-bottom: 10px;
}

h3, h4 {
  font-weight: 700;
  color: #356f35;
}

p {
  font-weight: 700;
  color: #4a4a4a;
}

.bouncy-text {
  position: relative;
  animation-name: bounce;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  }
  
  @keyframes bounce {
    0%{
      top: 0px;
      }
    50%{
      top:10px;
      }
    100%{
      top: 0px;
      }
    }