/* GLOBAL ELEMENTS */
html{
    box-sizing: border-box;
}

*, *:before, *:after{
    box-sizing: inherit;
}

body{
    height: 100%;
    font-family: 'Sulphur Point', sans-serif;
    background: #bbb;
}

img{
    max-width: 100%;
}

/* NAV ELEMENTS*/
/* Menu */
header{
  > .logo{
      color: gray;
      font-weight: bold;
      font-size: 1rem;
      z-index: 10;
      top: 10px;
      left: 10px;
      position: fixed;
      transition: all 0.5s ease;
      &:hover{
          text-decoration: none;
          font-size: 1.2rem;
      }
  }
  > .menu-btn{
      width: 50px;
      float: right;
      cursor: pointer;
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 5;
      transition: all 0.5s ease;
      &:hover{
          width: 70px;
      }
  }
  > .home-btn{
      width: 50px;
      float: right;
      cursor: pointer;
      top: 10px;
      right: 70px;
      position: fixed;
      z-index: 5;
      transition: all 0.5s ease;
      &:hover{
          width: 70px;
      }
  }
}

nav{
    position: fixed;
    background: white;
    padding: 2em;
    width: 100%;
    height: 100vh;
    display: none;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right;
    transform-origin: right;
    z-index: 6;
    > .close-btn{
        width: 50px;
        position: fixed;
        cursor: pointer;
        opacity: 0;
        right: 15px;
        top: 15px;
        transition: all 0.5s ease;
        &:hover{
            width: 70px;
        }
    }
    > .row{
        margin: auto;
        padding: 0;
        display: flex;
        width: 80%;
        transition: all 1s ease;
        .col{
            opacity: 0;
            a{
                color: black;
                font-weight: bold;
                font-size: 1.4em;
                margin-top: 20px;
            }
            span{
                color: gray;
                display: block;
                font-size: 0.75em;
            }
        }
    }
}

.first-menu-list{
  padding-top: 35vh !important;
  padding-bottom: 30px !important;
  text-align: right;
}

.show-menu{
  display: block;
  -webkit-animation: slide-menu 1s ease-in forwards;
  animation: slide-menu 1s ease-in forwards;
  .row{
    .col{
      a{
        transition: all 0.5s ease;
        &:hover{
          font-family: 'Knewave', cursive;
          text-decoration: none;
        }
      }
    }
  }
}

.show-menu .close-btn{
    -webkit-animation: show-x 1s 1s forwards;
    animation: show-x 1s 1s forwards;
}

.show-menu .col:nth-of-type(1) {
    -webkit-animation: menu-item-anim 0.6s forwards 1s ease-in-out;
            animation: menu-item-anim 0.6s forwards 1s ease-in-out;
  }
  
  .show-menu .col:nth-of-type(2) {
    -webkit-animation: menu-item-anim 0.6s forwards 1.2s ease-in-out;
            animation: menu-item-anim 0.6s forwards 1.2s ease-in-out;
  }
  
  .show-menu .col:nth-of-type(3) {
    -webkit-animation: menu-item-anim 0.6s forwards 1.4s ease-in-out;
            animation: menu-item-anim 0.6s forwards 1.4s ease-in-out;
  }
  
  .show-menu .col:nth-of-type(4) {
    -webkit-animation: menu-item-anim 0.6s forwards 1.6s ease-in-out;
            animation: menu-item-anim 0.6s forwards 1.6s ease-in-out;
  }

@-webkit-keyframes slide-menu{
    from{
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
    to{
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
  }
}
@keyframes slide-menu{
    from{
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
    to{
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
  }
}
@-webkit-keyframes show-x{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
@keyframes show-x{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
@-webkit-keyframes menu-item-anim{
    from{
        -webkit-transform: translateY(60%);
        transform: translateY(60%);
        opacity: 0;
    }
    to{
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes menu-item-anim{
    from{
        -webkit-transform: translateY(60%);
        transform: translateY(60%);
        opacity: 0;
    }
  to{
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/*Contact Card*/

.noselect {
	user-select: none;
}

.artboard{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: end;
	justify-content: left;
  position: absolute;
  bottom: 15px;
  .modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: auto;
    transition: all .4s ease-in-out;
    position: fixed;
    z-index: 3;
    transition: all .4s ease-in-out;
    bottom: 15px;
    &:hover {
        width: 70px;
    }
  }
  .close-button {
    left: -5px;
    bottom: 0px;
    position: fixed;
    padding: 0;
    overflow: auto;
    z-index: 1;
    opacity: 0;
    img{
      width: 50px;
      transition: all 0.5s ease;
      &:hover{
        width: 70px;
      }
    }
    a{
        text-decoration: none;
        color: #FCD0BA;
    }
  }
}

.x-opa{
  opacity: 1 !important;
  z-index: 5 !important;
}

.overlay2 {
	overflow: auto;
	width: 100%;
	height: 100%;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	opacity: 0;
	background: rgba(255,255,255,0.9);
	position: fixed;
    transition: all  500ms linear;
    z-index: 4;
}

.overlay2 a, .overlay2 p {
	visibility: hidden;
	text-transform: none;
}

.overlay2:target {
	visibility: visible;
	opacity: 1;
	height: 100%;
	width: 100%;
}

.overlay2:target a, .overlay2:target p {
	visibility: visible;
}

.overlay2:target .card {
	top: 50%;
	opacity: 1;
}

@keyframes beat{
	to{
		transform: scale(1.4);
	}
}

.profile-card{
    position: absolute;
    z-index: 100;
    top: 50%;
    left: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    min-width: 290px;
    max-width: 450px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: bouncein 1s;
    animation: bouncein 1s;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .profile-card > .card-header{
    display: block;
    line-height: 0;
    width: 88%;
    max-width: 88%;
    background: #fff;
    .telef, .email{
      padding-top: 5px;
      height: 30px;
      font-size: 1.2rem;
      font-weight: bold;
      a{
        color: #555;
        transition: all 0.5s ease;
        &:hover{
          text-decoration: none;
          color: #000;
        }
      }
      h4{
        padding-top: 5px;
        font-size: 1.2rem;
      }
    }
  }
  
  .profile-card > .card-header > a{
    line-height: 0;
    display: block;
    background-image: url('/img/frame.jpg');;
    background-size: 100% 100%;
  }
  
  .profile-card > .card-header a > img{
    width: 100%;
    opacity: 0;
  }
  
  .profile-card:hover > .card-header a > img{
    opacity: 1;
  }
  
  .profile-card:hover > .card-header + .profile-bio{
    max-height: 200px;
    -webkit-transition: max-height .5s ease-in;
    transition: max-height .5s ease-in;
  }
  
  .profile-card:hover > .card-header + .profile-bio p{
    -webkit-animation: fadein 2s;
    animation: fadein 2s;
  }
  
  .profile-bio{
    clear: both;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 88%;
    width: 88%;
    max-height: 0;
    -webkit-transition: max-height .5s ease-out;
    transition: max-height .5s ease-out;
    color: #fff;
    background: linear-gradient(to right bottom, #000 , #555);
    -webkit-order: 1;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    padding-left: 10px;
  }
  
  .profile-bio p{
    margin: 4.5%;
    -webkit-animation: fadeout 2s;
    animation: fadeout 2s;
  }
  
  .profile-social-links{
    line-height: 0;
    display: -webkit-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    box-sizing: border-box;
    max-width: 12%;
    width: 12%;
    margin: 0;
    padding: 3.5%;
    list-style-type: none;
    text-align: center;
    background: linear-gradient(to right bottom, #555 , #000);
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-pack: end;
    -moz-box-pack: end;
    -webkit-flex-pack: end;
    -ms-flex-pack: end;
  }
  
  .profile-social-links img{
    width: 100%;
    height: auto;
    margin-top: 10px;
  }
  
  .profile-social-links li{
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
  }
  
  .profile-social-links li:hover{
    -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
  }
  
  @media (max-width: 480px) {
    .profile-card {
      flex-direction: column;
      -webkit-flerowx-direction: column;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      -ms-flex-direction: column;
    }
    .profile-card > .card-header,
    .profile-bio {
      max-width: 100%;
      width: 100%;
    }
    .profile-bio {
      max-height: 100%;
    }
    .profile-card:hover > .card-header + .profile-bio p,
    .profile-bio p {
      -webkit-animation: none;
      animation: none;
    }
    h1 {
      font-size: 16px;
    }
    h2 {
      line-height: 1.2;
      margin-top: 0.5%;
    }
    .profile-social-links {
      display: -webkit-flex;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      flex-direction: row;
      max-width: 100%;
      width: 100%;
      max-height: 70px;
      background: linear-gradient(to right bottom, #555, #000);
      background-size: cover;
      -webkit-flex-direction: row;
      -webkit-box-orient: horizontal;
      -webkit-box-direction: normal;
      -ms-flex-direction: row;
      -webkit-order: -1;
      -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
      order: -1;
      -webkit-box-pack: end;
      -ms-flex-pack: end;
      justify-content: flex-end;
    }
    .profile-social-links img {
      width: auto;
      height: 18px;
      margin-top: 0;
      margin-left: 8px;
    }
  }
  
  @-webkit-keyframes shake {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
    20% {
      -webkit-transform: translateX(-1px);
      transform: translateX(-1px);
    }
    40% {
      -webkit-transform: translateX(2px);
      transform: translateX(2px);
    }
    60% {
      -webkit-transform: translateX(-1px);
      transform: translateX(-1px);
    }
  }
  
  @keyframes shake {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
    20% {
      -webkit-transform: translateX(-1px);
      transform: translateX(-1px);
    }
    40% {
      -webkit-transform: translateX(2px);
      transform: translateX(2px);
    }
    60% {
      -webkit-transform: translateX(-1px);
      transform: translateX(-1px);
    }
  }
  
  @-webkit-keyframes pulse {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    50% {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }
  
  @keyframes pulse {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    50% {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }
  
  @-webkit-keyframes fadein {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadein {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @-webkit-keyframes fadeout {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  @keyframes fadeout {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  @-webkit-keyframes bouncein {
    0% {
      -webkit-transform: translate(-50%, -200%);
      transform: translate(-50%, -200%);
      opacity: 0;
    }
    50% {
      -webkit-transform: translate(-50%, -30%);
      transform: translate(-50%, -30%);
      opacity: 1;
    }
    100% {
      -webkit-transform: translateY(-50%, -50%);
      transform: translateY(-50%, -50%);
    }
  }
  
  @keyframes bouncein {
    0% {
      -webkit-transform: translate(-50%, -200%);
      transform: translate(-50%, -200%);
      opacity: 0;
    }
    50% {
      -webkit-transform: translate(-50%, -30%);
      transform: translate(-50%, -30%);
      opacity: 1;
    }
    100% {
      -webkit-transform: translateY(-50%, -50%);
      transform: translateY(-50%, -50%);
    }
  }


/* Bio */
canvas {
    cursor: crosshair; 
    width: 100%;
    height: 100vh;
    position: relative;
}
   
#info {
  font-family: 'Sulphur Point', sans-serif;
  font-size: 40px;
  position: fixed; 
  top: 50%;
  left: 50%;
  color: #fff;
  margin-top: -40px;
  margin-left: -200px;
  overflow: hidden;
  z-index: 0;
}

.bio-data{
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    background: darkgray;
}

.bio-txt{
    max-width: 800px;
    margin: auto;
    margin-bottom: 250px;
    h3 > span{
      color: white;
    }
    p{
      text-align: justify;
      text-justify: distribute;
      padding: 20px 0px;
      color: #fff;
      font-size: 1.2rem;
    }
    .col > p{
      padding: 20px;
    }
}

.nachoes{
    display: flex;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 10vh;
    .text {
        position: relative;
        margin: auto;
        text-align: center;
        width: 100%;
        font-size: 3rem;
        margin-left: -90px;
        p {
            display: inline-block;
            vertical-align: top;
            margin: 0;
            &.white{
                color: #fff !important;
            }
            .word {
                position: absolute;
                width: 240px;
                opacity: 0;
            }
            
            .wisteria {
                color: #8e44ad;
            }
            
            .belize {
                color: #2980b9;
            }
            
            .pomegranate {
                color: #c0392b;
            }
            
            .green {
                color: #16a085;
            }
            
            .midnight {
                color: #2c3e50;
            }
        }
    }
}

.letter {
    display: block;
    position: relative;
    float: left;
    transform: translateZ(25px);
    transform-origin: 50% 50% 25px;
  }
  
  .letter.out {
    transform: rotateX(90deg);
    transition: transform 0.32s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  
  .letter.behind {
    transform: rotateX(-90deg);
  }
  
  .letter.in {
    transform: rotateX(0deg);
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }