:root {
  --background-color: #2c876c;
  --fg-color: #010101;
  --accent-color: #6f2b2b;
}

html, body{
  height: 100%;
}

html{
  display: table;
  margin: auto;
}

body {
  font-family: Diehl Deco;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  background-color: #0E5252;
  background-image:url(https://goblinteagarden.neocities.org/backgrounds/png/Banner_3.png);
  background-size: cover;
  background-position: center 60px;
  font-size: 26px;
  color:#f5fffc;
  max-width: 1600px;
  display: table-cell;
  vertical-align: middle;
  text-shadow: 1px 1px 2px black;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  padding: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  display: contents;
  padding-left: 10%;
  padding-right: 10%;
}

#ulpfp {
  margin: 0;
  display: contents;
}

#ulpfp img {
  width: 15%;
}

#ulpfp a {
  display: contents;
}

#ulpfp img:hover {
  opacity: 70%;
}

.navbar li {
  display: inline-block;
  margin: 0 10px;
  padding-left: 2%;
  padding-right: 2%;
}

#recentwork,
#gallerytitle {
  text-align: center;
}

#recentwork,
#gallerytitle h1 {
  font-size 36px;
}

.navbar li img {
  max-width: 120px;
}

#r1navli img{
  max-width: 160px;
}

.navbar ul img:hover {
  opacity: 70%;
}

.windowpanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 200px;
  grid-auto-rows: 100px;
  grid-template-areas:
  "a b"
  "c d";
  align-items: start;
}

#pane1 {
  grid-area: a;
}  

#pane2 {
  grid-area: b;
} 

#pane3 {
  grid-area: c;
} 

#pane4 {
  grid-area: d;
} 

.some-container {
  overflow-x: auto;
  scroll-marker-group: after;
}

.carousel {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-marker-group: after;
  div {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    &::scroll-marker {
      display: block;
      content: " ";
      aspect-ratio: 1;
      width: 24px;
      border-radius: 50%;
      border: 1px solid silver;
      cursor: pointer;
      background: #00000069;
      justify-content: center;
      transition: background 0.5s ease-out;
    }
    &::scroll-marker:where(:hover, :active, :focus) {
      background: lightgray;
    }
    &::scroll-marker:target-current {
      background: white;
    }
  }
  &::scroll-marker-group{
    width: 100%;
    display: flex;
    gap:12px;
    align-items: center;
    padding: 20px 0;
    justify-content: center;
    z-index: 20;
  }
  img {
    width: 100%;
    aspect-ratio: 26/9;
    object-fit: contain;
  }
  &::scroll-button(inline-end) {
    cursor: pointer;
    content: "";
    inline-size: 72px;
    aspect-ratio: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgb(255 255 255 / .6);
    background-image: url("/assets/buttons/right_arrow.png");
    backround-position: center;
  }
  &::scroll-button(inline-start) {
    cursor: pointer;
    content: "";
    inline-size: 72px;
    aspect-ratio: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgb(255 255 255 / .6);
    background-image: url("/assets/buttons/left_arrow.png");
    backround-position: center;
  }
  &::scroll-button(inline-end):where(:hover, :active) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgb(255 255 255 / .8);
    background-image: url("/assets/buttons/right_select_arrow.png");
  }
  &::scroll-button(inline-start):where(:hover, :active) {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgb(255 255 255 / .8);
    background-image: url("/assets/buttons/left_select_arrow.png");
  }
  anchor-name: --carousel;
  &::scroll-button(inline-end),
  &::scroll-button(inline-start) {
    z-index: 1;
    cursor: pointer;
    position: absolute;
    position-anchor: --carousel;
    top: anchor(center);
    inset-inline: anchor(start) anchor(end);
  }
  &::scroll-button(inline-end) {
    top: anchor(center);
    inset-inline: auto anchor(end);
  }
}

#lib1 img:hover {
  content: url("/assets/buttons/portfolio_bold_active.png")
}
#lib2 img:hover {
  content: url("/assets/buttons/nsfw_bold_active.png")
}
#lib3 img:hover {
  content: url("/assets/buttons/sketches_bold_active.png")
}
#lib4 img:hover {
  content: url("/assets/buttons/characters_bold_active.png");
}
