body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #e7e7e7;
}

h1 {
  text-align: center;
  margin-top: 20px;
}

.dropdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  gap: 10px;
}

#year-slider {
  width: 200px;
  margin-left: 10px;
}


#main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.ribbon {
  margin-top: auto;
  width: 100%;
  background-color: rgb(39, 39, 39);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}

#map-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 14px auto;
  padding: 10px;
  background-color: white;
  border-radius: 15px;
}

#legend-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: #444444;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#scroll-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}


#scroll-bar-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, #cccccc, #666666); 
  border-radius: 5px; 
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#scroll-bar-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffffff 40%, #aaaaaa 70%);
  border: 2px solid #666666; 
  border-radius: 50%; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
  cursor: pointer;
  transition: transform 0.2s ease; 
}

#scroll-bar-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#scroll-bar-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffffff 40%, #aaaaaa 70%);
  border: 2px solid #666666;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#scroll-bar-container input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

#dynamic-text-container {
  width: 50%;
  margin-left: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  align-self: center;
}

.text-description{
  width: 50%;
  margin-left: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  align-self: center;
}

#us-map-svg {
  margin: 0 auto;
  display: block;
}

#line-chart {
  width: 100%;
  height: 100%;
}

.tooltip {
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  display: none;
  pointer-events: none;
}

#datasetSelect {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  padding: 7px;
  font-size: 16px;
  color: #333333;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23444444' d='M2 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 10px center; /* Add a custom arrow pointing down */
  background-size: 10px 10px;
  border: 2px solid #666666;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

#datasetSelect:hover {
  background: #444444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23ffffff' d='M2 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 10px 10px;
  border-color: #333333;
  color: white;
}

#datasetSelect:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

#datasetSelect option {
  color: white;
  background: #444444;
  font-size: 16px;
}

button {
  background-color: white;
  color: #333333;
  margin: 10px;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  border: 2px solid #666666;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #444444;
  color: white;
  border-color: #333333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
  background: #444444;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

button:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.vis-container{
  width: 80%;
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.youtube-button {
  display: inline-block;
  background-color: #FF0000;
  margin: 10px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.youtube-button:hover {
  background-color: #CC0000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
