@charset "UTF-8";
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 1rem;
}

tr > td {
  padding-bottom: 2rem;
}

a {
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a[target=_blank]::after {
  content: " 🡥";
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.6);
}

body.light {
  --text: #0b0d1e;
  --background: #f7f8fd;
  --primary: #191679;
  --secondary: #8675f0;
  --accent: #260bef;
  --inverted: 1.0;
}

body.dark {
  --text: #e0e2f4;
  --background: #020309;
  --primary: #8a86e9;
  --secondary: #1f0f8a;
  --accent: #2a0ff4;
  --inverted: 0.0;
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #0b0d1e;
    --background: #f7f8fd;
    --primary: #191679;
    --secondary: #8675f0;
    --accent: #260bef;
    --inverted: 0.0;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e0e2f4;
    --background: #020309;
    --primary: #8a86e9;
    --secondary: #1f0f8a;
    --accent: #2a0ff4;
    --inverted: 0.0;
  }
}
#blom {
  font-family: monospace;
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 1rem;
  /* a::after {
      content: none;
  } */
}

/* Hero (big text) */
#hero {
  font-family: Amadi !important;
  font-size: 18.55vw;
  font-style: italic;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}

#subhero {
  font-family: monospace !important;
  font-size: 2.5vw;
  font-weight: 100;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 30vw), calc(-50%));
}

/* Cards */
:root {
  --rx: 0deg;
  --ry: 0deg;
}

.card-wrapper {
  position: absolute;
  width: 14vw;
  height: 14vw;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: -1;
}
.card-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
}

/* Presentation */
#presentation {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: center;
  gap: 1rem;
}
#presentation img {
  width: 48ch;
  height: 48ch;
}
#presentation #persona {
  margin: 3rem 0;
  padding: 0 8rem;
}
#presentation #persona * {
  margin: 0;
  padding: 0.5rem;
  background: var(--background);
  width: fit-content;
}
#presentation #persona div#circle {
  position: absolute;
  width: 40ch;
  height: 10ch;
  border-radius: 50%;
  border: solid 2.5px var(--text);
  background: transparent;
  z-index: -10;
  rotate: -15deg;
  translate: -4rem 1rem;
}

nav, section#themes {
  font-family: monospace;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  backdrop-filter: blur(1px);
}

nav {
  text-align: right;
  right: 0;
}

section#themes {
  left: 0;
}
section#themes p {
  margin: 0;
  opacity: 0.5;
  cursor: pointer;
}
section#themes p:hover, section#themes p.selected {
  opacity: 1;
}
section#themes p:hover {
  text-decoration: underline;
}

.transition-main {
  transition-duration: 0.12s;
  transition-property: opacity, transform;
  transition-timing-function: ease-in-out;
}
html.is-animating .transition-main {
  opacity: 0;
}
@font-face {
  font-family: "Amadi";
  src: url("/assets/fonts/Amadi-Regular.woff2") format("woff2");
}
main {
  max-width: 50vw;
  margin: 5rem auto 0 auto;
}

#portfolio-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 40vw;
  image-rendering: pixelated;
}