/* ===========================
   Fondo Nether Portal pixelado
   =========================== */
body {
  margin: 0;
  padding: 0;
  background-image: url("img/nether.png");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: start;
}

/* ===========================
   Plataforma central
   =========================== */
.plataforma {
  width: 70%;
  max-width: 800px;
  margin-top: 2em;
  background-color: rgba(0, 0, 0, 0.95);
  border: 3px solid #f04;
  min-height: 100vh;
  overflow-y: auto;
  padding: 2em;
  box-shadow: 0 0 20px #f04;
}

/* ===========================
   Encabezado
   =========================== */
header {
  padding: 2em 0;
  border-bottom: 2px solid #f04;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  color: #f04;
  font-family: 'Press Start 2P', monospace;
}

/* ===========================
   Navegación con botones pixel art
   =========================== */
.menu-pixel {
  text-align: center;
  margin: 1em 0;
}

.nav-btn {
  width: 64px;
  height: auto;
  margin: 0 10px;
  image-rendering: pixelated;
  border: none;
  outline: none;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.2);
}

/* ===========================
   Contenido principal
   =========================== */
main {
  padding: 2em 0;
}

main h2 {
  color: #f04;
  margin-bottom: 0.5em;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
}

main p {
  max-width: 600px;
  margin: 1em auto;
  line-height: 1.6;
  text-align: justify;
  font-size: 0.8em;
  color: #f8f8f8;
  font-family: 'Press Start 2P', monospace;
}

/* Imagen inline */
.inline-img {
  display: block;
  margin: 1em auto;
  max-width: 300px;
  border: 2px solid #f04;
}

/* ===========================
   Sección PENSAMIENTOS
   =========================== */
#pensamientos {
  max-width: 700px;
  margin: 2em auto;
  text-align: left;
}

#pensamientos h2 {
  color: #f04;
  margin-bottom: 1em;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
}

.tabla-container {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #f04;
  background-color: #1a1a1a;
}

#tabla-pensamientos {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8em;
  color: #f8f8f8;
}

.separador {
  border: none;
  border-top: 2px solid #f04;
  margin: 2em auto;
  width: 60%;
}

#tabla-pensamientos th, #tabla-pensamientos td {
  border-bottom: 1px solid #333;
  padding: 0.5em;
}

#tabla-pensamientos th {
  background-color: #222;
  color: #f04;
  position: sticky;
  top: 0;
}

/* ===========================
   Pie de página
   =========================== */
footer {
  padding: 1em;
  border-top: 1px solid #333;
  font-size: 0.7em;
  color: #888;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
}

/* ===========================
   Sección de Arte
   =========================== */
.arte-item {
  background-color: #1a1a1a;
  border: 2px solid #f04;
  padding: 1em;
  margin: 1.5em auto;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 10px #f04;
}

.arte-item h3 {
  color: #f04;
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 0.5em;
}

.arte-img {
  display: block;
  margin: 0 auto;
  max-width: 250px;
  border: 2px solid #f04;
  margin-bottom: 1em;
}

/* ===========================
   Carrusel de canciones
   =========================== */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1em;
  padding: 1em;
  scroll-snap-type: x mandatory;
}

.cancion {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: center;
  background-color: #1a1a1a;
  border: 2px solid #f04;
  padding: 1em;
  text-align: center;
  box-shadow: 0 0 10px #f04;
}

.cancion img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 0.5em;
}

.cancion p {
  color: #f8f8f8;
  font-size: 0.7em;
  font-family: 'Press Start 2P', monospace;
}

/* ===========================
   Spotify centrado
   =========================== */
.spotify-container {
 display: flex;
 justify-content: center;
 
 height: 10vh
 
}

/* Scroll estilo retro/Minecraft */
.scroll-container::-webkit-scrollbar {
  height: 12px;                  /* grosor horizontal */
}

.scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;            /* fondo oscuro */
  border: 2px solid #f04;         /* borde rojo retro */
  box-shadow: inset 0 0 5px #000; /* efecto profundo */
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #f04;               /* color rojo retro */
  border: 2px solid #000;         /* borde negro pixelado */
  box-shadow: inset 0 0 5px #222; /* relieve */
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #ff4040;            /* rojo más brillante al pasar el mouse */
}

/* ===========================
   Post estilo red social
   =========================== */
.game-post {
  background-color: #1a1a1a;
  border: 2px solid #f04;
  margin: 2em auto;
  padding: 1em;
  max-width: 700px;
  box-shadow: 0 0 10px #f04;
}

/* Carrusel de imágenes */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 1em;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-img {
  min-width: 100%;
  image-rendering: pixelated;
  border: 2px solid #f04;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1a1a;
  color: #f04;
  font-family: 'Press Start 2P', monospace;
  font-size: 1em;
  border: 2px solid #f04;
  padding: 0.5em;
  cursor: pointer;
  z-index: 1;
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.post-text h3 {
  color: #f04;
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 0.5em;
}

.post-text p {
  color: #f8f8f8;
  font-size: 0.8em;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.4;
}

/* ===========================
   Juegos favoritos
   =========================== */
.fav-games {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin: 1em auto;
}

.fav-game {
  text-align: center;
  background-color: #1a1a1a;
  border: 2px solid #f04;
  padding: 1em;
  width: 150px;
  box-shadow: 0 0 10px #f04;
}

.fav-game img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 0.5em;
}

.fav-game p {
  color: #f8f8f8;
  font-size: 0.7em;
  font-family: 'Press Start 2P', monospace;
}

/* ===========================
   Scroll personalizado retro
   =========================== */
.scroll-container::-webkit-scrollbar {
  height: 12px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border: 2px solid #f04;
  box-shadow: inset 0 0 5px #000;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #f04;
  border: 2px solid #000;
  box-shadow: inset 0 0 5px #222;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #ff4040;
}