@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;400;500;600;700&display=swap");

/* Body */

html {
  font-family: "Manrope", sans-serif;
  padding: 0 60px;
  height: 100%;
  scroll-behavior: smooth;
}

button {
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100%;
}

[id]::before {
  content: '';
  display: block;
  height:      80px;
  margin-top: -80px;
  visibility: hidden;
}

/* Dark Mode */

html {
  --background-primary: 252, 252, 252;
  --color-primary: 47, 47, 47;
  --color-secondary: 98, 98, 98;
  --accent-color: 255, 103, 56;
  --image-invert: invert(0);
  --blend-mode-invert: lighten;
  --video-contrast: 255, 255, 255, 0.65
}

html[data-theme="dark"] {
  --background-primary: 20, 20, 20;
  --color-primary: 245, 245, 245;
  --color-secondary: 213, 213, 213;
  --image-invert: invert(1);
  --blend-mode-invert: multiply;
  --video-contrast: 0, 0, 0, 0.3
}

.invertable {
  filter: var(--image-invert);
  transition: filter .2s;
}

html {
  transition: color .2s, background-color .2s;
  background: rgb(var(--background-primary));
  color: rgb(var(--color-primary));
}

h1,
h2 {
  transition: color .2s, background-color .2s;
  color: rgb(var(--color-primary));
}

h3,
p {
  transition: color .2s, background-color .2s;
  color: rgb(var(--color-secondary));
}

h1,
h2,
h4 {
  font-size: clamp(1.4em, 1.6vw, 100px);
}

p {
  line-height: 1.6em;
}

[data-theme="dark"] .light-icon {
  display: none;
}

[data-theme="light"] .dark-icon {
  display: none;
}

.light-icon,
.dark-icon {
  padding-top: 3px;
  padding-left: 10px;
}

.light-icon:hover,
.dark-icon:hover {
  cursor: pointer;
}

.divider-line {
  transition: color .2s;
  color: rgba(var(--color-primary), 0.3);
}

#highlight {
  color: #141414;
  background-color: #ffc1ae;
  border-radius: 4px;
  padding: 2px 5px;
}

/* /// */

a {
  transition: color 0.2s ease;
  color: inherit;
  text-decoration: none;
}

a:hover {
  transition: color 0.2s ease;
  color: rgb(var(--accent-color));
}

.hyperlink {
  transition: all 0.2s ease;
  padding: 0 4px;
  border-radius: 0px;
  border-bottom: 1px solid rgb(var(--accent-color));
}

.hyperlink:hover {
  transition: all 0.2s ease;
  background-color: rgb(var(--accent-color));
  color: white;
  padding: 0 4px;
  border-radius: 2px;
}

::selection {
  background-color: #ff9b7c;
  color: white;
}

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

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.226);
}

::-webkit-scrollbar-thumb {
  background: #0202022f;
}

::-webkit-scrollbar-thumb:hover {
  background: #0202026b;
}

/* Animate when page loads */

header {
  animation: page-load-items 500ms cubic-bezier(0.21, 0, 0.17, 1)
}

main,
#announcement {
  animation: page-load-items 700ms cubic-bezier(0.21, 0, 0.17, 1)
}

/* Header */

.header-container {
  display: flex;
  align-items: center;
}

/* Logo and text */

.brand-container {
  float: left;
  display: flex;
  align-items: center;
  width: max-content;
}

.logo-svg {
  width: 35px;
  height: 35px;
}

.name {
  font-size: 1.6em;
  margin-left: 0.5em;
}

/* Navigation buttons */

.nav-container {
  width: 100%;
}

.slide-nav-container {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: stretch;
  align-items: center;
  height: 60px;
  top: -70px;
  border-bottom: solid 1px rgb(var(--accent-color));
  /* Hide the navbar 50 px outside of the top view */
  transition: top 0.4s ease, color .2s, background-color .2s;
  z-index: 1;
  background: rgba(var(--background-primary), 0.9);
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJR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hlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
  background-blend-mode: var(--blend-mode-invert);
  color: rgb(var(--color-primary));
  backdrop-filter: saturate(400%) blur(16px);
}
.slide-nav-container .brand-container {
  flex-shrink: 0;
  padding-left: 60px;
}

.slide-navlist-container {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 60px;
}

/* rescale */

.slide-nav-container .logo-svg {
  width: 30px;
  height: 30px;
}

.slide-nav-container li {
  font-size: 15px;
}

.nav-list {
  float: right;
  text-decoration: none;
  list-style: none;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.nav-list li {
  padding: 0.25em 20px;
}

.nav-active {
  background-color: rgba(var(--accent-color),0.4);
  padding: 0.2em 1em;
  border-radius: 50px;
  display: flex;
}

/* Landing title */

.landing-title {
  font-size: 2em;
  padding: 50px 0;
  padding-top: 40px;
}

/* Item containers */

.items-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
}

.item-title {
  padding-top: 20px;
}

.item-info {
  margin: 0.25em 0;
  font-size: clamp(1.1em, 1vw, 100px);
}

/* Sub-items styling */

.item-image {
  width: 28vw;
  border-radius: 4px;
}

.item-type-compact {
  position: relative;
  margin-bottom: 50px;
  /* flex-basis: calc(100% / 3); */
  flex-basis: calc(95% / 3);
  margin-right: 1%;
}

.item-type-compact h2 {
  margin: 0;
}

.item-type-compact h3 {
  margin-top: 5px;
  font-weight: 400;
}

.item-title {
  display: flex;
  align-items: center;
}

.hover-arrow {
  transition: all 0.2s ease;
  opacity: 0;
}

.item-title-text:hover ~ .hover-arrow {
  transform: translate(12px, 0);
  opacity: 1;
  color: rgb(var(--accent-color));
}

/* Footer */

footer {
  border-top: solid #62626231 1px;
  padding-top: 20px;
  margin-top: 35px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  float: left;
  margin: 0;
  font-size: 0.9em;
}

footer div {
  float: right;
}

.social-icons {
  padding: 0 20px;
}

.social-icons:hover {
  transition: all 0.2s ease;
  color: rgb(var(--accent-color));
}

.twitter {
  font-size: 1.3em;
  transition: color 0.2s ease;
  color: #25b3f5;
}

.youtube {
  font-size: 1.4em;
  transition: color 0.2s ease;
  color: #e94a4a;
}

.discord {
  font-size: 1.2em;
  transition: color 0.2s ease;
  color: #7289da;
}

/* Sidebar */

#sidebar {
  display: none;
}

#sidebar-button {
  display: none;
}

/* Toast */

#toast {
  position: fixed;
  text-align: center;
  right: 0;
  left: 0;
  margin: auto;
  z-index: 2;
  bottom: 20px;
  width: fit-content;
  padding: 0 25px;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  opacity: 0;
  background-color: rgb(var(--color-primary));
  transition: opacity 0.2s ease-in-out;
}

#toast p {
  color: rgba(var(--background-primary), 0.8);
}

#toast.toast-shown {
  transition: opacity 0.2s ease-in-out;
  bottom: 20px;
  opacity: 1;
}

/* Announcement Banner */

#announcement {
  background-color: rgb(var(--accent-color));
  border-radius: 4px;
  display: flex;
  flex-wrap: nowrap;
  height: fit-content;
  justify-content: center;
  align-items: center;
  padding: 0.6em;
  margin-top: 12px;
}

#announcement-title {
  color: rgb(248, 248, 248);
  /* margin: 16px 16px; */
  margin: 2px;
  font-size: clamp(14px, 1vw, 100px);
}

#announcement-link {
  background-color: var(--accent-color);
  color: rgb(248, 248, 248);
  cursor: pointer;
  padding: 0.6em 0.8em;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  margin: 0 12px;
  font-size: clamp(12px, 0.9vw, 100px);
  width: max-content;
  transition: background-color 0.2s ease-in-out;
}

#announcement-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease-in-out;
}

#announcement-link i {
  padding-left: 4px;
}

/* About Me Page */

#about-me {
  margin: 0;
  width: 60%;
}

#about-socials {
  padding-top: 25px;
}

#self-portrait {
  width: 350px;
  object-fit: cover;
  border-radius: 4px;
}

#about-me-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Contact page */

#contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-top: 3rem;
}
#contact-main {
  display: flex;
  justify-content: center;
  height: 95vh;
}

#contact-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#contact-buttons-container button {
  margin: 7px;
  width: max-content;
}

#contact-container h1 {
  margin: 5px 0;
}

#contact-container p {
  margin-bottom: 30px;
  font-size: 1em;
}

#contact-twitter {
  border: solid 1px #1da1f2;
  color: #1da1f2;
}

#contact-twitter:hover {
  background-color: #4eb4f323;
}

#contact-discord {
  border: solid 1px #7289da;
  color: #7289da;
}

#contact-discord:hover {
  background-color: #859cee33;
}

#contact-email {
  margin-top: 30px;
  color: rgba(var(--color-primary), 0.4);
}

/* Misc */

#kill-padding {
  padding-top: 4px;
}

.page-icon {
  width: 30px;
  padding-right: 15px;
}

.page-icon-white {
  transition: all .2s ease;
  fill: rgb(var(--color-primary));
}

/* Ordered List */

ol li {
  counter-increment: list;
  list-style-type: none;
  position: relative;
  color: rgb(var(--color-secondary));
  font-size: clamp(16px, 0.9vw, 80px);
}

ol li:before {
  color: #ff6738;
  content: counter(list) ".";
  left: -26px;
  position: absolute;
  text-align: right;
}

li:not(:last-child) {
  margin-bottom: 6px;
}

/* Reev Landing Page */

#backgroundVideo {
  /* filter: brightness(85%); */
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -2;
}

#bgvid-overlay {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all .2s ease;
}

.item-info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.divider-line {
  width: 1px;
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  height: 50vh;
}

.reev-caption {
  margin: 0 auto 2em auto;
}

.reev-logos {
  width: 1.4em;
  padding: 0 10px 0 0;
}

#badge-container {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.badge {
  width: 9rem;
  cursor: pointer;
  border: 2px solid rgba(var(--accent-color), 0);
  transition: border 0.2s ease;
}

.badge.grayed-out {
  opacity: 0.4;
  cursor: no-drop;
}

#progressBar {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.14);
  position: relative;
  transition: opacity .3s ease;
}

#progress {
  width: 0%;
  height: 100%;
  background-color: rgb(var(--accent-color));
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity .3s ease;
}

#footer-links {
  display: flex;
  justify-content: center;
  gap: 2.2em;
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  animation: page-load-items 700ms cubic-bezier(0.21, 0, 0.17, 1)
}
#footer-links a {
  color: rgba(255, 255, 255, 0.4);
}
#footer-links a:hover {
  color: rgba(var(--accent-color), 1);
}

.dark-page {
  color: rgb(235, 235, 235) !important;
}

.items {
  display: flex;
  justify-content: center;
  gap: 4em;
  align-items: center;
  height: 100%;
}

/* FAQs - Table of contents */

.toc-container {
  padding-bottom: 1.2em;
  margin-bottom: 2.2em;
  border-bottom: 1px solid rgba(var(--color-secondary), .2);
}

.toc-header h2 {
  margin-bottom: 20px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
  text-decoration: none;
  font-size: 1em;
  opacity: .6;
}

.toc-list a {
  text-decoration: none;
}

/* --- Mobile --- */

@media screen and (max-width: 1100px) {
  html {
    padding: 0 30px;
  }
  .name {
    font-size: 1.4em;;
  }
  .logo-svg {
    width: 30px;
    height: 30px;
  }
  .slide-navlist-container ul li {
    display: none;
  }
  .nav-container ul li {
    display: none;
  }
  .light-icon,
  .dark-icon {
    font-size: 1.1em;
  }
  .landing-title {
    font-size: 1.6em;
  }
  .items-container {
    display: flex;
    flex-wrap: wrap;
  }
  .item-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  .item-type-compact {
    flex-basis: 100%;
  }
  .slide-nav-container .brand-container {
    padding-left: 25px;
  }
  .slide-navlist-container {
    padding-right: 25px;
  }
  /* SIDEBAR */
  #sidebar-button {
    display: inline-block;
    color: rgb(var(--color-primary));
    margin-left: 30px;
    font-size: 1.5em;
    cursor: pointer;
  }
  #sidebar {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgb(var(--background-primary));
    width: 70%;
    height: 100%;
    z-index: 3;
    font-size: 1.1em;
    transform: translateX(100%);
    transition: transform .2s ease;
  }
  #sidebar.sidebar-enabled {
    transform: translateX(0%);
    transition: transform .2s ease;
  }
  #background-dim {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.822);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0%;
    z-index: 2;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
  }
  #background-dim.dim-enabled {
    pointer-events: all;
    opacity: 1;
    transition: opacity .2s ease;
  }
  #sidebar ul {
    color: rgb(var(--background-primary));
    text-decoration: none;
    list-style: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    color: rgb(var(--color-primary));
  }
  #sidebar ul li {
    padding: 1.1em 2em;
  }
  .sidebar-icon {
    padding-left: 16px;
  }
  /* Footer */
  footer {
    display: flex;
    flex-direction: column;
  }
  footer div {
    padding-top: 16px;
  }
  .social-icons {
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 45px;
  }
  /* About me page */
  #about-me {
    width: 100%;
  }
  #about-me-container {
    flex-direction: column;
  }
  #self-portrait {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 35px 0;
  }
}

@media screen and (max-width: 600px) {
  html {
    padding: 0 20px;
  }
  .landing-title {
    font-size: 1.4em;
  }
  .item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  #contact-buttons-container {
    flex-direction: column;
  }
  #contact-buttons-container button {
    width: 70vw;
  }
  /* Reev landing page */
  .items {
    flex-direction: column;
    height: auto;
    gap: 2.6em;
  }
  .divider-line {
    height: 1px;
    width: 30vw;
  }
}

/* Animation Keyframes */

@keyframes page-load {
  0% {
    transform: translate(0, -80px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0px);
    opacity: 1;
  }
}

@keyframes page-load-items {
  0% {
    transform: translate(0, -80px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0px);
    opacity: 1;
  }
}
