* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik";
}

img {
  width: 100%;
  display: block;
}

body {
  width: 100%;
  height: 100vh;
  background-image: url(./melbet.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding-top: 40px;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

h1 {
  font-size: 74px;
  font-weight: 400;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
  text-align: center;
}

.cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  flex-wrap: nowrap;
}

.card img {
  max-width: 300px;
  transition: transform 0.3s ease;
  will-change: transform;
  cursor: pointer;
}

.card:hover img {
  transform: scale(1.05);
}

.footer__container {
  display: flex;
  justify-content: center;
}

.footer {
  width: 100%;
  max-width: 730px;
  height: auto;
}

.cards-mobile {
  display: none;
}

.footer-mobile {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* MEDIA */
@media (max-height: 700px) {
  .logo img {
    max-width: 300px;
  }
  h1 {
    font-size: clamp(1.5rem, 6vw, 3rem);
  }
  .cards {
    gap: 15px;
  }
  .card img {
    max-width: 150px;
  }
}

@media (max-height: 500px) {
  .hero {
    padding: 10px;
  }
  .logo {
    margin-top: 10px;
  }
  .cards {
    gap: 10px;
  }
  .card img {
    max-width: 100px;
  }
  .footer__container img {
    max-width: 500px;
  }
}

@media (max-width: 1500px) {
  .cards {
    padding: 0 30px;
    gap: 25px;
  }
}

@media (max-width: 1000px) {
  .card img {
    max-width: 270px;
  }
  h1 {
    font-size: 60px;
    margin-bottom: 5%;
  }
  .logo img {
    max-width: 290px;
    margin-bottom: 4%;
  }

  .detail {
    padding: 0 50px;
  }

  .cards {
    display: none;
  }
  .cards-mobile {
    display: block;
  }

  .cards-mobile div {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  body {
    background-image: url(./bg-mobile.png);
  }

  .footer-mobile {
    display: block;
    width: 65%;
    max-width: 311px;
    height: auto;
    padding: 0 30px;
  }

  .footer {
    display: none;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 40px;
    max-width: 287px;
    text-align: center;
    margin: 5% auto;
  }

  .logo {
    padding: 0 30px;
  }
  .logo img {
    max-width: 200px;
  }

  .card-mobile {
    max-width: 200px;
  }
}
