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

::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 96px;
  border: 6px solid var(--background);
}

body {
  display: flex;
  flex-direction: column;

  background: var(--background);
}

html,
body {
  height: 100%;
  font-size: 12px;

  overflow: hidden;
}

:root {
  --header-height: 8rem;

  --text-color: #ececec;
  --text-color-hover: var(--background);
  --background: #1c1c1c;
  --background-hover: var(--text-color);
}

.light {
  --text-color: #1c1c1c;
  --text-color-hover: var(--background);
  --background: #ececec;
  --background-hover: var(--text-color);
}

* {
  margin: 0;

  font-family: monospace, Verdana, sans-serif;

  /* outline: none; */
  background: none;
  border: none;

  box-sizing: border-box;

  color: var(--text-color);
  transition: all 0.15s ease-in-out;

  text-transform: none;

  cursor: default;
}

header {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  min-height: var(--header-height);
  max-height: var(--header-height);

  gap: 0.5rem;
}

@keyframes logo-ani {
  0% {
    transform: rotateZ(0deg);
  }

  33% {
    transform: rotate(10deg);
  }

  66% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotateZ(0deg);
  }
}

#logo {
  position: absolute;

  top: 3.5rem;
  left: 3.5rem;

  width: 1rem;
  height: 1rem;

  background: var(--text-color);
}

#logo:hover {
  animation: logo-ani 1s infinite ease-in-out;
}

.box-shadow {
  box-shadow: 0 0 1rem 1rem var(--background);
}

header * {
  font-size: calc(0.5 * var(--header-height));
  font-weight: bold;
}

header :not(:hover) {
  filter: blur(1px);
}

main {
  position: relative;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-gutter: stable;

  display: flex;
  flex-direction: column;

  padding: 2rem 1rem 2rem 2rem;

  flex-grow: 1;

  height: 100%;
}

nav {
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: space-around;
}

.nav-link {
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 8rem;
  font-weight: bold;

  border-bottom: 1rem solid transparent;
}

.nav-link:hover {
  border-bottom: 1rem solid var(--text-color);
}

.language-switcher {
  white-space: nowrap;
}

.theme-switcher {
  transform: scale(1, 1);
}

.mirror-x {
  transform: scale(-1, 1) !important;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hidden {
  display: none !important;
}

.video {
  z-index: -1;
  position: absolute;

  top: -0.5rem;
  left: -0.5rem;

  width: calc(100% + 1rem);
  height: calc(100% + 1rem);

  object-fit: cover;
}

#contactivity-page {
  display: grid;

  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  gap: 3rem;
  flex-grow: 1;
}

.a-with-icon {
  display: flex;

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

  font-weight: bold;

  gap: 3rem;
}

#contactivity-page {
  font-size: 8rem;
}

#contactivity-page > * {
  flex-grow: 1;
}

button {
  font-size: inherit;
}

.a-text {
  font-size: 6rem;

  display: flex;
  flex-direction: column;

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

  gap: 3rem;
}

a {
  user-select: none;

  text-decoration: none;
}

a:hover {
  transform: translateY(-0.25rem);
}

.icon * {
  fill: var(--text-color);
}

.icon {
  width: 12rem;
  height: 12rem;
}

.icon:hover {
  transform: translateY(-0.5rem);
}

.hr {
  width: 100%;
  height: 0.5rem;
  background-color: var(--text-color);
}

#projectivity-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-size: 2rem;

  gap: 4rem;
}

#identity-page {
  font-size: 3rem;
}

#identity-page .image {
  width: 33%;
  height: min-content;

  float: left;
  margin: 0 2rem 1rem 0;

  @media (max-width: 650px) {
    width: 100%;
    margin: 0 2rem 2rem 0;
  }
}

#identity-page .post {
  margin-top: 2rem;
}

#identity-page .post:hover {
  transform: translateY(-0.5rem);
}

#identity-page .last-post {
  margin-top: 0;
}

#identity-page .description {
  text-align: justify;
}

#identity-page .description > * {
  margin: 1rem 0;
  line-height: 1.375em;
}

#identity-page .description > *:hover {
  transform: translateY(-0.5rem);
}

#identity-page .description > ul,
ol {
  padding-left: 5.5rem;
}

.year {
  display: flex;
  flex-direction: column;

  gap: 1rem;

  font-size: 4rem;
  font-weight: 600;
  width: 100%;
}

.year-text {
  font-size: 4.25rem;
}

.year-projects {
  display: flex;
  flex-wrap: wrap;

  justify-content: flex-start;
  width: 100%;

  column-gap: 2rem;
  row-gap: 1.5rem;
}

.project {
  font-weight: 500;

  font-size: 4rem;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  border-bottom: 0.25rem solid transparent;
}

.project:hover {
  border-bottom: 0.25rem solid var(--text-color);
  transform: translateY(-0.5rem);
}

#theBurden-page {
  display: flex;
  gap: 2rem;

  height: 100%;
  max-height: 100%;

  font-size: 2rem;
}

#theBurden-page > * {
  flex-grow: 1;
}

#theBurden-page .col-1 {
  display: flex;
  flex-direction: column;
  width: 40%;
}

#theBurden-page .col-2 .content {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}

#theBurden-page section .content {
  max-height: calc(100% - 4rem);
  overflow: auto;
}

#theBurden-page section .section-header {
  height: 4rem;
}

.col-1 .content a {
  white-space: nowrap;
  text-decoration: underline;
}

@media (max-width: 1440px) {
  #contactivity-page {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);

    gap: 8rem;
  }

  .a-with-icon {
    justify-content: center;
  }

  #theBurden-page {
    flex-direction: column;
  }

  #theBurden-page .col-1 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 10px;
  }

  .a-text {
    display: none;
  }

  .icon {
    width: 16rem;
    height: 16rem;
  }
}

@media (max-width: 425px) {
  html,
  body {
    font-size: 9px;
  }

  .year-projects {
    flex-direction: column;
    align-items: flex-start;
  }

  .project {
    width: 100%;
  }
}

@media (max-width: 375px) {
  html,
  body {
    font-size: 8px;
  }
}

@media (max-width: 320px) {
  html,
  body {
    font-size: 7px;
  }
}
