body {
  background-color: #1c1c1c;
  color: #f0f0f0;
  font-family: 'Press Start 2P', cursive;

  background-image: url('/static/images/background.png');
  background-repeat: repeat;
  background-size: auto;
  image-rendering: pixelated;
}

a,
a:hover {
  color: #ffcc00;
  text-decoration: none;
}

.navbar {
  background-color: #1a1a1a;
  border-bottom: 2px solid #ffcc00;
}

.navbar a.nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.navbar a.nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #ffcc00;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.navbar .nav-link {
  font-size: 14px;
  padding: 0.5rem 1rem;
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 16px;
  }

  .navbar .nav-link {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
  }
}


.hero-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #222;
  border: 2px solid #444;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 1.5rem;
  color: #ffcc00;
}

.navbar-brand {
  font-size: 1.5rem;
}

.hero-section p {
  font-size: 0.75rem;
  color: #ccc;
}

.btn-pixel {
  background-color: #ffcc00;
  border: 2px solid #fff;
  color: #000;
  font-size: 12px;
  padding: 10px 20px;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px #000;
}

.gif-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: bold;
}


.btn-pixel:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 0 3px #ffcc00;
}

.pixel-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.pixel-preview img {
  image-rendering: pixelated;
  width: 100%;
  border: 2px solid #ffcc00;
  background-color: #111;
  padding: 4px;
  border-radius: 4px;
}

.about-section {
  background-color: #1c1c1c;
  font-family: 'Press Start 2P', monospace;
  color: #f0f0f0;
  border-top: 2px solid #ff006e;
  border-bottom: 2px solid #ff006e;
}

.about-section a.about-link {
  color: #ff006e;
  text-decoration: none;
  border-bottom: 1px dashed #ff006e;
}

.about-section a.about-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

.rotated {
  transform: rotate(90deg);
}

.pixel-banner {
  max-width: 100%;
  image-rendering: pixelated;
  border: 2px solid #ff006e;
  border-radius: 4px;
}

.pixel-art-card {
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid black;
  border-radius: 4px;
}

.pixel-art-image {
  height: 200px;
  object-fit: contain;
  image-rendering: pixelated;
  background-color: rgba(0, 0, 0, 0.05);
  outline: 2px solid black;
  border-radius: 8px;
  background: transparent;
  border: 2px solid black;
  padding: 5px;
  aspect-ratio: 1 / 1;
}

.card_text {
  color: #f0f0f0;
}

.lb-overlay {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

a[data-lightbox] {
  outline: none;
}

.modal-overlay {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-content {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid white;
  background: transparent;
}

.modal-caption {
  color: #f0f0f0;
  margin-top: 15px;
  font-size: 1rem;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;

}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 10001;
  transition: 0.2s;
}

.modal-arrow:hover {
  color: #ff006e;
}

.modal-arrow-left {
  left: 30px;
}

.modal-arrow-right {
  right: 30px;
}