@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Pixelify+Sans:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+20&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* RESPONSIVO MENU */
@media (max-width: 480px) {
  ul.menu li a {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* MENU */
ul.menu {
  list-style: none;
  display: flex;
  justify-content: center;
}

ul.menu li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.1s;
}

ul.menu li a:hover {
  background-color: #555;
}

/* GAME LIST */
#gamelistroof {
  width: 100%; /* corrigido (evita overflow lateral) */
  padding: 2rem 0;
}

ul.gamelist {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  gap: 20px;
}

ul.gamelist li {
  flex: 1 1 200px;
  max-width: 250px;
  text-align: center;
}

ul.gamelist li a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  min-height: 150px; /* corrigido (não quebra conteúdo) */
  padding: 12px;

  color: white;
  background-color: #112299;
  border: 4px solid #1188cc;
  text-decoration: none;
  border-radius: 10px;

  transition: all 0.2s ease;
}

/* IMAGEM (corrigida, sem conflito) */
ul.gamelist li img {
  max-width: 100%;
  max-height: 80px;
  height: auto;
  width: auto;
  display: block;
  margin: 10px 0;
}

/* HOVER */
ul.gamelist li a:hover {
  background-color: #33ddee;
  border-color: #ff44ee;
  color: #000011;
  transform: scale(1.05);
}

/* HEADER */
#sharks {
  font-family: 'Jersey 20';
  width: 100%;
  color: #EECC44;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #ff44ee;
  letter-spacing: 1px;
}

/* BODY */
body {
  background: linear-gradient(to bottom right, #4fb3ff, #003366);
  font-family: 'Pixelify Sans', sans-serif;
  background-size: cover;
  background-attachment: fixed;
}

/* BUBBLES BACKGROUND */
#background-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bubble {
  position: absolute;
  bottom: -160px;
  width: 50px;
  opacity: 0.8;

  --duration: 12s;
  --delay: 0s;

  animation: rise var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
  pointer-events: none;
}

.bubble img {
  display: block;
  width: var(--size, 40px);
  transform-origin: center;

  --drift: 4s;

  animation: drift var(--drift) ease-in-out infinite;
  animation-delay: var(--delay);

  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  opacity: 0.9;
}

/* ANIMAÇÕES */
@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-120vh) scale(0.8);
    opacity: 0;
  }
}

@keyframes drift {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-12px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(12px); }
  100% { transform: translateX(0); }
}