/*
  Media Queries
*/


/*------------------------------------DESKTOP MEDIA QUERY-----------------------------------*/
@media only screen and (min-width: 968px) {
  
  .panel {
    display: inline-block;
  }

  #panel1 {
    overflow: hidden;
  }

  #panel2,  #panel3,  #panel4,  #panel5,  #panel6,  #panel7 {
    width: 33.33333333%;
    margin: -4px;
  }

  .nav-right  {
    position: fixed;
    bottom: 4%;
    right: 3%;
    height: auto;
    width: auto;
  }

  .nav-left {
    position: fixed;
    bottom: 4%;
    left: 3%;
    height: auto;
    width: auto;
  }

  .face {
    top: 38%;
    right: 20%;
    position: absolute;
    height: auto;
    width: 190px;
  }

  #cover-section-1 {
    white-space: normal;
    position: absolute;
    top: 35%;
    width: 55%;
    height: auto;
    overflow: hidden;
    text-align: right;
  }

  #about_button {
    text-align: center;
    height: auto;
    position: absolute;
    width: 110px;
    height: 110px;
    top: 55%;
    left: 60%;
    text-align: left;
    line-height: 1;
  }

  #scroll-down-home {
    display: none;
  }

  .portfolio_nav_text {
    transform: rotate(270deg);
    position: absolute;
    right: -40px;
    top: 45%;
    bottom: 45%;
    z-index: 1;
    height: 50px;
    width: auto;
    text-align: center;
  }

  .portfolio_nav_icon {
    position: absolute;
    right: 0px;
    bottom: 50%;
    height: auto;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
  }

  .about_nav_text {
    position: absolute;
    bottom:  0px;
    z-index: 1;
    height: 55px;
    width: 100%;
    text-align: center;
  }

  .about_nav_icon {
    position: absolute;
    bottom: 5px;
    margin: 0% auto;
    height: auto;
    width: 100%;
    cursor: pointer;
    text-align: center;
  }

  * {
    overflow-y: hidden;
  }
  
  .portfolio_nav_mobile, .about_nav_mobile {
    visibility: hidden;
  }

::-webkit-scrollbar{
  height: 7px;
  width: 0px;
  background: #23252a;
}
::-webkit-scrollbar-thumb:horizontal{
  background: white;
  border-radius: 3px;
  height: 5px;
  width: 5px;
}

  #right_nav {
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: 1;
    height: auto;
  }

  #left_nav {
    position: fixed;
    bottom: 5%;
    left: 5%;
    z-index: 1;
    height: auto;
  }

}

/*------------------------------------TABLET MEDIA QUERY-----------------------------------*/
@media (max-width:968px) and (min-width:777px) {
  
  .panel {
    display: inline-block;
    width: 50%;
  }

  h1.black-header { 
    text-align: right;
  }

  #panel2,  #panel3,  #panel4,  #panel5,  #panel6,  #panel7 {
    width: 50%;
    margin: -4px;
  }

  .nav-right {
    position: fixed;
    bottom: 5%;
    right: 5%;
    height: 60px;
    width: 60px;
  }

  .nav-left {
    position: fixed;
    bottom: 5%;
    left: 5%;
    height: 60px;
    width: 60px;
  }

  .face {
    top: 38%;
    right: 20%;
    position: absolute;
    height: auto;
    width: 170px;
  }

  #panel1 {
    overflow: hidden;
  }

  #about_button {
    text-align: center;
    height: auto;
    width: 70%;
    margin-top: 5%;
  }

  #cover-section-1 {
    white-space: normal;
    position: absolute;
    top: 35%;
    width: 60%;
    height: auto;
    overflow: hidden;
    text-align: right;
  }

  #about_button {
    text-align: center;
    height: auto;
    position: absolute;
    width: 96px;
    height: 96px;
    top: 49%;
    left: 65%;
    text-align: left;
    line-height: 1;
  }

  #scroll-down-home {
    display: none;
  }

  .portfolio_nav_text {
    transform: rotate(270deg);
    position: absolute;
    right: -35px;
    top: 45%;
    bottom: 45%;
    z-index: 1;
    height: 50px;
    width: auto;
    text-align: center;
  }

  .portfolio_nav_icon {
    position: absolute;
    right: 0px;
    bottom: 50%;
    height: auto;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
  }

  .about_nav_text {
    position: absolute;
    bottom:  0px;
    z-index: 1;
    height: 40px;
    width: 100%;
    text-align: center;
  }

  .about_nav_icon {
    position: absolute;
    bottom: 5px;
    height: auto;
    width: 100%;
    cursor: pointer;
    text-align: center;
  }

  .portfolio_nav_mobile, .about_nav_mobile {
    visibility: hidden;
  }

  * {
    overflow-y: hidden;
  }

  ::-webkit-scrollbar{
  height: 7px;
  width: 0px;
  background: black;
}
::-webkit-scrollbar-thumb:horizontal{
  background: white;
  border-radius: 3px;
  height: 5px;
  width: 5px;
}

}


/*------------------------------------SMALL TABLET MEDIA QUERY-----------------------------------*/
@media (max-width:777px) and (min-width:568px) {
  
  .panel {
    display: inline-block;
    width: 100%;
  }

  h1.black-header { 
  text-align: right;
  }

  #panel2,  #panel3,  #panel4,  #panel5,  #panel6,  #panel7 {
    width: 100%;
  }

  .nav-right {
    position: fixed;
    bottom: 5%;
    right: 5%;
    height: 60px;
    width: 60px;
  }

  .nav-left {
    position: fixed;
    bottom: 5%;
    left: 5%;
    height: 60px;
    width: 60px;
  }

  .face {
    top: 38%;
    right: 20%;
    position: absolute;
    height: auto;
    width: 140px;
  }

  #cover-section-1 {
    white-space: normal;
    position: absolute;
    top: 35%;
    width: 60%;
    height: auto;
    overflow: hidden;
    text-align: right;
  }

  #about_button {
    text-align: center;
    height: auto;
    position: absolute;
    width: 80px;
    height: 80px;
    top: 48%;
    left: 65%;
    text-align: left;
    line-height: 1;
  }

  #scroll-down-home {
    display: none;
  }

  #panel1 {
    overflow: hidden;
  }

  .portfolio_nav_text {
    transform: rotate(270deg);
    position: absolute;
    right: -28px;
    top: 45%;
    bottom: 45%;
    z-index: 1;
    height: 50px;
    width: auto;
    text-align: center;
  }

  .portfolio_nav_icon {
    position: absolute;
    right: 0px;
    bottom: 50%;
    height: auto;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
  }

  .about_nav_text {
    position: absolute;
    bottom:  0px;
    z-index: 1;
    height: 35px;
    width: 100%;
    text-align: center;
  }

  .about_nav_icon {
    position: absolute;
    bottom: 5px;
    height: auto;
    width: 100%;
    cursor: pointer;
    text-align: center;
  }

  * {
    overflow-y: hidden;
  }

  .portfolio_nav_mobile, .about_nav_mobile, .line {
    visibility: hidden;
  }

  ::-webkit-scrollbar{
    height:7px;
    width: 0px;
    background: black;
  }
  ::-webkit-scrollbar-thumb:horizontal{
    background: white;
    border-radius: 3px;
    height: 5px;
    width: 5px;
  }

}

/*------------------------------------MOBILE MEDIA QUERY-----------------------------------*/
@media only screen and (max-width: 568px) {

  .nav-right, .nav-left {
    display:  none;
  }

  .face {
    top: 31%;
    right: 32%;
    left: 38%;
    height: auto;
    position: absolute;
  }

  #cover-section-1 {
    white-space: normal;
    position: absolute;
    bottom: 40%;
    margin: 0% auto;
    height: auto;
    width: 100%;
    text-align: center;
  }

/*Actually ABOUT NAV*/
  .portfolio_nav_text {
    transform: rotate(270deg);
    position: absolute;
    right: -5px;
    top: 45%;
    bottom: 45%;
    z-index: 1;
    height: 30px;
    width: auto;
    text-align: center;
  }

/*Actually ABOUT NAV*/
  .portfolio_nav_icon {
    position: absolute;
    right: 0px;
    bottom: 49%;
    height: 40px;
    width: 35px;
    cursor: pointer;
    text-align: center;
  }

/*Actually PORTFOLIO NAV*/
  .about_nav_text {
    position: absolute;
    bottom:  33px;
    z-index: 1;
    height: 35px;
    width: 100%;
    text-align: center;
  }

/*Actually PORTFOLIO NAV*/
  .about_nav_icon {
    position: absolute;
    bottom: 5px;
    height: auto;
    width: 100%;
    cursor: pointer;
    text-align: center;
  }

  .portfolio_nav, .about_nav, .scroll_hint, #line_r{
    visibility: hidden;
  }

  #about_button {
    text-align: left;
    height: auto;
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: 24%;
    left: 40%;
  }

  #scroll-down-home {
    position: absolute;
    bottom: 5px;
    left: 50%;
    margin-left: -16px;
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid #FFF;
    background-size: 14px auto;
    border-radius: 50%;
    z-index: 2;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    cursor: pointer;
  }

  ::-webkit-scrollbar{
    height:0px;
    width: 7px;
    background: black;
  }
  ::-webkit-scrollbar-thumb:horizontal{
    background: white;
    border-radius: 3px;
    height: 5px;
    width: 5px;
  }
}

/*
  ----------------------------------------------Main CSS--------------------------------------------------
*************************************************************************************************************
*************************************************************************************************************
*************************************************************************************************************
  -----------------------------------------------------------------------------------------------------------
*/


/*------------------------------------Page Structure-----------------------------------*/

* {
  margin: 0;
  padding: 0;
  height: 100%;
}

#horizontal-body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#page-content {
    overflow-y: scroll;
    white-space: nowrap;
}

/*------------------------------------Navigation-----------------------------------*/

.portfolio_nav, .about_nav, .portfolio_nav_mobile, .about_nav_mobile{
  opacity: 0.7;
  height: auto;
  width: auto;
}

.portfolio_nav:hover , .about_nav:hover, .portfolio_nav_mobile:hover, .about_nav_mobile:hover{
  opacity: 1;
}

.scroll_hint {
  position: absolute;
  bottom:  20px;
  z-index: 1;
  height: 55px;
  width: auto;
  text-align: center;
  left: 50%;
}

/*------------------------------------Animated Line-----------------------------------*/
.line {
  width: 100px;
  height: 2px;
  background: #fff;
  position: absolute;
  bottom: 4%;
  left: 50%;
}

#line_r{
  -webkit-animation: line_r_animation 3s infinite;
  animation: line_r_animation 3s infinite;
}

#line_l{
  -webkit-animation: line_l_animation 3s infinite;
  animation: line_l_animation 3s infinite;
}

@-webkit-keyframes line_l_animation {
  0%   {left: calc(2% + 85px); width: 0px;}
  35%   {left: calc(2% + 0px); width: 85px;}
  70%   {left: calc(2% + 0px); width: 0px;}
  100%   {left: calc(2% + 0px); width: 0px;}
}

@keyframes line_r_animation {
  0%   {left: calc(2% + 85px); width: 0px;}
  35%   {left: calc(2% + 0px); width: 85px;}
  70%   {left: calc(2% + 0px); width: 0px;}
  100%   {left: calc(2% + 0px); width: 0px;}
}

@-webkit-keyframes line_r_animation {
  0%   {right: calc(2% + 85px); width: 0px;}
  35%   {right: calc(2% + 0px); width: 85px;}
  70%   {right: calc(2% + 0px); width: 0px;}
  100%   {right: calc(2% + 0px); width: 0px;}
}

@keyframes line_r_animation {
  0%   {right: calc(2% + 85px); width: 0px;}
  35%   {right: calc(2% + 0px); width: 85px;}
  70%   {right: calc(2% + 0px); width: 0px;}
  100%   {right: calc(2% + 0px); width: 0px;}
}

/*------------------------------------Panels-----------------------------------*/
.panel {
  margin-bottom: -4px;
  padding: 0;
  position: relative;
  height: 100%;
  background-size:cover;
  background-repeat: repeat;
  background-position: center bottom;
  background-fill:stretch;
}

/*About*/
#panel1 {
  width: 100%;
  background-image: url("../images/bg5.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size:cover;
  top: 0;
}

/*App*/
#panel2 {
  background-image: url("../images/App-template-1-cropped.png");
  margin-left: -7px;
}

/*Motion*/
#panel3 {
  overflow-x: hidden;
  overflow-y: hidden;
  background-color: grey;
}

/*Web*/
#panel4 {
  background-image: url("../images/code.png");
}

/*Graphics 1*/
#panel5 {
  background-image: url("../images/white-line1.png");
}

/*Graphice 2*/
#panel6 {
  background-image: url("../images/cd-case-back.png");
}

/*Contact*/
#panel7 {
  background-image: url("../images/bg9.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size:cover;
  top: 0;
}

img {
  display: inline-block;
}

/*The text on each section */
#cover-section {
  white-space: normal;
  position: absolute;
  top: 55%;
  left: 5%;
  width: 80%;
  height: auto;
}

