/* General Page Styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

#home {
  padding: 20px;
  background-color: #eaf7fe;
  color: #333;
}

/* Weather Header */
.weather-header {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #5eb8ff, #90d8fc);
  padding: 20px;
  border-radius: 15px;
  color: white;
  margin-bottom: 20px;
}

.weather-icon img {
  width: 60px;
  height: 60px;
}

.weather-info {
  margin-left: 15px;
}

.weather-info h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

.weather-info p {
  margin: 5px 0;
  font-size: 16px;
}

//* Air Quality Section */
.air-quality-section h2 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.air-quality-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two cards per row */
  gap: 15px;
}

.card {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  display: flex; /* Icon and text side by side */
  align-items: center;
  gap: 10px; /* Space between icon and text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 40px; /* Icon size */
  height: 40px;
}

.card-info {
  text-align: right; /* Align text to the left */
}

.card-info p {
  margin: 0;
  font-size: 14px;
  color: #777; /* Subtle text for description */
}

.card-info h3 {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: bold;
  color: #333; /* Main text color */
}


/* Map Section */
#map-container {
  margin-top: 20px;
}

#map {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fits the container properly */
  border-radius: 10px;
}


/* Location Tag */
.location-tag {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between the icon and text */
  text-align: left; /* Align the text next to the icon */
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333;
}

.location-tag img {
  width: 24px; /* Size of the location icon */
  height: 24px;
}

.location-tag p {
  margin: 5px 0;
}

.location-tag span {
  font-weight: bold;
  color: #007bff; /* Blue color for emphasis */
}


/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.nav-button {
  background: #28a745; /* Green background */
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 25px; /* Rounded buttons */
  transition: background 0.3s;
}

.nav-button:hover {
  background: #218838; /* Darker green on hover */
}

.bottom-nav button:active {
  background: #1e7e34; /* Even darker green when active */
}
/* Notice Board */
.notice-board {
  background-color: #f8f9fa; /* Light gray background */
  padding: 15px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center;
  font-size: 16px;
  color: #333;
}

.notice-board p {
  margin: 10px 0;
}

.notice-board a {
  text-decoration: underline;
  color: #28a745; /* Green for emphasis */
  font-weight: bold;
  cursor: pointer;
}

.notice-board a:hover {
  color: #218838; /* Darker green on hover */
}
/* Camera Header */
.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.camera-header p {
  margin: 0;
  font-size: 16px;
}

.back-button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.back-button:hover {
  color: #d4edff;
}

/* Camera Feed Section */
.camera-feed {
  text-align: center;
  margin: 20px 0;
  position: relative; /* Ensure the button is positioned relative to the image */
}

.camera-feed img {
  width: 90%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px; /* Add spacing below the image */
}

.toggle-button {
  display: inline-block;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative; /* Ensure it doesn't overlap */
  margin-top: 10px; /* Add space above the button */
}

.toggle-button:hover {
  background-color: #218838;
}

.toggle-button:active {
  background-color: #1e7e34;
}

/* Graph Section */
.graph-section {
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

/* Header */
.statistics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.statistics-header a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.statistics-header h1 {
  margin: 0;
  font-size: 20px;
}

/* Home Button Styling */
/* Sticky Header */
.sticky-header {
  position: fixed; /* Fix the header to the top of the viewport */
  top: 0; /* Stick to the very top */
  z-index: 1000; /* Ensure it stays above other elements */
  display: flex; /* Align items horizontally */
  align-items: center; /* Vertically center items */
  justify-content: space-between; /* Space out Home button and text */
  width: 100%; /* Full width */
  max-width: 1200px; /* Optional: Limit the max width to prevent overflow on large screens */
  margin: 0 auto; /* Center the header within the viewport */
  padding: 10px 20px; /* Padding inside the header */
  background-color: #007bff; /* Blue background */
  color: white; /* White text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  box-sizing: border-box; /* Include padding and border in width */
}
/* Header Text Styling */
.sticky-header h1 {
  margin: 0 auto; /* Center-align the text between Home button and edges */
  font-size: 18px; /* Adjust font size for smaller viewports if needed */
  text-align: center; /* Ensure text is centered */
  flex-grow: 1; /* Allow the text to take up the remaining space */
}
/* Home Button Styling (reuse) */
.home-button {
  display: inline-flex; /* Use flexbox to align content inside the button */
  align-items: center; /* Center-align the arrow and text vertically */
  background-color: #28a745; /* Green background */
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  font-size: 16px; /* Adjust font size */
  font-weight: bold; /* Bold text */
  padding: 10px 20px; /* Spacing inside the button */
  border-radius: 25px; /* Fully rounded corners */
  border: none; /* Remove border */
  cursor: pointer; /* Pointer cursor for interactivity */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.home-button:hover {
  background-color: #218838; /* Darker green on hover */
}

.home-button:active {
  background-color: #1e7e34; /* Even darker green when clicked */
}

/* Arrow Styling */
.home-button .arrow {
  margin-right: 8px; /* Space between the arrow and text */
  font-size: 18px; /* Adjust arrow size */
}
/* Green Points Section */
.green-points-section {
  margin-top: 70px; /* Account for sticky header */
  text-align: center;
  padding: 20px;
  background: #eaf7fe;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.green-points-section h2 {
  margin: 0;
  font-size: 24px;
  color: #28a745;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tab-button {
  background: #f5f5f5;
  color: #007bff;
  border: 1px solid #ddd;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.tab-content {
  display: none;
  text-align: center;
  margin: 20px;
}

.tab-content.active {
  display: block;
}
/* Cleanest Communities List Styling */
.tab-content ul {
  list-style: none; /* Removes the default bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
  display: flex; /* Enables flexbox for alignment */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center-align items horizontally */
}

.tab-content ul li {
  margin: 5px 0; /* Adds some spacing between items */
  font-size: 16px; /* Adjusts font size for better readability */
  display: flex; /* Enables flexbox for horizontal alignment within each item */
  justify-content: space-between; /* Ensures proper spacing between text and win counts */
  width: 50%; /* Sets a consistent width for list items */
  text-align: left; /* Aligns text inside the list item */
}


.tab-content ul li::after {
  content: ""; /* Clear any unwanted pseudo-elements */
}

/* Rewards Section */
.rewards-section {
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.rewards-section ul {
  list-style: none;
  padding: 0;
}

.rewards-section li {
  margin: 10px 0;
}

/* Feedback Section */
.feedback-section {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.feedback-section textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  resize: none;
}

.feedback-section button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.feedback-section button:hover {
  background: #218838;
}

/* Events Button Styling */
.events-button {
  display: inline-block;
  background-color: #28a745; /* Green background */
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.events-button:hover {
  background-color: #218838; /* Darker green on hover */
}
/* Featured Event Section */
.featured-event-section {
  margin-top: 70px; /* Account for sticky header */
  padding: 20px;
  background-color: #eaf7fe;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.featured-event-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.event-card {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
  text-align: left;
}

.event-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #007bff;
}

.event-card p {
  margin: 5px 0;
  font-size: 16px;
  color: #555;
}

.join-button {
  display: inline-block;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.join-button:hover {
  background-color: #218838;
}

/* Other Events Section */
.other-events-section {
  padding: 20px;
}

.other-events-section h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.event-card:not(:last-child) {
  margin-bottom: 20px;
}