html {
    font-family: sans;
}

.yellow {
    background-color: #FFDF6D;
}

.green {
    background-color: #C0FF6D;
}

.red {
    background-color: #FF7B6D;
}

.gray {
    background-color: #C0C0C0;   
}

.round-right {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.round-left {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.table-center {
    text-align: center;
    width: 100%;
    padding: 4px;
}

.check-entry {
    font-size: 20px;
}

.header-text {
    font-weight: bold;
}

body {
    max-width: 60em;
    margin: auto;
    padding: 15px;
}

.main-table-grid {
    display: grid;
    grid-gap: 3px;
    width: 100%;
    margin: auto;
    align-items: center;
}

.details {
    display: none;
}

.expanded > .details {
    display: inline-block;
}

.grid-row {
    display: contents;
}

/* .grid-row:hover { */
/*     background-color: pink; */
/* } */

.row-label {
    background-color: inherit;
}

a.external {
  color: inherit;
}


footer {
    text-align: center;
    font-size: 0.8em;
    float: end;
    margin-top: 2em;
    margin-bottom: 1em;
}

header > .logo {
    width: auto;
    height: 8em;
    margin: auto;
    display: block;
    margin-top: 1em;
}
@media (max-width: 40em) {
    .row-label {
        grid-column: 1 / span 3;
    }
    .main-table-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    header > .logo {
        width: 80vw;
        height: auto;
    }
}


/*
Tooltip implementation from https://www.w3schools.com/howto/howto_css_tooltip.asp.
Copyright by Refsnes Data, Fair Use "In research".
*/
.tooltip {
  position: relative;
  display: inline-block;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #555555;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -90px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
