@font-face {
  font-family: tf2Text;
  src: url(TF2secondary.ttf);
}

@font-face {
  font-family: tf2;
  src: url(TF2.ttf);
}

html {
  font-size: 18px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: tf2Text;
  margin: 0;
  background: #2D2A28;
  color: #E2D9C3;
}

h1 {
  font-size: 4em;
  letter-spacing: .05em;
  text-align: center;
  font-family: tf2;
}

h2 {
  text-align: center;
}

header {
  padding-top: 2em;
  padding-bottom: 2em;
  position: relative;
}

header::after {
  content: '';
  background: url(tf2-logo.png) center no-repeat;
  background-size: auto 75%;
  opacity: .5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  color: white;
}

nav, header {
  padding-left: 1em;
  padding-right: 1em;
}

nav {
  font-size: 2em;
  margin-bottom: 2em;
}

nav a {
  color: currentColor;
  text-decoration: none;
  transition: all .25s;
}

nav a:hover {
  color: #ccc;
}

header h1, header h2 {
  margin: 0 0 .25em 0;
}

nav span {
  display: none;
}

#twitch-embed {
  text-align: center;
}

#twitch-embed iframe {
  width: 100%;
}

.video {
  touch-action: pan-y;
}

.video .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.5);
  color: white;
}

.video .overlay h4 {
  text-align: center;
  margin: .5em;
  font-size: 1.2em;
  line-height: 100%;
  font-family: 'Open Sans', sans-serif;
}

.video .overlay i {
  font-size: 3em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.owl-next, .owl-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  background-color: rgba(0,0,0,.4);
  color: white;
}

.owl-next {
  right: 0px;
}

.owl-prev {
  left: 0px;
}

.show-stream-btn {
  border-radius: 5px;
  background-color: #ccc;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 1.2em;
  font-family: tf2Text;
  color: black;
  margin-bottom: 2em;
}

#youtube-gallery {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

@media(min-width: 425px) {
  #twitch-embed {
    margin-left: 1em;
    margin-right: 1em;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1em;
  }
}

@media(min-width: 768px) {
  nav {
    font-size: 1em;
  }
  
  nav span {
    display: inline;
  }
  
  nav i {
    margin-right: .25em;
  }
}
@media(min-width: 1024px) {
  #youtube-gallery {
    padding: 0 50px;
  }
  
  .video .overlay {
    opacity: 0;
    transition: all .25s ease-in;
  }
  
  .video:hover .overlay {
    opacity: 1;
  }
  
  html {
    font-size: 20px;
  }
  
  section h2 {
    margin-top: 1.5em;
    font-size: 2em;
  }
}
@media(min-width: 1440px) {
  #twitch-embed {
    margin-left: 5em;
    margin-right: 5em;
  }
  
  #twitch-embed iframe {
    height: 600px;
  }
  
  html {
    font-size: 24px;
  }
  
  .video .overlay h4 {
    font-size: 1em;
  }
}