* {
  margin: 0;
  padding: 0;
  font-family: lato, sans-serif;
  box-sizing: border-box;

  --primary-color: #232e92;
  --text-color: var(--primary-color);
}

body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;

  background: #ffffff;
  background-image: url("/imgs/background.png");
  background-size: 100%;
  background-repeat: no-repeat;
  color: var(--text-color);
}

.link-btn {
  color: #02a4fc;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;

  color: white;

  z-index: 10;
}

.btn {
  display: inline-block;
  border: solid 1px currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  font-size: 1em;
  text-decoration: none;

  cursor: pointer;
}

.btn:hover {
  background: rgba(currentColor, 0.2);
}

.btn:active {
  background: rgba(currentColor, 0.5);
}

.btn.play-btn {
  transition: all 0.3s ease;
}

.btn.play-btn:hover {
  transform: scale(1.1);
}

.btn.play-btn:active {
  transform: scale(0.95);
}

.hidden {
  display: none;
}

/* ---------------- */

.main-screen {
  width: 100%;
  height: 100vh;
  padding: 10vh 10vw;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  font-size: 1.5rem;
}

@media screen and (max-width: 1300px) {
  .main-screen {
    padding: 10vh 10px;
  }
}

.main-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.main-title img {
  max-height: 40vh;
  max-width: 100%;
  object-fit: contain;
}

.play-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.play-menu > * {
  margin-left: 0.5em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

.play-menu > a[href=""] {
  display: none;
}

.download-apk {
  display: none;
}

.dev .download-apk {
  display: revert;
}

.mobile:not(.iphone) .desktop-menu {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile:not(.iphone) .mobile-menu {
  display: revert;
}

/* ---------------- */

@keyframes enterCanvas {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.canvas-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  padding: 0%;

  width: 100%;
  height: 100%;

  animation: enterCanvas 1s ease;
}

@media screen and (min-width: 1500px) {
  .canvas-screen {
    top: 50%;
    left: 50%;

    width: 1500px;
    height: calc(1500px * 0.5625);
    transform: translateX(-50%) translateY(-50%);
  }
}

.canvas-screen * {
  user-select: none;
}

.canvas-screen.hidden {
  animation: none;
}

.canvas-screen .screen-content {
  background: black;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1300px) {
  .canvas-screen {
    padding: 0%;
    width: 100vw;
    height: 100vh;
  }
}

.mobile .mobile-portrait {
  display: flex;
}

.mobile-portrait {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;

  z-index: 100;

  font-size: 1em;
  padding: 1em;
  color: black;
}

.mobile-portrait img {
  width: 25vw;
  margin-bottom: 5em;
}

@media screen and (orientation: landscape) {
  .mobile .mobile-portrait {
    display: none;
  }
}

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
}

.loading-screen.hidden {
    display: none;
}

.loading-screen p {
  color: white;
  font-weight: bold;
  letter-spacing: 3px;
}

.loading-screen img {
  width: 100%;
  height: 100%;

  max-width: 70vw;
  max-height: 50vh;
  object-fit: contain;
  margin-bottom: 5em;
}

@keyframes loading {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0.8;
  }
}

.loading-screen .moving-logo {
  opacity: 1;
  filter: saturate(0) brightness(0.7);
  animation: loading 3s infinite alternate ease-in-out;
}

/* ------ Safari ------ */

body.safari:not(.mobile) .play-btn {
  display: none;
}

body:not(.safari) .incompatible-alert {
  display: none;
}
