body { 
  background-color: rgb(175, 208, 241);
  margin: 0; 
  padding: 0; 
  overflow-y: scroll;
  font-family: 'Roboto', sans-serif;
}

h2 {
  margin: 40px 20px 10px;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  color: #004080;
  padding-bottom: 10px;
  clear: both;
}

.pb-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pb {
  margin: 10px auto;
  font-size: 1.1em;
  max-width: 175px;
  font-weight: bold;
  text-align: justify;
  padding: 10px 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  clear: both;
} 

.info-text {
  margin: 20px auto;
  font-size: 1.1em;
  max-width: 1000px;
  text-align: justify;
  padding: 10px 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  clear: both;
}

#map { 
  width: 1000px; 
  height: 450px;
  margin: 20px auto; 
  border-radius: 5px;
}

#map-learnMore {
  height: 400px;
  width: 100%;
  margin-top: 20px;
}

#emissions-toggle {
  margin: 10px auto;
  text-align: center;
}

#average-emissions {
  display: flex;
  margin: 10px auto;
  justify-content: center;
  align-items:center;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.toggle-container span {
  margin: 0 10px;
  font-weight: 400;
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(109, 105, 105);
  transition: .4s;
  border-radius: 24px;
  width:35px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgb(0, 119, 255);
}

input:checked + .slider:before {
  transform: translateX(15px);
}

/* New State History Section */
#state-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  margin-left: 20px;
  text-align: left;
  max-width: 90%;
}

#state-dropdown {
  width: 200px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 300px;
  margin: 20px;
  margin-top: 40px;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}

#state-selected {
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #e6f7ff;
  border: 2px solid #007bff;
  color: #007bff;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
  max-width: 150px;
  text-align: center;
  margin-bottom: 10px;
}

#state-options-container {
  display: block;
  background-color: #fff;
  align-items: left;
  max-width: 150px;
}

#state-list div {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background-color: #ffffff;
  color: #333;
}

#state-list div:hover {
  background-color: #e0e0e0;
  color: #000;
}

#state-chart, #general-state-chart {
  width: 800px;
  height: 400px;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin: 0 auto;
  margin-bottom: 25px;
}

#fact{
  width: 500px;
  height: 437px;
  background-color: #f4f4f4;
  border-radius: 10px;
  border: 2px solid #007bff;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}
.state-fact{
  color: #007bff;
  font-size: 14px;
  margin: 10px;
  line-height: 1.6;
}