@import url("https://fonts.googleapis.com/css2?family=Grandstander:wght@800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400&display=swap");

html,
body {
  font-family: "Noto Sans", sans-serif;
  background: url("../images/bg.jpg") no-repeat;
  color: rgb(72, 63, 73);
  background-size: cover;
  background-attachment: fixed;
  font-weight: 400;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #cccccc;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (prefers-color-scheme: dark) {
    background: none no-repeat;
    background-color: #0d121d;
    color: #ded1dc;
    background-size: cover;
    background-attachment: fixed;
  }
}

h1,
h2,
h3 {
  font-family: "Grandstander", sans-serif;
  margin: 0;
  color: #d80394;
}

h4 {
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 30pt;
  text-transform: capitalize;
  margin-bottom: 1rem;
}

h2 {
  font-size: 20pt;
  text-transform: capitalize;
}

#container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
  background-color: white;
  @media (prefers-color-scheme: dark) {
    background-color: #1d212f;
  }
  &.rounded {
    border-radius: 10px;
  }
}

header {
  padding-top: 20pt;
}

main {
  padding: 2rem;
  padding-top: 0;
}

#logo {
  max-height: 350px;
  display: block;
  margin: 0 auto;
}

article {
  margin-top: 2rem;
}

h1 a[href],
h1 a[href]:visited,
h2 a[href],
h2 a[href]:visited {
  color: #d80394;
  @media (prefers-color-scheme: dark) {
    color: #f858c6;
  }
  text-decoration: none;

  &:hover::before {
    content: "#";
    position: absolute;
    transform: scaleX(0.8);
    color: #d80394;
    @media (prefers-color-scheme: dark) {
      color: #f858c6;
    }
  }
}

h1 a[href]:hover::before {
  margin-top: 8px;
  margin-left: -26px;
  font-size: 23pt;
}
h2 a[href]:hover::before {
  margin-left: -24px;
  font-size: 18pt;
}

p {
  line-height: 1.5;
}

.gallery {
  margin-bottom: 2rem;

  &.nojs {
    line-height: 0;
    -webkit-column-count: 3;
    -webkit-column-gap: 0px;
    column-count: 3;
    column-gap: 5px;

    img {
      width: 100% !important;
      height: auto !important;
      margin-bottom: 5px;
      cursor: pointer;
      border-radius: 5px;
      position: relative;
    }
  }

  &.masonry {
    position: relative;
  }
  &.masonry a {
    position: absolute;
    img {
      max-width: 290px;
    }
  }

  img {
    cursor: pointer;
    border-radius: 5px;
    transition: box-shadow 200ms, margin-top 200ms;

    &:hover {
      margin-top: -5px;
      box-shadow: 0 5px 10px rgba(58, 47, 68, 0.3);
    }
  }
}

a[href],
a[href]:visited {
  color: #3b81d1;
  @media (prefers-color-scheme: dark) {
    color: #6ac3ff;
  }
}

@media (max-width: 700px) {
  #logo {
    max-height: 300px;
    display: block;
    margin: 0 auto;
  }
  .gallery.nojs {
    -webkit-column-count: 2 !important;
    -webkit-column-gap: 0px;
    column-count: 2 !important;
    column-gap: 5px;
  }
}

dt {
  float: left;
  width: 150px;
  font-weight: bold;
}

dl {
  clear: left;
}

.my-social-list {
  display: flex;
  gap: 10px;
}

a.social-button {
  font-size: 18px;
  text-align: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 100ms ease-out;
  &:hover {
    transform: scale(1.15);
  }
  &.twitch,
  &.twitch:visited {
    background-color: #6441a4;
    color: white;
  }
  &.twitter,
  &.twitter:visited {
    background-color: #1da1f2;
    color: white;
  }
  &.github,
  &.github:visited {
    background-color: black;
    color: white;
  }
  &.discord,
  &.discord:visited {
    background-color: #5865f2;
    color: white;
  }
  &.ko-fi,
  &.ko-fi:visited {
    background-color: #13c3ff;
    color: white;
  }
  &.fediverse,
  &.fediverse:visited {
    background-color: #ed1b81;
    color: white;
  }
}

.pswp__image-credits {
  background: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  color: #fff;
  max-width: 100vw;
  min-width: 30vw;
  padding: 0.5rem 1rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  line-height: 1.5;

  a[href],
  a[href]:visited {
    color: #ffd4ed;
  }

  @media (max-width: 700px) {
    left: 0;
    right: 0;
    transform: none;
  }
}

nav.section-list {
  font-size: 14pt;
  line-height: 1.5;
  color: rgb(197, 144, 240);
  padding: 1rem 0 2rem;

  a[href],
  a[href]:visited {
    color: #e042ae;
    text-decoration: none;
    border-bottom: 1px dotted;
    &:hover {
      color: #e615a4;
      border-bottom: 1px solid;
    }
  }
}

#home-nav nav.section-list {
  font-size: 20pt;
  font-family: "Grandstander", sans-serif;
  padding: 0;
}

figure.propic {
  display: inline-block;
  margin: 0;
  img {
    max-width: 32px;
  }
}

section.cw {
  &.hidden {
    .cw-content {
      filter: blur(32px);
      pointer-events: none;
    }
    .cw-warning {
      display: flex;
      line-height: 1.5;
      grid-column: 1;
      grid-row: 1;
      z-index: 10;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-top: 1rem;
      padding: 1rem;
      border-radius: 10px;
      background-color: rgba(58, 47, 68, 0.3);
      header {
        margin: 0;
        padding: 0;
      }
      .cw-reason {
        font-weight: bold;
      }
      button {
        margin-top: 0.5rem;
      }
    }
  }
  display: grid;
  .cw-warning {
    display: none;
  }
  .cw-content {
    grid-column: 1;
    grid-row: 1/3;
    transition: filter 120ms;
  }
}
