@font-face {
  font-family: 'garamondno8bold';
  src: url('../fonts/garamondno8-bold-webfont.woff2') format('woff2'),
       url('../fonts/garamondno8-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'garamondno8italic';
  src: url('../fonts/garamondno8-italic-webfont.woff2') format('woff2'),
       url('../fonts/garamondno8-italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'garamondno8regular';
  src: url('../fonts/garamondno8-regular-webfont.woff2') format('woff2'),
       url('../fonts/garamondno8-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #00ffff;
  color: #000;
  font-size: 2em;
  font-family: 'garamondno8regular', serif;
  /*font-famiy: serif;*/
  overflow-x: hidden;
}

.psycho-text {
  opacity: 0;
  -webkit-animation-name: fadein;
  -webkit-animation-duration: 0.1s;
  -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  -webkit-animation-delay: 0.5s;
  -webkit-animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

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

b, strong,
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-family: 'garamondno8bold', serif;
}

i, em {
  font-style: normal;
  font-family: 'garamondno8italic', serif;
}

section {
  margin-bottom: 2em;
}

hr {
  border: 0;
  border-bottom: 1px solid #000;
  width: 200px;
  display: inline-block;
  margin-bottom: 2em;
}

.psycho-text {
  max-width: 800px;
  margin: 200px auto;
  padding: 0 10px;
}

.news {
  font-size: 0.8em;
  margin-top: 2.6em;
}

/* BACKGROUND ANIMATION */

/*body.white {
  -webkit-transition: all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  transition:         all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  background: #fff !important;
  color: navy;
}

body.white hr {
  border-bottom-color: navy !important;
}*/

body.blue {
  -webkit-transition: all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  transition:         all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  -webkit-transition-delay: 120s;
  transition-delay: 120s;
  background-color: navy !important;
  color: #00ffff !important;
  /*background-color: #6870ff !important;*/
}

body.blue hr {
  -webkit-transition: all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  transition:         all 6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  -webkit-transition-delay: 120s;
  transition-delay: 120s;
  border-bottom-color: #00ffff !important;
}

/* MEDIA QUERIES */

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

  h1 {
    font-size: 1em;
  }

}

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

  body {
    font-size: 1.2em;
    line-height: 1.3;
  }

}

/* BUBBLE */

#bubble {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  opacity: 0;
  -webkit-animation-name: fadein;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  -webkit-animation-delay: 0.5s;
  -webkit-animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

svg {
    width:50vw;
    max-width: 500px;
    max-height: 500px;
    padding: 2rem;
    opacity: 1;
    -webkit-transition: all 10s cubic-bezier(0.895, 0.03, 0.685, 0.22);
    transition:         all 10s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

svg.fade {
  opacity: 0.1;
}

.x {
	-webkit-animation: x 160s linear infinite alternate;
	animation: x 160s linear infinite alternate;
}
.y {
	-webkit-animation: y 180s ease infinite alternate;
	animation: y 180s ease infinite alternate;
}

#bubble {
  -webkit-transition: all 2s cubic-bezier(0.895, 0.03, 0.685, 0.22);
  transition:         all 2s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

#bubble.out {
  top: -100vh;
}

 @-webkit-keyframes x {
 100% {
 -webkit-transform: translateX(calc(100vw - 25vw));
 transform: translateX(calc(100vw - 25vw));
}
}
 @keyframes x {
 100% {
 -webkit-transform: translateX(calc(100vw - 25vw));
 transform: translateX(calc(100vw - 25vw));
}
}
@-webkit-keyframes y {
 100% {
 -webkit-transform: translateY(calc(100vh));
 transform: translateY(calc(100vh));
}
}
@keyframes y {
 100% {
 -webkit-transform: translateY(calc(100vh));
 transform: translateY(calc(100vh));
}
}
