html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-fg-main);
  word-wrap: break-word;
}

#rulesBody,
#menuBody {
  font-size: 0.8125em;
}

pre,
code,
samp,
var,
kbd,
.ayashii {
  font-family: "MS Gothic", IPAMonaGothic, "BIZ UDGothic", Osaka-mono, monospace;
}

a:link {
  color: var(--color-fg-link);
}

a:visited {
  color: var(--color-fg-link-visited);
}

h1,
h3,
h4,
h5,
h6 {
  color: var(--color-fg-heading);
}

.festiveIcon {
  vertical-align: bottom;
}

h2 {
  background-color: var(--color-bg-h2);
  color: var(--color-fg-h2);
  border: 1px solid;
  border-top-color: var(--color-border-h2-light);
  border-left-color: var(--color-border-h2-light);
  border-bottom-color: var(--color-border-h2-dark);
  border-right-color: var(--color-border-h2-dark);
  margin: 0.5em 0 0;
  padding: 0 4px;
  font-size: 1.125em;
}

hr {
  border-color: #c0c0c0;
  border-color: #cccccc80;
  border-left: none;
  border-right: none;
}

p {
  margin-top: 0;
}

.center {
  text-align: center;
}

.switchformTop {
  text-align: right;
}

.menuTitle {
  margin-top: 0;
  font-size: 1.33em;
}

.menuTitle a {
  color: inherit !important;
  text-decoration: none;
}

.boardList {
  padding-left: 0;
  list-style-type: none;
  margin: 0.5em 0;
}

.boardList li {
  margin-bottom: 0.5em;
}

.boardIcon {
  vertical-align: text-bottom;
}

.boardList p {
  margin: 0;
}

.boardList p,
.newsAuthor,
.newsDate {
  font-size: 0.75em;
}

.noWidth li {
  width: initial !important;
}

.homeCenter {
  display: table;
  margin: 0 auto;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.homeCenter .boardList {
  text-align: left;
}

.homeCenter .boardList li {
  display: inline-block;
  padding-left: 0.25em;
  padding-right: 0.25em;
  width: 33.333333%;
  width: calc(100% / 3);
  vertical-align: top;
}

.usercount::before {
  content: "\1F464\FE0E";
}

.newsArticle img {
  max-width: 100%;
}

.newsHeader {
  display: flex;
  align-items: baseline;
  border: 2px groove #c0c0c0;
  border: 2px groove #ffffff80;
  border-left: none;
  border-right: none;
  margin: 1em 0;
  padding: 0.25em;
}

.newsTitle {
  margin: 0;
}

.newsAuthor {
  margin-left: 0.5em;
}

.newsDate {
  flex-grow: 1;
  text-align: right;
}

.newsText {
  padding: 0 0.25em;
}

.newsImage {
  max-width: 100%;
}

.rulesList {
  text-align: left;
  padding-left: 1.75em;
}

.rulesList ol {
  padding-left: 1.5em;
}

.rulesList li {
  margin-bottom: 1em;
}

.rulesList li:last-of-type {
  margin-bottom: 0;
}

.rulesList li li:first-of-type {
  margin-top: 1em;
}

.greentext {
  color: #789922;
}

label {
  margin-right: 0.25em;
}

#switchcontrol {
  max-width: 100%;
}

#bgStar {
  color: var(--color-star-accent);
  stroke: var(--color-star-stroke);
}

@media screen and (max-device-width: 480px) {
  .menuSectionHeading {
    font-size: 1.125em;
  }

  .homeCenter {
    width: 100%;
    max-width: initial;
  }

  .homeCenter .boardList {
    column-count: 1;
    text-align: center;
  }

  .homeCenter .boardList li {
    display: block;
    width: initial;
  }

  .boardList a {
    font-size: 1em;
  }

  .boardList p {
    font-size: 0.875em;
  }

  .hideMobile {
    display: none;
  }
}