@font-face {
  font-family: mainHeader;
  src: url('../fonts/RobotoCondensed-BoldItalic.ttf');
}

@font-face {
  font-family: secondHeader;
  src: url('../fonts/Oswald-Bold.ttf');
}

@font-face {
  font-family: paragraph;
  src: url('../fonts/Lato-Regular.ttf');
}

@font-face {
  font-family: paragraph;
  src: url('../fonts/Lato-Bold.ttf');
  font-weight: bold;
}

body {
  margin: 0;
  color: #FFF;
  height: 100vh;
  overflow-y: hidden;
}

header {
  background-color: rgba(0,0,0,0.8);
}

h1 {
  font-family: mainHeader;
  margin: 0;
  padding: 0.5em 1em;
  color: #FFF;
}

h1 span {
  color: #db9833;
}

h2 {
  font-family: secondHeader;
  margin-bottom: -0.2em;
}

h2 ~ p {
  margin-top: 0;
}

q {
  font-style: italic;
}

p ,a ,ul {
  font-family: paragraph;
  color: inherit;
}

a {
  font-weight: bold;
}

nav {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  z-index: 10;
}

nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0;
}

nav li {
  display: inline-block;
}

nav li a {
  text-decoration: none;
  text-align: center;
  color: #DDD;
  font-size: 0.8em;
}

nav li i{
  display: block !important;
  font-size: 1.8em;
}

section p{
  color: #DED;
}

aside {
  color: #FFF;
}

section, aside {
  padding: 0 2em;
}

#flexWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

#backgroundVideo {
  min-width: 100%;
  min-height: 0.5625vw;
  pointer-events: none;
}

#mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

#contentWrapper {
  padding: 0;
}

.pageWrapper {
  box-sizing: border-box;
  padding-top: 4.4em;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.compact {
  font-size: 0.9em;
}

.button {
  text-align: center;
  margin: 2em 0;
}

.button a {
  display: inline-block;
  text-decoration: none;
  padding: 0.5em 1em;
  background-color: rgb(251,51,51);
  color: #FFF;
  border-radius: 5px;
  line-height: 1.5em;
}

.orangeBack {
  background-color: rgba(219, 152, 51,0.8);
}

.redBack {
  background-color: rgba(219,51,51,0.8);
}

@media screen and (max-width: 800px) {
  nav {
    width: 50%;
  }
}

@media screen and (orientation: portrait) {

  body {
    color: #000;
    overflow-y: auto;
  }

  nav {
    width: 100%;
    background-color: rgba(0,0,0,0.8)
  }

  aside {
    text-align: center;
    padding-bottom: 2em;
  }

  section p {
    color: #333;
  }

  h2 {
    margin-bottom: 0;
  }

  #background, #flexWrapper {
    height: 40vh;
  }

  #background {
    z-index: 3
  }

  #backgroundVideo {
    height: 100%;
  }
  
  #contentWrapper {
	padding-top: 40vh;
  }

  .pageWrapper {
    padding-top: 0;
    flex-direction: column;
    min-height: 60vh;
  }
  
  a[id]{
	display: block;
	position: relative;
	top: -40vh;
  }

  .redBack {
    background-color: rgb(219,51,51);
  }

  .orangeBack {
    background-color: rgb(219,152,51);
  }

}
