/** Fonts **/
@font-face {
  font-family: maru;
  src: url('fonts/GT-Maru-Regular-Trial.woff2');
  font-display: swap;
}

@font-face {
  font-family: maru-mega;
  src: url('fonts/GT-Maru-Mega.woff2');
  font-display: swap;
}

/** CSS Reset **/
html {
  font-size: .8em;
  font-family: maru;
  color: #333;
  box-sizing: border-box;
cursor: crosshair;
}

body {
  background: #fff;
}

@media (min-width: 1024px) {
  body {
    background: #666;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
  }
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/** Typography **/
h2, h3, p {
  margin: 0 0 20px;
}

/** Page **/
.page {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  ._modelOpen {
    overflow: hidden;
  }
}


.wrapper {
  position: relative;
  z-index: 5;
}

.page:after {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  content: '';
  background: linear-gradient(-45deg, #dba17a, #f9f7df, #ebe3f5, #e4eeff, #dba17a);
  background-size: 300% 300%;
  transition: 1s;
}

@media (min-width: 1024px) {
  .page:after {
    display: block;
  }
  ._colors .page:after {
    opacity: 1;
    animation: gradient 5s ease infinite;
  }
}

/* @media (min-width: 1024px) {
  .page {
    min-width: 130vw;
  }
} */

.page._overlay {
  overflow: hidden;
}

/** Panning **/

#pan {
  min-width: 100%;
}

@media (min-width: 1024px) {
  #pan {
    position: absolute;
  }
}

/** Header **/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  z-index: 20;
  display: flex;
  justify-content: center;
  background: background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
}

@media (min-width: 1024px) {
  header {
    display: block;
    background: none;
    backdrop-filter: none;
  }
}

h1 {
  font-size: 2.5rem;
  color: white;
  text-shadow: 1px 1px 1px black;
  font-family: maru-mega;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
}

/** Footer **/
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  z-index: 10;
  cursor: crosshair;
  display: none;
}

@media (min-width: 1024px) {
  footer {
    display: flex;
    justify-content: space-between;
  }
}

.color-grid {
  background: #333;
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(6, auto);
  grid-gap: 4px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  border: none;
  padding: 4px;
  cursor: crosshair;
}


.color-grid span {
  display: block;
  width: 8px;
  height: 8px;
  transition: .1s;
}

.color-grid span:nth-child(1) {
  background: #9ad4c5;
}

.color-grid span:nth-child(2)  {
  background: #8f8ec8;
  transition-delay: .05s;
}
    
.color-grid span:nth-child(3)  {
  background: #525a31;
  transition-delay: .1s;
}
    
.color-grid span:nth-child(4)  {
  background: #6382ae;
  transition-delay: .15s;
}
    
.color-grid span:nth-child(5)  {
  background: #d8a796;
  transition-delay: .2s;
}
    
.color-grid span:nth-child(6)  {
  background: #583a2f;
  transition-delay: .25s;
}
    
.color-grid span:nth-child(7)  {
  background: #e7861d;
  transition-delay: .55s;
}
    
.color-grid span:nth-child(8)  {
  background: #3f57ad;
  transition-delay: .5s;
}
    
.color-grid span:nth-child(9)  {
  background: #cb5867;
  transition-delay: .45s;
}
    
.color-grid span:nth-child(10)  {
  background: #48315d;
  transition-delay: .4s;
}
    
.color-grid span:nth-child(11)  {
  background: #dddf50;
  transition-delay: .35s;
}

.color-grid span:nth-child(12)  {
  background: #fbb41a;
  transition-delay: .3s;
}
    
.color-grid span:nth-child(13)  {
  background: #3a9cbf;
  transition-delay: .6s;
}  

.color-grid span:nth-child(14)  {
  background: #c35baa;
  transition-delay: .65s;
}
    
.color-grid span:nth-child(15)  {
  background: #fee833;
  transition-delay: .7s;
}
    
.color-grid span:nth-child(16)  {
  background: #aa2b32;
  transition-delay: .75s;
}
    
.color-grid span:nth-child(17)  {
  background: #79ae52;
  transition-delay: .8s;
}
    
.color-grid span:nth-child(18)  {
  background: #003492;
  transition-delay: .85s;
}
    
.color-grid span:nth-child(19)  {
  background: #fff;
  transition-delay: 1.15s;
}
    
.color-grid span:nth-child(20)  {
  background: #e6e6e6;
  transition-delay: 1.1s;
}
    
.color-grid span:nth-child(21)  {
  background: #c4c4c4;
  transition-delay: 1.05s;
}
    
.color-grid span:nth-child(22)  {
  background: #8a8a8a;
  transition-delay: 1s;
}
    
.color-grid span:nth-child(23)  {
  background: #4f4f4f;
  transition-delay: .95s;
}
    
.color-grid span:nth-child(24)  {
  background: black;
  transition-delay: .9s;
}

.color-grid:hover span {
  background: white;
}

.email {
  font-size: 2.5rem;
  color: white;
  text-shadow: 1px 1px 1px black;
  font-family: maru-mega;
  text-decoration: none;
  font-size: 7rem;
  line-height: 25px;
    transition: all .3s ease-in-out
}

.email:hover {
  color: lightgrey;
}

/** Overlay **/
.overlay {
  display: none;
  position: fixed;
  overflow: hidden;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
-webkit-backdrop-filter:blur(15px);
  z-index: 10;
  animation: fade_in .5s ease-in-out;
  animation-fill-mode: forwards;
}

/** Info **/
.info._active {
  display: block;
}

.info--content {
  padding: 80px 20px;
  max-width: 700px;
}

@media (min-width: 1024px) {
  .info--content {
    padding: 100px 20px;
  }
}

.info--content p {
  line-height: 1.3em;
}

.info--content a {
  color: #333;
  text-decoration: none;
  border-bottom: #333 1px dashed;
}

/** Grid **/
.grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 30px;
  padding: 30px;
    padding-top: 80px;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, auto);
    grid-gap: 60px;
    padding: 60px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, auto);
  }
}

@media (min-width: 1900px) {
  .grid {
    grid-template-columns: repeat(5, auto);
  }
}

.item {
  width: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .item {
    min-width: 700px;
    background: rgba(255, 99, 71, 0);
  }
  .item:nth-child(n+13) {
    display: none;
  }
  .landscape {
    grid-column: span 2
  }
}

@media (min-width: 1900px) {
  .item:nth-child(n+13) {
    display: flex;
  }
}

.item--toggle {
  border: none;
  padding: 0;
  cursor: default;
}

@media (min-width: 1024px) {
  .item--toggle  {
    cursor: crosshair;
  }
}

/** Image Content **/
.item--overlay {
  opacity: 0;
  z-index: 30;
}

@media (min-width: 1024px) {
  .item._active .item--overlay {
    display: block;
    animation: fade_in .5s ease-in-out;
    animation-fill-mode: forwards;
  }
}

@media (min-width: 1024px) {
  .content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    position: relative;
    height: 100%;
  }
}

.content--body {
  text-align: center;
  padding: 50px 20px 0;
}

.content--image {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .content--body {
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .content--image {
    width: 50%;
    padding: 20px;
  }

  .content--image img {
    width: auto;
    max-height: 80vh;
  }
}

/** Toggle Buttons **/
.toggle {
  background: none;
  padding: 5px;
  border: none;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 20px;
  top: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: #000;
  cursor: crosshair;
  text-align: center;
  transition: .3s;
}

@media (min-width: 1024px) {
  .toggle {
    width: 50px;
    height: 50px;
  }
}

.toggle:hover {
  color: #333;
}

.open:hover .open--line {
  background: #333;
}

.open {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

.open--text {
  font-size: 3.5rem;
  color: white;
  text-shadow: 1px 1px 1px black;
  font-family: maru-mega;
  display: none;
  transition: .2s;
}

.open:hover .open--text {
  color: lightgrey;
}

.open--line {
  display: block;
  width: 100%;
  height: 2px;
  position: relative; 
  background: #000;
  transition: .1s;
}

@media (min-width: 1024px) {
  .open {
    width: auto;
    background: none;
  }
  .open._active {
    width: 50px;
  }
  .open--line {
    display: none;
  }
  .open--text {
    display: block;
  }
  .open._active .open--text {
    display: none;
  }
  .open._active .open--line {
    display: block;
  }
}

.open._active .open--line:nth-child(1) {
  transform: rotate(-45deg) translate(-8px, 8px);
}
.open._active .open--line:nth-child(2) {
  opacity: 0;
}
.open._active .open--line:nth-child(3) {
  opacity: 0;
}
.open._active .open--line:nth-child(4) {
  opacity: 0;
}
.open._active .open--line:nth-child(5) {
  transform: rotate(45deg) translate(-8px, -8px);
}

@media (min-width: 1024px) {
  .open._active .open--line:nth-child(1) {
    transform: rotate(-45deg) translate(-12px, 10px);
  }
  .open._active .open--line:nth-child(5) {
    transform: rotate(45deg) translate(-12px, -10px);
  }
}

.close:hover:before,
.close:hover:after {
  background: #333;
}

.close:before,
.close:after {
  position: absolute;
  left: 20px;
  top: 0;
  content: '';
  height: 40px;
  width: 2px;
  background: #000;
}

@media (min-width: 1024px) {
  .close:before,
  .close:after {
    left: 25px;
    height: 50px;
  }
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}

/** Intro **/
.intro {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 50;
  animation: fade_out .3s 4.3s ease forwards;
  display: none;
}

.intro p {
  color: #333;
  font-family: maru-mega;
  position: absolute;
  left: 20px;
  bottom: 0;
  opacity: 0;
  animation: fade_in .1s linear, fade_out 1.8s .4s ease-out;
}

 @media (min-width: 1024px) {
  .intro {
    display: block;
  }
     
.intro p {
  font-size: 20vh;
    text-shadow: 3px 3px 2px black;
  color: #333;
  font-family: maru-mega;
  position: absolute;
  left: 20px;
  bottom: 0;
  opacity: 0;
  animation: fade_in .1s linear, fade_out 1.8s .4s ease-out;
}
     
@keyframes introShrink {
  0% {
    font-size: 20vh;
      text-shadow: 1px 1px 1px black;
  }

  100% {
    font-size: 3.5rem;
      text-shadow: 1px 1px 1px black;
  }
}
 }


/* intro desktop p */



.intro p:nth-child(1) {
  animation: fade_in .1s 2s ease-out, introShrink .4s 3.2s ease-in-out;
  animation-fill-mode: forwards; 
  top: 15px;
}

.intro p:nth-child(2) {
  animation-delay: 1.6s;
  top: 20%;
}

.intro p:nth-child(3) {
  animation-delay: 1.2s;
  top: 40%;
}

.intro p:nth-child(4) {
  animation-delay: .8s;
  top: 60%;
}

.intro p:nth-child(5) {
  animation-delay: .4s;
  top: 80%;
}

.intro p:nth-child(6) {
  animation-delay:0s;
  top: 100%;
}

/** MOBILE Intro **/
.mobileintro {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
width: 100vw;
  bottom: 0;
text-align:center;
  background: white;
  z-index: 50;
  animation: fade_out .3s 4.3s ease forwards;
  display: block;
}

.mobileintro p {
  color: #333;
  font-family: maru-mega;
    font-size: 14vw;
  position: absolute;
    text-align:center;
    width: 100vw;
    text-shadow: 1px 1px 1px grey;
 left:0;
  bottom: 0;
  opacity: 0;
  animation: fade_in .1s linear, fade_out 1.8s .4s ease-out;
}

@keyframes mobileintroShrink {
  0% {
    font-size: 14vw;
      text-shadow: .2px .2px 1px grey;
  }

  100% {
    font-size: 2.5rem;
      text-shadow: 1px 1px 1px black;
  }
}

 @media (min-width: 1024px) {
  .mobileintro {
    display: none;
  }
 }


/* intro desktop p */

.mobileintro p:nth-child(1) {
  animation: fade_in .1s 2s ease-out, mobileintroShrink .4s 3.2s ease-in-out;
  animation-fill-mode: forwards; 
  top: 15px;
}

.mobileintro p:nth-child(2) {
  animation-delay: 1.6s;
  top: 20%;
}

.mobileintro p:nth-child(3) {
  animation-delay: 1.2s;
  top: 40%;
}

.mobileintro p:nth-child(4) {
  animation-delay: .8s;
  top: 60%;
}

.mobileintro p:nth-child(5) {
  animation-delay: .4s;
  top: 80%;
}

.mobileintro p:nth-child(6) {
  animation-delay:0s;
  top: 100%;
}


/** Animations **/
@keyframes fade_in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade_out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes gradient {
  0% {
    background-position: 0%;
  }
  50% {
    background-position: 70%;
  }
  100% {
    background-position: 0%;
  }
}


/** RESPONSIVE **/
@media screen and (max-height: 916px) {
  .info--content {
    font-size: .45em !important;
  }
}

@media screen and (max-height: 897px) {
  .info--content {
    font-size: .90em !important;
  }
}

@media screen and (max-height: 852px) {
  .info--content {
    font-size: .90em !important;
  }
}

@media screen and (max-height: 844px) {
  .info--content {
    font-size: .85em !important;
  }
}

@media screen and (max-height: 741px) {
  .info--content {
    font-size: .85em !important;
  }
}

@media screen and (max-height: 668px) {
  .info--content {
    font-size: .8em !important;
  }
}

