@font-face {
    font-family: 'OpenDyslexic';
    src: url('/Fonts/OpenDyslexic-Italic.woff2') format('woff2'),
        url('/Fonts/OpenDyslexic-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/Fonts/OpenDyslexic-Bold.woff2') format('woff2'),
        url('/Fonts/OpenDyslexic-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/Fonts/OpenDyslexic-Bold-Italic.woff2') format('woff2'),
        url('/Fonts/OpenDyslexic-Bold-Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/Fonts/OpenDyslexic-Regular.woff2') format('woff2'),
        url('/Fonts/OpenDyslexic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '';
    src: url('/Fonts/Unitype.woff2') format('woff2'),
        url('/Fonts/Unitype.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* this is now user-decided, browser default if none are selected */
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
}
header {
  background-color: #2b2b2b;
  border-bottom: 1px solid #444;
  padding: 0, 0, 1rem, 0;
  text-align: center;
  position: relative;
}
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}
.NavGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.NavLink {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #00bfff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}

.NavLink:hover {
  background-color: #00bfff;
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

/* misc */
#dev-credits {
  margin-top: 3rem;
  text-align: center;
}
.tier-title {
  color: #80c7ff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}
.dev-tier {
  margin-bottom: 3rem;
}
.dev-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.dev-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 10px;
  width: 220px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(128, 199, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 12px rgba(128, 199, 255, 0.35);
}
.dev-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 6px rgba(128, 199, 255, 0.2);
}
.dev-card h4 {
  color: #80c7ff;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.dev-card p {
  color: #ccc;
  font-size: 0.95rem;
}
#acknowledgements {
  text-align: center;
  margin-top: 4rem;
}
#acknowledgements h2 {
  color: #80c7ff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}
.text-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 1rem auto 2.5rem auto;
}
.text-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 6px rgba(128, 199, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.text-card:hover {
  background-color: #292929;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.25);
}

.emergency-box {
  background-color: #1c1c1c;
  border: 1px solid #444;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.1);
}

/* hero is just the tag that 90% of the wiki uses, dont touch without shrimp permission */

.hero {
  position: relative;
  width: 100vw;
  height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  box-sizing: border-box;
  border-bottom: 2px solid #333;
}
.hero.small-hero {
  height: 700px;
  padding-left: 3%;
}
.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 600px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #80c7ff;
}
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Colors */

*.b {
  color: #72b0eb;
}

*.db {
  color: #074a89;
}

*.y {
  color: #d2c62f;
}
*.g {
  color: #4ed171;
}

*.dg {
  color: #217c00;
}

*.gr {
  color: #6e7c8c;
}
*.o {
  color: #f8a674;
}
*.r {
  color: #eb4c51;
}
*.gy {
  color: #c1e94b;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}
.modal img {
  width: 80%;
  height: 80%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.hero-content p a {
  color: #80c7ff;
  text-decoration: none;
  font-weight: 700;
}
.hero-content p a:hover, .hero-content p a:focus {
  text-decoration: underline;
}


.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
  flex-grow: 1;
}
#game-description p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.location-section {
  margin-bottom: 3rem;
}
.section-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.section-text {
  flex: 1 1 600px;
  min-width: 280px;
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.5;
}
.section-img {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 320px;
  height: 200px;
  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 0 8px #80c7ff66;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  user-select: none;
}
@media (max-width: 768px) {
  .section-block {
      flex-direction: column;
 }
  .section-img {
      max-width: 100%;
      height: 180px;
 }
}
.location-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #80c7ff;
  border-bottom: 2px solid #444;
  padding-bottom: 0.3rem;
}
.location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.location-content img, .location-content video {
  max-width: 350px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.3);
}
.location-content ol {
  flex: 1 1 300px;
  margin-left: 1rem;
  font-size: 1.1rem;
  color: #d0d0d0;
  list-style-position: inside;
}
.location-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #80c7ff;
}


#no-results-message {
  display: none;
  color: #ccc;
  text-align: center;
  padding-bottom: 10%;
  font-weight: bold;
  margin-top: 1rem;
}


.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  min-height: 100px;
  max-height: 300px;
  width: 100%;
}
.article-container {
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  justify-content: center;
}

.badges-section {
  min-height: 600px;
  transition: min-height 0.3s ease;
}

.article {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #ccc;
  font-size: 1.2rem;
  padding: 2rem 0;
}

@media (max-width: 600px) {
  .badges-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}


.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  min-height: 300px;
}

.badge-card {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.badge-card:hover {
  transform: scale(1.02);
}

.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.3rem;
  color: #999;
  padding: 2rem 0;
}



.articles-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}


.articles-header h2 {
  margin: 0;
  white-space: nowrap;
  font-size: 1.5rem;
}

#articleSearch {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  min-width: 200px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#articleSearch:focus {
  border-color: #3fa9f5;
  box-shadow: 0 0 5px rgba(63, 169, 245, 0.5);
}

#articleSearch {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ccc" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zM9.5 14C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.location-content {
  margin-top: 0.5rem;
  color: #ccc;
}

.startup-video video {
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.3);
}

.Links {
  display: block;
  text-align: center;
  color: #f10202;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
}


/* articles Sec*/

.articles-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  min-height: 100px;
  display: grid;
  margin: 1rem;
}
.article-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: #ddd;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
}
.article-card:hover, .article-card:focus {
  background-color: #333;
  box-shadow: 0 0 8px #80c7ff;
  outline: none;
}
.article-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 0.8rem;
}
.article-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #80c7ff;
}

/* buttons */

.view-more-btn, #view-more-btn {
  background: #2a2a2a;
  color: #80c7ff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.75rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.view-more-btn:hover, .view-more-btn:focus, #view-more-btn:hover, #view-more-btn:focus {
  background: #3b3b3b;
  outline: none;
}

/* keep it as it is required for NavGrid :shrug: */
.hidden {
  display: none;
}

/* points.html Tags */
.npc-section {
  margin-top: 2rem;
}
.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.npc-card {
  display: flex;
  flex-direction: column;
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}
.npc-main {
  flex: 1;
}
.npc-info {
  margin-top: 1rem;
  border-top: 1px solid #5a5353;
  padding-top: 1rem;
  text-align: center;
}
.npc-info img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.npc-meta p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #ffffff;
}
.dialogue-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
/* updates.html */
.news-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #1c1c1c;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(128, 199, 255, 0.15);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.links-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(128, 199, 255, 0.1);
}
.links-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #80c7ff;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}
.links-section ul {
  list-style-type: none;
  padding-left: 0;
}
.links-section li {
  margin-bottom: 0.75rem;
}
.links-section a {
  color: #80c7ff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.links-section a:hover {
  color: #a5d4ff;
  text-decoration: underline;
}
.news-section h2 {
  font-size: 2rem;
  color: #80c7ff;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.news-section p {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}
.dialogue-table th, .dialogue-table td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
  background-color: #181616;
}
.dialogue-table th {
  background-color: #181616;
}
ul {
  margin: 0;
  padding-left: 1.2rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  min-height: 300px;
  padding: 2rem 0;
}

.badge-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.badge-card:hover {
  transform: translateY(-5px);
}

.badge-card img {
  max-width: 200px;
  height: auto;
  margin-bottom: 0.75rem;
}

.update-card {
  background-color: #1d1d1d;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  color: #e6e6e6;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.update-card h2 {
  color: #80c7ff;
  border-bottom: 2px solid #80c7ff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.update-card h2.update-hotfix {
  color: #e26737;
  border-bottom: 2px solid #80c7ff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.update-card h3 {
  color: #ffffff;
  margin-top: 1.5rem;
}

.update-card ul {
  padding-left: 1.5rem;
  list-style-type: square;
}

.inline-codeblock {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.95em;
  background-color: #2d2d2d;
  color: #ffd86b;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

a {
  color: #80c7ff;
  text-decoration: none;
}
footer {
  text-align: center;
  padding: 1rem;
  background-color: #1c1c1c;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #888;
  margin-top: auto;
}
@media (max-width: 900px) {
  .articles-grid {
      grid-template-columns: repeat(2, 1fr);
 }
}
@media (max-width: 768px) {
  .location-content {
      flex-direction: column;
 }
  .location-content ol {
      margin-left: 0;
 }
  .location-content img, .location-content video {
      max-width: 100%;
 }
}
@media (max-width: 600px) {
  .articles-grid {
      grid-template-columns: 1fr;
 }
}
