@font-face {
  src: url('../fonts/SF-Pro-Text-Regular.otf') format('opentype');
  font-family: 'SF-Pro-Text';
}

@font-face {
  src: url('../fonts/SF-Pro-Text-Bold.otf') format('opentype');
  font-family: 'SF-Pro-Text';
  font-weight: bold;
}

@keyframes rotate {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#loading {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10;
}

#loading img {
  width: 50%;
  height: 50%;
  -webkit-animation: rotate 1s linear infinite;
  -moz-animation: rotate 1s linear infinite;
  -ms-animation: rotate 1s linear infinite;
  -o-animation: rotate 1s linear infinite;
  animation: rotate 1s linear infinite;
}

.in-app .navbar,
.in-app .footer,
.in-app .zEWidget-launcher {
  display: none;
}

.in-app .premium-login-page,
.in-app .premium-page,
.in-app .premium-stripe-page,
.in-app .premium-success-page {
  min-height: 100vh;
}

/* Premium Login Page */

.premium-login-page {
  position: relative;
  width: 100vw;
  min-height: 100vh;
}

.premium-login-page .bg {
  width: 100vw;
}
.premium-login-page .bg.pc {
  display: block;
}
.premium-login-page .bg.mobile {
  display: none;
  height: 100vh;
}

.premium-login-page .fg {
  position: absolute;
  top: 0;
  display: flex;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, transparent 70%, rgba(120, 120, 120, 0.5) 90%);
}

.premium-login-page .logo {
  margin-bottom: 10px;
  width: 100px;
}
.light .premium-login-page .logo {
  width: 150px;
}

.premium-login-page .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-height: 568px; /* iPhone 5/SE */
  color: white;
  text-align: center;
}

.premium-login-page .content .top,
.premium-login-page .content .bottom {
  margin: 30px;
}

.premium-login-page .content .top p {
  font-family: 'Georgia';
  font-size: 30px;
  margin: 0;
}

.premium-login-page .content .bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.premium-login-page .content .bottom > div {
  margin: 5px 0;
}

.premium-login-page .content .bottom p {
  margin: 10px;
  text-shadow: 2px 2px 5px #333333;
}

.fb-login-button {
  border-radius: 20px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .25);
}

#google-signin-button > div {
  border-radius: 20px;
}

#google-signin-button span {
  font-size: 16px;
}

#appleid-signin {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .25);
  width: 250px;
  height: 40px;
}

#nav-premium-logout {
  display: none;
}

/* Premium Page */

.premium-page {
  position: relative;
  font-family: 'SF-Pro-Text';
  font-size: 20px;
  text-align: center;
}

.premium-page .store {
  padding: 0 30px 30px;
}

.premium-page .slideshow-wrapper {
  margin: 0 -30px;
}

.premium-page .slideshow {
  width: 100%;
  overflow: hidden;
}

.premium-page .slideshow .slides {
  cursor: grab;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-transition: all 0.75s ease-in-out;
  -moz-transition: all 0.75s ease-in-out;
  -ms-transition: all 0.75s ease-in-out;
  -o-transition: all 0.75s ease-in-out;
  transition: all 0.75s ease-in-out;
}

.premium-page .slideshow .slides.active {
  cursor: grabbing;
}

.premium-page .slideshow .handle {
  position: relative;
  display: flex;
  width: 10000px;
}

.premium-page .slideshow .handle.animate {
  -webkit-transition-property: transform;
  -moz-transition-property: transform;
  -ms-transition-property: transform;
  -o-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -ms-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-in-out;
  -moz-transition-timing-function: ease-in-out;
  -ms-transition-timing-function: ease-in-out;
  -o-transition-timing-function: ease-in-out;
  transition-timing-function: ease-in-out;
}

.premium-page .slideshow .slide {
  flex-shrink: 0;
  width: 100vw;
}

.premium-page .slideshow .slide .feature-wrapper {
  position: relative;
}

.premium-page .slideshow .slide .feature-wrapper img.feature,
.premium-page .slideshow .slide .feature-wrapper video {
  display: block;
  width: 100%;
}

.premium-page .slideshow .slide .feature-wrapper img.feature {
  position: absolute;
}

.premium-page .slideshow .dots {
  text-align: center;
  margin: 10px 20px;
}

.premium-page .slideshow .dot {
  display: inline-block;
  margin: 0 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a1a2b3;
  cursor: pointer;
  -webkit-transition: background-color 0.75s ease;
  -moz-transition: background-color 0.75s ease;
  -o-transition: background-color 0.75s ease;
  transition: background-color 0.75s ease;
}

.premium-page .slideshow .dot.selected {
  background-color: #515260;
}

.premium-page .bottom {
  margin: auto;
  width: 50vw;
}

.premium-page .bottom.subscription {
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.18);
  text-align: left;
}

.premium-page .section:not(:last-of-type) {
  margin-bottom: 20px;
}

.premium-page .header {
  margin: 10px 0 15px 0;
}

.premium-page .title {
  font-weight: bold;
  font-size: 1.25em;
}

.premium-page .subtitle-1 {
  font-weight: bold;
  margin: 15px 20px 0;
}

.premium-page .subtitle-2 {
  font-size: 0.8em;
  margin: 5px 20px 0;
}

.premium-page .subtitle-3 {
  font-weight: bold;
}

.premium-page .button {
  position: relative;
  display: block;
  margin-bottom: 10px;
  padding: 15px 0;
  width: 100%;
  border: none;
  border-radius: 25px;
  background-color: #78798d;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.premium-page .button:hover {
  color: white;
}

.premium-page .button.popular {
  padding: 35px 0 10px 0;
  background-color: #706ec8;
}

.light .premium-page .button.popular {
  background-color: #4bb8c8;
}

.premium-page .button.popular.no-previous {
  padding: 40px 0 15px 0;
}

.premium-page .button.no-popular.no-previous {
  border-radius: 30px;
}

.premium-page .popular-div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
}

.premium-page .popular-text {
  padding: 4px 0;
  font-weight: bold;
  background-color: #e3deff;
  color: #706ec8;
}

.light .premium-page .popular-text {
  background-color: #f0faff;
  color: #4bb8c8;
}

.premium-page .offer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  border-bottom-left-radius: 25px;
}

.premium-page .button.no-popular.no-previous .offer {
  border-bottom-left-radius: 30px;
}

.premium-page .offer-icon {
  width: 60px;
}

.premium-page .offer-text {
  position: absolute;
  top: 0;
  left: 0px;
  padding: 8px 5px 0 5px;
  font-weight: normal;
  font-size: 0.65em;
  line-height: 1;
  transform: rotate(-45deg);
}

.premium-page .offer-amount {
  font-weight: bold;
  font-size: 1.35em;
}

.premium-page .button > table {
  width: 100%;
}

.premium-page .button > table td {
  width: 50%;
}

.premium-page .previous-price {
  font-weight: normal;
  font-size: 0.7em;
  text-decoration: line-through;
}

/* Premium Payment Page */

.premium-stripe-page {
  position: relative;
  font-family: 'SF-Pro-Text';
  font-size: 20px;
}

.premium-stripe-page .stripe-header {
  padding: 50px 0;
  background-color: #3d4057;
  color: white;
  text-align: center;
}

.light .premium-stripe-page .stripe-header {
  background-color: #4bb8c8;
}

.premium-stripe-page .stripe-header .plan-title {
  padding-bottom: 20px;
  font-size: 1.5em;
  font-weight: bold;
}

.premium-stripe-page .stripe-header .plan-price {
  font-size: 1.6em;
  font-weight: bold;
}

.premium-stripe-page .stripe-header .plan-subtitle {
  font-size: 0.8em;
}

.premium-stripe-page .form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 30vw;
}

.premium-stripe-page .form > * {
  width: 100%;
}

.premium-stripe-page .form-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.premium-stripe-page .form-item label {
  margin-bottom: 3px;
  font-weight: bold;
}

.premium-stripe-page .form-item input {
  padding: 7px 0;
  border: none;
  border-bottom: 1px solid #bbbbbb;
  background-color: transparent;
  font-size: 100%;
  outline: none;
}
.premium-stripe-page .form-item input:read-only {
  color: #bbbbbb;
}
.premium-stripe-page .form-item input::placeholder {
  color: #bbbbbb;
}

.premium-stripe-page .form-item .input-error {
  color: #ff7b7b;
  font-size: 0.8em;
}

.premium-stripe-page .button,
.premium-success-page .button {
  display: block;
  margin: 10px;
  padding: 10px 0;
  width: 100%;
  max-width: 300px;
  border: none;
  border-radius: 25px;
  background-color: #746db2;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.light .premium-stripe-page .button,
.light .premium-success-page .button {
  background-color: #4bb8c8;
}

.premium-stripe-page .tnc {
  color: #707070;
  font-size: 0.8em;
  text-align: center;
}

.StripeElement {
  padding: 10px 0;
  border-bottom: 1px solid #bbbbbb;
}

/* Premium Payment Successful Page */

.premium-success-page {
  position: relative;
  background-color: #3d4057;
  color: white;
  font-family: 'SF-Pro-Text';
  font-size: 20px;
  text-align: center;
}

.light .premium-success-page {
  background-color: white;
  color: initial;
}

.premium-success-page .success-img {
  display: block;
  margin: auto;
  width: 60vw;
}

.premium-success-page .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 50px 50px;
}

.premium-success-page .content .title {
  margin-bottom: 20px;
  font-size: 1.5em;
}

@media (max-width: 767px) {
  .premium-login-page .bg.pc {
      display: none;
  }
  .premium-login-page .bg.mobile {
      display: block;
  }
  .premium-login-page .content {
      justify-content: space-between;
  }
  .premium-page,
  .premium-stripe-page,
  .premium-success-page {
    font-size: 16px;
  }
  .premium-page .store {
    padding: 0 20px 20px;
  }
  .premium-page .slideshow-wrapper {
    margin: 0 -20px;
  }
  .premium-page .bottom {
    width: initial;
  }
  .premium-stripe-page .stripe-header {
    padding: 30px 0;
  }
  .premium-stripe-page .form {
    padding: 30px;
  }
  .premium-success-page .success-img {
    width: 100vw;
  }
  .premium-success-page .content {
    padding: 0 30px 30px;
  }
}
