html,
body {
  margin: 0;
  width: 100%;
  background: #000;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
  background-image: url("background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.image-container {
  width: 100%;
  padding: 6vh 30px 2rem;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.image-container img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 48dvh;

  object-fit: contain;
}

.image-container h1 {
  margin: calc(2rem + 1cm) 0 1cm;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.apps-section {
  width: min(100% - 2rem, 900px);
  margin: 0 auto 2rem;
  color: #fff;
  text-align: center;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.all-apps-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.all-apps-link:hover,
.all-apps-link:focus-visible {
  text-decoration: underline;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.65);
}

.app-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-image {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: min(100%, 140px);
  overflow: hidden;
  border-radius: 0.5rem;
}

.app-card-image::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.app-page {
  width: min(100% - 2rem, 900px);
  margin: 0 auto 3rem;
  color: #fff;
}

.app-page a {
  color: #fff;
}

.support-link {
  color: #fff;
  text-decoration: none;
}

.support-link:hover,
.support-link:focus-visible {
  text-decoration: underline;
}

.support-message {
  text-align: center;
}

.app-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.app-page h1,
.app-page h2 {
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.app-page h1 {
  margin: 2rem 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.privacy-page section {
  margin-top: 1.75rem;
}

.privacy-page section h2 {
  margin-bottom: 0.75rem;
  text-align: left;
  font-size: 1.2rem;
}

.privacy-page p,
.privacy-page li {
  line-height: 1.7;
}

.privacy-page a,
.privacy-link {
  color: #fff;
}

.privacy-app-dates {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
}

.privacy-app-dates h2 {
  margin-top: 0;
}

.app-detail {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.app-detail > img,
.app-edition img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.app-detail p,
.app-edition p {
  line-height: 1.7;
}

.store-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.store-links a {
  display: inline-block;
  line-height: 0;
}

.store-links img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

.store-links .google-play-badge {
  width: 135px;
  height: 40px;
  overflow: hidden;
}

.store-links .google-play-badge img {
  width: 155px;
  max-width: none;
  height: 60px;
  transform: translate(-10px, -10px);
}

.app-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.app-edition {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
}

.app-edition img {
  max-width: 180px;
  margin: 0 auto 1rem;
}

.memory-screenshots {
  margin: 2.5rem 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.screenshot-grid figure {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: 24rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: #000;
}

.screenshot-grid figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-screenshots {
  margin: 2rem 0;
}

.app-screenshots h2 {
  margin-bottom: 1.25rem;
}

.app-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-screenshot-grid img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 24rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

@media (min-width: 700px) {
  .apps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-screenshot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .app-detail,
  .app-editions,
  .screenshot-grid,
  .app-screenshot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-detail > img {
    width: min(100%, 220px);
    margin: 0 auto;
  }

}

@media (orientation: landscape) {
  .image-container img {
    max-height: 35dvh;
  }
}

.site-footer {
  width: 100%;
  margin-top: auto;
}

.site-footer p {
font-size: 0.75rem;

color: rgba(255, 255, 255, 0.75);
text-align: center;
}

@media (orientation: landscape) and (max-width: 900px) {
  .image-container {
    padding-top: 5vh;
  }

  .image-container img {
    max-height: 30dvh;
  }
}
