/* Base styling */
body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: #f4f4f4;
  background: #0a0a0a;
  overflow-x: hidden;
}

/* Pixel art rendering */
img, canvas {
    image-rendering: optimizeSpeed;
}


/* Parallax container */
#parallax {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

/* Each parallax layer */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: contain;
  image-rendering: optimizeSpeed;            
}

/* Layer images (replace with your own) */
#layer-back {
  background-image: url('images/website_rushaug_parallax_back.png');
}

#layer-mid {
  background-image: url('images/website_rushaug_parallax_mid.png');
}

#layer-front {
  background-image: url('images/website_rushaug_parallax_front.png');
}

/* Parallax background */
/*#parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100vh;
  background: url("images/bg-parallax.png") repeat-x;
  background-size: cover;
  z-index: -10;
  animation: scrollBackground 3s linear infinite;
}

*--->

/* Horizontal parallax animation */
@keyframes scrollBackground {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header and logo */
.site-header {
  text-align: center;
  padding: 40px 0 20px;
}

.game-logo {
  width: auto;
  max-width: 80%;
  height: auto;
  animation: fadeInDown 1.5s ease-out;
}

/* Section styling */
main {
  text-align: center;
  padding: 2rem 1rem;
}

section {
  margin: 3rem auto;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

h1, h2 {
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Gallery Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 800px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 2;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Keyframes */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .game-logo { width: 250px; }
  section { margin: 2rem 1rem; }
}
