@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Regular.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Bold";
  src: url("../assets/fonts/Nunito-Bold.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: #000;
  color: #fff1e8;
  font-family: "Nunito", sans-serif;
  height: 100%;
  line-height: 1.25;
  margin: 0;
}

p {
  margin-top: 0;
}

ul,
li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

video {
  width: 100%;
}

section {
  height: 100%;
  position: relative;
}

.section-inner {
  height: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

#main {
  background-image: url("assets/images/splash.jpg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

#main:before {
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  width: 100%;
}

#trailer:before,
#game-features:before,
#technical-details:before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  top: 0;
  content: "";
  height: 100px;
  left: 0;
  position: absolute;
  width: 100%;
}

#main:after,
#trailer:after,
#game-features:after,
#technical-details:after {
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100px;
  width: 100%;
}

.character {
  background-repeat: no-repeat;
  height: 100%;
  position: absolute;
  width: 50vw;
  z-index: -1;
}

.character.murti {
  background-image: url("assets/images/murti.png");
}

.character.baldy {
  background-image: url("assets/images/baldy.png");
}

.character.talpy {
  background-image: url("assets/images/talpy.png");
}

.character.star-nosed {
  background-image: url("assets/images/star-nosed.png");
}

.character.murti,
.character.talpy {
  background-position: right top;
  right: 5vw;
  top: 0;
}

.character.baldy,
.character.star-nosed {
  background-position: left bottom;
  bottom: 0;
  left: 5vw;
}

#trailer video {
  background-color: #000;
  left: 50%;
  max-height: 100%;
  max-width: 1023px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  z-index: 1;
}

#game-features,
#technical-details {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding-bottom: 100px;
  padding-top: 100px;
}

.buttons-container {
  margin-top: auto;
  max-width: 500px;
}

.buttons-list {
  gap: 1em;
  margin-bottom: 2em;
  margin-top: 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.button {
  border-radius: 0.5em;
  color: #fff1e8;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  padding: 1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.button:hover {
  filter: brightness(1.25);
}

.buttons-item:nth-child(1) .button {
  background-color: #ff004d;
}

.buttons-item:nth-child(2) .button {
  background-color: #ff77a8;
}

.buttons-item:nth-child(3) .button {
  background-color: #ffa300;
}

.buttons-item:nth-child(4) .button {
  background-color: #00e436;
}

.buttons-item:nth-child(5) {
  grid-column: span 2;
}

.buttons-item:nth-child(5) .button {
  background-color: #29adff;
}

.section-main {
  display: flex;
}

.section-left {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
  position: relative;
  width: 100%;
  z-index: 1;
}

.section-right {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
  z-index: 0;
}

.section-title {
  font-size: 3em;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: center;
}

section:not(#main) .section-background {
  background-image: url("assets/images/background.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: -1;
}

section:not(#main) .section-background:before {
  background-color: rgba(0, 0, 0, 0.25);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.logo {
  aspect-ratio: 16/9;
  background-image: url("assets/images/logo.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 1em;
  max-width: calc(500px + 2em);
  margin-left: -1em;
  min-height: 25vh;
}

.text {
  font-size: 1.5rem;
  margin: 0;
  max-width: 500px;
}

.text:first-child {
  margin-bottom: 1em;
}

.text + .text {
  margin-top: 1em;
}

.arcade-machine {
  aspect-ratio: 0.54;
  height: 120%;
  right: 5vw;
  overflow: hidden;
  position: absolute;
  top: -50px;
}

.arcade-machine-background {
  background-image: url("assets/images/arcade-machine.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.arcade-machine-video-container {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -78%);
  width: 47%;
}

.arcade-machine-video-background {
  background-color: #000;
  height: 120%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  z-index: -1;
}

.availability-container {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  max-width: 500px;
  z-index: 1;
  align-items: center;
  width: 100%;
}

.availability-title {
  background-color: #000;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.availability-icon-list {
  align-items: center;
  background-color: #000;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  height: 7.5rem;
  padding: 20px;
  width: 100%;
}

.availability-icon-item {
  flex: 1 1 0;
  height: 100%;
}

.availability-icon-item.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.availability-icon-item a {
  display: block;
  height: 100%;
  position: relative;
}

.availability-icon-item a:hover img {
  filter: brightness(1.5);
}

.availability-icon-item img {
  display: block;
  height: 100%;
  margin: auto;
  max-width: 100%;
}

.availability-icon-item.itchio img {
  width: 100%;
}

.availability-icon-item.evercade a:before {
  background-image: url("assets/images/evercade-cartridge.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 110%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  z-index: 0;
}

.availability-icon-item.evercade img {
  position: relative;
  z-index: 1;
  height: auto;
  background-color: rgba(0,0,0,0.75);
}

.section-panel {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 40px;
  border-radius: 20px;
  max-width: 768px;
}

.section-list-item {
  display: flex;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.section-list-item:before {
  margin-right: 0.5em;
}

.go-up {
  align-items: center;
  background-color: #fff1e8;
  border-radius: 50%;
  bottom: 2.5vw;
  display: flex;
  height: 60px;
  justify-content: center;
  position: absolute;
  right: 2.5vw;
  width: 60px;
  z-index: 1;
}

.go-up:before {
  background-image: url("../assets/icons/arrow-up.svg");
  background-size: contain;
  content: "";
  height: 75%;
  width: 75%;
}

#game-features .section-list-item:nth-child(1):before {
  content: "👾";
}

#game-features .section-list-item:nth-child(2):before {
  content: "🎁";
}

#game-features .section-list-item:nth-child(3):before {
  content: "🎶";
}

#game-features .section-list-item:nth-child(4):before {
  content: "📋";
}

#game-features .section-list-item:nth-child(5):before {
  content: "🕹️";
}

#game-features .section-list-item:nth-child(6):before {
  content: "💥";
}

#technical-details .section-list-item:nth-child(1):before {
  content: "↕️";
}

#technical-details .section-list-item:nth-child(2):before {
  content: "🎨";
}

#technical-details .section-list-item:nth-child(3):before {
  content: "📏";
}

#technical-details .section-list-item:nth-child(4):before {
  content: "📺";
}

#technical-details .section-list-item:nth-child(5):before {
  content: "🧲";
}

#technical-details .section-list-item:nth-child(6):before {
  content: "🔄";
}

.privacy-policy {
  align-items: center;
  display: flex;
  justify-content: center;
}

.privacy-policy a {
  color: #fff1e8;
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

@media only screen and (max-height: 767px) and (orientation: landscape) {
  html {
    font-size: 12px;
  }

  .character {
    background-size: contain;
    height: 50%;
  }

  .section-panel {
    max-width: 75%;
  }
}

@media only screen and (max-height: 600px) and (orientation: landscape) {
  html {
    font-size: 10px;
  }

  #main {
    height: auto;
  }

  #trailer {
    margin-top: 40px;
  }

  #trailer:before,
  #game-features:before,
  #technical-details:before {
    height: 50px;
  }

  #main:after,
  #trailer:after,
  #game-features:after,
  #technical-details:after {
    height: 50px;
  }

  .logo {
    max-width: calc(300px + 2em);
  }

  .text,
  .buttons-container,
  .availability-container {
    max-width: 300px;
  }

  #game-features,
  #technical-details {
    height: auto;
  }

  .section-left {
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }
}

@media only screen and (max-width: 1023px) and (orientation: portrait) {
  #main {
    background-image: url("assets/images/background.jpg");
    background-position: center center;
  }

  #main:before {
    width: 100%;
    background: none;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.75) 50%,
      rgba(0, 0, 0, 0.5) 75%,
      rgba(0, 0, 0, 0.25) 90%,
      rgba(0, 0, 0, 0) 100%
    );
    height: 60%;
    z-index: 1;
  }

  .logo,
  .text,
  .buttons-container,
  .availability-container {
    max-width: 100%;
    width: 100%;
  }

  .logo {
    margin-left: 0;
    background-position: center center;
  }

  .button {
    border: 2px solid #fff1e8;
  }

  .arcade-machine {
    right: 0;
    width: 100%;
  }

  #trailer {
    background-color: #000;
    height: auto;
    aspect-ratio: 1/1;
  }

  #trailer video {
    width: 100%;
  }

  .section-panel {
    padding: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .character {
    height: 50%;
    background-size: contain;
  }

  .go-up {
    display: none;
  }

  .section-list-item {
    margin-bottom: 1em;
  }

  .availability-container {
    margin-top: 0;
  }

  .availability-title {
    padding-bottom: 0;
  }
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
  html {
    font-size: 12px;
  }
}

@media only screen and (orientation: portrait) {
  #game-features,
  #technical-details {
    height: auto;
  }
}
