.wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  overflow: hidden;
}

.wrap-inner {
  position: absolute;
  overflow: hidden;
  left: 0;
  width: 32rem;
  height: 61.9rem;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

/*消除ios点击阴影*/
html,
body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* ios 滑动 */
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
}

/*消除ios动画抖动*/
* {
  -webkit-backface-visibility: hidden;
}

/* 去除滚动条 */
::-webkit-scrollbar {
  width: 0;
  height: 1px
}

/* 清除浮动 */
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  *zoom: 1;
}

input {
  border: 0;
  outline: none;
}

input::-webkit-input-placeholder {
  /* placeholder颜色  */
  color: #dba178;
}

.page {
  display: none;
  position: absolute;
}

.hd {
  background: rgba(0, 0, 0, 0.8);
}

@font-face {
  font-family: 'font';
  src: url(./font.ttf);
}

.font {
  font-family: 'font';
  width: 0;
  height: 0;
}

/* loading-page */
.loading-img {
  width: 100%;
  height: 100%;
}

.loading-text {
  text-align: center;
  color: #c30101;
  font-size: 1.6rem;
  z-index: 1;
  opacity: 0;
}

/* home-page */

.home-page {
  z-index: 8;
}

.home-page .candle-block.animate {
  animation: fadeInOut 1s 1.4s ease infinite;
  -webkit-animation: fadeInOut 1s 1.4s ease infinite;
}

.home-page .candle {
  opacity: 0;
}

.home-page .btn-next {
  z-index: 2;
}

.home-page .btn-next.animate {
  animation: fadeInOut 1s ease infinite;
  -webkit-animation: fadeInOut 1s ease infinite;
}

.home-page .musicgif,
.fireworksgif {
  width: 100%;
  height: 100%;
}

.home-scale {
  z-index: 2;
}

.home-scale.animate {
  animation: homeScale 1s 0.6s ease-out forwards;
  -webkit-animation: homeScale 1s 0.6s ease-out forwards;
}

.home-page .light1 {
  animation: light 6s ease-in-out infinite;
  -webkit-animation: light 6s ease-in-out infinite;
}

.home-page .light2 {
  animation: light 6s 2s ease-in-out infinite;
  -webkit-animation: light 6s 2s ease-in-out infinite;
}

.home-page .light3 {
  animation: light 6s 4s ease-in-out infinite;
  -webkit-animation: light 6s 4s ease-in-out infinite;
}

@keyframes light {
  0% {
    opacity: 0;
    transform: translateY(20%);
  }

  8% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  33%,
  100% {
    opacity: 0;
    transform: translateY(-20%);
  }
}

@keyframes homeScale {
  0% {
    transform: scale(1) translateY(0) translateX(0);
  }

  100% {
    transform: scale(1.2) translateY(4rem) translateX(-0.07rem);
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* page1 */
.page1 {
  z-index: 7;
}

.page1 .red-line {
  background: #ffd697;
  transform: scaleX(0);
}

.page1 .red-line.animate {
  transform-origin: 0%;
  animation: scale 0.7s ease-in forwards;
  -webkit-animation: scale 0.7s ease-in forwards;
}

/* flag-page */
.flag-page {
  z-index: 6;
}

.flag-page .choose-num {
  text-align: center;
  font-size: 1.3rem;
  line-height: 0.85rem;
  color: #ffd28d;
}

.flag-page .choose-block.animate {
  animation: fadeInOut1 2s linear infinite;
  -webkit-animation: fadeInOut1 2s linear infinite;
}

.flag-page .flag-block {
  float: left;
  position: relative;
  margin-bottom: 0.8rem;
}

.flag-page .flag-block .star1,
.flag-page .flag-block .star2 {
  opacity: 0;
}

.flag-page .flag-block .star1.animate {
  animation: star1 2.5s ease forwards;
  -webkit-animation: star1 2.5s ease forwards;
}

.flag-page .flag-block .star2.animate {
  animation: star2 2.5s ease forwards;
  -webkit-animation: star2 2.5s ease forwards;
}

.flag-page .flag-block:nth-child(even) {
  margin-left: 2.5rem;
  width: 12.9rem;
}

.flag-page .flag-no {
  font-size: 1.3rem;
  color: #fff;
  line-height: 2.99rem;
  text-align: center;
}

.flag-page .flag-text {
  font-size: 1.2rem;
  color: #222222;
  line-height: 1.5rem;
  padding-left: 0.5rem;
  /* background: url('../image2/text-bottom.png') left bottom no-repeat;
  background-size: 12.35rem 1.1rem; */
  width: 12.35rem;
  height: auto;
}

.flag-page .flag-text div[class^=fly] {
  display: inline-block;
  animation: trans 1.4s 0s ease-out forwards;
}

.flag-page .flag-text .text-bottom {
  position: absolute;
  bottom: -.4rem;
  top: auto;
}

.flag-page input[name=customize-flag] {
  font-size: 1.4rem;
  color: #ffd594;
  padding-left: 1rem;
  padding-right: 5rem;
  width: 21.55rem;
  height: 100%;
  line-height: 100%;
}

.flag-page .checked-flag-list {
  border: 0.05rem solid #222222;
  transition: all linear .3s;
  -webkit-transition: all linear .3s;
  transform-origin: 0% 0%;
  background: #fcfcfd;
  transform: scale(0);
  z-index: 3;
}

.flag-page .flag-list-content {
  overflow-y: scroll;
  overflow-x: hidden;
}

.flag-page .checked-item {
  display: flex;
  padding: 0.75rem 0 0.75rem 0;
}

.checked-flag-list .checked-flag-no {
  font-size: 1.1rem;
  text-align: center;
  line-height: 2rem;
  color: #ffffff;
  display: inline-block;
  width: 2.25rem;
  height: 2rem;
  background: url(../image2/flag-no.png) left top no-repeat;
  background-size: 100% 100%;
  margin-top: 0.05rem;
}

.checked-flag-list .checked-flag-text {
  font-size: 1.2rem;
  color: #222222;
  padding-left: 0.5rem;
  height: auto;
  display: inline-block;
  flex: 1;
  border-bottom: 0.05rem solid #222222;
}

.checked-flag-list .btn-checked-item-delete {
  color: #c30101;
  font-size: 1.4rem;
  text-align: right;
  width: 2.8rem;
  display: inline-block;
  border-bottom: 0.05rem solid #222222;
}

.flag-sortable-active .checked-flag-no,
.flag-sortable-active .checked-flag-text {
  color: #c30101;
}

.flag-sortable-ghost {
  opacity: 0;
}

.flag-choose-tip {
  opacity: 0;
}

.flag-choose-tip.active {
  animation: tips 1.5s linear forwards 3;
  -webkit-animation: tips 1.5s linear forwards 3;
}

.flagadd {
  opacity: 0;
  z-index: 4;
}

.flagadd.animate {

  animation: flagadd 2s ease-in forwards;
  -webkit-animation: flagadd 2s ease-in forwards;
}

@keyframes fadeInOut1 {

  0%,
  80% {
    opacity: 1;
  }

  81%,
  100% {
    opacity: 0;
  }
}

@keyframes star1 {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  12.5% {
    opacity: 1;
    transform: translateY(0);
  }

  25% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes star2 {

  0%,
  12.5% {
    opacity: 0;
    transform: translateY(0);
  }

  25% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes flagadd {

  0%,
  25% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes tips {
  50% {
    opacity: 0;
  }

  0%,
  100% {
    opacity: 1;
  }
}

@keyframes trans {
  to {
    transform: translateY(0);
  }
}

@keyframes scale {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/* personal-page */
.personal-page {
  background: #e5382a;
  transition: all linear .3s;
  -webkit-transition: all linear .3s;
  z-index: 5;
}

.personal-page .decorate-img {
  background: url('../image2/decorate1.png') left top no-repeat;
  background-size: 100% 100%;
}

.customize-frame {
  top: auto;
  bottom: 0;
}

.personal-page .flag-list {
  overflow: scroll;
}

.personal-page .flag-item {
  position: relative;
  display: flex;
  margin-top: 1rem;
}

.personal-page .flag-no {
  font-size: 1rem;
  text-align: center;
  line-height: 2.1rem;
  color: #fff;
  display: inline-block;
  width: 2.25rem;
  height: 2rem;
  background: url(../image2/flag-no.png) left top no-repeat;
  background-size: 100% 100%;
}

.personal-page .flag-text {
  font-size: 1.4rem;
  color: #222222;
  margin-left: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: auto;
  display: inline-block;
  flex: 1;
  background: url(../image2/flag-redline.png) left bottom no-repeat;
  background-size: 100% auto;
  padding-bottom: 0.5rem;
}

.personal-page .colorbar {
  transition: all linear .3s;
  -webkit-transition: all linear .3s;
}

.personal-page .decorate-content {
  overflow-x: scroll;
  white-space: nowrap;
  overflow-y: hidden;
}

.personal-page .decorateImg {
  width: 15rem;
  height: 7.5rem;
  padding: 0 0.625rem 0 0.625rem;
}

.personal-page .decorateImg:first {
  padding-left: 0;
}

.btn-choose-color.animate {
  animation: slider 1.5s ease-in-out 5 alternate;
  -webkit-animation: slider 1.5s ease-in-out 5 alternate;
}

.personal-wrap.animate {
  animation: slideDown 1s ease-in forwards;
  -webkit-animation: slideDown 1s ease-in forwards;
}

@keyframes slideDown {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes slider {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }

  100% {
    opacity: 1;
    transform: translateX(0rem);
  }
}

/* suggest-page */
.suggest-page {
  z-index: 4;
}

input[name=signature] {
  font-size: 1.15rem;
  color: #222222;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 12.9rem;
}

input[name=signature]::-webkit-input-placeholder {
  /* placeholder颜色  */
  color: #878787;
}

.agree-wrap.animate {
  animation: flicker 1s ease infinite;
  -webkit-animation: flicker 1s ease infinite;
}

.suggest-wrap.animate {
  animation: wrapScale 1s linear forwards;
  -webkit-animation: wrapScale 1s linear forwards;
}

@keyframes wrapScale {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* countdown-page */

.countdown-page {
  z-index: 3;
}

.countdown-page canvas {
  transform: rotate(-90deg);
}

.countdown-num {
  line-height: 8.95rem;
  font-size: 4rem;
  text-align: center;
  color: #fff;
}

.countdown-num.animate {
  animation: numScale 1s 0s linear forwards;
  -webkit-animation: numScale 1s 0s linear forwards;
}

@keyframes numScale {

  0%,
  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* effect-page */
.effect-page {
  z-index: 2;
}

/* poster-page */
.poster-page {
  z-index: 1;
  overflow-y: scroll;
}

.poster-page .poster-canvas-block {
  z-index: 1;
}

.poster-page canvas {
  width: 32rem;
}

.poster-tip {
  z-index: 1;
}

.posterImg,
.posterImg-true {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.posterImg-true {
  z-index: 2;
  opacity: 0;
}

/* poster-list-page */
.poster-list-page .poster-list {
  background: url(../image2/posterlist-bg.png) left top repeat-y;
  background-size: 100% auto;
  height: auto;
  min-height: 20.2rem;
  padding: 1.75rem 4.45rem 3rem 3.5rem;
  width: 22.05rem;
  opacity: 0;
}

.poster-list-page .flag-item {
  position: relative;
  display: flex;
  margin-top: 1.5rem;
}

.poster-list-page .flag-no {
  font-size: 1.2rem;
  text-align: center;
  line-height: 2rem;
  color: #222222;
  display: inline-block;
  width: 2.25rem;
  height: 2rem;
  background: url(../image2/flag-no.png) left top no-repeat;
  background-size: 100% 100%;
}

.poster-list-page .flag-text {
  font-size: 1.4rem;
  color: #222222;
  margin-left: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: auto;
  display: inline-block;
  flex: 1;
  background: url(../image2/flag-redline.png) left bottom no-repeat;
  background-size: 100% auto;
  white-space: nowrap;
}