h1,
h2 {
  text-align: center;
  color: #C34E00;
}

h1 {
  font-size: 4.5vmax;
  margin-top: 0;
}

h2 {
  font-size: 3vmax;
}

p,
th,
td {
  line-height: 1.5;
}

header {
  margin: 0 auto;
  margin-bottom: 3em;
}

nav {
  margin: 10px auto;
  max-width: 90%;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-section {
  text-align: center;
  justify-content: center;

  display: none;

}

.nav-section:nth-child(0),
.nav-section:nth-child(4),
.title {
  flex-basis: 100%;
  margin-bottom: 1em;
}

.nav-section ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav-item {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  padding: 0 10px;
}

nav a:hover {
  transform: scale(1.2);
}

.togglebutton {
  background: #25a;
  color: #fff;
  border: none;
  height: 2em;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
  border-radius: 0.5em;
}

.langbutton {
  background: #25a;
  color: #fff;
  border: none;
  height: 2em;
  font-size: 20px;
  border-radius: 0.5em;
  float: right;
}

.mainlink {
  font-weight: 700;
  font-size: 60px;
}

.justify {
  text-align: justify;
}

.prewrap {
  white-space: pre-wrap;
}

.mobile-nav {
  display: none;

  flex-direction: column;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
}

.nav-links {
  position: absolute;
  bottom: 0;
}

.mobile-nav-links {
  display: flex;
  flex-flow: wrap;

  justify-content: center;
  width: clamp(min(100%, 400px), 100%, 70vw);
  text-align: center;
  margin: 0 auto;
}

.mobile-add-links {

  margin: 25px auto;
}

.mobile-add-links a {

  padding: 20px 0;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  color: #C34E00;
}

.mobile-open {
  flex-basis: 100%;
  margin-bottom: 1em;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  padding: 0 10px;
  color: #C34E00;
}

.player {
  justify-content: right;
}

.play-pause {
  display: flex;
}

.play,
.pause {
  height: 40px;
  width: auto;
  padding: 5px 10px;
  transition: ease 0.5s;
  transform: scale(1);
}

.play:hover,
.pause:hover {
  transform: scale(1.1);
}

.listen {
  font-size: 30px;
  font-weight: 700;
}

.audiobox .listen {
  position: absolute;
  top: 10px;
  right: 0;
}

.vowel {
  color: #f00;
}

.consonant {
  color: #25a;
}

.plosive {
  color: #090;
}

.number {
  color: #C34E00;
}

.orange {
  background-color: #ffc24b;
  box-shadow: 0.2em 0.2em #C34E00;
}

.green {
  background-color: #a0df58;
  box-shadow: 0.2em 0.2em #090;
}

.blue {
  background-color: #a1dbf7;
  box-shadow: 0.2em 0.2em #25a;
}

.yellow {
  background-color: #fbe939;
  box-shadow: 0.2em 0.2em #ca7c16;
}

.darkorange {
  background-color: #ec9541;
  box-shadow: 0.2em 0.2em #C34E00;
}

.beige {
  background-color: #faebd7;
  padding: 1em;
  box-shadow: 0.2em 0.2em #ca7c16;
  text-align: center;
}

.story {
  margin-top: 10vh;
}

.story-image {
  display: flex;
  margin-bottom: 1em;
}

.story-image img {
  max-height: 50vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
}

.story-title {
  height: fit-content;
  line-height: 50px;
  vertical-align: middle;
  justify-content: center;
  display: flex;
}

.story-title h2 {
  margin: 0;
  font-style: normal;
  font-weight: 800;
  font-size: 36px;
}

.story-text {
  font-size: 24px;
  text-align: justify;
  white-space: pre-line;
}

.story-text>p {
  margin-top: 0;
}



:root {
  --vowel: #f00;
  --consonant: #25a;
  --plosive: #090;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

main,
.content,
.row {

  display: block;
  width: 100%;
}

.maincontent {
  font-size: 18px;
}


.content-half {
  width: 90vw;
  margin: 0 auto;
  float: none;
}

.three-columns {
  columns: 1;
  width: fit-content;
  margin: 0 auto;
}

div[class|="box"] {
  display: block;
  margin: 1em auto;
  padding: 0.5em;
}

.box p {
  padding: 0.5em;
}

.box-70 {
  width: 70%;
}

.box-80 {
  width: 80%;

}

.box-100 {
  width: 100%;
}

blockquote {
  background-color: #faebd7;
  font-family: Permanent Marker, cursive;

  box-shadow: 0.2em 0.2em #ca7c16;
  text-align: center;
  margin: 0 1em;
}

.audiobox {
  position: relative;
  padding-top: 50px !important;
}

.smallimage p img {
  max-height: 40vh;
}

.upperimage {
  position: relative;
  top: -3em;
}

table {
  display: flex;
  width: inherit;
  flex-direction: column;
  width: 100%;
}

/* table tbody {
  vertical-align: bottom;
} */

table tbody tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
}

table tbody td {
  display: block;
}

th,
td {

  text-align: center;
  align-self: center;
}

th img,
td img {
  width: stretch;
  /* width: 100%; */
  max-width: -moz-available;
  max-width: -webkit-fill-available;

  object-fit: scale-down;
}

th:empty {
  visibility: hidden;
}

li {
  float: left;
}

.center {
  text-align: center;
}

.middle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.space-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flex {
  flex-direction: column;
}

.flex>div {
  flex: 1;
}

footer {
  display: none;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: center;
  bottom: 20px;
  line-height: 75px;
  margin-top: 75px;
}

.footer-links a,
.mobile-add-links a {
  color: #C34E00;
  font-size: 24px;
}

.footer-links a:hover,
.mobile-add-links a:hover {
  color: #8f3900;
}

body {
  font-family: Raleway;

  max-width: 1600px;
  margin: 0 auto;
  background: url(/static/pilved.png) no-repeat;
  background-size: contain;
}

nav a {
  display: block;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transform: scale(1);
  transition: ease 0.5s;
}

a {
  color: inherit;
  text-decoration: none;
  transform: scale(1);
  transition: ease 0.5s;
}

p a {
  font-weight: bold;
  color: #C34E00
}

p a:hover {
  color: #8f3900
}

p img {
  max-height: 50vh;
  max-width: 100%;
  margin: 0 auto;
}

.large-letter {
  text-transform: none;
  font-style: normal;
  font-weight: 800;
  font-size: 120px;
  text-align: center;
  margin-bottom: 0;
}

.logo-container,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 50px;
  margin: 0 auto;
}

.logo-container img {
  height: 100px;
  margin: 0 10px;
}

.map {
  max-width: 100%;
}

.fillimg {
  max-height: 40vh;
}

@media screen and (min-width: 600px) {

  .nav-section,
  footer {
    display: flex;
  }

  .mobile-nav,
  .mobile-open {
    display: none;
  }

}


@media screen and (min-width: 900px) {

  main,
  .content {
    display: flex;
  }

  table {
    display: table;
    table-layout: fixed;
  }

  table tbody tr {
    display: table-row;
  }

  table tbody td {
    display: table-cell;
  }

  th img,
  td img {
    max-width: 100%;
  }

  nav {
    margin: 20px auto;
  }



  .content-half {
    width: 50vw;
    padding: 0 2vw;
  }

  .story {
    margin-top: 0;
  }

  .flex {
    display: flex;
    flex-direction: row;
  }

  .three-columns {
    column-count: 3;
    margin: 0 3em;
  }

  .large-letter {
    margin-bottom: 0.5em;
  }
}