@import 'norm.css';
@import 'musictrans.css';
a {
  color: white;
  text-decoration: none;
}

ul {
  margin: 0px;
  padding-left: 10px;
}

h1, h2, h3, h4 {
  font-weight: 300;
  margin: 0;
}

*:focus {
  outline: none;
}

h1, h2 {
  font-size: 2.4em;
}

h3 {
  font-size: 1.4em;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  display: flex;
  color: #333;
  font-size: 17px;
}

.dark {
  color: #eee;
}

#overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  box-shadow: inset 0 0 100px 0px rgba(0, 0, 0, 0.5);
}

/* BACKGROUND STUFF */

.background, .background div {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* HOME PAGE */

.background.home div {
  transition: top 0.6s ease-in-out;
  background-color: #ffb5b8;
  top: 100vh;
  height: 100vh;
  width: 100vw;
}

#current-background.home div, .active.background.home div {
  top: 0;
}

/* WEB PAGE */

.background.web div {
  background-color: #333;
  height: 10vh;
  margin-left: 100vw;
}

#current-background.web div, .active.background.web div {
  transition: margin-left 0.5s;
  margin-left: 0;
  height: 10.1vh;
}

.background.web div:nth-child(1) {
  transition-delay: 0.6s !important;
  top: 0%;
}

.background.web div:nth-child(2) {
  transition-delay: 0.4s !important;
  top: 10%;
}

.background.web div:nth-child(3) {
  transition-delay: 0.2s !important;
  top: 20%;
}

.background.web div:nth-child(4) {
  transition-delay: 0.1s !important;
  top: 30%;
}

.background.web div:nth-child(5) {
  transition-delay: 0s !important;
  top: 40%;
}

.background.web div:nth-child(6) {
  transition-delay: 0s !important;
  top: 50%;
}

.background.web div:nth-child(7) {
  transition-delay: 0.1s !important;
  top: 60%;
}

.background.web div:nth-child(8) {
  transition-delay: 0.2s !important;
  top: 70%;
}

.background.web div:nth-child(9) {
  transition-delay: 0.4s !important;
  top: 80%;
}

.background.web div:nth-child(10) {
  transition-delay: 0.6s !important;
  top: 90%;
}

.background.hardware div {
  width: 50vw;
  height: 50vh;
  background-color: rgba(0, 140, 74, 0);
  transition: transform 1s, background-color 0.8s;
}

.active.background.hardware div {
  background-color: rgba(0, 140, 74, 1);
}

.background.hardware div:nth-child(1) {
  top: -50vh;
  left: -50vw;
}

.background.hardware div:nth-child(2) {
  top: -50vh;
  left: 100vw;
}

.background.hardware div:nth-child(3) {
  top: 100vh;
  left: -50vw;
}

.background.hardware div:nth-child(4) {
  top: 100vh;
  left: 100vw;
}

.active.background.hardware div:nth-child(1) {
  transform-origin: bottom right;
  transform: rotate(180deg);
}

.active.background.hardware div:nth-child(2) {
  transform-origin: bottom left;
  transform: rotate(180deg);
}

.active.background.hardware div:nth-child(3) {
  transform-origin: top right;
  transform: rotate(180deg);
}

.active.background.hardware div:nth-child(4) {
  transform-origin: top left;
  transform: rotate(180deg);
}

.background.music div {
  width: 2.1vw;
  background-color: rgb(144, 198, 223);
  top: 0vw;
  height: 0px;
  transition: all 0.8s ease-in-out;
}

.active.background.music div {
  height: 100vh;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) inset;
}

/* 3D PRINT PAGE */

.background.prints div {
  position: fixed;
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  translate: transform(-50%);
  background-color: #fcfc8b;
  border-radius: 50%;
}

.active.background.prints div {
  animation: bwoop 0.8s;
  animation-fill-mode: forwards;
}

#current-background.prints div {
  width: 350vw;
  height: 350vw;
  left: -125vw;
  top: -125vw;
}

@keyframes bwoop {
  0% {
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
  }
  10% {
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
  }
  60% {
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
  }
  100% {
    width: 350vw;
    height: 350vw;
    left: -125vw;
    top: -125vw;
  }
}

#next-background.background {
  z-index: 4;
}

/* CONTENT ZONE */

.content {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
  position: relative;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  padding: 20px;
}

.content.fade {
  opacity: 1;
}

.head {
  padding: 20px;
  padding-top: 0;
  position: relative;
}

.head h1 {
  position: relative;
  display: inline-block;
}

.head h3 {
  margin-top: 5px;
}

.head h1:after, .center-floaty .main:after {
  display: inline-block;
  content: '';
  position: absolute;
  bottom: 0;
  right: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  height: 2px;
  width: 100%;
  transition: all 0.3s ease-in-out 0.2s;
}

.dark .head h1:after, .dark .center-floaty .main:after {
  background-color: rgba(255, 255, 255, 0.2);
}

.center-floaty .main:after {
  right: -100vw;
}

.head strong {
  font-size: 0.85em;
  padding-left: 2px;
}

.fade .head h1:after {
  right: -20px;
}

.fade .center-floaty .main:after {
  right: -50px;
  left: auto;
}

.center-floaty {
  position: fixed;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%);
  transition: left 0.4s, filter 0.2s;
  filter: blur(0);
  padding-bottom: 10px;
}

.center-floaty .main {
  position: relative;
}

.center-floaty .subby {
  text-align: right;
  margin-right: -50px;
  font-size: 1.2em;
  line-height: 1.5em;
  vertical-align: top;
}

.subby .top {
  display: inline-block;
  vertical-align: top;
  padding-top: 5px;
}

.center-floaty .chat {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 5px;
  text-align: center;
}

.center-floaty .chat div {
  transition: all 0.4s;
}

.center-floaty .chat div:hover {
  color: #ffb5b8;
  background-color: #111;
}

#flip-frame {
  display: inline-block;
  overflow: hidden;
  font-weight: bold;
  vertical-align: top;
  height: 1.2em;
}

#flip-frame div {
  transition: all 0.3s;
}

#flip-frame .hide {
  width: 0;
  margin-top: calc(-1.1em - 5px);
}

.center-content {
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  max-width: 500px;
  cursor: pointer;
  margin: 50px;
  box-shadow: 4px 4px 15px rgba(34, 34, 34, 0.7);
  transition: all 0.3s;
  will-change: transform;
}

.project-card img, .project-card video {
  display: block;
  width: 100%;
}

.project-title {
  position: absolute;
  top: -40px;
  right: -50px;
  background-color: rgba(34, 34, 34, 0.8);
  padding: 20px 50px;
  min-width: 40%;
  text-align: center;
  box-shadow: -4px 4px 5px rgba(34, 34, 34, 0.5);
  margin: 0;
  transition: all 0.3s;
  transition-delay: 0.3s;
}

.project-link {
  font-size: 12px;
  position: absolute;
  top: 3px;
  right: 7px;
  bottom: auto;
}

.project-lang {
  font-size: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  margin-top: 0px;
}

.project-lang span {
  margin: 3px;
  padding: 3px 10px;
  border: rgba(250, 250, 250, 0.5) 1px solid;
}

.project-description {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-weight: 200;
  z-index: 2;
}

.project-description div {
  position: absolute;
  bottom: 0;
  width: calc(100% - 40px);
  left: -150%;
  background-color: rgba(34, 34, 34, 0.9);
  padding: 10px 20px;
  font-size: 0.65em;
  box-shadow: 4px 4px 5px rgba(34, 34, 34, 0.5);
  transition: left 0.3s;
  z-index: 2;
}

.project-card:hover .project-description div {
  left: 0;
}

.project-card:hover .project-title {
  top: 0px;
  right: 0px;
  min-width: calc(100% - 100px);
  transition-delay: 0s;
}

.project-card:hover .project-lang {
  max-height: 30px;
  transition-delay: 0.3s;
  margin-top: 10px;
}

.flexor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

td, table, th {
  border: #ccc 1px solid;
  vertical-align: top;
  height: 0;
}

th {
  line-height: 1.2em;
  height: 1.2em;
  text-transform: uppercase;
}

.hardware-item {
  table-layout: fixed;
  margin-left: -100vw;
  margin-right:100vw;
  transition: margin-left 0.1s, margin-right 0.1s;
  opacity: 0;
  background-color: rgba(250, 255, 252, 0.2);
}

.loaded .hardware-item {
  margin-left: 0;
  margin-right:0;
  opacity: 1;
}

.loaded figure:nth-child(1) .hardware-item {
  transition-delay: 0.4s;
}

.loaded figure:nth-child(2) .hardware-item {
  transition-delay: 0.8s;
}

.loaded figure:nth-child(3) .hardware-item {
  transition-delay: 1.2s;
}

.loaded figure:nth-child(4) .hardware-item {
  transition-delay: 1.6s;
}

.hardware-item .hw-img {
  position:relative;
}

.slider{
  display:flex;
  overflow:hidden;
  position:relative;
}

.slider .last-btn, .slider .next-btn{
  position:absolute;
  top:50%;
  left:20px;
  font-size:44px;
  text-align:center;
  width:44px;
  transform:translateY(-50%);
  background-color:rgba(0,0,0,0.2);
  cursor:pointer;
}

.slider .last-btn:hover,.slider .next-btn:hover{
  background-color:rgba(0,0,0,0.4);
}

.slider .next-btn{
  left:auto;
  right:20px;
}

.hw-img img, .hw-img.vid{
  width: 100%;
  display: inline-block;
  filter: grayscale(100%) contrast(150%);
  opacity: 0.5;
  transition: all 0.5s;
}

.hw-img.vid{
  display:table-cell;
  width:initial;
}

.hw-img svg{
  position:absolute;
  top:0;left:0;
}

.hardware-item:hover .hw-img img, .hardware-item:hover .hw-img.vid {
  opacity: 1;
  filter: grayscale(1%) contrast(100%);
}

.hw-pl, .hw-desc {
  padding: 10px;
}

.hw-desc {
  height: 100%;
}

.hw-title {
  font-size: 1.4em;
  padding: 5px 10px;
  width: 350px;
  text-align: center;
}

.hw-pl a {
  text-decoration: underline;
}

.small {
  display: none;
}

.lazyarea {
  position: fixed;
  left: -110vw;
  top: 110vh;
  height: 0;
  width: 0;
}

.bubble-frame{
  display:flex;
  flex-wrap:wrap;
  position:relative;
  max-width:600px;
  margin:0 auto;
  justify-content:space-between;
  align-items: flex-start;
}

.bubble{
  position:relative;
  transition:transform 0.3s, padding 0.3s;
}

.bubble:nth-child(1){
  margin-top:-30px;
  animation:hover 13s infinite ease-in-out;
}

.bubble:nth-child(2){
  margin-top:-30px;
  animation:hover 9s infinite ease-in-out;
}

.bubble:nth-child(3){
  animation:hover 7s reverse infinite ease-in-out;
}

.bubble:nth-child(4){
  animation:hover 5s infinite ease-in-out;
}

@keyframes hover {
  0% {
    margin-top:-40px;
  }
  50% {
    margin-top:0px;
  }
  100% {
    margin-top:-39px;
  }
}

.bubble img{
  border-radius:100%;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
  width:100%;
  display:block;
  cursor:pointer;
  position:relative;
}

.bubble:after{
  display:block;
  top:0;left:0;
  position:absolute;
  width:100%;height:100%;
  content:'';
  border-radius:100%;
}

.bubble:hover{
  transform:scale(1.3) !important;
  padding:5px;
}

.bubble:hover{
  z-index:9;
}


@media (min-width:701px) and (hover: hover) {
  .project-card:hover {
    transform: scale(1.4);
  }
}

@media (max-width:1200px), (hover: none) {
  .big,.big.vid {
    display: none;
  }
  .hardware-item {
    width: 100%;
  }
  .small {
    display: table-cell;
  }

  figure{
    margin:40px 0;
  }
}

@media (max-width:700px), (hover: none) {

  

  #navigation{
    bottom: 0;
    position: fixed;
    height: auto;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100vw;
    z-index:999;
  }

  #navigation nav{
    position: relative;
    width: 100%;
    border-left: none;
    min-height: 0;
    font-size:0.85em;
    padding:0;
    box-shadow:0 -10px 20px rgba(0,0,0,0.1);
  }

  #navigation nav .nav-items{
    display: flex;
    justify-content: space-around;
    transform:none;
  }

  #navigation nav .nav-items .nav-item{
    padding:20px 0;
  }

  #navigation nav .nav-item:hover, #navigation nav .nav-item.active{
    transform:none !important;
  }

  #navigation nav .nav-item.lengthener{
    display:none;
  }

  #navigation nav{
    background-color:rgba(0,0,0,0.5);
  }

  .home #navigation nav{
    background-color:#ffb5b8;
  }
  .music #navigation nav{
    background-color:#90c6df;
  }
  .prints #navigation nav{
    background-color:#fcfc8b;
  }
  .hardware #navigation nav{
    background-color:#008C4A;
  }
  .projects #navigation nav{
    background-color:#333;
  }

  figure{
    margin:20px 0;
  }

  .music .center-floaty{
    width:90%;
  }

  .head{
    font-size:0.8em;
  }

  .home .center-floaty{
    top:250px;
    width:100%;
  }

  .home .main h2, .home .subby{
    /*font-size:1.1em;*/
  }

  .home .subby{
    margin-right:0;
    text-align:center;
  }

  .project-card {
    margin: 30px 0;
  }
  .project-title {
    position: relative;
    top: 0;
    right: 0;
    padding: 10px;
  }
  .project-lang {
    max-height: 50px;
    margin-top: 10px;
  }
  .project-description, .project-description div {
    position: relative;
    left: 0;
    height: auto;
  }

  h3.project-title{
    padding-top:20px;
  }
  .hardware-item .hw-img img, .hardware-item .hw-img video{
    opacity: 1;
    filter: grayscale(1%) contrast(100%);
  }

  #flip-frame{
    display:block;
  }

  .subby .top{
    font-size:0.8em;
  }

  .center-floaty .main:after{
    display:none;
  }
  
}