/* Global */
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
.root {
  font-size: 62.54%;
  /* 1rem=10px */
}

* {
  margin: 0;
  padding: 0;
}

.sr_only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

body {
  background-color: #fafafa;
}

.main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Roboto", sans-serif;
}

/* header */
#title {
  font-size: 3.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

#title + p {
  font-size: 2rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  #title {
    font-size: 2rem;
  }

  #title + p {
    font-size: 1rem;
  }
}
@media screen and (min-width: 1200px) {
  #title {
    font-size: 4rem;
  }

  .header {
    width: 100%;
    position: fixed;
    background-color: #fafafa;
    z-index: 5;
  }
}
/* Data Visualition */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
}

@media screen and (min-width: 1200px) {
  .container {
    margin-top: 10rem;
  }
}
/* BarChart */
.dataVis {
  width: 740px;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 767px) {
  .dataVis {
    width: 360px;
  }
}
@media screen and (min-width: 1200px) {
  .dataVis {
    width: 1200px;
  }
}
.bar {
  fill: #0d47a1;
}

#tooltip {
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: left;
  font-size: 2rem;
  width: 20rem;
  height: fit-content;
  padding: 0.5rem;
  background: #b3e5fc;
  box-shadow: 0.2rem 0.2rem 0.2rem #757575;
  border-radius: 0.2rem;
  position: absolute;
  top: 15vw;
  left: 18vw;
}

@media screen and (max-width: 767px) {
  #tooltip {
    font-size: 1.2rem;
    width: 12rem;
    top: 12vw;
    left: 4vw;
  }
}
@media screen and (min-width: 1200px) {
  #tooltip {
    font-size: 2.5rem;
    width: 25rem;
    top: 10vw;
    left: 15vw;
  }
}
/* Table */
#dataVis_table {
  width: 400px;
  height: 35vh;
  margin: 0 auto 2vh auto;
  overflow-y: auto;
}

.table_head tr {
  font-size: 1.2rem;
  border: 1px black solid;
  padding: 5px;
  text-align: center;
  text-transform: uppercase;
}

.table_body td {
  font-size: 1.2rem;
  border: 1px black solid;
  padding: 2px;
  text-align: right;
  text-transform: uppercase;
}

.table_body tr:hover {
  background-color: #0d47a1;
  color: white;
}

@media screen and (max-width: 767px) {
  #dataVis_table {
    width: 320px;
    height: 40vh;
    padding: 2vw;
  }

  .table_head tr {
    font-size: 0.9rem;
  }

  .table_body td {
    font-size: 0.9rem;
  }
}
@media screen and (min-width: 1200px) {
  #dataVis_table {
    width: 500px;
    height: 70vh;
    margin-top: 8vh;
  }

  .table_head tr {
    font-size: 1.5rem;
  }

  .table_body td {
    font-size: 1.2rem;
  }
}
/* Footer */
.footer {
  color: black;
  font-size: 1rem;
  position: absolute;
  bottom: 2rem;
}

@media screen and (max-width: 768px) {
  .footer {
    font-size: 0.8rem;
  }
}
@media screen and (min-width: 1200px) {
  .footer {
    font-size: 1.5rem;
    position: initial;
    margin-bottom: 1vh;
  }
}
.footer_link {
  text-decoration: none;
  color: black;
}

.footer_link:hover {
  color: #0d47a1;
  border-bottom: solid 1px #0d47a1;
}