/* onionring.js is made up of four files - onionring-widget.js, onionring-index.js, onionring-variables.js and onionring.css (this one!)
// it's licensed under the cooperative non-violent license (CNPL) v4+ (https://thufie.lain.haus/NPL.html)
// it was originally made by joey + mord of allium (蒜) house, last updated 2020-10-24 */

/* === ONIONRING.CSS === */
/* this file affects the style of the widget. remember to replace all instances of #webringid with whatever value you have for ringID in the onionring-widget.js file. make sure it still has the # at the front, though! probably easiest to use find+replace to do it */

@font-face {
    font-family: NintendoDS;
    src: url(https://files.catbox.moe/24s612.ttf);
}

#dsring {
  margin: .5rem auto;
  padding: 5px;
  width: max-content !important;
  height: fit-content !important;
  font-family: 'NintendoDS', sans-serif !important;
  background-color: #fff;
  & > div {
    display: flex;
    justify-content: center;
  }
}

#dsring-error {
  display: block !important;
  padding-bottom: .5rem;
  width: unset !important;
  height: unset !important;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000;
  & h2 {
    margin: 0;
    padding: .3rem 0 .3rem .4rem;
    font-size: 1.5rem;
    color: #292929;
    font-weight: normal;
    background-image: url(https://dsring.neocities.org/universal/title.png);
    background-size: 564px;
    background-repeat: repeat-x;
    background-color: #fff;
    border-top: 0;
    border-bottom: 2px solid #000;
  }
  & div {
    margin: 0 .5rem;
    padding: 10px;
    color: #000;
    text-align: center;
    background-image: url(https://dsring.neocities.org/universal/grid-small.png);
    background-size: 31px;
    border: 2px solid #a5a5a5;
  }
  & a {
      color: #42637b;
  }
  & a:hover {
    text-decoration: none;
    border: 5px solid transparent;
    border-image: url(https://dsring.neocities.org/universal/selection.png) 7% round;
  }
}

#dsring table {
  margin: 0 auto;
}

#dsring table tr td {
  padding: 1px;
}

#dsring .webring-prev a, #dsring .webring-next a, #dsring .webring-info a {
  color: #000;
  text-decoration: none;
  &:hover {
    color: #0049cb;
    text-decoration: underline;
    text-decoration-color: #0049cb;
  }
}

#dsring .webring-prev {
  text-align: right;
}

#dsring .webring-info {
  margin: 0 .5rem;
  text-align: center;
}

#dsring .webring-next {
  text-align: left;
}

#dsring .webring-links {
  font-size: small;
}
