@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
  font-family: 'VT323', monospace;
  margin: 0;
  padding: 0;
  background-color: #0b0b0c;
  color: #b083ff;
  text-align: center;
}

.void {
  color: #ff7a7a;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  font-size: 3rem;
  animation: flicker 3s infinite alternate;
}

.subtitle {
  font-size: 1.2rem;
  color: #c9b6ff;
  margin-bottom: 40px;
}

.warning {
  color: #ff7a7a;
}

.button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button.sfw {
  color: #b083ff;
  border: 2px solid #b083ff;
  background-color: #0b0b0c;
}

.button.nsfw {
  color: #ff7a7a;
  border: 2px solid #ff7a7a;
  background-color: #0b0b0c;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px currentColor;
}

.portal-buttons, .categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.nsfw-warning {
  color: #ff7a7a;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  margin-top: 10px;
}

footer {
  margin-top: 40px;
  font-size: 1rem;
  color: #8c6aff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #ff7a7a;
}

@keyframes flicker {
  from { text-shadow: 0 0 5px #b083ff, 0 0 10px #b083ff; }
  to   { text-shadow: 0 0 15px #ff7a7a, 0 0 30px #b083ff; }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gallery img {
  width: 280px;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}
.categories a {
  display: inline-block;
  text-align: center;
  margin: 15px;
  text-decoration: none;
  color: inherit;
}

.category-img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .category-img {
    width: 120px;
    height: 120px;
  }
}
/* Startseiten-spezifischer Hintergrund */
body.portal-page {
  background: linear-gradient(135deg, #0b0b0c, #1a0a1f);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glitch-Animation für Startseiten-Titel */
.portal-title {
  font-size: 4rem;
  animation: flicker 3s infinite alternate, glitch 1s infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #ff7a7a; }
  20% { text-shadow: -2px 0 #b083ff; }
  40% { text-shadow: 2px 0 #ff7a7a; }
  60% { text-shadow: -2px 0 #b083ff; }
  80% { text-shadow: 2px 0 #ff7a7a; }
  100% { text-shadow: 0 0 #b083ff; }
}

/* Partikel-Hintergrund */
#particleCanvas {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
}
