/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --chart-height: 100vh;
}

/* Ensure the body takes up the full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Body for white background pages */
body {
    background-color: #ffffff; /* White background */
    color: #333; /* Dark gray for readability */
    font-family: 'Open Sans', sans-serif;
}

/* Flexbox layout for main content */
.main {
    flex: 1; /* Make the main content grow and take up available space */
    display: block;
    justify-content: center;
    align-items: justify;
    text-align: center;
}

/* Header and Navigation Styling */
header {
    background-color: transparent;
    padding: 20px 0;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: flex-end; /* Aligns the nav menu to the right */
    list-style: none;
    margin-right: 20px; /* Adds a bit of margin from the right side */
}

nav ul li {
    margin: 0 20px; /* Adds spacing between navigation items */
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Dark text for navigation links on pages with a white background */
nav ul li a {
    color: #000;
}

/* White text for navigation links on pages with a gradient background */
.gradient-bg nav ul li a {
    color: #fff;
}

/* Gradient background for specific pages */
.gradient-bg {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298) no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* Content styling */
.content {
    margin-top: 20px;
}

.content h1 {
    font-size: 60px;
    text-align: center;
    line-height: 1;
}

.content h1 .line1 {
    font-weight: bold;
    font-size: 60px;
}

.content h1 .line2 {
    font-weight: normal;
    font-size: 32px;
}

.content h1 .line3 {
    font-weight: normal;
    font-size: 60px;
}

/* Search Box Styling */
.search-box {
    margin-top: 40px;
}

.search-box input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    width: 300px;
}

.search-box button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1d7f99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #145a70;
}

/* About Page Specific Styles */
.about-page .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background-color: transparent;
    color: #fff;
    border-radius: 8px;
    line-height: 1.6;
    flex: 1;
}

.about-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: left;
}

.about-page h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.about-page p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-page ul, .about-page ol {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-page a {
    color: #fff;
    text-decoration: underline;
}

.about-page a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Footer Styling */
footer {
    background-color: #1d7f99;
    color: white;
    padding: 20px;
    text-align: center; /* Ensure the entire footer content is centered */
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
    text-align: center; /* Explicitly center the paragraph text */
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

footer nav ul li {
    margin: 0 15px;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

footer nav ul li a:hover {
    text-decoration: underline;
}


/* Highcharts chart container */
.highcharts-figure {
    margin: 0 auto;
    max-width: 900px;
    min-width: 360px;
}

/* Set the height of the chart */
#container {
    height: 1200px;
}

/* Styling for the navigation */
header {
    background-color: #1d7f99;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

table {
    width: 100%;
    margin: 0; /* Remove top margin */
}

.dataTables_wrapper {
    margin-top: 0;
    height: auto; /* Ensure the DataTable wrapper takes only necessary space */
}

/* same max width for toolbar + chart */
.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

/* toolbar */
.toolbar {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .5rem .75rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.toolbar .spacer { flex: 1; }

/* chart container */
#chart-container {
  width: 100%;
}
#chart {
  width: 100%;
  height: var(--chart-height, 100vh);   /* fills most of the viewport */
}


/* Hero section */
.hero {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Header and footer theme */
header, footer {
  background-color: #1e3c72;
  color: #fff;
}
header nav ul, footer nav ul {
  justify-content: center;
  margin: 0;
}
header nav ul li a, footer nav ul li a {
  color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 10px 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  #chart {
    height: 60vh;
  }
}
