/* General page styling */
body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center; /* Center everything */
  overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Title Styling */
h1 {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold color */
  text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.8); /* Gold glow effect */
  margin: 20px 0;
}

/* Intro Text Styling */
#intro {
  font-size: 18px;
  color: #FFD700; /* Gold color */
  margin: 20px 0;
}

/* Form Styling */
form {
  margin: 20px;
  display: inline-block; /* Keeps the form elements inline */
  text-align: center; /* Center form elements */
}

label {
  font-size: 18px;
  color: #FFD700; /* Gold color */
  display: block; /* Ensure label is on its own line */
  margin-bottom: 5px; /* Add space below the label */
}

input[type="text"] {
  padding: 10px;
  margin-bottom: 10px; /* Adds space between inputs */
  border: 2px solid #FFD700;
  border-radius: 5px;
  width: 200px;
  font-size: 16px;
  display: block; /* Ensures input fields are on separate lines */
  margin-left: auto;
  margin-right: auto; /* Centers the input fields */
}

input[type="button"] {
  padding: 12px 20px; /* More padding for better spacing */
  margin: 10px 0; /* Adds space between buttons */
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 200px; /* Keep button width uniform */
  margin-left: auto;
  margin-right: auto; /* Centers the button */
}

input[type="button"]:hover {
  background-color: #FFC107;
}

input[type="button"]:active {
  background-color: #FFA000;
}

/* Scrollable Table */
#output {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; /* Ensure the table does not overflow the page */
  margin-bottom: 20px;
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box; /* Prevents extra width caused by padding */
}

#output table {
  width: 100%;
  min-width: 600px; /* Ensures that the table width does not collapse */
  border-collapse: collapse;
}

#output th, #output td {
  padding: 8px;
  text-align: center; /* Center align the table contents */
  border: 1px solid #ddd;
}

#output th {
  background-color: #333;
  color: white;
}

#totalGoals {
  font-size: 20px;
  color: #FFD700;
  margin-top: 10px;
  text-align: center; /* Center align the total goals text */
}

/* Footer */
footer {
  background-color: #111;
  color: #ddd;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
  text-align: center;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 36px; /* Adjust title size on smaller screens */
  }

  #intro {
    font-size: 16px; /* Adjust intro font size for smaller screens */
  }

  /* Form inputs will take the full width on small screens */
  input[type="text"], input[type="button"] {
    width: 100%;
    box-sizing: border-box;
  }

  form {
    width: 100%;
    padding: 10px;
    text-align: center; /* Center form content on mobile */
  }

  #output {
    padding: 10px;
  }

  #output table {
    min-width: 100%;
  }

  #output th, #output td {
    font-size: 14px; /* Smaller font size on mobile for readability */
  }

  #totalGoals {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px; /* Even smaller title for very small screens */
  }

  #intro {
    font-size: 14px; /* Adjust intro font size even further for small screens */
  }

  /* Further adjustments for extra small screens */
  input[type="text"], input[type="button"] {
    padding: 12px;
    font-size: 16px;
  }

  #output th, #output td {
    font-size: 12px; /* Further reduce font size for very small screens */
  }

  #totalGoals {
    font-size: 16px;
  }
}

/* About page specific styling */
#aboutContent {
  display: flex; /* Use flexbox to align content side by side */
  justify-content: space-between; /* Space out text and image */
  align-items: center; /* Align items vertically centered */
  padding: 20px;
}

#aboutText {
  flex: 1; /* Text section takes up available space */
  text-align: left; /* Ensure text is left-aligned */
  font-size: 18px;
  margin-right: 20px; /* Space between text and image */
}

#aboutImage {
  flex: 0 0 30%; /* Image takes up 30% of the space */
  text-align: right; /* Align the image to the right */
}

#aboutImage img {
  width: 50%; /* Make the placeholder image half the size of its original */
  max-width: 200px; /* Ensure it doesn't get too large */
  height: auto; /* Maintain aspect ratio */
}

/* Banner image styling */
#aboutBanner img {
  width: 100%; /* Make the banner image stretch across the entire page */
  height: auto;
  max-width: 100%; /* Ensure it stretches across the page */
  margin: 20px 0; /* Add spacing around the banner */
}
