/* Wiki page styles */

.wiki-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #444;
  box-sizing: border-box;
  max-width: 800px;
  width: 100%;
}

.wiki-nav a,
.wiki-nav a:visited {
  color: #fff176;
  text-decoration: none;
  margin: 0.5rem 0;
  font-family: 'Press Start 2P', 'Minecraftia', monospace;
}

.wiki-nav a:hover,
.wiki-nav a:focus {
  text-decoration: underline;
}

.wiki-section {
  text-align: left;
  width: 100%;
  max-width: 800px;
  margin-bottom: 3rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #444;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.wiki-section h2 {
  color: #5e7c16;
  text-shadow: 2px 2px #000;
  font-size: 1.5rem;
  margin-top: 2rem;
}

.wiki-section ul {
  padding-left: 1.5rem;
}

.wiki-page .scroll-top.hidden {
  display: none;
}

.wiki-page .index-footer .footer-link {
  color: rgba(255, 255, 255, 0.4) !important;
}

.wiki-page .index-footer .footer-link:hover,
.wiki-page .index-footer .footer-link:focus {
  color: rgba(255, 255, 255, 0.7) !important;
}

.wiki-center-row {
  display: flex;
  justify-content: center;
}

.wiki-content-800 {
  width: 100%;
  max-width: 800px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
}

.wiki-content-600 {
  width: 100%;
  max-width: 600px;
}

.wiki-heading-highlight {
  text-align: center;
  color: #9acd32;
}

.wiki-heading-join {
  text-align: center;
  color: #9acd32;
  font-family: 'Press Start 2P', monospace;
}

.wiki-copy {
  line-height: 1.8;
}

.wiki-rules-list {
  list-style: none;
  padding-left: 0;
  color: #ff6f61;
  font-weight: bold;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
}

.wiki-list-plain {
  list-style: none;
  padding-left: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
}

.wiki-list-plain-no-font {
  list-style: none;
  padding-left: 0;
}

.wiki-sublist {
  list-style: none;
  padding-left: 1.5em;
}

.wiki-item {
  margin-bottom: 1em;
  display: flex;
  align-items: flex-start;
}

.wiki-item-tight {
  margin-bottom: 0.75em;
  display: flex;
  align-items: flex-start;
}

.wiki-item-small {
  margin-bottom: 0.5em;
  display: flex;
  align-items: flex-start;
}

.wiki-item-margin-small {
  margin-bottom: 0.5em;
}

.wiki-block-item {
  margin-bottom: 1em;
}

.wiki-row-start {
  display: flex;
  align-items: flex-start;
}

.wiki-icon {
  padding-right: 0.5em;
  flex: 0 0 auto;
}

.wiki-item > :last-child,
.wiki-item-tight > :last-child,
.wiki-item-small > :last-child,
.wiki-row-start > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-inline-link,
.wiki-inline-link:visited {
  color: #fdd835;
  text-decoration: none;
}

.wiki-inline-link:hover,
.wiki-inline-link:focus {
  color: #fff;
  text-decoration: underline;
}

.wiki-code {
  font-size: 1rem;
  background: #222;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.wiki-code-chip {
  background: #222;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.wiki-code-block {
  display: inline-block;
  margin-top: 0.5em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wiki-subheading-highlight {
  margin-top: 2em;
  color: #9acd32;
}

@media (max-width: 1024px) {
  .wiki-nav,
  .wiki-section,
  .wiki-content-800,
  .wiki-content-600 {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .wiki-nav {
    padding: 0.85rem;
  }

  .wiki-section {
    padding: 0.85rem 1rem;
    margin-bottom: 2rem;
  }

  .wiki-section h2 {
    font-size: 1.25rem;
  }

  .wiki-subheading-highlight {
    margin-top: 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .wiki-content-800,
  .wiki-list-plain,
  .wiki-rules-list {
    font-size: 0.75rem;
  }

  .wiki-section {
    padding: 0.75rem;
  }

  .wiki-section h2 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
  }

  .wiki-sublist {
    padding-left: 1rem;
  }

  .wiki-code,
  .wiki-code-chip {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .wiki-nav {
    padding: 0.65rem;
  }

  .wiki-nav a {
    margin: 0.35rem 0;
    font-size: 0.7rem;
  }

  .wiki-content-800,
  .wiki-list-plain,
  .wiki-rules-list {
    font-size: 0.68rem;
  }

  .wiki-section h2 {
    font-size: 0.95rem;
  }
}
