@charset "UTF-8";

main {
  z-index: 200;
  margin-bottom: var(--gap);
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: 2rem 43px auto;
  gap: var(--gap);
}

main > nav {
  z-index: 200;
  display: flex;
  align-items: center;
  overflow: hidden;
}

main > nav > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main > nav#timeline {
  margin-bottom: -0.3rem;
  grid-row: 1 / 2;
  padding: 0 0.5rem;
  align-items: end;
}

main > nav#timeline > * {
  padding: 0.5rem;
  font-weight: bold;
  color: var(--section-timeline-button-color);
}

main > nav#timeline > *:is(:hover, :focus) {
  color: var(--section-timeline-button-color-hover);
}

main > nav#timeline > *:active {
  color: var(--section-timeline-button-color-active);
}

main > nav#timeline > *.selected {
  color: var(--section-timeline-button-selected-color);
}

main > nav#timeline > *.selected:is(:hover, :focus) {
  color: var(--section-timeline-button-selected-color-hover);
}

main > nav#timeline > *.selected:active {
  color: var(--section-timeline-button-selected-color-active);
}

main > nav#menu {
  grid-row: 2 / 3;
  border-radius: 0.75rem;
  background-color: var(--section-menu-background-color);
  -webkit-box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.1);
}

main > nav#menu > * {
  height: 100%;
  padding: 0 1rem;
  color: var(--section-menu-button-color);
}

main > nav#menu > *:first-child {
  margin-right: auto;
}

main > nav#menu > *.selected:is(:hover, :focus),
main > nav#menu > *:is(:hover, :focus) {
  background-color: var(--section-menu-button-background-color-hover);
}

main > nav#menu > *.selected {
  background-color: var(--section-menu-button-background-color-selected);
}

main > nav#menu > *.selected:active,
main > nav#menu > *:active {
  background-color: var(--section-menu-button-background-color-active);
}

main > section {
  z-index: 200;
  grid-row: 3 / 4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  border-radius: 0.75rem;
  background-color: var(--section-background-color);
  -webkit-box-shadow: 0px 3px 12px 2px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 3px 12px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 3px 12px 2px rgba(0, 0, 0, 0.1);
}

main > section > h1 {
  margin: 0.5rem 1rem 0.5rem 1rem;
  font-size: 1.2rem;
}

main > section > h1.row {
  align-items: center;
  gap: var(--gap);
}

main > section > h1 > a {
  min-width: 1rem;
  height: 100%;
  padding: 0.2rem;
  display: inline-flex;
  justify-content: start;
  align-items: center;
}

main > section > h1 > a:first-of-type {
  margin-left: auto;
}

main > section > div.row {
  padding: 0rem 1rem;
  justify-content: space-between;
}

main > section .block {
  background: var(--section-block-background-color);
}

main > section .block.text {
  padding: 0.6rem 0.8rem;
  display: inline-flex;
  flex-flow: row wrap;
}

main > section .block.text > a.continue {
  margin-left: auto;
  align-self: flex-end;
}

main > section p.block {
  margin: unset;
}

main > section ul.block {
  min-width: 200px;
  height: fit-content;
}

main > section > div.footer > small.phrase {
  flex-grow: 1;
  text-align: center;
}

main > section > div.footer > small#views {
  position: relative;
  margin-left: auto;
  align-items: center;
}

main > section > div.footer > small#views > * {
  z-index: 500;
}

main > section > div.footer > small#views > div.visibility {
  z-index: 300;
  position: absolute;
  right: calc(-100px + 10.5px + 0rem);
  top: calc(-100px + 0.5rem);
  width: 200px;
  height: 200px;
  /*   pointer-events: none; */
}

main > section#total > div#diagram.column {
  margin-top: auto;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

main > section#total > div#diagram.column:has(svg.chart) {
  padding-left: 1rem;
}

main > section#total > div#diagram.column > svg.pie {
  height: min(30%, 300px);
}

main > section#total > div#diagram.column > small.formula {
  margin: 0 1.4rem;
  padding-right: 4rem;
  font-size: 0.8rem;
  color: var(--diagram-legend-text-color);
}

main > section#total > div#diagram.column > svg.chart {
  margin: -2.5rem -1rem -3rem;
  width: calc(100% + 1rem);
}

main > section#total > div#diagram.column > div.background {
  width: 100%;
  height: 170px;
}
