@font-face {
  font-family: "Sligoil";
  src: url("../fonts/Sligoil-Micro.otf");
}
@font-face {
  font-family: "Juni";
  src: url("../fonts/Junicode-CondMedium.ttf");
}
html {
  background-color: white;
  color: black;
  font-family: "Sligoil";
  font-size: 1.2em;
}

a,
a:visited,
a:hover,
a:active {
  color: black;
  text-decoration: none;
}

p a,
p a:visited {
  color: #30668a;
  text-decoration: underline;
}

p a:hover {
  color: blue;
  text-decoration: underline;
}

p a:active {
  color: red;
}

h1 {
  font-family: "Juni";
  font-size: 3em;
  margin: auto;
  line-height: 100%;
}

h2 {
  font-size: 2em;
  margin: auto;
}

p {
  margin: auto;
  margin-block: 10px;
}

#banner {
  height: 130px;
  max-width: 800px;
  width: 100%;
  background-size: cover;
  background-image: url("../images/banner.webp");
}

html {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

body {
  padding: 12px;
  max-width: 620px;
  background-color: white;
  border: 1px solid black;
}

#main {
  margin-top: 20px;
  max-width: 620px;
}
#main > p,
#main > h1 {
  margin-left: 5px;
}

#sidebarimages > * {
  z-index: -1;
}

#gifs {
  image-rendering: pixelated;
}

.pre {
  width: 100%;
  border: 1px solid black;
  background-color: #30668a;
  min-height: 32px;
}
.pre > a {
  color: #f1f3e5;
  padding: 10px;
}
.pre > pre {
  border-top: 1px solid black;
  background-color: #f1f3e5;
  padding: 10px;
  overflow: scroll;
  margin: 0px;
  margin-top: 5px;
}
.pre > .pre-like {
  border-top: 1px solid black;
  padding: 10px;
  background-color: #f1f3e5;
  margin: 0px;
  margin-top: 5px;
}
.pre > .pre-like p {
  margin-top: 0px;
}

#photo-gallery > div {
  padding: 22px;
  border: 1px solid black;
  background: #f1f3e5;
  margin-block: 30px;
}
#photo-gallery img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid black;
}
#photo-gallery h2 {
  font-family: "Juni";
  font-size: 1.2em;
  margin-top: 12px;
  text-align: center;
}

.tooltip {
  display: inline-block;
  position: relative;
}

.tooltip .t-content {
  display: none;
  position: absolute;
  margin-left: 10px;
  width: 300px;
  z-index: 10;
}

.tooltip:hover .t-content {
  display: block;
}

@media screen and (max-width: 800px) {
  .tooltip,
  .tooltip:hover {
    color: black;
    text-decoration: none;
  }
  .tooltip:hover .t-content {
    display: none;
  }
}

:root {
  --glass-diameter: 200px;
  --glass-radius: calc(var(--glass-diameter) / 2);
  --glass-blur-amount: 8px;
  --clip-pos-x: 0px;
  --clip-pos-y: 0px;
}

/* Backdrop blur element */
#glass-backdrop-blur {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1;
  backdrop-filter: blur(var(--glass-blur-amount));
  -webkit-backdrop-filter: blur(var(--glass-blur-amount));
  clip-path: circle(var(--glass-radius) at var(--clip-pos-x) var(--clip-pos-y));
  pointer-events: none;
}

#toggle-glass {
  z-index: 10;
  position: relative;
}

/* Glass border visual */
#looking-glass {
  width: var(--glass-diameter);
  height: var(--glass-diameter);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: var(--clip-pos-y);
  left: var(--clip-pos-x);
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
  z-index: 3;
}

/* Show elements when active */
body.glass-active #looking-glass,
body.glass-active #glass-backdrop-blur {
  display: block;
}

body.glass-active {
  cursor: none;
}

/* Text reveal mechanism */
.reveal-content {
  position: relative;
  --clip-x: var(--clip-pos-x);
  --clip-y: var(--clip-pos-y);
}

.reveal-content::before {
  content: attr(data-reveal-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: inherit;
  clip-path: circle(0px at var(--clip-x) var(--clip-y));
  pointer-events: none;
  z-index: 2;
  text-shadow:
    0 0 6px white,
    0 0 6px white,
    0 0 6px white,
    0 0 10px white,
    0 0 15px white;
}

body.glass-active .reveal-content::before {
  clip-path: circle(var(--glass-radius) at var(--clip-x) var(--clip-y));
}

*.glass-active {
  cursor: none;
  user-select: none;
}

body.glass-active * {
  pointer-events: none;
}

.reveal-image {
  position: relative;
  --clip-x: 0px;
  --clip-y: 0px;
}

.reveal-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--reveal-image-src);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: circle(0px at var(--clip-x) var(--clip-y));
  pointer-events: none;
  z-index: 2;
}

body.glass-active .reveal-image::before {
  clip-path: circle(var(--glass-radius) at var(--clip-x) var(--clip-y));
}
