:root {
    /*// Kleuren zijn ingesteld in views._partials.root (hier veranderen heeft geen effect) //*/
    --colour: hsl(0, 100%, 50%); /* dient gewoon als color picker in Dev Mode */
    /* HSL backgrounds */
    --hsl-bg: 0, 0%, 100%; /* main */
    --hsl-bg2: 0, 0%, 100%; /* navigatiebar */
    --hsl-bg3: 0, 0%, 100%; /* knoppen */
    --hsl-bg4: 0, 0%, 100%; /* input-velden */
    /* HSL foregrounds */
    --hsl-text: 0, 0%, 29%;
    --hsl-link: 240, 100%, 46%;
    /* HSL image masks */
    --hsl-img-underlay: var(--hsl-bg);
    --hsl-img-overlay: var(--hsl-text);
    --hsl-img-underlay-link: var(--hsl-bg);
    --hsl-img-overlay-link: var(--hsl-link);

    --gap-side: 0.5rem;
    --gap-mini: 0.2rem;
    --gap-small: 0.4rem;
    --gap-medium: 0.8rem;
    --gap-large: 1.6rem;
    --gap-giant: 3rem;
    --height-cover-small: 10rem;
    --height-cover-big: 300px;

    --height-header:;
    --height-auth:;
    --height-nav:;
    --height-filters:;
    --height-footer:;
}


/* 
=================
GENERAL HTML TAGS 
================= */

a {color: hsl(var(--hsl-link));}
a.active {color: hsl(var(--hsl-text)); text-decoration: none; pointer-events: none;}
a.semi-active {color: hsl(var(--hsl-text));}
a[target="_blank"]:not(.embedded){
    position: relative;
    padding-right: 1.1rem;
    white-space: nowrap;
}
a[target="_blank"]:not(.embedded)::before {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
  content: "";
  width: 0.5em;
  height: 0.5em;
  margin-left: var(--gap-mini);
  display: inline-block;
  border: 1px solid hsl(var(--hsl-link));
  /* cut top-right corner */
  clip-path: polygon(
    0 0,
    calc(100% - 0.3em) 0,
    100% 0.3em,
    100% 100%,
    0 100%
  );
  position: absolute;
  right: 0.2em;
  top: 0.5em;
}
a[target="_blank"]:not(.embedded)::after {
  content: "↗";
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
  position: absolute;
  right: 0;
  top: 0.1em;
  font-size: 0.8rem;
  line-height: 1;
}

.upside-down {
  transform: rotateX(180deg);
  display: inline-block;
  padding-bottom: 0.2rem;
}

body {
    background-color: hsl(var(--hsl-bg));
    color: hsl(var(--hsl-text));
    min-height: 100svh;
    min-height: 100dvh;
}


/*
=============
ASCII ARTWORK
============= */

h1, h1 * {text-decoration: none; height: fit-content; overflow: hidden;}
h1 pre {
    font-size: min(1.6cqw, 0.6rem);  line-height: min(1.6cqw, 0.6rem);
    /* unicode-bidi: isolate; */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    max-width: 100svw;
    overflow-x: hidden;
    font-weight: 600;
    line-break: strict;
    margin: 0;
}
pre * {font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;overflow-x: hidden;font-weight: 600;line-break: strict; margin: 0;}
h1:has(pre#habbo-hotel) {margin-top: calc(1.2rem - min(1.4cqw, 0.5rem));}
pre#habbo-hotel {font-size: min(1.6cqw, 0.6rem);  line-height: min(1.6cqw, 0.6rem); font-weight: 600;}
h1:has(pre#stick-letters) {margin-top: min(0.8rem); margin-bottom: 0;}
pre#stick-letters {font-size: min(2.4cqw, 1.2rem); line-height: min(2.4cqw, 1.2rem);}
h1:has(pre#morse) {margin-top: min(0.8rem); margin-bottom: 0;}
pre#morse {font-size: min(2.8cqw, 1.4rem); line-height: min(2.4cqw, 1.2rem);}
h1:has(pre#doh) {margin-top: calc(1.2rem - min(1.4cqw, 0.5rem));}
pre#doh {font-size: min(0.65cqw, 0.6rem);  line-height: min(0.6cqw, 0.45rem); font-weight: 900;}
.r, .d, .n, .s {color: hsl(var(--hsl-accent1));}


/*
======
IMAGES
====== */

figure { line-height: 0; margin: 0; }
figure>img { object-fit: contain; max-width: 100%; }
figure:not(.no-cover)>img { opacity: 0; }
.cover figure.no-cover { display: flex; justify-content: center; align-items: center; background-color: white;}

.cover {max-width: 100%;}
.cover {background-color: hsl(var(--hsl-img-underlay-link));}
.popover .cover {background-color: hsl(var(--hsl-img-underlay));}

.container-item>.cover>figure>img {max-height: var(--height-cover-small);}
.container-item>.cover, .container .cover {cursor: pointer;}

.container>.cover-wrapper {max-height: var(--height-cover-big);}
.container>div>.cover>figure>img, .create .cover>figure>img {max-height: var(--height-cover-big);}
.container>div>.cover figure, .create .cover {
    width: max-content;
    max-width: 100%;
}

.cover>figure {

}

.container .cover img, .create img {max-width: 100%;}

.cover figure {
  display: block; /* important */
  background-color: hsl(var(--hsl-img-overlay-link));

  -webkit-mask-image: var(--img);
  mask-image: var(--img);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: contain;
  mask-size: contain;

  -webkit-mask-position: center;
  mask-position: center;

  /* IMPORTANT for some browsers */
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.popover>figure {
  background-color: hsl(var(--hsl-img-overlay));
}
.cover figure::before {
  content: "";
  position: absolute;

  background-color: inherit;

  -webkit-mask-image: var(--img);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: var(--img);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.popover>figure {
    height: auto;
    width: fit-content;
}
.popover>figure>img {
    max-height: calc(100dvh - 2 * var(--gap-large));
    padding: 0;
    object-fit: contain;
    object-position: center;
    cursor:auto;
}

/* FILTER SYSTEM */
input[type="checkbox"]:disabled {
  opacity: 0.5;
}

input[type="checkbox"]:disabled + label {
  opacity: 0.5;
}
