/* === BASE === */
body,
input,
select,
textarea {
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15pt;
  font-weight: 300 !important;
  letter-spacing: -0.025em;
  line-height: 1.75em;
}

body {
  background: #fff;
  overflow: hidden;
}

a {
  transition: border-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: inherit;
  text-decoration: none;
}

a:hover {
  border-color: transparent;
}

/* === WRAPPER === */
#wrapper {
  animation: wrapper 3s forwards;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

@keyframes wrapper {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* === FONDO ANIMADO === */
#bg {
  animation: bg 60s linear infinite;
  background: #e73c2c url("../images/bg.jpg") bottom left repeat-x;
  background-size: 1500px auto;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 4500px;
}

@keyframes bg {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-1500px, 0, 0);
  }
}

/* === OVERLAY === */
#overlay {
  animation: overlay 1.5s 1.5s forwards;
  background-attachment: fixed, fixed;
  background-image: url("../images/overlay-pattern.png"), url("../images/overlay.svg");
  background-position: top left, center center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

@keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.6;
  }
}

/* === MAIN === */
#main {
  height: 100%;
  left: 0;
  position: fixed;
  text-align: center;
  top: 0;
  width: 100%;
}

#main:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  width: 1px;
}

/* === HEADER === */
#header {
  animation: header 1s 2.25s forwards;
  display: inline-block;
  opacity: 0;
  position: relative;
  top: -1em;
  vertical-align: middle;
  width: 90%;
}

@keyframes header {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }

  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* === CONTENEDOR DE JUEGOS === */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.game-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 520px;
  height: 400px; /* Altura fija */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.game-logo img {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === BOTONES DE TIENDA === */
.store-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.store_link {
  display: block;
  height: 56px;
  width: auto;
  border: 0;
  transition: transform 0.2s ease;
}

.store_link:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
#footer {
  background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 75%);
  bottom: 0;
  cursor: default;
  height: 6em;
  left: 0;
  line-height: 8em;
  position: absolute;
  text-align: center;
  width: 100%;
}

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-center,
.footer-right {
  display: inline-block;
}

.footer-center p {
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .games {
    grid-template-columns: 1fr;
  }

  .footer-right {
    display: none;
  }

  .footer-center {
    text-align: center;
    width: 100%;
  }

  .game-card {
    height: 350px;
  }

  .game-card .game-logo img {
    max-width: 300px;
  }
}
