*,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
  background-image: url("img/stars.gif");
  background-attachment: fixed;
}

#content {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  min-height: fit-content;
  margin: 2rem auto;
  padding: 1rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: serif;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#toasters {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
}

#logo {
    max-width: 100%;
}

a {
    color: white;
    text-underline-offset: 0.25ex;
}

a:hover {
    color: orange;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

#webrings, #btns, #d2 {
    margin-top: 3rem;
}

#d2 img {
    scale: 1.25;
    margin-right: 0.25rem;
}

#btns {
    max-width: 30rem;
}

#webrings {
    width: 25rem;
    max-width: 100%;
}

#webrings summary {
    cursor: pointer;
}

ring {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-family: sans-serif;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

ring.indie {
    background: linear-gradient(rgb(121, 134, 202), rgb(39, 51, 118));
}

ring.hotline {
    background: rgb(250, 154, 186);
}

ring.noai {
    border: 1px dashed white;
    border-width: 0.15rem;
}

ring.fedi {
    border: 1px solid black;
    background: linear-gradient(
        to right,
        rgb(103, 150, 178),
        rgb(236, 239, 247) 20%,
        rgb(236, 239, 247) 80%,
        rgb(103, 150, 178)
    );
}

ring.fedi a {
    color: black;
}

ring.fedi a:hover {
    color: transparent;
    background: linear-gradient(
        to right,
        rgb(197, 53, 43),
        rgb(221, 146, 66),
        rgb(252, 214, 72),
        rgb(85, 198, 137),
        rgb(57, 169, 215),
        rgb(116, 76, 209),
        rgb(175, 69, 248),
        rgb(218, 81, 171)
    ) text;
}

ring.indie a:hover, ring.hotline a:hover {
    color: black;
}

li::marker {
    content: none;
}

ul, ol {
    padding-inline-start: 0;
}

@media (max-width: 700px) {
    #content {
        margin: 1rem auto;
        font-size: 1.2rem;
        background: none;
    }

    #toasters {
        display: none;
    }

    ring {
        font-size: 1rem;
    }
}
