body {
  background-image: url('/T_Info_bg.jpg'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 0;
  margin: 0;
}

header {
  background-color: #0077cc;
  color: white;
  text-align: center;
  padding: 20px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

nav {
  position: relative;
  top: 0;
  left: 0;
  padding: 10px 0;
  text-align: center;
}

nav a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 20px;
  background-color: #005fa3;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 5px 10px;
}

nav a:hover {
  background-color: #004280;
  transform: translateY(-3px);
}

main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  
}

.main-content h2 {
  font-size: 2rem;
  color: #333;
}

.main-content ul {
  list-style-type: none;
  padding-left: 0;
}

.main-content li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.main-content li:hover {
  background-color: #e1e6f0;
}

.traffic-info {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  opacity: 0.95;
}

.traffic-summary,
.traffic-incident-report {
  margin-top: 30px;
}

.traffic-summary h3, .traffic-incident-report h3 {
  color: #12639c;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.traffic-summary ul, .traffic-incident-report ul {
  list-style-type: none;
  padding-left: 0;
}

.traffic-summary li, .traffic-incident-report li {
  background-color: #f9f9fb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.traffic-summary li:hover, .traffic-incident-report li:hover {
  background-color: #e1e6f0;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: white;
  margin-top: 60px;
  font-size: 1rem;
}

footer p {
  opacity: 0.7;
}

#map {
  height: 400px;
  width: 100%;
}
.search-container {
  margin: 10px;
}
.search-container input {
  width: 80%;
  padding: 10px;
  font-size: 16px;
}
.search-container button {
  font-size: 1rem;
  padding: 12px 12px;
  background-color: #005fa3;
  border-radius: 25px;
  border :none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px -5px;
  color: white;
}
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  header h1 {
    font-size: 2rem;
  }

  nav a {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .traffic-info {
    padding: 20px;
  }
  
  .traffic-summary h3, .traffic-incident-report h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav a {
    font-size: 1.1rem;
    padding: 8px 12px;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .traffic-info {
    padding: 15px;
  }

  .traffic-summary h3, .traffic-incident-report h3 {
    font-size: 1.2rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  #map {
    height: 250px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }

  .main-content li {
    font-size: 1rem;
  }

  nav a {
    font-size: 1rem; 
    padding: 10px 15px; 
    display: block; 
    margin: 5px 0;
  }

  footer p {
    font-size: 0.8rem;
  }
}
