@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

@font-face {
  font-family: "Avara";
  src: url("/files/fonts/Avara-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Avara";
  src: url("/files/fonts/Avara-BoldItalic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Avara";
  src: url("/files/fonts/Avara-Black.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

:root {
  --root-bg: #222;
  --text: #fff;
  --anti-text: #000;
  --anti-text-50: #0008;
  --text-gold: #fb6;
  --scribbles: #55113c;
  --highlight-1: #730049;
  --highlight-2: #aa0076;
  --highlight-3: #e6399a;
}

@media (prefers-color-scheme: light){
  :root {
    --root-bg: #ebe;
    --text: #000;
    --text-gold: rgb(131, 75, 8);
    --anti-text: #fff;
    --anti-text-50: #fff8;
    --scribbles: #bb5ea2;
    --highlight-1: #d870b2;
    --highlight-2: #e54db7;
    --highlight-3: #d40078;
  }
}

html {
  background-color: var(--root-bg);
  background-image: url("scribbles.png");
}

@media (prefers-color-scheme: light){
  html {
    background-image: url("scribbles_light.png");
  }
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

a:link, a:visited, a:hover, a:active {
  color: var(--text);
}

p, ul, label {
 color: var(--text);
 font-family: "Noto Sans", sans-serif;
 text-align: center;
 font-weight: 400;
 text-decoration: none;
 font-size: 1.1em;
}

.paragraph, ul {
  text-align: left;
  font-weight: 400;
  white-space: preserve-breaks;
  margin: 2px;
}

.para-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 5vw;
}

.text-color {
  color: var(--highlight-3);
}

ul {
  list-style: inside;
  white-space: wrap;
}

code {
  background-color: var(--anti-text);
  color: var(--text);
  font-family: "DM Mono",monospace;
}

#preload {
  display: none;
}

.banners-box {
  margin: 0 auto;
  display: block;
  padding-top: 20px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(88px, 100%), 1fr));
  gap: 12px;
  grid-template-rows: auto;
  place-items: center;
  place-content: center;
}

.homepage-banners {
  max-width: min(420px,90vw);
}

.standalone-banner-box {
  max-width: min(80vw,900px);
}

.banner {
  display: inline-block;
  vertical-align: top;
  width: 88px;
  height: 31px;
  transition: filter 0.1s linear;
  transition: transform 0.05s linear;
}

@media (min-resolution: 2x) {
  .banner {
    image-rendering: pixelated;
  }
}

.banner:hover{
  filter: drop-shadow(0 0 10px #b00b69);
  transform: scale(2);
  image-rendering: pixelated;
  z-index: 1;
  position: relative;
}

.banner-img {
  width: 88px;
  height: 31px;
}

.fake-banner {
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  background-color: var(--highlight-1);
  border-radius: 4px;
  font-family: "DM Mono", monospace;
  color: var(--text);
  line-height: 31px;
  white-space: nowrap;
}

.two-button-grid {
  width:100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 350px) {
  .two-button-grid {
    display: block;
  }
}


.two-button-grid .link {
  width: calc(100% - 20px);
}

.colorchip {
  display: inline-block;
  width: 20%;
  height: 25px;
  font-family: "DM Mono", monospace;
  text-align: center;
  line-height: 25px;
  font-size: min(3vw,18px);
}

.centre {
  margin: 0 auto;
  display: block;
  width: fit-content;
}

@keyframes bounce-text {
  20% {
    transform: translateY(0em);
  }

  50% {
    transform: translateY(-0.2em);
  }

  80% {
    transform: translateY(0em);
  }
}

.bouncy-letter {
  animation: bounce-text 1.5s ease-in-out infinite;
  display: inline-block;
  white-space: pre;
}

.titletext {
 font-size: 24px;
 color: var(--text);
 text-align: center;
 font-weight: 500;
 text-decoration: none;
 display: block;
 margin: 5px auto;
 font-family: Avara, "Noto Sans", sans-serif;
}

.bigtitletext {
 font-size: 32px;
 color: var(--text);
 text-align: center;
 font-weight: 600;
 text-decoration: none;
 display: block;
 margin: 5px auto;
 font-family: Avara, "Noto Sans", sans-serif;
}

#container {
  width: fit-content;
  background-color: var(--root-bg);
  margin: 20px auto;
  padding: 10px;
  border-radius: 20px;
  border: 4px solid var(--scribbles);
  align-items: center;
}

#content {
  align-items: center;
}

.link {
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 5px auto;
 border-radius: 20px;
 background-color: var(--highlight-1);
 padding: 7px 5px 3px;
 font-size: 21px;
 color: var(--text);
 font-family: "Avara", sans-serif;
 text-align: center;
 font-weight: 600;
 text-decoration: none;
 transition: all 0.05s linear;
}

.link > img {
  width: 24px;
  height: 24px;
  padding: 0 10px;
  margin-top: -6px;
}

.back {
  max-width: 120px;
  font-weight: 900;
}

.link:hover {
 background-color: var(--highlight-2);
}

particle {
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  font-size: 30px;
  opacity: 0;
  z-index: 99;
}


.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: 150px;
  color: var(--text);
  font-size: 12px;
  background-color: var(--anti-text);
  border-radius: 10px;
  padding: 5px 10px 5px 10px;
  bottom: 100%;
  left: -50%;
  white-space: pre-wrap;
  transition: opacity 0.2s linear;
  pointer-events: none;
}

.tooltipped {
  position: relative;
  display: inline-block;
  text-align: center;
}

.tooltipped:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

#enclave-webring {
  padding-bottom: 20px;
}

@media (min-aspect-ratio: 7/5) and (width > 1000px) {
  #home-container{
    display: flex;
    flex-direction: row;
  }

  #homebox-1, #homebox-2 {
    padding: 0 25px;
  }

  #homebox-2{
    border-left: 10px var(--scribbles) dotted;
  }

  #homebox-2 > .two-button-grid > .link {
    height:40px;
  }

  #homebox-2 > .two-button-grid > .link > img {
    width:32px;
    height:32px;
  }
}