/*  body, main, nav, header, footer */ 
/* section, article, aside */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --width: 750px;
  --gap: 10px;
  --padding: 0.5rem 0.5rem;

  --radius: 12px;
  --font-main: Inter, sans-serif;

  --bg-color: black;
  --text-color: white;

  --dark: rgb(15, 15, 15);
  --grey: #181818;
  --grey2: #2e2e2e;
  --stone: #57555e;
}

body {
  font-family: "Inter", sans-serif;
  background: black;
  color: white;
  width: var(--width);
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

header, main, footer {
  margin: 0 auto;
  max-width: 100vw;
  justify-content: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
}

.nav.reverse {
  margin-left: auto;      /* pushes this group to right edge */
  justify-content: flex-end;
  gap: var(--gap);
}

.button {
  padding: 1rem;
  border-radius: var(--radius);

  color: white;
  font-weight: bold;
  text-decoration: none;

  background: transparent;
  transition: background 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover,
.button:focus {
  background: var(--dark);
}

.button.blip {
  padding: 0;
  width: 3rem;
  height: 3rem;
  background: var(--stone);
  transition: background 0.2s ease;
}
.button.blip img {
  width: 75%;
  height: 75%;
}
.button.blip:hover,
.button.blip:focus {
  background: var(--blip-color);
}

.button.blip.discord {
  --blip-color: #5865F2;
}
.button.blip.contact {
  position: relative;
  --blip-color: #d1320b;
}

.section {
  box-sizing: border-box;
  width: var(--width);
  max-width: 100vw;
  padding: var(--padding);
  border-radius: var(--radius);

  background: var(--grey);
}

.boxtext {
  position: absolute;
  visibility: hidden;
  top: calc(100% + 17px);   /* directly below button */
  max-width: 50vw;
  right: 0;
  left: auto;
  padding: 1rem;
  color: white;
  background: var(--stone);
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
}

.boxtext::after { /* arrow */
  content: "";
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateX(-35%);
  border-width: 15px;
  border-style: solid;
  border-color: transparent transparent var(--stone) transparent;
}

.boxtext.show {
  visibility: visible;
  opacity: 1;
}

.dropdown {
  position: relative;
  display: inline-block;
  max-width: 50vw;
}
.dropdown::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--stone);
  top: calc(100% + 17px);
  z-index: 1;
  padding: 0.5rem;
  color: white;
  background: var(--stone);
  white-space: nowrap;
}

.dropdown-content::after { /* arrow */
  content: "";
  position: absolute;
  bottom: 100%;
  border-width: 15px;
  left: 15px;
  border-style: solid;
  border-color: transparent transparent var(--stone) transparent;
}

.dropdown-content a {
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover { 
  background-color: var(--grey); 
  font-weight: bold;
}

.dropdown-content a.active {
  background: var(--grey);
  font-weight: bold;
}

.dropdown:hover .dropdown-content { display: block; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;

  border-radius: var(--radius);
  padding: 1rem;
  gap: var(--gap);
  background: var(--dark);

  width: var(--width);
  max-width: 100vw;
}

.gallery-item {
  flex: 1 1 calc(25% - var(--gap));
  max-width: calc(25% - var(--gap));
  aspect-ratio: 1 / 1;

  position: relative;
  background: var(--grey2);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.15s ease;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gallery-item img:hover {
  cursor: zoom-in;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  font-weight: bold;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item.spoiler::after {
  content: "HORNY";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey);
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  opacity: 1;
  pointer-events: none;
}

.gallery-item.spoiler:hover::after,
.gallery-item.spoiler.revealed::after {
  opacity: 0;
}

.viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5;
  overflow: hidden;
  cursor: zoom-out;
}

.viewer.active {
  display: flex;
}

.viewer img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-in;
}

.viewer.full {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.5rem;
  box-sizing: border-box;
}

.viewer.full img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  display: block;
  cursor: zoom-out;
}

/* break line */
.line-break {
  flex-basis: 100%;
  border-bottom: 1px solid var(--grey2);
  margin: 1rem 0;
}
