@font-face {
    font-family: HouseSlant;
    src: url(../fonts/HouseSlant.woff);
}

@font-face {
    font-family: LeagueSpartan;
    src: url(../fonts/LeagueSpartan-Bold.otf);
}

body{
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: LeagueSpartan, Helvetica, Sans-Serif;
  font-size: 16px;  
  line-height: 38px;
  color: #444444;
}

a:link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 16px;
}

a:visited {
    color: white;
}

/*a:hover {
    color: #F81010;
}*/

a:active {
    color: white;
}

h1{
  font-family: HouseSlant, Helvetica, Sans-Serif;
  font-size: 11vw;
  line-height: 11vw;
  color: white;
  text-align: center;
  margin: 0;
  letter-spacing: .3vw;
}

h2{
  font-size: 24px;
  color: white;
}

p{
  letter-spacing: .3px;
}

video{
  width: 100%;
}

figure {
  background-position: center;
  background-size: cover;
  height: 100%;
  width: 100%;
  margin: 0;
  position: relative;
}

figure::after{
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.35);
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

img{
  background-position: center;
  background-size: cover;
  height: 100%;
  width: 100%;
  margin: 0;
  position: relative;
}
.nav_container{
  position: absolute;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  width: 100vw;
  height: 100px;
  z-index: 1000;
}

.flex_nav{
  height: auto;
  margin: auto;
  padding: 0 10px;  
}
 
.nav_icon{
  width: 61px;
  height: 72px;
  background-image: url("../images/default.png");
  background-repeat: no-repeat;
  background-size: 61px 72px;
  -webkit-filter: drop-shadow(6px 10px 6px rgba(0,0,0,0.15));
  filter: drop-shadow(6px 10px 6px rgba(0,0,0,0.15));
  padding: 0;  
  
}

.nav_icon:hover{
  background-image: url("../images/wink.png");
  background-repeat: no-repeat;
  background-size: 61px 72px;
}

.nav_icon:active{
  background-image: url("../images/smirk.png");
  background-repeat: no-repeat;
  background-size: 61px 72px;
}

.nav_label{
  position: relative;
  width: 30%;
  flex: initial;
  text-align: center;
}

.nav_label::after{
  content: "";
  background-image:url("../images/crunch.svg");
  background-repeat: no-repeat;
  width: 52px;
  height: 10px;
  margin: 4px auto;
  display: block;
  opacity: 0;
  transition: 0.3s all ease;
  -webkit-transition: 0.3s all ease;
}

.nav_label:hover::after{
  opacity: 1;
}

.arrow{
  background-image:url("../images/arrow.svg");
  background-repeat: no-repeat;
  width: 14px;
  height: 10px;
  margin:  0 4px;
  display: inline-block;
}

.flip{
  -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.hero{
  width: 100vw;
  height: 43vw;
}

.title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.title p{
  color: white;
  text-align: center;
  margin: 0;
  line-height: 24px;
  padding-top: 18px;
}

.text_block{
  max-width: 750px;
  margin: 0 auto;
  padding: 5vw;
  text-align: center;
}

.works_container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100%;
}

.color_container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100vw;
  min-height: 40vw;
  padding: 5vw 0;
}

.flex_mobile{
  width: 300px; 
  height: auto;
  margin: auto;
  padding: 4vw 0;
}


.flex_tv{
  flex-basis: auto;
  max-width: 1080px; 
  height: auto;
  margin: auto;
  padding: 4vw;
}

.flex_works{
  flex-basis: auto;
  height: 320px;
  width: 50%;
  margin: auto;
  padding: 30px 0;
}

.black{
  color: black;
}

.red{
  color: #F81010;
}

/* Animations */
.animate-opacity{
-webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 2s; /* Firefox < 16 */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera < 12.1 */
            animation: fadein 2s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.animate-top{position:relative;animation:animatetop 0.5s
}

@keyframes animatetop{
  from{top:-100px;opacity:0}
  to{top:0;opacity:1}
}

/* Same in footer*/

.work_1{
  background-image:url("../images/cnet-ios.jpg");
}

.work_2{
  background-image:url("../images/tv-bg.jpg");
}

.work_3{
  background-image:url("../images/join-bg.jpg");
}

.work_4{
  background-image:url("../images/vs-bg.jpg");
}

/* Page-Specific Styles */

.index_bg{
  background-image: url("../images/portrait.jpg");
  }

.vs_blue{
  background: #0D1138;
}

.vs_shadow{
  -webkit-box-shadow: 0px 25px 50px 0px rgba(3,3,8,.7);
  -moz-box-shadow: 0px 25px 50px 0px rgba(3,3,8,.7);
  box-shadow: 0px 25px 50px 0px rgba(3,3,8,.7);
}

.cios_gray{
  background: #E1E5E8;
}

.cios_shadow{
  -webkit-box-shadow: 0px 14px 75px 15px rgba(96,27,97,.2);
  -moz-box-shadow: 0px 14px 75px 15px rgba(96,27,97,.2);
  box-shadow: 0px 14px 75px 15px rgba(96,27,97,.2);
}

.cjoin_purple{
  background: rgba(50,18,44,1);
}

.cjoin_shadow{
  -webkit-box-shadow: 0px 14px 75px 15px rgba(25,5,5,.2);
  -moz-box-shadow: 0px 14px 75px 15px rgba(25,5,5,.2);
  box-shadow: 0px 14px 75px 15px rgba(25,5,5,.2);
}


@media only screen and (max-width: 1024px) {
  h1 {
      font-size: 12vw;
      padding-top: 5vh;
    }
  
  .hero{
    width: 100vw;
    height: 50vh;
  }
}

@media only screen and (max-width: 500px) {
  .hero{
    height: 75vh;
  }

  h1{
    letter-spacing: .5vw;
  }
}