@font-face {
  font-family: "ABC Monument Grotesk Semi-Mono";
  src: url("/assets/fonts/ABCMonumentGroteskSemi-Mono-Regular.woff")
      format("woff"),
    url("/assets/fonts/ABCMonumentGroteskSemi-Mono-Regular.woff2")
      format("woff2");
}

:root {
  --smooth-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.08);
  --font-size: 32px;
}
html,
body {
  background: #fbfbfb;
  scroll-behavior: smooth;
}

* {
  font-family: "ABC Monument Grotesk Semi-Mono", Helvetica, sans-serif,
    monospace;
  font-smooth: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: normal;
  font-style: normal;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  display: grid;
  grid-template-columns: 1fr 80px repeat(10, 1fr);
  gap: 20px;
  padding: 20px;
  padding-top: 15%;
  opacity: 0;
  animation-delay: 0.5s;
  height: 100vh;
}
#about-text {
  opacity: 0;
}
.fade-in {
  animation: fadeIn 2s forwards;
}

p {
  grid-column: 3 / span 3;
  margin-bottom: 4rem;
  /* font-size: 2rem; */
}

h1 {
  grid-column: 2;
  font-size: var(--font-size);
  transition: transform 0.35s;
  height: 1.3em;
}

h1,
div {
  line-height: 1.3em;
  /* font-size: 2rem; */
}

.items {
  font-size: 2rem;
  grid-column: span 10;
  height: 125px;
}

.item {
  height: 1.3em;
  display: flex;
}

.item span {
  /* opacity: 0.5; */
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-0);
  display: block;
}

.item:hover span {
  opacity: 0.25;
  transform: translateX(50px);
}

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

#text {
  margin-top: 4rem;
  grid-column: 3 / span 3;
  margin-bottom: 4rem;
  opacity: 0;
  display: none;
}

.logo {
  position: fixed;
  width: 300px;
  top: 1rem;
  right: 1rem;
  z-index: 100v;
  display: none;
}

.imgContainer {
  top: 0;
  right: 100px;
  position: fixed;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100vh + 1rem));
  z-index: 10;
}

.slideIn {
  animation: slideIn 2s forwards;
}
.slideInHorizontal {
  animation: slideInHorizontal 2s forwards;
}

.innerContainer {
  display: flex;
  flex-direction: column;
}

.img {
  width: 32vw;
  margin: -1rem 0;
  top: 0;
  right: 0;
  transition: transform 0.3s;
  max-width: 650px;
}

.transition {
  transition: transform 0.3s;
}

.innerImg {
  perspective: 700px;
  transition: transform 0.3s;
}

.about {
  background: rgb(219, 255, 90);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 80px repeat(10, 1fr);
  padding: 20px;
  padding-top: 15%;
  padding-bottom: 15%;
  gap: 20px;
}

.about div {
  grid-column: 3 / span 3;
}

.about h3 {
  font-size: 1rem;
  /* color: #7f7f7f; */
  opacity: 0.5;
  margin-bottom: 1em;
  margin-top: 1em;
}

.about a {
  text-decoration: underline;
}

.about a:hover {
  /* color: #7f7f7f; */
  opacity: 0.5;
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.wrapper svg {
  height: 70%;
  max-width: 80%;
  animation: fadeOut 0.2s linear forwards;
  animation-delay: 1s;
  fill: var(--black);
}

.aboutBtn {
  grid-column: 3 / span 2;
  margin-top: auto;
  margin-bottom: 0;
  font-size: 1rem;
}

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

.vertical {
  display: none;
}

.horizontal {
  display: block;
}

/* Portrait */
@media (orientation: portrait) {
  main {
    display: grid;
    grid-template-columns: 80px 1fr;
  }
  h1 {
    grid-column: 1;
  }
  .items {
    grid-column: auto;
  }

  .item span {
    display: none;
  }

  .vertical {
    display: block;
  }

  .horizontal {
    display: none !important;
  }

  .wrapper svg {
    height: auto;
    width: 65%;
    max-height: 90%;
  }

  .imgContainer {
    flex-direction: row;
    /* position: absolute; */
    top: auto;
    bottom: 3rem;
    right: auto;
    left: 0;
  }

  .innerContainer {
    flex-direction: row;
    align-items: center;
  }
  .img {
    width: 40vw;
    margin: 0 0 0 -0.5rem;
    top: 0;
    right: 0;
    transition: transform 0.3s;
  }
}
/* Big */
@media only screen and (min-width: 2000px) {
  h1,
  .items {
    font-size: 2.5rem;
  }
  main {
    grid-template-columns: 1fr 110px repeat(10, 1fr);
  }

  .about {
    grid-template-columns: 1fr 110px repeat(10, 1fr);
  }
}

/* Medium */
@media only screen and (max-width: 1300px) {
  .about div {
    grid-column: 2 / span 4;
  }
}

/* MediumSmall */
@media only screen and (max-width: 1300px) {
  h1 {
    grid-column: 1;
  }
  .item span {
    display: none;
  }

  .about div {
    grid-column: 1 / span 5;
  }

  .aboutBtn {
    grid-column: 1 / span 2;
  }

  .logo {
    width: 80px;
    right: 1rem;
  }
}

/* Mobile */
@media only screen and (max-width: 630px) {
  .about {
    display: flex;
    flex-direction: column;
    padding-bottom: 100vw;
  }

  main {
    padding-top: 200px;
  }
  h1,
  .item {
    font-size: 1.5rem;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(calc(100vh + 1rem));
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes slideInHorizontal {
  0% {
    transform: translateX(calc(100vw + 1rem));
  }
  100% {
    transform: translateX(0);
  }
}

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