/* settings */

.settings {
  background-color: black;
  background-image: url(../images/settings-main-bg.png);
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

.settings-header {
  background-color: black;
  background: url(../images/settings-topbar.png);
  height: 16vh;
  width: 100vw;
  background-size: 15px 100%;
  padding: 0;
  margin: 0;
  position: relative;
  top: -16vh;
  transition: 300ms ease;
}

.settings-header.animate {
  top: 0;
}

.settings-main .settings-header:after {
  position: absolute;
  background-image: url(../images/logo-white.svg);
  width: 10vh;
  height: 4.5vh;
  content: '';
  background-size: 100% 100%;
  bottom: 2vh;
  right: 12vw;
  display: block;
}

.settings-footer {
  background-color: black;
  background: url(../images/settings-bottombar.png);
  height: 21vh;
  width: 100vw;
  background-size: 8px 100%;
  padding: 0;
  margin: 0;
  position: relative;
  bottom: -21vh;
  transition: 300ms ease;
}

.settings-footer.animate {
  bottom: 0;
}

.settings-navcontainer {
  position: absolute;
  /*top: 20%;*/
  top: -100vh;
  opacity: 0;
  margin-left: auto;
  margin-right: auto;
  left: calc(50% - 60vh);
  transition: top 300ms;
}

.settings-navcontainer.animate {
  top: 20%;
  opacity: 1;
}

.settings-content {
  height: calc(100vh - 37vh);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.settings-navbtn {
  width: 50vh;
  height: 38vh;
  background-image: url(../images/settings-main-nav.png);
  background-color: initial;
  background-size: 100% 100%;
  display: inline-block;
  position: relative;
  transition: 300ms;
}

.settings-navbtn:hover {
  transform: scale(1.1);
}

.settings-navbtn.left { margin-right: 10vh; } .settings-navbtn.right { margin-left: 10vh; }

.settings-navbtn span.label {
  position: absolute;
  display: block;
  bottom: 1vh;
  height: 10vh;
  line-height: 10vh;
  color: #909090;
  font-size: 3.8vh;
  font-family: 'Asap', sans-serif;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: -1px;
}

.settings-navbtn.settings .icon {
  background-image: url(../images/settings-icon.png);
  width: 20vh;
  height: 20vh;
  background-size: 100% 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5vh;
}

.settings-navbtn.info .icon {
  background-image: url(../images/info-icon.png);
  width: 20vh;
  height: 20vh;
  background-size: 100% 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5vh;
}

.settings-footer .back {
  position: absolute;
  background-image: url(../images/settings-back.png);
  width: 30vh;
  height: 8vh;
  content: '';
  background-size: 100% 100%;
  top: 6vh;
  left: 12vw;
  display: block;
  transition: 150ms;
}

.settings-footer .back:hover {
  transform: scale(1.1);
}

@media only screen and (max-width: 900px) and (orientation: portrait) {
  .settings {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .settings-header {
    height: 62px;
    top: -62px;
  }

  .settings-main .settings-header:after {
    width: 56px;
    height: 24px;
    right: 12px;
    bottom: 12px;
  }

  .settings-content {
    height: auto;
    min-height: 0;
    flex: 1;
    padding: 14px 14px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .settings-navcontainer {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .settings-navcontainer.animate {
    top: 0;
  }

  .settings-navbtn {
    width: min(84vw, 320px);
    height: min(32vh, 240px);
    min-height: 190px;
    max-width: 320px;
    margin: 0;
  }

  .settings-navbtn.left,
  .settings-navbtn.right {
    margin-left: 0;
    margin-right: 0;
  }

  .settings-navbtn span.label {
    bottom: 12px;
    height: auto;
    line-height: 1.2;
    font-size: clamp(20px, 5vw, 28px);
    padding: 0 14px;
  }

  .settings-navbtn.settings .icon,
  .settings-navbtn.info .icon {
    width: min(16vh, 88px);
    height: min(16vh, 88px);
    margin-top: 28px;
  }

  .settings-footer {
    height: 88px;
    bottom: -88px;
  }

  .settings-footer .back {
    width: 156px;
    height: 42px;
    top: 22px;
    left: 14px;
  }
}

@media only screen and (max-width: 520px) and (orientation: portrait) {
  .settings-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .settings-navbtn {
    width: 84vw;
    height: min(30vh, 210px);
    min-height: 176px;
  }

  .settings-navbtn.settings .icon,
  .settings-navbtn.info .icon {
    width: min(14vh, 74px);
    height: min(14vh, 74px);
    margin-top: 24px;
  }

  .settings-navbtn span.label {
    font-size: 22px;
  }

  .settings-footer .back {
    width: 148px;
    height: 40px;
    top: 24px;
  }
}
