#svgWrapper { 
    margin: 0;
    padding: 0;
    text-align: center;
}
#svgWrapper svg {
    display: block;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    background-color: #12242B;
    font-family: 'Courier New', Courier, monospace;
}

p {
    margin: 0;
    padding: 0;
}

@keyframes starMove {
    0% {opacity: 1;}
    50% {opacity: 0.3;}
    100% {opacity: 1;}
}
@keyframes sunShine {
  0% {
    /* opacity: 1; */
    fill: #C15861;
}
  15% {
    /* opacity: 1; */
    fill: #A34C53;
}
  30% {
    /* opacity: 0.7; */
    fill: #C15861;
}
  85% {
    /* opacity: 1; */
    fill: #C15861;
}
  100% {
    /* opacity: 1; */
    fill: #C15861;
}
}
circle.stars {
    animation: starMove 5s infinite;
}

.center-rad, .solar-line {
  animation: sunShine 4s infinite ease-in-out;
}

/* Year slider */

#sliderWrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: bold;
    color: #12242B;
    width: 130px;
    text-align: center;
    z-index: 100;
    /* max-width: 200px; */
}
#yearLabel {
  display: block;
  margin-top: 10px;
}
#playBtn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto;
}

#yearSlider {
    margin-bottom: 20px;
}

input[type="range"] {
    -webkit-appearance: none; /* Removes default styling */
    appearance: none;
    width: 100%;
    height: 8px;
    background: #12242B44; /* Track color */
    border-radius: 5px;
    outline: none;
    margin: 0;
    padding: 0;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #12242B; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #12242B; /* Thumb color for Firefox */
    border-radius: 50%;
    cursor: pointer;
  }

  /* Chart lines */
  .chart-line {
    transition-duration: 400ms;
  }
  .dotted {
    stroke-width: 4px;
    stroke-dasharray: 0,8;
    stroke-linecap: round;
  }

  /* Tooltip */
  .tooltip {
    position: fixed;
    visibility: hidden;
    top: 20px;
    left: 20px;
    padding: 10px;
    border-radius: 5px;
    color: #F3F7F0;
    line-height: 1.5em;
    font-size: 14px;
    background-color: #12242B66;
    width: 300px;
    max-width: 400px;
}
.novalue {
    opacity: 0.5;
}

.labels {
    font-size: 11px;
    fill: #F3F7F088;
}

  .ttItemContainer {
    margin: 5px 0 0 0;
  }
  .tooltipItem {
    display: flex;
    margin: 0;
    justify-content: space-between;
    cursor: pointer;
  }
  .tooltipItem:hover {
    background-color: #F3F7F033;
  }
  .tooltipItem div.left div, .tooltipItem div.left p{
    display: inline-block;
  }
  .tooltipItem div {
    /* font-weight: bold; */
    margin: 0;
  }
  .tooltipItem div.left div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0.5px solid #F3F7F0;
  }
  .ranking {
    font-size: 12px;
    text-align: right;
    margin: 0 0 0 10px;
  }

  /* Info Panel */
  .infopanel {
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 10px;
    border-radius: 5px;
    color: #F3F7F0;
    line-height: 1.5em;
    font-size: 14px;
    background-color: #12242B;
    border: #F3F7F066 solid 0.5px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    z-index: 1000;
    transition-delay: 200ms;
    visibility: hidden;
    overflow: auto;
  }

  .infopanelMobile {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 70px 10px 10px 10px;
    border-radius: 0;
    color: #F3F7F0;
    line-height: 1.5em;
    font-size: 14px;
    background-color: #12242B;
    border: #F3F7F066 solid 0.5px;
    width: calc(100% - 20px);
    height: calc(100% - 80px);
    z-index: 1000;
    transition-delay: 200ms;
    visibility: hidden;
    overflow: auto;
  }

  .infopanel #infopanelWrap, .infopanel span, .infopanel svg {
    background-color: unset;
  }
  .closeInfo {
    position: fixed;
    top: 17px;
    right: 50px;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 24px;
    opacity: 0.5;
  }
  .closeInfo:hover {
    opacity: 1;
    transition-duration: 100ms;
  }
  #infopanelWrap {
    text-align: center;
    overflow-y: auto;
  }
  .info-title {
    display: block;
    font-size: 20px;
    margin: 10px 0;
  }
  .barChartNames {
    fill: #F3F7F0;
    z-index: 5000;
  }

  #tooltip-small {
    position: absolute; 
    visibility: hidden; 
    background: rgba(0,0,0,0.8); 
    color: #F3F7F0; 
    padding: 5px; 
    border-radius: 5px; 
    font-size: 12px;
  }

  .sort-button {
    background-color: #555;
    color: #F3F7F0;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace;
}

.sort-button:hover {
    background-color: #444;
}

.sort-button.active {
    background-color: #FC6471;
    color: F3F7F0;
}

.sort-title {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: #F3F7F0;
}

#sortButtons {
    margin-bottom: 15px;
    padding: 10px 0;
    position: fixed;
    top: 10px;
    left: 20px;
}

.main-sort-button {
  margin: 0 0 0 5px;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #555;
  color: #F3F7F0;
  border: none;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
}

.main-sort-button.active {
  background-color: #FC6471;
}

.barChartNames {
    font-family: 'Courier New', Courier, monospace;
    fill: #F3F7F0;
}

.value-label {
    fill: #F3F7F0;
    font-weight: bold;
}

.bar {
    transition: fill 0.2s ease;
}

#tooltip-small {
    position: absolute;
    background-color: #2a2a2a;
    color: #F3F7F0;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1000;
    font-size: 12px;
    max-width: 200px;
}
.tick {
  opacity: 0.7;
}
#aboutBtn {
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 2100;
    width: 30px;
    height: 30px;
    opacity: 0.5;
}
#aboutBtn:hover {
    opacity: 1;
    transition-duration: 100ms;
}


/* ABOUT SIDE PANEL */
#sidePanel {
    position: fixed;
    top: 0;
    right: -150%;
    padding: 30px 10px 30px 20px;
    color: #F3F7F0;
    line-height: 1.3em;
    font-size: 13px;
    background-color: #12242B;
    border-left: #F3F7F066 solid 0.5px;
    width: 300px;
    height: calc(100% - 60px);
    z-index: 2000;
    transition-duration: 200ms;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 450px) {
  #sidePanel {
    width: calc(100% - 30px);
  }
}

#sidePanel hr {
    border: #F3F7F066 solid 0.5px;
    margin: 40px 0;
}

#sidePanel h2 {
    font-size: 20px;
    margin: 20px 0;
}

#sidePanel p {
    margin: 20px 0;
}

#sidePanel a {
    color: #FC6471;
    text-decoration: none;
}

#sidePanel p.legend::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    transform: translateY(1px);
    border-radius: 50%;
    border: #F3F7F0 solid 0.5px;
}

#sidePanel p span {
    font-weight: bold;
}