/*---------------------------------------------General Styles---------------------------------------------*/
html, body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  object-fit: cover;
  overflow: hidden;
  overscroll-behavior: none;
}

/*-------------------------------------------Background Image---------------------------------------------*/
#bg {
  width: 100%;
  height: auto;
}

/*------------------------------------------------Title --------------------------------------------------*/
.title {
  top: 14%;
}

.title img {
  width: 87%;
}

/*-----------------------------------------------Button---------------------------------------------------*/
.bbtn {
  top: 25.5%;
}

.bbtn img {
  width: 80%;
  animation: pulse 0.9s infinite linear;
}

/*------------------------------------------------Tiles---------------------------------------------------*/
.tiles {
  top: 36%;
}

/*------------------------------------------------Tile----------------------------------------------------*/
.tiles-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, clamp(115px, 24vw, 250px));
  column-gap: clamp(8px, 3vw, 24px);
  justify-content: center;
}

.tile {
  height: auto;
  width: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  transition: all 0.5s;
  animation-name: tilePulse;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  cursor: pointer;
}

#tile1 {
  animation-delay: 0s;
}

#tile2 {
  animation-delay: 0.5s;
}

#tile3 {
  animation-delay: 1s;
}

#tile4 {
  animation-delay: 1.5s;
}

.tile .tile__face--front {
  height: auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-image: url("../image/scene2/elements/tile.avif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.tile__text {
  opacity: 0;
  width: 100%;
  margin-top: -0.5rem;
  text-align: center;
}

.tile__text img {
  width: 100%;
  height: auto;
}

.tile__face {
  width: 100%;
  height: 100%;
}

/*-----------------------------------------------Animation------------------------------------------------*/
@keyframes tilePulse {
  0% {
    transform: scale(1);
  }

  8% {
    transform: scale(1.08) translateY(-4px);
  }

  16% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

/*----------------------------------------Multi Device Screen Size----------------------------------------*/
@media (min-width: 992px) {
  #bg {
    height: 100vh;
  }
}
