:root {
  --background-color: #f8f8f8;
  --background-second: #f8f8f8;
  --text-color: #000000;
  --subtext-color: #000000;
  --btn-bg-color: #000000;
  --btn-bg-solid: #ace06d;
  --btn-text-color: #ffe632;
}
html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'Manrope';
  src: url('Manrope-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

div#app {
  width: 100%;
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--text-color);
  font-weight: 400;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--background-second);
  box-sizing: border-box;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

.btn-confirm {
  width: 100%;
  background-color: #ec1367;
  border: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 10px;
}
.reject {
  color: rgb(0, 0, 0);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 200;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  text-decoration-line: underline;
}
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.f-width {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}
body {
  background: #fff;
  font-size: 10px;
  line-height: 1;
  font-family: 'Open Sans', sans-serif;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
a {
  text-size-adjust: none;
}

a {
  text-decoration: underline;
}

.cla::after {
  content: '';
  clear: both;
  display: table;
}

.mpic {
  display: block;
  max-width: 100%;
  margin: 0px auto;
}

.wrapper {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.header {
  height: 40px;
  color: rgb(255, 255, 255);
  background: rgb(22, 22, 22);
  position: relative;
  width: 100%;
  min-height: 40px;
}

.header .menu {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  width: 40px;
  background: url('menu.png') center center / 40px no-repeat;
}
a.close {
  position: fixed;
  top: 5px;
  right: 45px;
  width: 30px;
  height: 30px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
  border-radius: 50px;
  background: #222222;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 0 2px 0;
  display: none;
}
.header .menu::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 32px;
  width: 40px;
  height: 40px;
  background: url('search.png') center center / 40px no-repeat;
}

.header .logo {
  margin: 0 auto;
  padding-top: 2px;
  font-size: 22px;
  position: absolute;
  left: 69px;
  top: 6px;
}

.header .logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header .user {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 80px;
  padding-left: 40px;
  font-size: 16px;
  line-height: 40px;
}

.tags {
  text-align: left;
  padding: 8px;
  width: 100%;
}

.tag {
  display: inline-block;
  margin-right: 3px;
  padding: 0px 6px;
  background: rgb(217, 217, 217);
  color: rgb(0, 0, 0);
  font-size: 14px;
  line-height: 26px;
}

.tag.b {
  color: rgb(255, 255, 255);
  font-weight: bold;
  background: rgb(0, 0, 0);
}

.tag.r {
  color: rgb(255, 255, 255);
  font-weight: bold;
  background: rgb(222, 38, 0);
}

.middle-box {
  padding-left: 8px;
  padding-right: 8px;
  height: 100%;
  width: 100%;
  padding-top: 5px;
  @media screen and (orientation: landscape) and (max-height: 415px) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    align-items: center;
    padding-top: 3px;
    .player {
      width: 100%;
    }
  }
}

.player {
  height: 53svh;
  background: url('player.png') center center / cover no-repeat rgb(0, 0, 0);
  margin: 0px auto 20px;
  position: relative;
  cursor: pointer;
  @media screen and (orientation: portrait) and (max-height: 600px) {
    height: 45svh;
  }
}

.player-title {
  position: absolute;
  top: 5.66667px;
  left: 8.5px;
  max-width: 308px;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: rgb(255, 255, 255);
  font-size: 12px;
  line-height: 16px;
}

.player-bar {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 36px;
  background: url('player-bar-bg.jpg') center center repeat-x;
  opacity: 0;
}

.player-bar::before,
.player-bar::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

.player-bar::before {
  background: url('player-bar-left.jpg') left center no-repeat;
}

.player-bar::after {
  background: url('player-bar-right.jpg') right center no-repeat;
}

.btn-box {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: -34px;
  z-index: 111;
  display: flex;
  flex-direction: column;
  @media screen and (orientation: landscape) and (max-height: 415px) {
    bottom: -30px;
  }
}
.buy {
  @media screen and (orientation: landscape) and (max-height: 415px) {
    line-height: normal;
    display: flex;
    box-sizing: border-box;
    position: relative;
    justify-content: center;
    align-items: center;
  }
}
.btn {
  display: block;
  max-width: 480px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: rgb(255, 255, 255);
  font-size: 26px;
  line-height: 18vh;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  height: 24vh;
  -webkit-box-shadow: 0px 2px 5px 2px rgba(255, 255, 255, 0.35);
  box-shadow: 0px 2px 5px 2px rgba(255, 255, 255, 0.35);
}
@media (max-width: 320px) {
  .btn {
    display: block;
    max-width: 480px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    font-size: 24px;
    line-height: 26vh;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    -webkit-box-shadow: 0px 2px 5px 2px rgba(255, 255, 255, 0.35);
    box-shadow: 0px 2px 5px 2px rgba(255, 255, 255, 0.35);
  }
}
.btn-text {
  display: inline-block;
  padding-right: 40px;
  position: relative;
  width: 100%;
  @media screen and (orientation: landscape) and (max-height: 415px) {
    line-height: normal;
    display: flex;
    padding: inherit;
    box-sizing: border-box;
    position: relative;
    justify-content: center;
    align-items: center;
  }
}
.btn-text1 {
  line-height: normal;
  display: flex;
  padding: inherit;
  box-sizing: border-box;
  position: relative;
  justify-content: center;
  align-items: center;
}

.btn-text::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 0px;
  width: 0px;
  right: 40px;
  margin-top: -20px;
  border-width: 20px 0px 20px 20px;
  border-style: solid;
  border-color: transparent transparent transparent rgb(255, 255, 255);
  border-image: initial;
}

.price {
  color: rgb(153, 153, 153);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  padding-top: 10px;
}

.price-bg {
  display: inline-block;
  background: rgb(234, 229, 229);
  padding: 0px 2px 2px;
}
.banner {
  @media screen and (orientation: landscape) {
    display: none;
  }
}
.meta {
  margin: 40px 0px 6px;
  @media screen and (orientation: landscape) and (max-height: 415px) {
    display: none;
  }
}

.meta + .meta {
  margin-top: 6px;
}

.meta img {
  display: block;
  max-width: 100%;
  margin: 0px auto;
}

.related {
  padding: 5px 5px 0px;
}

.related img {
  float: left;
  display: block;
  width: 50%;
}

.footer {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  padding-bottom: 2px;
  background: rgb(255, 255, 255);
  color: rgb(170, 170, 170);
  font-size: 16px;
  line-height: 0.9;
  text-align: center;
  box-sizing: border-box;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}
.footer,
.footer a {
  font-size: 10px;
  line-height: 1;
}

.control {
}

.control img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

@media (max-height: 633px) {
}

@media (max-height: 558px) {
}

@media (max-height: 459px) {
  .player {
    height: 175px;
  }
}

@media (orientation: landscape) {
}

@media (max-width: 767px) and (orientation: landscape) {
  .player {
    height: -webkit-fill-available;
    margin-bottom: 70px;
  }

  .btn {
    max-width: 320px;
    line-height: normal;
  }

  .btn-text::before {
    margin-top: -16px;
    border-width: 16px 0px 16px 16px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(255, 255, 255);
    border-image: initial;
  }

  .tags,
  .player-bar,
  .related {
    display: none;
  }
}

@media (orientation: landscape) and (width: 568px) {
  body {
    width: 100%;
    height: 99%;
  }

  .wrapper {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 321px;
    overflow: hidden;
  }

  .footer {
    padding-bottom: 5px;
  }
}

@media (max-height: 319px) and (orientation: landscape) and (width: 568px) {
  .wrapper {
    height: 100%;
  }

  .footer {
    padding-bottom: 0px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .player {
    height: 90px;
  }
}

@media (min-width: 768px) and (orientation: landscape) {
  .wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-box {
    padding-top: 130px;
  }
}

#finalize {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.hideThis {
  display: flex;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.showThis {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.close a.close {
  display: flex;
}

body.agree .hideThis {
  display: none;
  opacity: 0;
}
body.agree .showThis {
  display: flex;
  opacity: 1;
}
body.agree .footer__default {
  display: none;
}
body.agree .footer__agree {
  display: block;
}

.footer__default {
  display: block;
}

.footer__agree {
  display: none;
}

.loading {
  display: none;
}

body.loader .loading {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 100% !important;
}

body.loader .hideThis {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-out;
}

body.loader .showThis {
  display: flex;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

body.loader .showThis a {
  display: none !important;
}

.loaderItem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  position: absolute;
  top: 40%;
  border: 3px solid;
  border-color: #fff #fff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;

  &::after,
  &::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent #ff3d00 #ff3d00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
  }

  &::before {
    width: 32px;
    height: 32px;
    border-color: #fff #fff transparent transparent;
    animation: rotation 1.5s linear infinite;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
