@font-face {
  font-family: "Libre Baskerville";
  font-weight: 400;
  font-style: normal;
  src: url(/static/fonts/libre_baskerville_400.woff2) format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Libre Baskerville";
  font-weight: 400;
  font-style: italic;
  src: url(/static/fonts/libre_baskerville_italic_400.woff2) format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Libre Baskerville";
  font-weight: 700;
  src: url("/static/fonts/libre_baskerville_700.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  src: url("/static/fonts/inter_400.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Inter";
  font-weight: 700;
  src: url("/static/fonts/inter_700.woff2") format("woff2");
  font-display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #222222;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #fff;
}


/* Canvas */

.canvas {
  display: block;
  width: 100%;
  height: 100vh;
  transition: opacity 2000ms ease-out;
}

.canvas.disabled {
  pointer-events: none;
}

.canvas.cursor {
  cursor: pointer;
}

.canvas.fade_out {
  opacity: 0;
}

.canvas.fade_in {
  opacity: 1;
}

.canvas.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}



/* Debug */

.debug {
  font-family: monospace;
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  white-space: pre;
  font-size: 13px;
  z-index: 10;
  max-height: 90vh;
  overflow: auto;
}

.debug.hidden {
  display: none;
}

/*******/

.canvas3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.canvas3d.hidden {
  display: none;
}

.detail_page .canvas3d {
  float: left;
  margin: 40px;
  width: 500px;
  height: auto;
  position: static;
}

@media (max-width: 1200px) {
  .detail_page .canvas3d {
    width: calc(100% - 80px);
  }
}


@keyframes fade_in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.canvas3d.fade_in {
  animation: 500ms ease-in fade_in forwards;
}

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

.canvas3d.fade_out {
  animation: 500ms ease-out fade_out forwards;
}
