@font-face {
  font-family: "Molend";
  src: url(../Molend.ttf);
}

@font-face {
  font-family: "Mhiora";
  src: url(../mhiora-vm7rm.otf);
}

@font-face {
  font-family: "Magnetik";
  src: url(../Magnetik-Regular.otf);
}

:root {
  --text: #f4ebec;
  --background: #0b0708;
  --primary: #d9909a;
  --secondary: #852431;
  --accent: #d63449;
}

html {
  transition: .5s filter;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  font-family: "Magnetik";
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, #f4ebec1a 1px, transparent 1px),
    linear-gradient(to bottom, #f4ebec1a 1px, transparent 1px);
}

h1 {
  font-family: "Molend";
  font-size: 8vmax;
}

h1::before {
  font-size: 8vmax;
  content: attr(dis);
  position: absolute;
  z-index: 3;
  left: 0;
    width: 100%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

h1:hover::before, h1::before:hover {
  transform: translateX(90px);
}

#container3D canvas {
  width: 100% !important;
  height: 100% !important;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  opacity: 1;
  animation: 1s fadeIn backwards 1s;
}

#blob {
  width: 34vmax;
  height: 34vmax;
  position: fixed;
  z-index: -1;
  filter: blur(20vmax);
  left: 0;
  top: 0;
  background: linear-gradient(to right, #f37586, #d63449);
  opacity: .6;
  animation: rotate 20s infinite;
}

@keyframes rotate {
  from {
    rotate: 0deg;
  }
  
  50% {
    scale: 1 1.5;
  }
  
  to {
    rotate: 360deg;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background-image: linear-gradient(180deg, rgb(0 0 0 / 75%), transparent);
  font-size: 1.2rem;
}

header svg {
  height: 1.2rem;
}

header  a.image-link {
  height: 2rem;
  transition: .3s scale;
}

header  a.image-link:hover {
  scale: 1.2;
}

header  a.image-link:hover img {
  opacity: .7;
}

header  a.image-link img {
  transition: .3s opacity;
  height: 100%;
}

header .wrapper-buttons {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}

header  a {
  text-decoration: none;
  color: var(--text);
  transition: .3s color, .5s scale;
  height: 1.5em;
  overflow: hidden;
}

header  a div:first-child, header  a div:nth-child(2) {
  transition: .3s transform;
}

header  a:hover div:first-child {
  transform: translateY(-1.5rem);
}

header  a:hover div:nth-child(2) {
  transform: translateY(-1.5em);
}

header  a:focus {
  animation: .5s scaleDown;
}

.mhiora {
  font-family: "Mhiora", sans-serif;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: var(--text);
}

.mhiora::before {
  content: "";
  position: absolute;
  width: var(--before-width, 0%);
  transition: .3s width cubic-bezier(0, 1.1, 0.25, 1);
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--text);
  mix-blend-mode: difference;
}

.position-relative-nf {
  position: relative;
}

.position-absolute-nf {
  position: absolute;
}

.min-vh-200 {
  min-height: 200vh;
}


/*
.mhiora::before {
  content: "";
  display: inline-block;
  position: absolute;
  background-color: var(--text);
  height: 2px;
  width: 0;
  bottom: 0;
}
  */

.display-custom { 
  font-size: calc(2rem + 4.5vw); 
  font-weight: 300; 
  line-height: 1.2;
}

@keyframes scaleDown {
  from {
    scale: 1;
  }

  50% {
    scale: .9;
  }

  to {
    scale: 1;
  }
}

header .wrapper-buttons:hover a:not(:hover) {
  color: hsl(353, 11%, 52%);
}

.z-index-5 {
  z-index: 5;
}


.z-index-3 {
  z-index: 3;
}

.copyright {
  font-family: "Magnetik";
  font-size: 6vmax;
}

h1.copyright::before {
  font-size: 6vmax;
}

@media only screen and (max-width: 530px) {
  header .wrapper-buttons {
    display: none;
  }
}

.header-menu svg#closeButton, header svg#menuButton {
  cursor: pointer;
  transition: .3s rotate;
}

.header-menu .closeButtonWrapper:hover svg#closeButton {
  rotate: 90deg;
}

.header-menu {
  transition: .3s min-height ease-out, .2s opacity;
  width: 100%;
  z-index: 98;
  height: 0;
  min-height: 0;
  top: 0;
  left: 0;
  background-color: var(--background);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  opacity: 0;
  flex-direction: column;
  white-space: nowrap;
}

.header-menu a {
  font-size: calc(2rem + 4.5vw);
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid #f4ebec50;
  background-image: linear-gradient(90deg, transparent, var(--accent));
  background-size: 0 100%;
  transition: .3s background-size;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  gap: .4em;
  align-items: center;
  padding-left: .4em;
}

.header-menu a:last-child {
  border-bottom: 1px solid #f4ebec50;
}

.header-menu a:hover svg g#SVGRepo_iconCarrier {
  transform: translateX(0);
  opacity: 1;
}

.header-menu a:hover {
  background-size: 100% 100%;
}

.header-menu a .small-text-numbers {
  color: #f4ebec79;
  font-size: calc(.8rem + 2.25vw);
  letter-spacing: -0.05em;
  position: relative;
  align-self: flex-start;
}

.header-menu a svg g#SVGRepo_iconCarrier {
  transform: translateX(-1.5rem);
  opacity: 0;
  transition: .3s all;
}
.header-menu a svg:not(#closeButton) {
  height: 1em;
}

.header-menu svg#closeButton {
  font-size: calc(2rem + 4.5vw);
  height: 1em;
  width: fit-content;
}

.header-menu .closeButtonWrapper {
  margin-left: auto;
}

div#js-cursor {
  position: fixed;
  opacity: 0;
  width: 50px;
  height: 50px;
  z-index: 99;
  border: 1px solid var(--accent);
  border-radius: 2100%;
  transition: .5s opacity;
  pointer-events: none;
}
