body {
  background-image: url('water-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: Arial, sans-serif;
  text-align: center;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
h1 {
  color: #ffffff; /* White text on teal background */
  margin: 20px 0;
  text-align: center;
  background-color: rgba(14, 137, 142, 1); /* Teal */
  padding: 10px;
  display: inline-block;
}
.table-wrapper {
  position: relative;      
  display: inline-block;   
  margin: 20px auto;       
}
.table-wrapper table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  background-color: rgba(255, 255, 255, 1);
  margin: 0 auto;
}
th, td {
  padding: 8px;
  border: 2px solid #ddd;
}
th {
  background-color: #0e898e; /* Teal header */
  color: white;
  text-align: center;
  border-left: 2px solid #ddd;
  border-right: 2px solid #ddd;
  border-top: 2px solid #0e898e;
  border-bottom: 2px solid #ddd;
}
td {
  background-color: rgba(255, 255, 255, 1);
  text-align: left;
}
.hashtags {
  position: absolute;            
  top: 17%; 
  right: -100px;              
  transform: translateY(-17%);   
  text-align: left;
  white-space: nowrap;   
}
.hashtags span {
  display: block; /* Stack hashtags vertically */
  color: #ffffff; /* Match header text */
  font-size: 0.9em; /* Slightly smaller */
  margin-bottom: 5px; /* Spacing between hashtags */
}
.hashtags span:last-child {
  margin-bottom: 0; /* Remove margin on last hashtag */
}
/* Buttons and Dropdown Styling */
button, select {
  background-color: #0e898e; /* Match title background */
  color: white; /* White text for contrast */
  padding: 12px 24px; /* Bigger size (increased from typical 8px 16px) */
  font-size: 1em; /* Ensure readability */
  border: none;
  border-radius: 5px; /* Slight rounding for style */
  cursor: pointer;
  margin: 5px 0; /* Spacing around buttons */
  width: 200px; /* Fixed width for consistency */
  font-weight: bold;
}
button:hover {
  background-color: #0c6e72; /* Darker teal on hover */
}
/* Dropdown Styling (graph page only) */
#graph-page select#timeRange {
  background-color: white; /* White background */
  color: #0e898e; /* Teal text */
  padding: 12px 24px; /* Bigger size */
  font-size: 1em; /* Ensure readability */
  border: 1px solid #0e898e; /* Teal border for definition */
  border-radius: 5px; /* Slight rounding */
  cursor: pointer;
  margin: 5px 0; /* Spacing */
  width: 200px; /* Fixed width */
  font-weight: bold;
}
#graph-page select#timeRange:hover {
  background-color: #f0f0f0; /* Light gray hover */
  color: #0c6e72; /* Darker teal */
}
/* Mobile responsiveness */
@media (max-width: 600px) {
  .table-wrapper {
    max-width: 100%;
  }
  .table-wrapper table {
    width: 100%;
  }
  h1 {
    font-size: 1.5em;
  }
  body {
    background-size: contain;
    background-position: top 0% center; /* Crops top as requested */
    background-repeat: no-repeat;
    min-height: auto;
    overflow-y: hidden;
  }
  body::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 5%;
    background: inherit;
    z-index: -1;
    bottom: 0;
  }
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
  }
  .hashtags {
    right: -100px;
    font-size: 0.8em;
  }
  button, select {
    padding: 10px 20px; /* Slightly smaller padding for mobile */
    width: 180px; /* Adjusted width for mobile */
    font-size: 0.9em; /* Slightly smaller text */
  }
}
