@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --background-color: #000;
  --white-color: #fff;
  --h1-mobile-size: 36px;
  --h1-desktop-size: 76px;
  --h2-mobile-size: 18px;
  --h2-desktop-size: 48px;
  --text-size: 14px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Mobile first approach*/
.text {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}

body {
  background-color: var(--background-color);
  font-family: "Roboto", serif;
  padding: 0 24px;
  margin: auto;
  max-width: 1440px;
}

h1 {
  font-size: var(--h1-mobile-size);
  color: var(--white-color);
  margin-top: 16px;
}

h2,
h3 {
  font-size: var(--h2-mobile-size);
  color: var(--white-color);
  margin-bottom: 16px;
}

.no-max-body-width{
max-width: none;
}

.play-game-container {
  height: 50vh;
  margin: 0 auto;
  text-align: center;
  position: relative;
  background-image: url("assets/Planet.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.25s ease;
}

.play-game-container.game-active {
  height: 100vh;
  width: 100vw;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#planet-ship {
  width: 100%;
  height: 100%;
}

.play-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-button {
  background-color: var(--background-color);
  width: 200px;
  color: var(--white-color);
  padding: 16px 24px;
  border: 6px double var(--white-color);
  border-radius: 16px;
  font-size: 28px;
  cursor: pointer;
  animation: pulse 2s infinite;
  transform-origin: center;
}

.play-button:hover {
  text-decoration: underline var(--white-color);
  animation-play-state: paused;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

p {
  color: var(--white-color);
  font-size: var(--text-size);
  text-align: center;
}

.available {
  margin: 32px;
}

.svg-wrapper {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.store-link {
  display: block;
  line-height: 0;
}

.store-link--apple {
  width: 150px;
}

.store-link--google,
.store-link--amazon {
  width: 164px;
  border: 1px solid #a6a6a6;
  box-sizing: border-box;
  overflow: hidden;
}

.store-link--google, .store-link--apple {
  border-radius: 7px;
}

.store-link--amazon {
  border-radius: 10px;
}

.store-link svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 40px;
}
footer {
  padding: 24px 0;
}

.go-to-web {
  position: absolute;
  top: 30%;
  left: 0;
  color: var(--white-color);
  background-color: var(--background-color);
  height: auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--white-color);
  border-radius: 0px 16px 16px 0px;
  font-size: 16px;
  cursor: pointer;
  z-index: 600;
  margin: 32px auto;
}

.go-to-web:hover {
text-decoration: underline;
}

.close-btn {
  margin-right: 8px;
}

  @media (min-width: 992px) {
  /* rules for displays that are above 992px */

  h1 {
  font-size: var(--h1-desktop-size);
  }

  h2 {
  font-size: var(--h2-desktop-size);
  }

  .available{
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
  }

  .svg-wrapper{
    flex-wrap: nowrap;
  }

  h3{
    margin-bottom: 0;
  }
}

@media screen and (max-width: 1024px) and (orientation: portrait) 
and (pointer: coarse) and (hover: none) {
  
  .play-game-container.game-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }

  .play-game-container.game-active .iframe-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100dvh; 
    height: 100dvw; 
    transform: translate(-50%, -50%) rotate(90deg);
    
    padding: 16px;
  }

  .game-iframe {
    width: 100%;
    height: 100%;
  }

}