body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  
}

#map-container {
  height: 100%;
  background-color: rgb(0, 110, 193);
}

#title-banner{
  display: inline-block;
  flex-direction: column;
  align-items: flext-start;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;

  /*
  Align the title at the top center of the screen
  */
  top: 20px;
  left: 50%;
  transform: translate(-50%);
  position: absolute;
 

  background-color: white;
  color: black;
  opacity: 0.9;
  text-align: center;
  z-index:3;

  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px  rgba(0, 0, 0, 0.224);

}

#community_districts {
  opacity: 0.2;
  color: #000000;
}

/*
panel with info
*/
#info-panel {
  display: inline-block;
  flex-direction: column;
  text-align: center;
  justify-content: center;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;

  background-color: white;
  color: black;
  opacity: 1;
  box-shadow: 0 2px 8px  rgba(0, 0, 0, 0.5);

  width: 60%;
  height: 60%;
  border-radius: 12px;
  padding: 16px;

}


.control-panel {
  display: inline-block;
  flex-direction: column;
  justify-content: left;
  position: absolute;
  left: 20px;
  z-index: 4;
  top: 20px;

  background-color: white;
  color: black;
  opacity: 0.8;
  box-shadow: 0 2px 8px  rgba(0, 0, 0, 0.224);

  max-width: 300px;
  border-radius: 12px;
  padding: 16px;
}

.tooltip {
    position: absolute;
    background: white;
    color: black;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    z-index: 2000;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
}

/*
legend code stolen from class 3 demo
*/
.legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0.9;
}

.legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.legend-label {
    font-size: 13px;
    color: #555;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.toggle-item:hover {
    color: #3498db;
}

.toggle-item:last-child {
    margin-bottom: 0;
}

.toggle-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.control-panel {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
    margin-bottom: 15px;
}

.control-panel:last-child {
    margin-bottom: 0;
}

.panel-header {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

.cd_box {
  display: inline-block;
  flex-direction: column;
  justify-content: left;
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;

  background-color: white;
  color: black;
  opacity: 0.8;
  box-shadow: 0 2px 8px  rgba(0, 0, 0, 0.224);

  max-width: 300px;
  border-radius: 12px;
  padding: 16px;
}


/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}