html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Permite el scroll vertical */
  overflow-x: hidden; /* Oculta el scroll horizontal innecesario */
  scroll-behavior: smooth; /* Desplazamiento suave */
}

body {
  font-family: 'Kode Mono', monospace;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-color: #000000;
  z-index: 9999;
}

#stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  background-color: #000000;
  overflow: hidden;
  z-index: 0;
}

#content-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 0;
}

header {
  padding-top: 20px;
  text-align: center;
}

h1 {
  font-size: 1.5em;
  margin: 10px 0;
  text-align: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 5px 0;
  user-select: none; /* Evita la selección del texto */
  -webkit-user-select: none; /* Para Safari y versiones antiguas de Chrome */
  -moz-user-select: none; /* Para Firefox */
  -ms-user-select: none; /* Para Internet Explorer/Edge */
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.custom-container {
  max-width: 70vw;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.custom-container h2 {
  font-size: 1.2em;
  margin: 5px 0;
  text-align: center;
}

.social-links, .useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.social-btn, .useful-btn, .game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.social-btn:hover, .useful-btn:hover, .game-btn:hover {
  transform: scale(1.05);
}

.social-btn.twitter {
  background-color: #1da1f2;
}

.social-btn.instagram {
  background-color: #c13584;
}

.useful-btn.main-btn {
  background-color: #28a745;
}

.game-btn {
  border: 2px solid transparent;
  color: rgba(0, 0, 0, 0);
  transition: transform 0.5s ease;
}

.game-btn:hover {
  transform: scale(1.3);
}

.game-btn span {
  position: relative;
  z-index: 2;
}

.game-btn.flappy {
  background: url('/assets/images/ELReoK.png') no-repeat center center;
  background-size: contain;
}

.game-btn.cpool {
  background: url('/assets/images/combopool.png') no-repeat center center;
  background-size: contain;
  image-rendering: pixelated;
}

.game-btn.papas {
  background: url('/assets/images/veremo.png') no-repeat center center;
  background-size: contain;
}

.game-btn.nutsort {
  background: url('/assets/images/nutsort.png') no-repeat center center;
  background-size: contain;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }

  #content-wrapper {
    overflow-y: auto;
  }

  .container-wrapper {
    max-height: none;
    overflow-y: visible;
  }
}