body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    font-family: "Liter";
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFF;
    color: #000;
  }

  .menu-container {
    position: fixed;
    top: 20px;
    left: 50px;
    z-index: 100;
    text-align: left;
    display: none;
    align-items: center;
  }
  
  .fixed-menu-title {
    font-family: 'vremenagroteskmedium';
    color: #2b2b2b;
    margin-left: 10px;
    position: relative;
    white-space: nowrap;
    font-size: 18px;
    opacity: 1;
    transform: translateY(-80px);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
    pointer-events: none;
  }
  
  .fixed-menu-title.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  @media (max-width: 768px) {
    .fixed-menu-title {
      font-size: 16px;
      margin-left: 8px;
    }
  }
  
  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 101;
    transition: transform 0.4s ease;
    transform-origin: center;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  
  
  .bar {
    width: 26px;
    height: 2px;
    background-color: #000;
    border-radius: 0;
    transition: none;
  }
  
  .bar:nth-child(2) {
    width: 26px;
  }
  
  .menu-icon.open {
    transform: rotate(90deg);
  }
  
  .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    text-align: left;
    overflow-y: scroll;
    height: 100vh;
    max-height: 100vh;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scrollbar-color: #000 #fff;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 0;
    margin-top: 8px;
    font-family: 'vremenagroteskbook', sans-serif;
    opacity: 1;
    visibility: hidden;
    transform: translateY(110%);
    transition: opacity 0.2s ease, transform 0.4s ease, visibility 0.3s ease;
    font-size:1.3em
  }
  
  .menu-list::-webkit-scrollbar {
    display: none;
  }
  
  .menu-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .menu-list li {
    padding: 9px 12px;
    scroll-snap-align: start;
    background-color: transparent;
    text-align: left;
  }

  
  .menu-list a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 1em;
    white-space: nowrap;
    background-color: transparent;
    text-align: left;
  }
  
  .menu-list a:hover {
    text-decoration: none;
    background-color: transparent;
  }

  a {
    color:#000000;
  }

  .links {	
    position: absolute;
    top: 10px;
    font-size: large;
  }

  a:hover {
    color: #000;
    text-decoration: underline;
  }

  .chart-container:first-of-type {
    position: relative;
    min-height: 105vh;
    scroll-snap-align: start;
    justify-content: flex-start;
  }

  #title-prod{
    margin-top:10%;
  }
  
  .arrow-down {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: bounce 1.7s infinite;
    color: inherit;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    text-decoration: none;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-25px); }
  }
  
  
  .chart-container {
    min-height: 90vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
  }
  

  .oqueaconteceuem1971 {
    font-family:vremenagroteskmedium;
    font-size: 2em;
    text-align: center;
    color:#2b2b2b;
  }

  
  img {
    max-width: 100%;
  }

  /* Constrain the large oil production chart to consistent size */
  #oleos-vegetais {
    width: 784px;
  }

  .nota {
    font-style: italic;
    font-size:xx-small;
    text-align: center;
  }


  .chart-title {
    font-family:vremenagroteskbook;
    text-align: center;
    font-size: 22px;
    margin-left: 25px;
    margin-right: 25px;
    margin-top: -5px;
    color:#2b2b2b
  }

  .chart-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
  }

  .icons-container {
    position: absolute;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    top: 103%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 100;
  }

  .icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .icons-left, .icons-right {
    display: none;
  }

  .share-icon, .comment-icon, .fonte-icon, .toggle-switch {
    width: 22px;
    height: 22px;
    cursor: pointer;
  }

  .share-icon {
    position: static;
  }

  .comment-icon {
    position: static;
  }

  .chart-inside{
    font-family:"vremenagroteskitalic";
    position: absolute;
    white-space: nowrap;
    font-size: calc(0.4em + 3vw);
    color:rgb(32, 32, 32)
  }

  .fonte-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }

  .fonte {
    font-style: italic;
    font-size: small;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    visibility: hidden;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .fonte.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  :root {
    --chart-min-width: 300px;
    --chart-height: 550px;
  }
  
  .canvas {
    width: calc(100vw);
    min-width: var(--chart-min-width);
    min-height: var(--chart-height);
  }

  #diferenca-renda{
    height: 200px;
  }


  #crescimento-renda{
    height: 220px;
    width: 355px;
  }

  #salarios-renda{
    height:550px;
    width: 355px;
  }

  #concentracao-renda{
    height: 220px;
    width: 355px;
  }

  #participacao-renda{
    height: 296px;
  }
  
  #custo-vida{
    height: 224px;
  }

  #balanca-eua{
    height: 346px;
    width: 744px;
  }

  #oleos-vegetais {
    width: 600px;
    height: var(--chart-height);
  }

  .bg-video {
    display: none
  }
  
  .snap-container {
    overflow-y: scroll;
    height: 100vh;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: 1px;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .snap-container::-webkit-scrollbar {
    display: none;
  }

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #ffffff;
  display: none;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  width: 25%;
}

.mobile-nav-icon img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.mobile-nav-icon span {
  font-family: 'vremenagroteskbook';
  font-size: 10px;
  color: #333;
}

.mobile-nav-icon.active {
  color: #000;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  .snap-container {
    padding-bottom: 0;
    scroll-snap-type: none;
    scroll-padding-top: 0;
  }
  
  .chart-container {
    scroll-snap-align: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .chart-container:first-of-type {
    scroll-snap-align: none;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-start;
  }

  #inflacao-acumulada {
    min-height: 72vh;
  }
  
  .chart-container:first-of-type .chart-title,
  .chart-container:first-of-type .oqueaconteceuem1971 {
    margin-top: 10px;
  }
  
  .chart-container:last-of-type {
    margin-bottom: 0;
  }

  .icons-container {
    display: none;
  }
}

@media (min-width: 768px) {
  .snap-container {
    scroll-snap-type: y proximity;
  }
  
  .chart-container {
    scroll-snap-align: start;
  }
}

.comment-icon:hover {
  opacity: 1;
}

.comments-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 1001;
    height: 85vh;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
}

.comments-sheet.open {
    transform: translateY(0);
}

.comments-header {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comments-title {
    font-family: 'vremenagroteskbook';
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.comments-subtitle {
    font-family: 'vremenagroteskbookitalic';
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

.comments-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 10px;
}

.comments-content {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.comments-input-container {
    border-top: 1px solid #eee;
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comments-input-container textarea {
    font-family: 'vremenagroteskbook';
    flex: 1;
    border: none;
    resize: none;
    font-size: 14px;
    background: white;
    min-height: 20px;
    padding: 8px 0;
}

.comments-input-container textarea:focus {
    outline: none;
}

.comments-input-container button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-input-container button svg {
    width: 24px;
    height: 24px;
    fill: black;
    opacity: 1;
}

.comments-input-container button:disabled svg {
    opacity: 0.3;
}

.comments-form {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comments-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    resize: none;
    min-height: 20px;
    max-height: 80px;
}

.comments-form button {
    color: #0095f6;
    font-weight: 600;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.5;
}

.comments-form button:enabled {
    opacity: 1;
}

.comment {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
}

.comment-main {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 40px);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.comment-user {
    font-family: 'vremenagroteskbook';
    font-weight: 600;
    font-size: 13px;
}

.comment-time {
    font-family: 'vremenagroteskbookitalic';
    color: #737373;
    font-size: 11px;
    opacity: 0.8;
}

.comment-content {
    font-family: 'vremenagroteskbook';
    font-size: 14px;
    padding-left: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.comments-close {
    font-family: 'vremenagroteskbook';
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 24px;
    opacity: 0.5;
    line-height: 1;
    z-index: 2;
}

.comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comments-overlay.open {
    opacity: 1;
}

#divida-americana{
  max-height: 55vh;
}

.graph-and-labels {
  transition: transform 0.3s ease;
  position: relative;
  width: 100%;
}

.explanation {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  max-width: 100%;
  height: 60%;
  background-color: #fff;
  color: #000;
  font-size: calc(1em + 1vw);
  display: none;
  overflow-y: auto;
  padding: 30px;
  z-index: 10;
  font-family: vremenagroteskbookitalic;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  border-top: 1px solid #eee;
  box-shadow: none;
}

.explanation.show {
  opacity: 1;
  transform: translateY(0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.explanation.hiding {
  transform: translateY(100%);
  opacity: 1;
}

.explanation p {
  margin: 0;
  line-height: 1.5;
  max-width: 800px;
}

.explanation-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.explanation-overlay.show {
  opacity: 1;
}

.explanation-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 15px;
}

.explanation-close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  font-size: 24px;
  opacity: 0.5;
  line-height: 1;
  z-index: 2;
}

.fixed-signature {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 150px;
}

@media (min-width: 768px) {

  #title-prod{
    margin-top:0%;
  }

    .icons-container {
        top: 100%;
        margin-top: 13px;
        left: 50%;
    }

    .icons-right {
      position: absolute;
      right: 32%;
    }

  .oqueaconteceuem1971 {
    margin-bottom:30px;
    margin-top:-5px;
    font-size: 4.5em;
    text-align: center;
  }

  .chart-container {
    position: relative;
    justify-content: center;
    padding-top: 0;
    min-height: 102vh;
    overflow: visible;
  }

  .slider-container {
    position: relative;
    width: 40%;
    overflow: hidden;
  }

  .slide {
    padding: 20px;
  }
  
  .explanation {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    transform: translateX(100%);
    height: 100%;
    width: 45%;
    background-color: transparent !important;
    border: none;
    box-shadow: none;
    z-index: 50;
    opacity: 1;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px 0 40px;
  }

  .explanation.show {
    transform: translateX(0);
  }
  
  .explanation.hiding {
    transform: translateX(100%);
  }
  
  .explanation p {
    background-color: transparent;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    font-size: 20px;
    line-height: 1.3;
    font-family: "vremenagroteskbook", sans-serif;
    color: #333;
    width: 100%;
  }
  
  .graph-and-labels {
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
    position: relative;
    width: 100%;
    margin: 0 auto;
  }
  
  .graph-and-labels.show-explanation {
    transform: translateX(-25%) !important;
  }
  
  .explanation-overlay {
    display: none;
  }
  
  .explanation-close,
  .explanation-handle {
    display: none;
  }
  
  .icons-container {
    z-index: 100;
  }
  
  .explanation-button {
    position: relative;
    z-index: 101;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

:root {
  --chart-width: 880px;
  --chart-width-menor: 740px;
  --chart-height: 85vh;
}

    h1 {
        font-size: 3em;
    }


    .chart-title{
        text-align: center;
        font-size: 26px;
    }

#title-div-ame{
  font-size:23px;
}

    .chart-inside{
        position: absolute;
        white-space: nowrap;
        font-size: 1.5em;
    }

    .nota{
        font-size:small;
    }
    .fonte {
        font-size:small
    }

    .chart-header {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #produtividade-crescimento{
        width: var(--chart-width);
        min-height: var(--chart-height);
    }

    #cpi-us {
        width: var(--chart-width);
        min-height: var(--chart-height);
    }

    #m2-supply {
        width: var(--chart-width);
        min-height: var(--chart-height);
    }

    #desigualdade-renda {
        width: var(--chart-width-menor);
        min-height: var(--chart-height);
    }

    #inflacao-acumulada {
        width: var(--chart-width);
        min-height: 80vh;
    }

    #preco-ouro{
        width: var(--chart-width);
        height: var(--chart-height);
    }

    #preco-petroleo {
        min-height: var(--chart-height);
        width: var(--chart-width);
    }

    #taxa-natalidade {
        width: var(--chart-width-menor);
        min-height: var(--chart-height);
    }

    #anos-casa {
        min-height: var(--chart-height);
        width: var(--chart-width);
    }

    #casa-renda {
        min-height: var(--chart-height);
        width: var(--chart-width);
    }

    #divida-americana {
      width: var(--chart-width);
      min-height: var(--chart-height);
    }

    #superavit-federal {
        width: var(--chart-width);
        min-height: var(--chart-height);
    }

    #jovens-morando {
        width: var(--chart-width);
        min-height: var(--chart-height);
    }

    #taxa-encarceramento {
        width:var(--chart-width-menor);
        min-height: var(--chart-height);
    }

    #primeiro-casamento {
        width: var(--chart-width-menor);
        min-height: var(--chart-height);
    }

    #remuneracao-pib{
        width: var(--chart-width-menor);
        height: var(--chart-height);
    }

    #renda-1{
        width: var(--chart-width-menor);
        height: var(--chart-height);
    }

    #salario-ceo-normal{
        width: var(--chart-width-menor);
        height: var(--chart-height);
    }

    #salarios-ceo-normal {
        width: var(--chart-width-menor);
        height: var(--chart-height);
    }

    #dolar-1635 {
        width: var(--chart-width);
        height: var(--chart-height);
    }

    #diferenca-renda{
        width:618px;
        height: 289px;
    }

    #crescimento-renda{
        width:800px;
        height: 464px;
    }

    #salarios-renda{
        width: 451px;
        height:600px;
    }

    #taxa-poupanca {
        width: 100% !important;
        min-width: var(--chart-width);
        height: var(--chart-height);
    }

    #balanca-produtos{
        width: var(--chart-width);
        height:490px;
    }

    #concentracao-renda{
        width: 680px;
        height:490px;
    }

    #participacao-renda{
        width: 724px;
        height: 510px;
    }

    #custo-vida{
        width: 537px;
        height: 840px;
    }

    .bg-video {
        display:block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%) blur(16px);
        z-index: -1;
        transform: scale(1);
    }

    .snap-container {
        scroll-snap-type: y mandatory;
    }
    
    .chart-container {
        scroll-snap-align: start;
    }

    .comment-main {
        max-width: calc(100% - 60px);
    }

    .comments-sheet {
        width: 70%;
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
    }

    .comments-sheet.open {
        transform: translate(-50%, 0);
    }


    .fixed-signature {
      width: 220px;
      right:-2%;
      opacity:0.8;
    }
}

.explanation-button {
  display: none;
}

.info-icon {
  display: none;
}

@font-face {
  font-family: 'vremenagroteskmedium';
  src: url('../assets/fonts/vremenagroteskmedium-webfont.woff2') format('woff2'),
       url('../assets/fonts/vremenagroteskmedium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vremenagrotesk';
  src: url('../assets/fonts/vremenagrotesk-webfont.woff2') format('woff2'),
       url('../assets/fonts/vremenagrotesk-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vremenagroteskitalic';
  src: url('../assets/fonts/vremenagroteskitalic-webfont.woff2') format('woff2'),
       url('../assets/fonts/vremenagroteskitalic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vremenagroteskbook';
  src: url('../assets/fonts/vremenagroteskbook-webfont.woff2') format('woff2'),
       url('../assets/fonts/vremenagroteskbook-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vremenagroteskbookitalic';
  src: url('../assets/fonts/vremenagroteskbookitalic-webfont.woff2') format('woff2'),
       url('../assets/fonts/vremenagroteskbookitalic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;

}

.menu-list li:first-child a strong {
    font-family: 'vremenagroteskmedium';
    color: #2b2b2b;
}

.graph-and-labels.show-explanation {
  transform: translateY(-40%);
}

.chart-container:first-of-type .graph-and-labels.show-explanation {
  transform: translateY(-40%);
}

.explanation-close,
.explanation-handle {
  display: none;
}

.mobile-nav-icon:first-child {
  padding-top: 16px;
  padding-bottom: 16px;
}

.mobile-nav-icon:first-child img {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .chart-container {
    position: relative;
    overflow: visible;
  }

  .explanation {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    transform: translateX(100%);
    height: 100%;
    width: 45%;
    background-color: transparent !important;
    border: none;
    box-shadow: none;
    z-index: 50;
    opacity: 1;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px 0 40px;
  }
  
  .explanation.show {
    transform: translateX(45%);
  }
  
  .explanation.hiding {
    transform: translateX(260%);
  }
  
  .explanation p {
    background-color: transparent;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    font-size: 22px;
    line-height: 1.3;
    font-family: "vremenagroteskbook", sans-serif;
    color: #333;
    width: 100%;
  }
  
  .graph-and-labels {
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
    position: relative;
    width: 100%;
    margin: 0 auto;
  }
  
  .graph-and-labels.show-explanation {
    transform: translateX(-25%) !important;
  }
  
  .icons-container {
    z-index: 100;
  }
  
  .explanation-button {
    position: relative;
    z-index: 101;
  }
}

.mobile-nav-icon img[src*="explanation"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: #ffffff;
  border-radius: 11px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.active {
  background: #4CAF50;
}

.toggle-switch.active::after {
  left: 20px;
}

.explanation {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 20px;
}

.explanation.visible {
  opacity: 1;
  max-height: 500px;
  padding: 20px;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  gap: 10px;
}

.toggle-label {
  font-size: 14px;
  color: #666;
  user-select: none;
}

h2 {
  font-weight: normal;
}

h2, .chart-title {
  font-weight: normal !important;
}

