
* {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
}


/* ---------- Table ---------- */

table {
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

table caption {
  font-size: 2em;
}
table a {
	white-space: normal;
	-ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}
@media only screen and (min-width: 50em) {
table a {
	white-space: nowrap;
	-ms-hyphens: none;
    -webkit-hyphens: none;
    hyphens: none;
}
}



/* border, padding, etc. */

td {
  box-shadow: inset 1em 2em 2em -1.5em #dfcd00;
  border: 1px solid black;
  border-collapse: separate;
  padding: 1.5em;
}
tfoot td {
  border-top: 0.3em solid black;
}

/* text-align for cells */

th[scope="row"] {
  text-align: left;
}
td:last-of-type {
  text-align: right;
}
tfoot td {
  text-align: left !important; 
}


/* ---------- Header ---------- */

.header-logo {
    font-size: 1.5rem;
    text-align: center;
    /* fallback: background */
    background: white; 
    background: radial-gradient(white 30%, #dfcd00);
    color: #dfcd00;
}

/* Main part and content */

body {
    margin: 0em;
    padding: 0em;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

div.aside {
    flex: 1 1 0%;
    background-image: linear-gradient(#dfcd00, white);
}

section {
    flex: 20 0 0%;
}

section h1 {
    text-align: center;
}

section {
    border-style: solid;
    border-color: #eee475;
    border-width: 0.1em;
}

/* Navigation */

.nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border: 1px solid;
    border-color: #eee475;
    margin: 0em;
    padding: 0em;
    background-color: #dfcd00;
    position: static;
    top: 0;
	  z-index: 10;
}

.nav-item {
    flex: auto;
    border: 1px solid;
    border-color: #eee475;
    border-radius: 0.1em;
    margin: 0.1em;
    padding: 0.2em;
}

.nav-item:hover, .nav-item:focus {
    background-color: #eee475;
}

.nav-active {
    background-color: #eee475;
}

.nav-container a {
    display: block;
    text-decoration: none;
    color: black;
    text-align: center;
}

/* Footer */

.footer-container {
    position: static;
    bottom: 0;
    background-color: #dfcd00;
	  z-index: 10;
}

.footer-container ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    bottom: 0;
    width: 100%;
}

.footer-container li {
    float: left;
}

.footer-container li a {
    display: block;
    color: black;
    text-align: center;
    padding-top: 0.25em; 
    padding-bottom: 0.25em;
    padding-left: 0.25em;
    padding-right: 0.25em;
    text-decoration: none;
}

.footer-container li a:hover {
  background-color: #eee475;
}

/* Content: Topic */
.topic_title {
  text-align: center;
}
.topic_main {
  list-style-type: none;
}
.topic_main > li {
  margin: 0.2em;
}
@media only screen and (min-width: 35em) {
@supports (display:grid) {
.topic {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto;
  grid-gap: 0 2em;
}
.topic_title {
  grid-column: 1/2;
  align-self: start;
  top: 1em;
  /* position: sticky; */
  top: 0;
}
.topic_main {
    grid-column: 2/3;
}
}
}

@media only screen and (min-width: 25em) {
  .header-logo {
    font-size: 3rem;
  }
  .nav-item {
    border-radius: 0.2em;
    margin: 0.2em;
    padding: 0.3em;
  }
  section {
    flex: 6 0 0%;
  }
}
@media only screen and (min-width: 50em) {
  .header-logo {
    font-size: 7rem;
  }
  .nav-item {
    border-radius: 0.5em;
    margin: 0.5em;
    padding: 0.7em;
  }
  .nav-container {
    -webkit-position: sticky;
    position: sticky;
  }
  .footer-container {
    -webkit-position: sticky;
    position: sticky;
  }
  .footer-container li a {
    padding-top: 1em; 
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
  }
  section {
    flex: 4 0 0%;
  }
}