@font-face {
  font-family: 'NF Pixels';
  src: url('../fonts/NFPixels-Regular.eot');
  src: url('../fonts/NFPixels-Regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NFPixels-Regular.woff2') format('woff2'),
       url('../fonts/NFPixels-Regular.woff') format('woff'),
       url('../fonts/NFPixels-Regular.ttf') format('truetype'),
       url('../fonts/NFPixels-Regular.svg#NFPixels-Regular') format('svg');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: 'NF Pixels', sans-serif;
  font-weight: 400;
  background-color: #121212;
  color: #d0d0d0;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1b1b1b;
  padding: 20px;
  text-align: center;
  border-bottom: 5px solid #2a2a2a;
}

header .logo {
  font-size: 2.5rem;
  color: #00c261;
  letter-spacing: 4px;
  margin-bottom: 10px;
  font-weight: 400;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 0;
  margin-bottom: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #d0d0d0;
  font-size: 1.2rem;
  font-weight: 400;
  border: 2px solid transparent;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

.nav-links li a:hover {
  color: #00c261;
  border: 2px solid #2abb72;
}

main {
  padding: 40px 5vw;
}

.mod-header {
  text-align: center;
  margin-bottom: 40px;
}

.mod-header h1 {
  color: #00c261;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.mod-banner {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 5px solid #303030;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mod-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.mod-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
  margin-bottom: 50px;
}

.mod-link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 50px;
  font-size: 1.1rem;
  font-family: 'NF Pixels', sans-serif;
  color: #d0d0d0;
  text-decoration: none;
  border: 2px solid #2dca7c;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.mod-link-btn:hover {
  background-color: #2dca7c;
  color: #121212;
}



#donate-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 164px;
  height: 54px;
  font-size: 1.1rem;
  font-family: 'NF Pixels', sans-serif;
  color: #d0d0d0;
  text-decoration: none;
  border: 2px solid #2dca7c;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

#donate-btn:hover {
  background-color: #2dca7c;
  color: #121212;
}


#donate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#donate-popup {
  background: #1f1f1f;
  padding: 26px 22px;
  border: 5px solid #303030;
  text-align: center;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

#donate-popup h2 {
  color: #00c261;
  font-size: 1.6rem;
  margin: 6px 0 22px;
  font-weight: 400;
}

.donate-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.donate-option {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 48px;
  font-size: 1.05rem;
  font-family: 'NF Pixels', sans-serif;
  color: #d0d0d0;
  text-decoration: none;
  border: 2px solid #2dca7c;
  transition: all 0.18s ease;
  background: transparent;
}

.donate-option:hover {
  background-color: #2dca7c;
  color: #121212;
  border-color: #2dca7c;
}

.close-donate-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 2px solid #2dca7c;
  color: #d0d0d0;
  font-size: 1rem;
  font-family: 'NF Pixels', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}

.close-donate-btn:hover {
  background-color: #2dca7c;
  color: #121212;
}

#donate-overlay[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
#donate-overlay[aria-hidden="false"] { visibility: visible; pointer-events: auto; }



.mod-description {
  text-align: center;
  font-size: 1.1rem;
}

.mod-description h1, .mod-description h2, .mod-description h3 {
  color: #00c261;
}

.mod-description p {
  color: #b0b0b0;
  font-weight: 400;
}

.mod-description a {
  color: #33ff99;
  text-decoration: none;
}

.mod-description a:hover {
  color: #66ffaa;
}

.mod-desc-container {
  display: inline-block;
  width: 900px;
  max-width: 90vw;
  margin: 0 auto 30px;
  padding: 20px;
  border: 5px solid #303030;
  background-color: #1f1f1f;
  box-sizing: border-box;
  text-align: left;
}

.mod-desc-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.mod-desc-container a {
  color: #33aaff;
}

.mod-desc-container a:hover {
  color: #6dceff;
  text-decoration: underline;
}

.mod-desc-container strong,
.mod-desc-container b {
  color: #83cf83;
}

.mod-desc-container pre {
  background-color: #1a1a1a;
  color: #d0d0d0;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  margin: 12px 0;
  border: 2px solid #303030;
}

.mod-desc-container code {
  background-color: #2a2a2a;
  color: #83cf83;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  width: 720px;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 20px auto;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



.mods-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.mod-card {
  width: 100%;
  max-width: 290px;
  background-color: #1f1f1f;
  border: 5px solid #303030;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  padding-bottom: 15px;
}

.mod-card:hover {
  transform: translateY(-15px);
  border-color: rgba(51,255,153,0.5);
}

.mod-card-banner {
  width: 200px;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  border: 5px solid #303030;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.mod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.mod-card-banner:hover {
  transform: scale(1.05);
  border-color: rgba(51,255,153,0.5);
}

.mod-card-banner:hover .mod-img {
  transform: scale(1.05);
}

.mod-card h3 {
  padding: 10px 5px 5px;
  font-size: 1.25rem;
  color: #00c261;
  text-align: center;
  font-weight: 400;
  margin-bottom: 0;
}

.mod-card p {
  padding: 0 5px 5px;
  font-size: 1.1rem;
  color: #b0b0b0;
  text-align: center;
  font-weight: 400;
}

.mod-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
  flex-wrap: nowrap;
}

.mod-link-bttn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 40px;
  font-size: 1rem;
  color: #d0d0d0;
  text-decoration: none;
  border: 2px solid #2dca7c;
  transition: all 0.3s ease;
}

.mod-link-bttn:hover {
  background-color: #2dca7c;
  color: #121212;
  border-color: #2dca7c;
}


footer {
  background-color: #1b1b1b;
  padding: 10px;
  text-align: center;
  color: #888;
  border-top: 5px solid #2a2a2a;
}

footer a {
  color: #33ff99;
  text-decoration: none;
}

footer a:hover {
  color: #66ffaa;
}



@media (max-width: 768px) {
  header .logo {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav-links li a {
    font-size: 1.1rem;
    padding: 4px 8px;
  }
  
  .mod-banner {
    width: 150px;
    height: 150px;
  }
  .mod-link-btn {
    width: 140px;
    height: 45px;
    font-size: 1rem;
  }

  .mods-container {
    flex-direction: column;
    gap: 20px;
  }

  .mod-desc-container {
    display: block !important;
    width: auto;
    max-width: 95vw;
    margin: 15px auto 25px;
    padding: 18px;
    box-sizing: border-box;
  }

  .mod-card {
    max-width: 90%;
    margin: 0 auto;
  }

  .mod-card-banner {
    width: 160px;
    height: 160px;
    margin-top: 15px;
  }

  .mod-card h3 {
    font-size: 1.1rem;
  }

  .mod-card p {
    font-size: 0.95rem;
  }

  .mod-link-bttn {
    width: 90px;
    font-size: 0.9rem;
  }

  #donate-btn {
    width: 144px;
    height: 49px;
    font-size: 1rem;
  }
  #donate-popup {
    padding: 18px;
    max-width: 340px;
  }
  .donate-option {
    width: 140px;
    height: 44px;
    font-size: 0.95rem;
  }

  .mod-desc-container {
    max-width: 95vw;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px 10px;
  }

  header .logo {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav-links li a {
    padding: 4px 6px;
  }

  main {
    padding: 25px 4vw;
  }

  .mod-header h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .mods-container {
    gap: 16px;
  }

  .mod-desc-container {
    display: block !important;
    width: auto;
    max-width: 96vw;
    margin: 12px auto 22px;
    padding: 16px;
    box-sizing: border-box;
  }

  .mod-card {
    max-width: 92%;
    padding-bottom: 12px;
  }

  .mod-card-banner {
    width: 140px;
    height: 140px;
    padding: 6px;
    margin-top: 12px;
  }

  .mod-card h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
  }

  .mod-card p {
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0 8px 8px;
  }

  .mod-links {
    gap: 10px;
  }

  .mod-link-bttn {
    width: 88px;
    height: 38px;
    font-size: 0.85rem;
    border-width: 1.5px;
  }

  footer {
    padding: 16px 10px;
    font-size: 0.85rem;
  }

  footer a {
    font-size: 0.9rem;
  }

  #donate-popup {
    max-width: 300px;
    padding: 14px;
  }

  .donate-option {
    width: 130px;
    height: 40px;
    font-size: 0.85rem;
  }

  .close-donate-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}
