.transition, ul li i:before, ul li i:after, p {
  transition: all 0.25s ease-in-out;
}

.flipIn, ul li {
  animation: flipdown 0.5s ease both;
}

.no-select, h2 {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  width: 100%;
  height: 100%;
  perspective: 900;
  overflow-y: scroll;
  background-color: #efefef;
  color: #000000;
}

body {
  margin: 0;
  padding: 1em 0 0 0;
  background-image: url("img/background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Spinnaker", "Helvetica", sans-serif;
  font-weight: 300;
}

main header, main .schedule {
  max-width: 43em;
  margin: 0 auto;
}
@media (min-width: 70em) {
  main {
    display: flex;
    justify-content: space-around;
  }
  main header, main .schedule {
    max-width: 40em;
    margin: 1em 1em;
  }
}

header figure, section figure {
  margin: 0 auto;
  max-width: 20em;
}
header figure img, section figure img {
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: "Jura", "Helvetica", sans-serif;
  font-weight: 700;
}

header, footer, section {
  padding: 0 1em;
  color: #fefffa;
}
header p, header small, footer p, footer small, section p, section small {
  color: #fefffa;
}

td {
  width: 30%;
  padding: 1em;
  border: 1px solid #fefffa;
}

footer, section {
  padding-bottom: 30px;
  max-width: 43em;
  margin: 2em auto;
}
footer h3, section h3 {
  text-align: center;
}

section strong {
  font-weight: bold;
}
section ul {
  list-style: circle;
  margin-left: 2em;
}
section ul li {
  border: none;
}

small {
  margin-bottom: 16px;
}

a {
  color: #EE00FD;
}

.schedule {
  padding: 0 1em;
  background-color: #fefffa;
}
.schedule > h2 {
  color: #fefffa;
  background-color: #590099;
  padding: 0 16px 0 16px;
  margin: 0 -16px 0 -16px;
}
.schedule li h2 {
  line-height: 24px;
}
.schedule h4 {
  margin: 8px 0 8px;
  text-transform: uppercase;
}

h1 {
  line-height: 42px;
}

h2 {
  font-size: 21px;
  line-height: 34px;
  display: block;
  background-color: #fefffa;
  margin: 0 10px 0 0;
  cursor: pointer;
}

h3 {
  color: #000000;
  font-size: 16px;
  margin-top: 8px;
}

p {
  color: #000000;
  line-height: 26px;
  position: relative;
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transform: translate(0, 0);
  margin-top: 14px;
  z-index: 2;
}

iframe {
  margin-top: 1em;
}

ul {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
}
ul li {
  position: relative;
  padding: 0;
  margin: 0;
  padding-bottom: 4px;
  padding-top: 16px;
  border-bottom: 1px solid #000000;
}
ul li:last-of-type {
  border: none;
}
ul li:nth-of-type(1) {
  animation-delay: 0.5s;
}
ul li:nth-of-type(2) {
  animation-delay: 0.75s;
}
ul li:nth-of-type(3) {
  animation-delay: 1s;
}
ul li:last-of-type {
  padding-bottom: 0;
}
ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 16px;
  right: 0;
}
ul li i:before, ul li i:after {
  content: "";
  position: absolute;
  background-color: #590099;
  width: 3px;
  height: 9px;
}
ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}
ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
ul li input[type=checkbox]:checked ~ p {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translate(0, 50%);
}
ul li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
ul li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}
