body,
html {
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  font-family: "ABeeZee", sans-serif;
  transition: 1s;
  background-color: #d20f39;
}

body.onlyParallax {
  min-height: 500vh;
  transition: 1s;
}

h1 {
  margin-top: 0.5rem;
}

h3 {
  border-bottom: 1px dashed #eee3;
  display: inline;
}

h4 span {
  font-size: small;
  opacity: 0.7;
}

.parallax img {
  width: 100vw;
  image-rendering: pixelated;
  position: fixed;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  z-index: -1;
  animation: fadeIn 2s forwards;
}

.parallax.changed img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax img:nth-child(1) {
  transform: translateY(calc(var(--offset) * 1 * 1px));
}
.parallax img:nth-child(2) {
  transform: translateY(calc(var(--offset) * 2 * 1px));
}
.parallax img:nth-child(3) {
  transform: translateY(calc(var(--offset) * 3 * 1px));
}
.parallax img:nth-child(4) {
  transform: translateY(calc(var(--offset) * 4 * 1px));
}
.parallax img:nth-child(5) {
  transform: translateY(calc(var(--offset) * 5 * 1px));
}

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

/* Main content */
.site {
  display: flex;
  justify-content: center;
  width: 100vw;

  padding: 4rem;
  box-sizing: border-box;

  gap: 3rem;
  transition: 1s;
}

body.onlyParallax .site {
  opacity: 0;
  transition: 1s;
}

.content,
.sidebar .full {
  background-color: #4b62caaa;
  backdrop-filter: blur(5px);

  outline: 6px dashed #faa;
  outline-offset: -3px;

  padding: 1rem;
  box-sizing: border-box;

  color: white;

  box-shadow: 0 0 3px 3px #f99e;
}

.content {
  width: 700px;
  min-height: 1800px;
}

/* Sidebar */
.sidebar {
  width: 350px;
  height: auto;
  align-self: flex-start;
  position: sticky;
  top: 4rem;
}

.sidebar .me {
  width: 100%;
  margin-bottom: 3rem;
}

.social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.social[data-link] {
  cursor: pointer;
}

.social svg {
  height: 1.8rem;
}

/* Main content icons & interests */
iconListElem {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

iconListElem img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 12px;
  z-index: 1;
  transition: 0.1s;
}

iconListElem img.background {
  position: absolute;
  top: 0;
  filter: blur(6px) brightness(0.7);
  transform: scale(0.9);
  z-index: 0;
}

iconListElem:hover img:not(.background) {
  transform: scale(150%) translateY(-12.5%);
  transition: 0.1s;
  z-index: 2;
}

iconListElem p {
  margin: 0;
  font-size: small;
}

iconListElem.smol p {
  font-size: x-small;
}

.iconList {
  margin: 12px;
  background-color: #8839ef77;
  box-shadow: 0 0 6px 6px #8839ef77;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Projects */
.project {
  margin: 12px;

  background-color: #39bbef77;
  box-shadow: 0 0 6px 6px #39bbef77;
}

.project.red {
  background-color: #f007 !important;
  box-shadow: 0 0 6px 6px #f007 !important;
}

.project.pink {
  background-color: rgba(212, 0, 255, 0.467) !important;
  box-shadow: 0 0 6px 6px rgba(212, 0, 255, 0.467) !important;
}

.project.yellow {
  background-color: rgba(255, 153, 0, 0.467) !important;
  box-shadow: 0 0 6px 6px rgba(255, 153, 0, 0.467) !important;
}

.project.green {
  background-color: rgba(0, 255, 0, 0.467) !important;
  box-shadow: 0 0 6px 6px rgba(0, 255, 0, 0.467) !important;
}

.project .about {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project .about img {
  height: 70px;
  border-radius: 12px;
}

.project .about .text {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.project .about .text h4 {
  margin: 0;
  font-size: 1.4rem;
}

.project .about .text p {
  margin: 0;
  font-size: 0.8rem;
}

.project .about button {
  margin-left: auto;
  margin-right: 12px;

  height: 35px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-family: "ABeeZee", sans-serif;
  font-weight: bold;
  border: 2px solid #e77;
  background-color: #faa;
  box-shadow:
    0 4px 0 #e77,
    0 -5px 5px #fff5 inset,
    0 2px 2px #0001 inset,
    0 3px 6px #0007,
    0 0 0 0 #fff3;
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  cursor: pointer;
}

.project .about button:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow:
    0 8px 0 #e77,
    0 -5px 5px #fff5 inset,
    0 2px 2px #0001 inset,
    0 4px 6px #0007,
    0 0 0 0 #fff3;
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project .about button:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #e77,
    0 -5px 5px #fff5 inset,
    0 2px 2px #0001 inset,
    0 0px 6px #0007,
    0 0 30px 30px #fff1;
  transition: 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project .thumbnails {
  width: 100%;
  overflow-x: scroll;
  display: flex;
  gap: 1rem;
  padding-top: 20px;
}

.project .thumbnails span {
  position: relative;
  overflow: visible;
}

.project .thumbnails span img {
  height: 200px;
  aspect-ratio: 16/9;
}

.project .thumbnails span:after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  padding-top: 20px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-image: url(/img/thumbnails/border.avif);
  background-size: cover;
  overflow: visible;
  pointer-events: none;
}
.project .thumbnails span:nth-child(2):after {
  filter: hue-rotate(145deg);
}
.project .thumbnails span:nth-child(3):after {
  filter: hue-rotate(270deg);
}
.project .thumbnails span:nth-child(4):after {
  filter: hue-rotate(300deg);
}

.keepScrolling {
  text-align: center;
  cursor: pointer;
  opacity: 0.7;
  font-size: small;
  margin-top: 2rrem;
}

/* Media queries */
@media screen and (max-width: 1100px) {
  .site {
    flex-direction: column;
    padding: 1rem;
    gap: 3rem;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }

  .sidebar img {
    height: 500px;
    object-fit: contain;
  }

  .content {
    width: 100%;
  }

  .project .about {
    flex-wrap: wrap;
  }

  .project .about div {
    width: calc(100% - 90px);
  }

  .project .about button {
    width: 100%;
    margin-right: 0;
  }

  .iconList {
    justify-content: center;
  }
}

@media screen and (max-height: 1000px) {
  .sidebar {
    position: relative;
  }
}

/* SCROLLBARRR! i love copy and pasting */

/* width */
::-webkit-scrollbar {
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #0007;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #fff7;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #fffe;
}
