* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  background-color: transparent;
  color: #0f0f0f;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
}

/*--- TABLE -----*/

#chart_container {
  margin-top: 10px;
  position: relative;
  width: 100%;
  z-index: 1;
  margin: auto;
  overflow: auto;
}

table {
  width: 820px;
  max-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  margin: auto;
}

th,
td {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  line-height: normal;
  font-style: normal;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #0f0f0f4d;
}

td {
  font-weight: 400;
  font-size: 14px;
  height: 40px;
  position: relative;
}

th {
  font-size: 14px;
  font-stretch: normal;
  line-height: 1;
  letter-spacing: normal;
  text-align: left;
  color: #000000;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
}

thead tr,
th {
  border-bottom: 2px solid black;
}

#th-eta,
.eta {
  text-align: start;
  width: 70px;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 20;
  background-color: #f7f6f2;
}

#th-eta {
  line-height: 15px;
}

.eta {
  font-weight: 600;
}

#th-quota_perc,
.quota_perc {
  text-align: end;
  width: 70px;
  padding-right: 10px;
}

#th-decessi,
.decessi {
  text-align: end;
  width: 80px;
  padding-right: 10px;
}

/* bars */

#th-bar_2020,
.bar_2020 {
  text-align: start;
  width: 150px;
  padding-right: 10px;
}

#th-bar_2021,
.bar_2021 {
  text-align: start;
  width: 150px;
  padding-right: 10px;
}

#th-bar_2022,
.bar_2022 {
  text-align: start;
  width: 150px;
  padding-right: 10px;
}

#th-bar_totale,
.bar_totale {
  text-align: start;
  width: 150px;
}

.horizontal-bar-chart {
  width: 100%;
  height: auto;
  position: relative;
}

.bar-sfondo {
  background-color: #e7e6e2;
  width: 100%;
  height: 20px;
  position: absolute;
  top: -10px;
  left: 0;
}

.bar-grafico {
  background-color: #000000;
  height: 20px;
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 5;
}

.horizontal-bar-chart span {
  position: absolute;
  top: -10px;
  z-index: 10;
}

.border-right {
  border-right: 1px solid #e6e5e1;
}

.no-border-bottom {
  border-bottom: 0px;
}

#notes {
  width: 100%;
  max-width: 820px;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  line-height: normal;
  font-style: normal;
  font-size: 12px;
  margin-top: 10px;
}

#data_aggiornamento {
  width: 100%;
  max-width: 820px;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  line-height: normal;
  font-style: normal;
  font-size: 12px;
  margin-top: 10px;
}

#source {
  width: 100%;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 11px;
  font-style: normal;
  text-decoration: none;
  color: #888;
  margin-top: 10px;
}

/*** RESPONSIVE MOBILE ***/

@media only screen and (max-width: 600px) {
  body {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }

  #th-eta,
  .eta {
    text-align: start;
    width: 90px;
  }

  #th-bar_2020,
  .bar_2020 {
    text-align: left;
    width: calc(100% - 240px);
    position: relative;
  }

  #th-eta,
  #th-bar_2020,
  #th-quota_perc,
  #th-vaccinati,
  #th-decessi,
  #th-bar_totale {
    font-size: 12px;
  }

  .eta,
  .bar_2020,
  .quota_perc,
  .vaccinati,
  .decessi,
  .bar_totale {
    font-size: 14px;
  }

  #notes {
    max-width: 100vw;
    padding-left: 5px;
    padding-right: 5px;
  }

  #data_aggiornamento {
    max-width: 100vw;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* RESPONSIVE TABLET
@media screen and (min-width: 481px) and (max-width: 1280px) {

} */
