@import url('https://fonts.googleapis.com/css?family=Ubuntu');
.content h1 {
  font-family: 'Ubuntu';
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
  color: #394350;
}

.content p {
  margin-top: 40px;
  font-family: 'Ubuntu';
  font-size: 14px;
  line-height: 1.43;
  color: #394350;
}

.content .links {
  margin-top: 40px;
  display: flex;
}

.links a{
  margin-right: 16px;
}


.button {
  display: inline-block;
  line-height: 45px;
  height: 45px;
  border-radius: 4px;
  margin: 0;
  font-family: 'Ubuntu';
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  padding:0 16px;
}

.red {
  background-color: #97302d;
  border: 5px solid #97302d;
}

.blue {
  background-color: #394350;
  border: 5px solid #394350;
}

.social{
  padding: 0 10px;
  height: 50px;
  display: flex;
  align-items: center;
}


.social img{
    vertical-align: middle;
}

.linkedin img{width: 21px;height: 21px;}

.twitter img{width: 26px;height: 21px;}

.portfolio{
    overflow: hidden;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }



.select{cursor: pointer;}

  .dropdown{
  width: 23px;
  height: 12px;
  margin: 43px auto 10px;
  transform: rotate(0deg);
  transition: 0.4s ease;
  }

  .portfolio h2{
    opacity: 1;
    font-family: 'Ubuntu';
    font-size: 16px;
    font-weight: bold;
    color: #394350;
    transition: 0.4s ease;
  }

  .portfolio a{text-decoration: none;}

  .portfolio-wrap{
    margin: 45px 5px auto;
    overflow-x: scroll;
    display: flex;
  }

  .portfolio a:first-child {margin-left: auto;}
  .portfolio a:last-child {margin-right:auto;}


  .portfolio-wrap::-webkit-scrollbar{display: none;}

    .element{
      opacity: 1;
      height: 156px;
      position: relative;
      margin: 0 5px;
    }


  .element-crop{
    height: 156px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 5px;
  }

    .element img{
      width: 429px;
      height: 268px;
      position: relative;
    }

    .element-title{
      border-radius: 0 0 6px 6px;
      background: linear-gradient(to top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100%);
      display: flex;
      height: 40%;
      position: relative;
      top: 47%;
      font-family: 'Ubuntu';
  	  font-size: 16px;
  	  font-weight: bold;
  	  color: #ffffff;
      flex-direction: column;
      justify-content: flex-end;
      padding-bottom: 20px;
    }

    .active .dropdown{
      transform: rotate(180deg);
      transition: 0.4s ease;
    }

    .active h2{opacity: 0;transition: 0.2s ease;}


    .linkedin, .twitter{
      overflow: hidden;
      text-indent: -9999px;
      display: block;
      height: 21px;
    }

    .linkedin{
      background: transparent url(./../img/social_linkedin.png) no-repeat;
      background-size: contain;
      width: 21px;
    }

    .twitter{
      background: transparent url(./../img/social_twitter.png) no-repeat;
      background-size: contain;
      width: 26px;
    }



@media only screen and (max-width:500px), (max-height:740px){

.portfolio{
  background-color: #FFFFFF;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.15);
  transition: 0.4s ease;
}



}




@media only screen and (max-width: 500px) {
  body {
    background: url('./../img/background.jpg') no-repeat top left;
    width: 100vw;
  }
  .content {
    margin: 20px 10px 0;
    text-align: center;
  }

  .content .links{
    justify-content: center;
    flex-direction: column;
  }

  .links a{
    margin: 4px 0;
  }


  .bottom{margin: 0 10px 0;}

  .content h1 {
    margin-top: 55px;
    letter-spacing: 3px;
  }
  .logo {
    background: url('./../img/logo-mobile.png') no-repeat center top;
    background-size: contain;
    height: 238px;
  }


  .footer{
    margin-top: 75px;
    margin-bottom: 165px;
    display: flex;
    justify-content: center;
  }



.portfolio{height: 115px;}



.active .portfolio-wrap{margin: 20px 5px auto;}

.active .portfolio{
  height: 300px;
  transition: 0.4s ease;
}

.element{width: 120px;}

.element-crop{width: 120px;}

.element img{top: -56px;left: -154px;}

.element-title{width: 120px;}


}

@media only screen and (min-width: 501px) {

  body {
    background: url('./../img/background.jpg') no-repeat top center;
  }

  .content {margin: 85px 60px 0;}
  .bottom{margin:0 60px 0;}

  .content h1 {
    margin-top: 100px;
    letter-spacing: 6px;
  }

  .content .links{
    flex-direction: row;
  }

  .logo {
    background: url('./../img/logo-desktop.png') no-repeat left center;
    background-size: contain;
    height: 104px;
    margin-left: -20px;
  }

  .portfolio{
    height: 185px;
    transition: 0.4s ease;
  }

.portfolio-wrap{opacity: 0;padding-top: 105px;transition: 0.4s ease;}

      @media only screen and (max-height:740px){

        .portfolio{height: 150px;}
        .portfolio-wrap{padding-top: 60px;}
        .content{margin: 85px 60px 200px;}

      }

  .element{width: 300px;}

  .element-crop{width: 300px;}

  .element img{top: -56px;left: -65px;}

  .element-title{
    width: 280px;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
  }


  .active .portfolio{
    height: 375px;
    background-color: #FFFFFF;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.15);
    transition: 0.4s ease;
  }

.active .portfolio-wrap{opacity: 1;padding-top: 0;transition: 0.4s ease;}


  .footer{
    position: fixed;
    display: flex;
    bottom: 20px;
    justify-content: center;
    z-index: 1;
    width: 100%;
    left: 0;
  }

}


@media only screen and (max-width:700px){

  .email{
    background: transparent url(./../img/social_email.png) no-repeat;
    background-size: contain;
    width: 30px;
  }

  .email{
    overflow: hidden;
    text-indent: -9999px;
    display: block;
    height: 21px;
  }

}

@media only screen and (min-width: 700px) {

  .social:nth-child(3){
    font-family: "Ubuntu";
    font-size: 14px;
    text-decoration: none;
    color: #394350;
    opacity: 0.8;
  }

  .social:nth-child(3):hover{
    opacity: 1;
  }


  .content p {width: 600px;}
  .button {padding:0 24px;}


  .element{transition: 0.2s ease;}

  .element:hover{
     filter: brightness(115%) contrast(90%);
    transition: 0.2s ease;
  }

  .social{transition: 0.1s ease;}

  .social:hover{
      transition: 0.1s ease;
      background: #e6e6e6;
      border-radius:2px;
  }

  .button{transition: 0.3s ease;}
  .button:hover{background: none;transition: 0.3s ease;}

  .blue:hover {color: #394350;}
  .red:hover {color: #97302d;}

  .select{opacity: 0.8;}
  .select:hover{opacity: 1;}

  .active .select{opacity: 1;}

  .social:nth-child(3) {
    position: absolute;
    right: 60px;
}


}

@media only screen and (min-width: 1367px) {
  body {
    background: url('./../img/background@2x.jpg') no-repeat top center;
  }
}
