@font-face {
  font-family: 'BD Cartoon Shout';
  src: url('./BDCartoonShout.woff2') format('woff2'),
      url('./BDCartoonShout.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #2A1C52;
  background-image: url('./bg.png');
  background-size: cover;
  color: #EAEAEA;
  font-size: 65%;
  margin: 0;
}

ul {
  list-style-type: none;
  list-style-position: outside;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  font-size: 1.5em;
  margin: 0 auto 0 auto;
}

header {
  margin-bottom: 1.2em;
}

header .container {
  display: flex;
  flex-wrap: wrap;
}

header nav {
  flex-grow: 1;
}

header nav ul {
  font-family: 'BD Cartoon Shout';
  display: flex;
  background-color: #331945;
  width: 70%;
  margin-left: auto;
  border-bottom-left-radius: 2vh;
  border-bottom-right-radius: 2vh;
  border: 4px dotted #0f0727;
  border-top-width: 0;
  margin-right: 1em;
}

header nav li {
  flex-grow: 1;
  text-align: center;
}

header nav li a {
  display: block;
  padding: 1.2em 1em 1em 1em;
}

a:link, a:visited {
  color: #F8C4D6;
  text-decoration: none;
}

a:hover, a:active {
  color: #e991b0;
}

header h1 {
  margin: 0;
  min-height: 68px;
  min-width: 300px;
  text-indent: -9999px;
  background: url('./BeuchiFest.png') no-repeat center;
}

main .row {
  display: flex;
  flex-wrap: wrap;
}

main .row.primary {
  flex-direction: row-reverse;
}

main .row section {
  flex-grow: 1;
}

main .row section.primary {
  flex-basis: 60%;
}

main .row section.secondary {
  flex-basis: 40%;
}

section h2 {
  font-family: 'BD Cartoon Shout';
  font-size: 1.5em;
  margin-top: 1vh;
  color: #FFFFFF;
}

section h2 .schedule-window {
  color: #8269c9;
}

section .wrapper {
  padding: 1em;
}

section .content p {
  line-height: 1.2em;
}

section .content .footnote {
  font-size: 0.7em;
  text-align: right;
}

section .content.text {
  color: #000000;
  background-color: #ffe9bd;
  border-radius: 2vh;
  padding: 0.5em 1em;
}

section .content li {
  margin-bottom: 1vh;
  display: flex;
  border-radius: 2vh;
}

section .content li > * {
  padding: 0.5em;
  font-weight: bold;
  display: block;
  border: 2px solid #ffe3ad;
}

section .content li .label {
  background-color: #ffe3ad;
  flex-basis: 3em;
  flex-shrink: 0;
  border-top-left-radius: 2vh;
  border-bottom-left-radius: 2vh;
  border-right-width: 0;
  color: #2B1C52;
  text-align: center;
  padding-left: 0.6em;
}

#schedule .content li .label {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

section .content li .label .day {
  font-size: 0.95em;
}

section .content li .label .time {
  display: block;
  font-size: 0.7em;
}

section .content li .title {
  background-color: #331945;
  flex-grow: 1;
  border-top-right-radius: 2vh;
  border-bottom-right-radius: 2vh;
  border-left-width: 0;
  padding-left: 0.7em;
}

@media (max-width: 790px) {
  main .row section.primary {
    flex-basis:100%;
  }

  header nav {
    flex-basis: 100%;
    margin-top: 0.5em;
  }

  header h1 {
    width: 100%;
    min-height: 76px;
    margin-top: 5px;
  }

  header nav ul {
    width: 100%;
    border-radius: 0;
    border-width: 3px 0px;
  }
}