:root {
  font-size: 22px;
  scroll-behavior: smooth;
}

body {
  font-family: "Balsamiq Sans", sans-serif;
  background-color: rgb(24, 17, 32);
  color: white;
  padding: 0;
  margin: 0;
  padding-bottom: 2rem;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Changa One", sans-serif;
  text-shadow: 3px 3px 0 rgb(24, 17, 32), 3px -3px 0 rgb(24, 17, 32), -3px 3px 0 rgb(24, 17, 32), -3px -3px 0 rgb(24, 17, 32), 3px 0px 0 rgb(24, 17, 32), 0px 3px 0 rgb(24, 17, 32), -3px 0px 0 rgb(24, 17, 32), 0px -3px 0 rgb(24, 17, 32);
}

h1 {
  font-size: 2.5rem;
}

a {
  color: rgb(217, 114, 238);
}
a:hover, a:active {
  color: rgb(255, 175, 206);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

#logo {
  display: flex;
  flex-direction: column;
  max-width: 27rem;
  width: 100%;
}
#logo img {
  max-width: 25rem;
  width: 100%;
  align-self: flex-start;
  transition-duration: 200ms;
}
#logo img:hover {
  transform: scale(1.05) translateY(0.5rem);
}
#logo h1 {
  margin-top: -2rem;
  margin-bottom: 0;
  align-self: flex-end;
  text-align: right;
  z-index: 1;
}

nav {
  text-align: center;
  font-size: 1.5rem;
  background-color: rgb(24, 17, 32);
  position: sticky;
  top: 0;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  z-index: 20;
}

#lightbox {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
  border: none;
  text-align: center;
}
#lightbox img {
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}
#lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0.7333333333);
}

#hero-showcase {
  background-color: rgb(164, 73, 224);
  clip-path: polygon(0 6%, 100% 0, 100% 90%, 0% 100%);
  padding: 0;
  height: 25rem;
  margin-top: -0.5rem;
}
#hero-showcase .splide__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.project {
  position: relative;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.project .background {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Parallax effect buffer */
  left: -2rem;
  right: -2rem;
  background-blend-mode: hard-light;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.project .infobox {
  text-align: right;
  max-width: 25rem;
  z-index: 2;
  padding: 1rem 3rem 2rem 3rem;
  background-color: rgba(0, 0, 0, 0.7333333333);
}
.project .infobox h1 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.project .infobox .logo {
  max-width: 25rem;
  width: 100%;
  height: auto;
  margin-bottom: -1rem;
  transition-duration: 0.2s;
}
.project .infobox .logo:hover {
  transform: scale(1.1);
}

.splide__arrow {
  background: rgb(24, 17, 32) !important;
  height: 1.5rem !important;
  width: 1.5rem !important;
  z-index: 10 !important;
}

svg {
  fill: white !important;
}

.splide__pagination {
  bottom: 2rem !important;
  z-index: 10 !important;
}

.splide__pagination__page {
  box-sizing: content-box;
  height: 0.5rem !important;
  width: 0.5rem !important;
  z-index: 10 !important;
  border: 3px solid rgb(24, 17, 32) !important;
}

h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 1.5rem;
  z-index: 19;
  pointer-events: none;
}

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem;
  text-align: center;
}
.gallery img {
  max-height: 30rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  cursor: zoom-in;
  outline: 3px transparent solid;
  transition-duration: 200ms;
}
.gallery img:hover {
  outline: 3px rgb(164, 73, 224) solid;
  transform: scale(1.05);
}

@media (min-width: 1000px) {
  .gallery {
    padding: 0 3rem;
  }
}
@media (max-width: 1000px) {
  .project .background {
    background-position: left center;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 18px;
  }
  .project .infobox {
    max-width: unset;
  }
  .project .infobox .logo {
    max-width: unset;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
  }
}