html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f5f5f5;
  background:
    linear-gradient(to bottom, #1f1f1f7c 0%, #1f1f1fe5 40%, #1F1F1F 80%),
    url('background.png') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}

main {
  text-align: center;
  margin-top: 12rem;
  flex: 1;
}

.logo-img2 {
  height: 80px;
  width: auto;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .logo-img {
    height: 32px;
  }
}

.welcome p {
  color: #ffffff;
  font-size: 1.5rem;
}

.decks-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.decks-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 4px solid #E4700F;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  text-decoration: none;
  
  width: clamp(50px, 40vw, 150px);
  height: 8px;

  color: #000000;
  background-color: #E4700F;
  font-weight: bold;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  transition: transform 0.2s, background-color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.decks-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  main {
    margin-top: 6rem;
  }

  .logo-img2 {
    height: 60px;
  }

  .welcome p {
    font-size: 1.2rem;
  }

  .decks-buttons {
    gap: 0.8rem;
    flex-direction: column;
  }
}

/* ==== Móvil pequeño (max-width: 480px) ==== */
@media (max-width: 480px) {
  main {
    margin-top: 4rem;
  }

  .logo-img2 {
    height: 50px;
  }

  .welcome p {
    font-size: 1rem;
  }

  .decks-buttons {
    gap: 0.6rem;
    flex-direction: column;
  }
}

footer {
  width: 100%;
  margin-top: 4rem;
  padding: 1.5rem 0;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  color: #a0a0a0;
  border-top: 1px solid #333;
}

footer a {
  color: #E4700F;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}