/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures the body takes at least the full viewport height */
}

h1, h2, h3 {
  margin: 20px 0;
  padding: 0;
  color: #333;
}

p {
  margin-bottom: 20px;
}

/* Navigation Styles */
nav {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  color: #ddd;
}

/* Main Content Styles */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  border-radius: 8px;
  flex: 1; /* Allows the main content to grow and fill available space */
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  position: relative; /* Changed from fixed to relative for better layout flow */
  bottom: 0;
  width: 100%;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  color: #ddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding-bottom: 40px; /* Adds extra padding at the bottom for mobile screens */
  }
}
