

/*
copied from chia
*/


@font-face {
  font-family: "Times Now";
  src: url("/assets/fonts/TimesNow-Light.woff2") format("woff2"), url("/assets/fonts/TimesNow-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Standard";
  src: url("/assets/fonts/Standard-Book.woff2") format("woff2"), url("/assets/fonts/Standard-Book.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}




html {
  height: 100%;
}

* {
}

body {
  margin: 0px;
  min-height: 100%; 

  cursor: url("../assets/cursor.jpg"), auto;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;


  font-family: Lucida Console;
  font-family: sans-serif, "Arial";
  font-family: "Times Now";
  font-family: serif;
  font-family: "Standard";

  font-size: 20px;

  /*

  */
 
}


h1, h2, h3, h4, h5 {
  font-family: serif;
  font-family: Lucida Console;
  font-family: sans-serif, "Arial";
  font-family: "Standard";
  font-family: "Times Now";


  margin: 0px;
}

a:link { 
  text-decoration: none;
  color: black;
}

a:visited {
  text-decoration: none; 
  color: black;
}

a:hover {
  text-decoration: none; 
  color: black;
}

a:active {
  text-decoration: none; 
  color: black;
}


img {
}


#page-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  display: flex;
  flex-direction: row;

}

#splash-page > *{
  position: absolute;
}

#splash-image {
  width: 100vw;
  height: 100vh;
  
  object-fit: cover;
}

#splash-title {
  left: 900px;
  top: 800px;
  
}

#splash-subtitle {
  left: 800px;
  top: 500px;
  
}

#splash-image {
  width: 100vw;
  height: 100vh;
  
  object-fit: cover;
}

#sidebar {
  width: 240px;
  border-right: 1px dotted;

  background-color: rgb(211, 159, 179);
  z-index: 2;

  padding: 10px;

  height: 100vh;
  overflow: scroll;
}

#sidebar > * {
  max-width: 100%;
  display: block;
  
} 

#sidebar a img {
  max-width: 100%;
}

.sidebar-link {
  cursor: pointer;
}

#about-blurb {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}


#sidebar .project-link {
  display: block;

  text-align: center;

  font-size: 18px;
  text-decoration: none;
  
  background-color: #c4c5f8;
  /* #f2c3de; */

  border-radius: 19px;
  border: 1px dotted;

  padding-top: 20px;
  padding-bottom: 20px;
  
  margin-top: 10px;
  margin-bottom: 10px;

}

#sidebar a.project-link:hover {
  box-shadow: 2px 2px 2px #777;
  transition: box-shadow .15s;
}

#sidebar a.project-link:nth-child(2) {
  background-color: #c3dfbe;
}

#sidebar a.project-link:nth-child(3) {
  background-color: #fff6c9;

}

#sidebar a.project-link:nth-child(4) {
  background-color: #f2c3de;

}

#main {
  position: relative;
  width: 100%;
  height: 100%;

  min-height: 100vh;

  overflow: scroll;
 
  flex: 5;

}

#foreground {
  position: absolute;
  z-index: 2;
  height: 100%;

  width: 100%;

  /* don't block background */
  pointer-events: none;
}


#background {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
}

#content {
  margin: 20px;
  min-height: 100%;
}

.random-position {
  position: absolute;
}

.random-position-inflow {
  position: relative;

}

.illustration-position {
  position: absolute;
}


.doodle {
  max-width: 300px;
  opacity: .2;
}

.doodle img {
  max-width: 100%;
}

.doodle.flip {
  position: absolute;

}

.draggable {
  position: relative;
  
  padding: 10px;

  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);


  cursor: grab;

  width: fit-content;

  pointer-events: all;
}

.draggable.random-position {
  position: absolute;
}

.draggable.random-position-inflow {
  position: relative;
}

.draggable.illustration-position {
  position: absolute;

}

.draggable.text {
  z-index: 2;
}

.draggable.text.title {
  z-index: 3;
}

.draggable * {
  pointer-events: none;
}

.draggable a {
  pointer-events: all;
  text-decoration: underline;
  color: #4649e3;
}

.draggable a:hover {
  text-decoration: underline;
  color: #6fc36c;
}


.draggable a:visited {
  text-decoration: underline;
  color: #df6ab1;
}


.draggable img {
  max-width: 539px;
  max-height: 456px;

}

.floating {

  --rotation: 0deg;

  --zerol: 4px;
  --zerot; 4px;
  --onel: 4px;
  --onet; 4px;
  --twol: 4px;
  --twot; 4px;
  --threel: 4px;
  --threet; 4px;
  
  animation: slide ease 5s alternate infinite;
}

.floating:hover {
  scale: 1.01;
}

@keyframes slide {
  0% {
    transform: rotate(var(--rotation)) translate(0, 0);
  }
  33% {
  /* 
    transform: translate(4px, 4px);
    */
    transform: rotate(var(--rotation)) translate(var(--onel), var(--onet))
  }

  66% {
    transform: rotate(var(--rotation)) translate(var(--twol), var(--twot))
  }
  100% {
    transform: rotate(var(--rotation)) translate(var(--threel), var(--threet))
  }
}


#overlay {
  position: fixed;


  width: 100%;
  height: 100vh;
  margin: none;


  background-color: rgba(255,255,255,1); /* white with some opacity */
  background-color: rgba(0,0,0,0.8); /* white with some opacity */
  z-index: 2;

  display: none;

  align-items: center;
  justify-content: center;

  
  /*
  flex-direction: column;
  */

}

#showcase-image {

  
  box-sizing: border-box;
  padding: 30px;


  margin: auto 0;


  min-width: 0;
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

/*
  if we have more than one element
  flex: 1 1 100%;
  */
 

}

#showcase-title {
  position: absolute;

}

/*
#showcase-title {
  margin: 30px;
  padding: 20px;
  min-width: 200px;


  flex: 0 0 auto;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);

}
*/


.illustration {
  position: absolute;

/*
  cursor: pointer;
  */

}


.fidget:hover {
  rotate: 10deg;
}

.pop {
  scale: 0.9;
}

.pop:hover {
  scale: 1;
}


.flip {
/* 
  max-width: 100%;

  */
  position: relative;
}

.flip img.image-hover {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  object-fit: contain;
  opacity: 0;
}

.flip:hover img.image-hover {
  opacity: 1;
}

.flip:hover img.image-main {
  opacity: 0;
}


 {
  border: 1px solid red;
}


/* mobile */
@media only screen
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {

  body {
    font-size: 42px;
  }

  .draggable img {
    max-width: 630px;
    max-height: 733px;
  
  }

}

/* Portrait only */
@media only screen
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {

  body {
    font-size: 36px;
  }

}


      
