/* body */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* overflow-x: hidden; */
}

/* navbar */

.nav-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(8, 97, 175, 4);
  padding: 1rem;
  margin-bottom: 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

.nav-container {
  display: flex;
  gap: 0.3rem;
}

.nav-container > a {
  border: 1px solid white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  position: relative;
  top: 1rem;
  color: white;
  font-size: 1.5rem;
  text-align: start;
}

.btn {
  border: 1px solid white;
  background: transparent;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
  top: 1rem;
}

/* main body */

main {
  margin: 0 2rem;
}

/* charts */
.charts-row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  top: 7rem;
  z-index: 1;
}

.chart-top {
  display: flex;
  gap: 0.6rem;
}

.chart-top > p {
  font-size: 0.7rem;
}

.chart-top {
  font-size: 0.7rem;
  text-align: start;
}

.chart-top span:after {
  display: inline-block;
  content: "";
  width: 2em;
  height: 0.8em;
  height: 0.8em;
  background: currentColor;
}

.bar-chart-div {
  background-color: rgb(241, 235, 235);
  box-shadow: 1px #888888;
  position: relative;
  z-index: -1;
  height: fit-content;
  padding: 1rem 2rem;
  width: 30rem;
}

.bar {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

#bar-chart {
  margin: 0 auto;
  max-width: 36rem;
  position: relative;
}
#bar-chart h1 {
  text-align: center;
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
}
#bar-chart .row {
  position: relative;
  line-height: 1.25em;
  margin-bottom: 2em;
  height: 10rem;
  /* width: ; */
}
#bar-chart .row .segment {
  -webkit-box-flex: 1;
  -ms-flex: 1 100%;
  flex: 1 100%;
  display: block;
  position: relative;
  -ms-flex-item-align: end;
  align-self: flex-end;
}
#bar-chart .row .segment:after {
  content: "";
  display: block;
  width: 100%;
  bottom: 0;
  position: absolute;
  height: 1px;
  background-color: #414245;
  z-index: -1;
}
#bar-chart .label {
  display: block;
  font-size: 0.7em;
  text-align: center;
}

/* X Axis */
#bar-chart .x-axis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  padding: 0 2em 0 0.5em;
  height: 100%;
  margin-bottom: 3.5em;
}
#bar-chart .x-axis .year {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  position: relative;
}
#bar-chart .x-axis .year .col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  margin: 0 8%;
  position: relative;
}
#bar-chart .x-axis .year .col .bar {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  /* background-color: #00aba9; */
  -ms-flex-item-align: end;
  align-self: flex-end;
  position: relative;
  margin: 0;
  height: 0px;
  -webkit-transition: height, 1s ease;
  -o-transition: height, 1s ease;
  transition: height, 1s ease;
}
#bar-chart .x-axis .year .col .bar[style*="height"] {
  min-height: 2px;
}

.hello {
  margin-left: 0.8rem;
  display: flex;
  width: 1.4rem;
  justify-content: center;
}

.marb {
  margin-top: 1rem;
}

#bar-chart .x-axis .year .col .bar.negative {
  -ms-flex-item-align: start;
  align-self: flex-start;
  top: 100%;
}
#bar-chart .x-axis .label {
  padding: 0.5em 0.25em 0;
  top: 10rem; /* 320 + 8*/
  position: absolute;
  line-height: 1.25em;
  width: 100%;
}
#bar-chart .x-axis .label a {
  color: black;
  text-decoration: none;
  display: block;
}
#bar-chart .x-axis .label a .name {
  display: none;
}
#bar-chart .x-axis .year .col .bar .tooltip,
#bar-chart .x-axis .year .col .bar .tooltip:after {
  display: block;
  position: absolute;
  z-index: 2;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
#bar-chart .x-axis .year .col .bar .tooltip {
  top: -2em;
  font-size: 0.75em;
  padding: 2px 5px;
}

/* Y Axis */
#bar-chart .y-axis {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  position: absolute;
  width: 100%;
  padding: 0 1.5em 0 0.25em;
}
#bar-chart .y-axis .label {
  margin: 0 auto -10px -2.5em;
  width: 2.5em;
  text-align: left;
  padding-right: 0;
  padding-left: 0.5em;
}

/*Flat UI colors*/

.four {
  background: #3498db;
}

.five {
  background: rgb(41, 170, 185);
}

/* //table */

/* table */
.tables {
  position: relative;
  top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.head-table > h4 {
  font-size: 0.9rem;
}

.head-table,
.table-container,
.total {
  padding: 0 1rem;
}

.table-container p {
  font-size: 0.8rem;
}

.head-table {
  display: grid;
  grid-template-columns: 7rem 10rem repeat(3, 6rem);
  background-color: rgba(8, 97, 175, 4);
  margin-top: 5rem;
  color: white;
}

.table-container {
  display: grid;
  grid-template-columns: 7rem 10rem repeat(3, 6rem);
  background-color: white;
  height: 7rem;
}

.column {
  height: fit-content;
}

.column > p {
  text-align: start;
}

.total {
  display: grid;
  grid-template-columns: 7rem 10rem repeat(3, 6rem);
  border-top: 1px solid black;
  background-color: white;
}

.total > h4 {
  font-size: 0.9rem;
}
.total > p {
  font-size: 0.8rem;
  margin-top: 1.3rem;
}

.table-hori-div {
  background-color: rgb(241, 235, 235);
  position: relative;
  top: 5rem;
  z-index: 1;
  height: 14rem;
  width: 26rem;
  padding-left: 6rem;
  padding-top: 1rem;
}
