/* Add fonts */
.sans {
  font-family: Helvetica, Arial, sans-serif;
}

.serif {
  font-family: "Times New Roman", Times, serif;
}

/* Reset styling */
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Selction background color style */
::selection {
  color: rgb(0, 0, 0);
  background-color: rgb(88, 161, 255);
}

/* Hide overflow on body */
body {
  background-color: rgb(0, 0, 0);
  color: rgb(158, 158, 158);

  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;

  font-size: 2rem;
  line-height: 2.2rem;

  width: 100vw;
  height: 8rem;

  transition: 0.2s all ease-in-out;

  background-color: rgb(255, 85, 0);
  mix-blend-mode: difference;
}

/* Title */
.title {
  font-size: 6rem;
  word-break: break-all;

  width: fit-content;
  color: rgb(117, 227, 255);

  transition: 0.2s transform ease-in-out;
  transform: skew(-14deg) rotate(-3deg) translateY(1rem);
}

@media only screen and (max-width: 880px) {
  .title {
    font-size: 4rem;
  }

  header {
    height: 6.8rem;
  }
}

@media only screen and (max-width: 480px) {
  header {
    border-radius: 200px;
    width: fit-content;

    height: 5rem;
    padding: 0 1rem;
    margin: 0 0.2rem;
  }

  .header-text {
    font-size: 6vw;
    padding-top: 0.4rem;
  }

  .title {
    font-size: 11vw;
    transform: skew(-14deg) rotate(-3deg) translateY(-0.8rem);
  }
}

.header-text {
  color: rgb(117, 227, 255);
  width: fit-content;
}

.container {
  margin-top: 16rem;
}

/* Footer */
footer {
  position: absolute;
  bottom: 0;
  left: 0;

  z-index: 200;
}

/* Arrow to scroll up */
.scroll-up {
  position: fixed;

  font-size: 1.6rem;
  font-family: Helvetica, Arial, sans-serif;
  background-color: black;
  color: rgb(158, 158, 158);

  right: 0;
  bottom: 0;

  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);

  transition: 0.2s transform ease-in-out;
}

.scroll-up:hover {
  background-color: rgb(158, 158, 158);
  color: black;
  text-decoration: underline;
}

.arrow {
  font-size: 1.6rem;
  position: relative;
  bottom: 1px;
}

.show {
  opacity: 1;
  transform: translateY(0px);
}

/* Reset Styling */
li {
  list-style-type: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

.container {
  padding: 0.2rem;
}

.projects {
}

.project {
  margin-bottom: 4rem;
}

.project:not(:first-child) img {
  content-visibility: auto;
}

.underline {
  text-decoration: underline;
}

.project-title {
  font-size: 4rem;
  letter-spacing: 0rem;
  line-height: 4.2rem;

  padding: 0 1rem;
  transform: rotate(1deg) skew(2.8deg);
}

.project-text {
  font-size: 2rem;
  letter-spacing: 0rem;
  line-height: 2.4rem;

  padding: 1rem;
  transform: rotate(-0.2deg);
}

.link {
  padding: 1rem;

  word-break: break-all;

  font-size: 2.1rem;
  letter-spacing: 0rem;
  line-height: 2.3rem;

  margin-bottom: 2rem;
  transform: rotate(-0.6deg);
}

.link a:hover {
  font-size: 2rem;
  letter-spacing: -0.3px;
  text-decoration: underline;
  line-height: 2.4rem;
  font-family: Helvetica, Arial, sans-serif;
}

@media only screen and (max-width: 480px) {
  .project-title {
    font-size: 10vw;
    letter-spacing: 0vw;
    line-height: 10.2vw;
  }

  .project-text {
    font-size: 6vw;
    letter-spacing: 0vw;
    line-height: 8vw;
  }
}

.project-documentation {
  display: flex;

  flex-wrap: wrap;
}

.file {
  max-width: 44vw;

  padding: 0.2rem 1rem;
  margin: 0;
}

@media only screen and (max-width: 854px) {
  .file {
    max-width: 90vw;
    padding: 0.2rem 1rem;
  }
}

.file-name {
  position: absolute;
  transform: translateY(-1.5rem) translateX(1rem);
  width: fit-content;
  background-color: black;
}

.file-name:hover {
  font-size: 1.1rem;

  font-family: "Times New Roman", Times, serif;
  text-decoration: underline;
}
