/*
 * Copyright © 2025 Atlantis Interactive. All rights reserved.
 *
 * All rights to the source code and associated files are owned by Atlantis Interactive.
 * Redistribution, modification, or hosting of this file on servers not owned or operated 
 * by Atlantis Interactive is strictly prohibited without prior written consent.
 */

 * {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

.background {
  z-index: -5;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #1b2f50 url(custom/bck-d.webp) no-repeat center top;
  background-size: cover;
}

.glam {
  background: transparent url(custom/glam.webp) no-repeat center center;
  background-size: contain;
}

.container {
  z-index: 5;
}

/* DEBUG
@media (max-aspect-ratio: 7/12) {
  .container { background-color: rgba(255, 0, 0, 0.25) }
}

@media (min-aspect-ratio: 7/12) and (max-aspect-ratio: 5/6) {
  .container { background-color: rgba(0, 255, 0, 0.25) }
}

@media (min-aspect-ratio: 5/6) and (max-aspect-ratio: 1/1) {
  .container { background-color: rgba(0, 0, 255, 0.25) }
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 6/5) {
  .container { background-color: rgba(255, 0, 255, 0.25) }
}

@media (min-aspect-ratio: 6/5) {
  .container { background-color: rgba(255, 255, 0, 0.25) }
}
*/

/* Landscape mode: nearly square */
@media (min-aspect-ratio: 5/6) and (max-aspect-ratio: 6/5) {
  .container {
    width: 100vw;
  }
}

/* Landscape mode: wide */
@media (min-aspect-ratio: 6/5) {
  .container {
    margin: 0 auto;
    width: 120vh;
  }
}

/* Landscape mode: common */
@media (min-aspect-ratio: 5/6) {
  body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0;
    height: 100vh;
    height: 100dvh;
  }

  .column {
    flex: 1;
  }

  .portrait {
    display: none;
  }

  .logo {
    margin-bottom: 8rem;
  }

  .glam {
    flex: 1;
    height: 80vh;
  }
}

/* Portrait mode: single column */
@media (max-aspect-ratio: 5/6) {
  body {
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }

  .column {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .landscape {
    display: none;
  }

  .column:first-child {
    flex: 1;
  }

  .column:last-child {
    flex: 0;
  }

  .logo img {
    max-width: 40vh;
    max-width: 40dvh;
  }

  .glam {
    width: 100%;
    height: 100%;
  }
}

@media (min-aspect-ratio: 7/12) and (max-aspect-ratio: 5/6) {
  div.pad {
    margin: 0 10vw;
  }
}

img {
  width: 100%;
  height: auto;
}

div.pad {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0vw;
  justify-content: center;
  padding: 0vw;
}
div.pad > div {
  background: rgba(46, 46, 46, 0);
}
div.pad img {
  width: 87%;
  height: 87%;
  object-fit: contain;
}
div.pad > div {
  border-radius: 4vmin;
  padding: 0 1.5vmin;
}
