.energy {
  height: 1rem;
}

table {
  background: #303030;
  border-collapse: collapse;
  font-size: 0.85em;
  width: 100%;
}

td,
th {
  padding: 3px;
}

th {
  background-color: #101010;
  text-align: left;
}

.tooltip {
  border-bottom: thin #fff dotted;
  position: relative;
  font-weight: bold;
}

tr:nth-of-type(2n) {
  background: rgba(0, 0, 0, 0.2);
}

@media ( width >= 840px) {
  th:nth-of-type(2n),
  td:nth-of-type(2n) {
    border-right: #222 2px solid;
    border-left: #222 2px solid;
  }
  .tooltiptext {
    background-color: #101010;
    border: thin #fff solid;
    border-radius: 5px;
    display: inline-block;
    padding: 10px;
    position: absolute;
    right: 105%; 
    top: -5px;
    visibility: hidden;
    width: 40ch;
    z-index: 2;
  }
  .tooltip:hover .tooltiptext {
    visibility: visible;
  }
}

@media ( width >= 600px ) {
  #mobile-toc {
    display: none;
  }
}

@media ( width < 1100px ) {
  #doc {
    width: 80%;
  }
  #doc-nav {
    width: 20%;
  }
}

@media ( width < 980px ) {
  td:nth-child(3),
  th:nth-child(3) {
    display: none;
  }
}

@media ( width < 920px ) {
  td:first-child,
  th:first-child {
    display: none;
  }
}

@media ( width < 900px ) {
  .energy {
    height: 0.9em;
  }
  table {
    font-size: 0.8em;
  }
}

@media ( width < 840px ) {
  .energy {
    height: 1em;
  }
  .basic-energy td:empty,
  .trainer td:empty{
    display: none;
  }
  .tooltip-note {
    display: none;
  }
  table {
    font-size: 0.9em;
  }
  td {
    display: block;
    padding-left: 10px;
    padding-right: 10px;
  }
  td::before {
    content: attr(data-cell) ": ";
    font-weight: bold;
    text-transform: capitalize;
  }
  td:first-child,
  td:nth-child(3) {
    display: block;
  }
  td:first-child {
    padding-top: 20px;
  }
  td:last-child,
  .basic-energy td:nth-child(5) {
    padding-bottom: 20px;
  }
  th {
    display: none;
  }
  .tooltiptext {
    background: rgba(0, 0, 0, 0.3);
    display: block;
    font-weight: normal;
    padding: 10px;
  }
}

@media (width < 600px) {
  #doc {
    width: 100%;
  }
  #doc-info {
    border: #fff 1px solid;
    border-bottom: #fff 1px solid;
    margin: 0px;
    width: 100%;
  }
  #doc-nav {
    border: none;
    padding: 0;
    width: 100%;
  }
  #doc-toc {
    display: none;
  }
  #contact {
    text-align: right;
  }
  #content {
    flex-direction: column;
    padding: 0 0 0.25em 0;
  }
  footer {
    align-content: center;
    display: flex;
    flex-direction: column;
  }
}
