body {
  background-color: #000000;
  overflow-y: scroll;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

header {
  position: fixed;
  z-index: 1;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
}

h1 {
  font-size: 24px;
  background: black;
}

ul {
  display: flex;
  gap: 12px;
}

/** HOME **/

.home-hands-wrapper {
  position: fixed;
  display: block;
  width: 100px;
  margin-top: 64px;
  margin-left: 24px;
  &:hover {
    margin-left: 26px;
  }
}

.home-hands {
  filter: invert(100%);
  height: 100px;
  width: 100px;
  object-fit: contain;
}

.fadeIn {
  animation: fadeIn 24s linear forwards;
}

.ephemeralWrapper,
.intro {
  width: 100%;
  display: flex;
  justify-content: center;
}

.introText {
  font-size: 24px;
  text-decoration: underline;
  position: fixed;
  top: 56px;
  animation: fadeOut 3s linear forwards;
}

.ephemeralText {
  animation: fadeOut 5s linear forwards;
  font-size: 16px;
  margin-top: 12px;
  max-width: 20%;
  position: fixed;
  top: 48px;
}

.parallax {
  height: 100%;
  position: relative;
  z-index: -1;
}

.apuntesWrapper {
  display: none;
  overflow: hidden;
  min-height: 3vh;
  border-radius: 50px 50px 0 0;
  font-size: 16px;
  max-width: 100vw;
  background: black;
  padding: 18px 24px;
  border: 1px solid white;
  border-bottom: 0;
  animation: fadeInScrollDown 0.5s ease forwards;
  margin-top: 94vh;
}

.hidden {
  opacity: 0;
}

.apuntes {
  column-count: 4;
  column-gap: 10px;
}

figure {
  margin: 0;
}

.apuntes img {
  width: 100px;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.3s ease;
  float: left;
  transform-origin: center bottom;
  padding: 10px 10px 10px 0;
  &:hover {
    filter: grayscale(0%);
    transform: scale(1.5);
  }
}

figcaption {
  display: none;
  font-size: 12px;
  padding: 4px;
  opacity: 0.8;
}

figure:hover figcaption {
  display: block;
}

#arrow {
  display: none;
}

.scroll-tag-wrapper {
  position: absolute;
  top: 88vh;
  display: block;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  -webkit-animation: fade_move_down 4s ease-in-out infinite;
  -moz-animation: fade_move_down 4s ease-in-out infinite;
  animation: fade_move_down 4s ease-in-out infinite;
}

.scroll-down-arrow {
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 100;
  text-decoration: none;
  width: 13px;
  height: 13px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: translate(0%, 0%) rotate(45deg);
  -moz-transform: translate(0%, 0%) rotate(45deg);
  transform: translate(0%, 0%) rotate(45deg);
}

.overlay {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal {
  border-radius: 24px;
  background-color: black;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid white;
  width: 50%;
  text-align: center;
}

.modal-content {
  padding: 24px 0;
  text-align: center;
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  cursor: pointer;
  text-decoration: none;
}

.modal-button {
  font-family: "apuntes";
  text-decoration: underline;
  font-size: 18px;
  cursor: pointer;
  background: #000000;
}

/** LIST **/

.list-article {
  margin-top: 50px;
  padding: 24px;
}

.list-article a {
  text-decoration: underline;
}

.list-article p {
  text-align: justify;
}

.list-item-link {
  font-family: "apuntes";
  text-decoration: underline;
  font-size: 24px;
  cursor: pointer;
  background: #000000;
}

.list-item {
  text-decoration: underline;
  list-style: none;
}

table {
  font-size: 16px;
  padding: 24px;
  border-collapse: collapse;
  width: 100%;
}

.table-image {
  height: 60px;
  filter: invert(100%);
  width: 120px;
  object-fit: contain;
}

.table-image-cell {
  width: 15%;
  padding-left: 24px;
}

.table-author {
  width: 25%;
}

.table-button {
  width: 15%;
  text-align: left;
}

.table:target {
  animation: fadeIn 0.5s linear forwards;
}

.table-accordion-body {
  display: none;
}

.openRow {
  border-bottom: 1px solid white;
}

.table-full-text {
  padding: 12px 32px;
  border-bottom: 1px solid white;
}

.footer-logo {
  width: 300px;
  margin: 32px;
}
/** ANIMATIONS **/

@-webkit-keyframes fade_move_down {
  0% {
    -webkit-transform: translate(0, -10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(0, 10px);
    opacity: 0;
  }
}

@-moz-keyframes fade_move_down {
  0% {
    -moz-transform: translate(0, -10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -moz-transform: translate(0, 10px);
    opacity: 0;
  }
}

@keyframes fade_move_down {
  0% {
    transform: translate(0, -10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 10px);
    opacity: 0;
  }
}

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

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

@keyframes fadeInScrollDown {
  0% {
    opacity: 0;
    margin-top: 90vh;
  }
  95% {
    opacity: 0.5;
    margin-top: 92vh;
  }
  100% {
    opacity: 1;
    margin-top: 94vh;
  }
}

/** SCROLLBAR **/

::-webkit-scrollbar {
  width: 5px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  background-color: white;
  outline: 1px solid white;
  border-radius: 50px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  header {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  h1 {
    font-size: 16px;
  }

  .home-hands-wrapper {
    margin-left: 12px;
  }

  .home-hands {
    width: 80px;
    height: 80px;
  }

  .introText {
    top: 148px;
  }

  .ephemeralText {
    max-width: 80%;
    top: 148px;
  }

  .apuntes {
    column-count: 1;
  }

  ul {
    flex-direction: column;
    gap: 6px;
  }

  .list-article {
    padding: 12px;
    margin-top: 72px;
  }

  .list-item-link {
    font-size: 16px;
  }

  table {
    font-size: 14px;
  }

  .table-image {
    width: 48px;
  }

  .table-button {
    width: 10%;
    text-align: center;
  }

  .table-image-cell {
    padding: 12px;
    padding-right: 8px;
  }

  .table-author {
    padding: 8px;
  }

  .table-full-text {
    padding: 12px;
  }

  .footer-logo {
    width: 200px;
    margin: 12px;
  }
}
