body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('2025-06-19_18.20.45.png') no-repeat center center fixed;
  background-size: cover;
  color: #eee;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.6));
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  box-sizing: border-box;
}

.topbar-left {
  font-size: 1.2em;
  font-weight: bold;
}

.topbar-right {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-right a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
}

.topbar-right input[type="text"] {
  padding: 5px;
  border-radius: 0;
  border: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #eee;
}

.content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding-top: 60px;
  box-sizing: border-box;
  text-align: center;
}

.content-panel {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.6));
  padding: 30px;
  border-radius: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

h1, h2 {
  margin: 10px 0;
  color: #eee;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  vertical-align: middle;
}

.copy-button img {
  width: 20px;
  filter: brightness(0) invert(1);
}

.discord img {
  width: 64px;
  filter: brightness(0) invert(1);
  margin-top: 10px;
}

.copy-toast {
  opacity: 0;
  transition: opacity 0.5s;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 0;
  display: inline-block;
}

.copy-toast.show {
  opacity: 1;
}

/* Article Grid */
.article-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-block {
  display: flex;
  flex-direction: row;
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
  width: 100%;
  max-width: 100%;
}

.article-block:hover {
  background-color: #2a2a2a;
}

.article-block img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: #2b2b2b;
  padding: 0.5rem;
  flex-shrink: 0;
}

.article-block a {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.article-block h2 {
  margin: 0.5rem 0 0 0.5rem;
  font-size: 1.25rem;
  text-align: left;
}

.article-block h3 {
  margin: 0 0 0 0.5rem;
  font-size: 1rem;
  color: #ccc;
  text-align: left;
}

.article-block p {
  margin: 0.5rem 0 0 0.5rem;
  color: #aaa;
  text-align: left;
}

.article-block > a > .article-info {
  padding: 1rem 1rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

/* Tooltip logic for missing articles */
.tooltip-host {
  position: relative;
  pointer-events: none; /* Makes the block not clickable */
}

.tooltip-host .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 200px;
  background-color: rgba(20, 20, 20, 0.95);
  color: #eee;
  text-align: center;
  border-radius: 0;
  padding: 8px;
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s;
  font-size: 0.9rem;
  pointer-events: none;
}

.tooltip-host:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}


@media (max-width: 800px) {
  .topbar-right {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 50px;
    right: 10px;
    padding: 10px;
    border-radius: 0;
  }

  .topbar-right.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .article-block {
    flex-direction: column;
    align-items: center;
  }

  .article-block img {
    width: 100px;
    height: 100px;
  }

  .article-block > a > .article-info {
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  /* Container for the grids */
#category-grid-top, 
#category-grid-bottom {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

/* Category button styling */
.category-btn {
  background-color: #3c3c3c;
  border: 2px solid #000;
  padding: 6px;
  cursor: pointer;
  image-rendering: pixelated;
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.category-btn img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

/* Hover effect */
.category-btn:hover {
  transform: scale(1.1);
  border-color: #fff176; /* Minecraft highlight yellow */
  background-color: #5c5c5c;
}

/* Search bar Minecraft-like */
#search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  font-family: "Minecraftia", monospace, sans-serif;
  border: 2px solid #000;
  background-color: #3c3c3c;
  color: #fff;
  box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #7b7b7b;
  outline: none;
}

#search-input::placeholder {
  color: #bbb;
  font-style: italic;
}

/* Add Minecraft font if available */
@font-face {
  font-family: 'Minecraftia';
  src: url('fonts/Minecraftia.ttf') format('truetype');
}

}


.download-intro {
  color: #ddd;
  margin: 0 0 1rem;
}

.download-status {
  margin: 1rem 0;
  color: #f3e7b0;
  font-weight: 600;
}

.download-status[data-kind="error"] {
  color: #ffb7a8;
}

.download-status[data-kind="empty"] {
  color: #d4d4d4;
}

.download-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #444;
}

.download-table th,
.download-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
  text-align: left;
  white-space: nowrap;
}

.download-table th {
  background: rgba(60, 60, 60, 0.85);
  color: #fff;
}

.download-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.07);
}

.download-name {
  font-family: "Minecraftia", Consolas, monospace;
  white-space: normal;
  overflow-wrap: anywhere;
}

.download-link {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 2px solid #111;
  background: #3c3c3c;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 2px 2px 0 #6d6d6d, inset -2px -2px 0 #111;
}

.download-link:hover {
  background: #5c5c5c;
}

.download-updated {
  margin: 0.75rem 0 0;
  color: #bbb;
  font-size: 0.9rem;
}

.download-sort {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}

.download-sort:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.download-sort-mark {
  margin-left: 0.25rem;
  color: inherit;
  opacity: 0.9;
}
