﻿html,
body {
  overflow: hidden;
  height: 100%;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  font-family: sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: #e9e9e9;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}

.bg {
  background: #e9e9e9 url(../images/bg.jpg) 50% 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-animation: flow 16s linear infinite;
  animation: flow 16s linear infinite;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.playing .bg {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

#wrapper {
  width: 90%;
  max-width: 640px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -70%, 0);
  transform: translate3d(-50%, -70%, 0);
  z-index: 3;
  word-break: break-all;
}

#wrapper .title {
  margin: 0 0 30px;
  padding: 0;
  font-weight: 400;
  font-size: 32px;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#wrapper .title.shake {
  -webkit-animation: shake 0.4s;
  animation: shake 0.4s;
}

#wrapper .what {
  font-weight: 700;
  color: #111;
  word-break: break-all;
  padding-left: 30px;
}

#wrapper .os {
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translate3d(-50%, 50px, 0);
  transform: translate3d(-50%, 50px, 0);
  color: #666;
  line-height: 1.4;
  width: 80%;
}

#wrapper .tip {
  position: absolute;
  top: -50px;
  left: 50%;
  display: block;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  white-space: nowrap;
  border-radius: 15px;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-transform: translate3d(-50%, 0, 0);
  transform: translate3d(-50%, 0, 0);
  -webkit-animation: dinnerTip 3s 1s linear both;
  animation: dinnerTip 3s 1s linear both;
}

#wrapper .tip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.6);
}

#start {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 40px;
  padding: 5px;
  -webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.07),
    0 1px rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.07),
    0 1px rgba(255, 255, 255, 0.5);
  display: inline-block;
  cursor: pointer;
}

#start span {
  border-radius: 35px;
  width: 180px;
  height: 60px;
  line-height: 60px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#ffba30),
    to(#ff911e)
  );
  background: -webkit-linear-gradient(top, #ffba30, #ff911e);
  background: linear-gradient(to bottom, #ffba30, #ff911e);
  color: #fff;
  text-align: center;
  display: block;
  font-size: 32px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 1px #ffd17c, 0 2px 3px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px #ffd17c, 0 2px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid #e88e1d;
}

#start:hover span {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#ffce44),
    to(#ffa532)
  );
  background: -webkit-linear-gradient(top, #ffce44, #ffa532);
  background: linear-gradient(to bottom, #ffce44, #ffa532);
  -webkit-box-shadow: inset 0 1px #ffe696, 0 2px 3px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px #ffe696, 0 2px 3px rgba(0, 0, 0, 0.2);
}

#start:active span {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#ff911e),
    to(#ffbb30)
  );
  background: -webkit-linear-gradient(top, #ff911e, #ffbb30);
  background: linear-gradient(to bottom, #ff911e, #ffbb30);
  -webkit-box-shadow: inset 0 1px #ffb050, 0 2px 3px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px #ffb050, 0 2px 3px rgba(0, 0, 0, 0.2);
}

#temp_container {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  overflow: hidden;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#temp_container .temp {
  position: absolute;
  color: #777;
  -webkit-animation: flash 1.6s ease-out both;
  animation: flash 1.6s ease-out both;
  white-space: nowrap;
}

#toggle {
  position: absolute;
  bottom: 60px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 2px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  z-index: 4;
  font-size: 12px;
}

#toggle span {
  color: #999;
  padding: 5px 10px;
  display: inline-block;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  line-height: 1;
}

#toggle span.selected {
  color: #fff;
}

#toggle .hb {
  background: #00bdd6;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 1em;
  width: 4em;
  content: "";
  border-radius: 20px;
  z-index: -1;
  padding: 5px 10px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

#toggle [data-type="drink"].selected + .hb {
  left: 70px;
  width: 5em;
  background-color: #e80773;
}

.playing #toggle {
  -webkit-transform: translateX(-50%) translateY(200%);
  -ms-transform: translateX(-50%) translateY(200%);
  transform: translateX(-50%) translateY(200%);
  opacity: 0;
}

.comment {
  position: absolute;
  bottom: 25%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  border-radius: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  z-index: 3;
  font-size: 14px;
  white-space: nowrap;
  -webkit-animation: comment 3s both;
  animation: comment 3s both;
}

/* #ribbon {
    -webkit-background-size: contain;
    background-size: contain;
    width: 93px;
    height: 56px;
    position: absolute;
    top: 8px;
    right: 15px;
    z-index: 9
} */

.adsbygoogle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  width: auto !important;
  text-align: center;
  z-index: 2;
  overflow: hidden;
}

@-webkit-keyframes comment {
  0%,
  100% {
    opacity: 0;
    -webkit-transform: translate3d(-50%, 200%, 0) scale(0.7);
    transform: translate3d(-50%, 200%, 0) scale(0.7);
  }

  20%,
  80% {
    opacity: 1;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes comment {
  0%,
  100% {
    opacity: 0;
    -webkit-transform: translate3d(-50%, 200%, 0) scale(0.7);
    transform: translate3d(-50%, 200%, 0) scale(0.7);
  }

  20%,
  80% {
    opacity: 1;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@-webkit-keyframes dinnerTip {
  0%,
  100% {
    opacity: 0;
    -webkit-transform: perspective(600px) translate3d(-50%, 7px, 0) scale(0.7)
      rotateY(180deg);
    transform: perspective(600px) translate3d(-50%, 7px, 0) scale(0.7)
      rotateY(180deg);
  }

  20%,
  80% {
    opacity: 1;
    -webkit-transform: perspective(600px) translate3d(-50%, 0, 0) rotateY(0deg);
    transform: perspective(600px) translate3d(-50%, 0, 0) rotateY(0deg);
  }
}

@keyframes dinnerTip {
  0%,
  100% {
    opacity: 0;
    -webkit-transform: perspective(600px) translate3d(-50%, 7px, 0) scale(0.7)
      rotateY(180deg);
    transform: perspective(600px) translate3d(-50%, 7px, 0) scale(0.7)
      rotateY(180deg);
  }

  20%,
  80% {
    opacity: 1;
    -webkit-transform: perspective(600px) translate3d(-50%, 0, 0) rotateY(0deg);
    transform: perspective(600px) translate3d(-50%, 0, 0) rotateY(0deg);
  }
}

@-webkit-keyframes shake {
  0% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  20% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }

  40% {
    -webkit-transform: translateX(15px);
    transform: translateX(15px);
  }

  60% {
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
  }

  80% {
    -webkit-transform: translateX(15px);
    transform: translateX(15px);
  }

  100% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
}

@keyframes shake {
  0% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  20% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }

  40% {
    -webkit-transform: translateX(15px);
    transform: translateX(15px);
  }

  60% {
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
  }

  80% {
    -webkit-transform: translateX(15px);
    transform: translateX(15px);
  }

  100% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
}

@-webkit-keyframes flow {
  0% {
    background-position: 50% 0;
  }

  100% {
    background-position: 50% -250px;
  }
}

@keyframes flow {
  0% {
    background-position: 50% 0;
  }

  100% {
    background-position: 50% -250px;
  }
}

@-webkit-keyframes flash {
  0% {
    opacity: 0;
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    color: transparent;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
  }
}

@keyframes flash {
  0% {
    opacity: 0;
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    color: transparent;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
  }
}

#weibo {
  position: absolute;
  top: 15px;
  right: -8px;
}

#main1 {
  margin-top: 50px;
  border-color: transparent;
  border-style: none;
  cursor: pointer;
  background-color: #f0f0f0;
  color: black;
}

#qrcode img {
  position: absolute;
  margin: auto;
  left: 0;
  top: 50%;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  display: block;
}

#qrcode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 999;
  display: none;
}

.footer {
  position: fixed;
  left: 10px;
  bottom: 15px;
  right: 10px;
  color: black;
  text-align: center;
  margin: auto;
}

.m-toast-pop {
  position: fixed;
  bottom: 15%; /* 距离底部30% */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 调整位置以居中 */
  z-index: 1000;
  padding: 10px;
  border-radius: 5px;
  display: none; /* 默认不显示 */
}

.m-toast-inner-text {
  display: inline-block;
  margin: 0 22px;
  padding: 19px 21px;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0;
  line-height: 22px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 10px;
}

/* General button style */
.btn {
  display: block;
  width: 200px; /* Set a fixed width if desired */
  padding: 10px;
  margin: 10px auto; /* Center the button horizontally */
  border: none;
  background-color: #5cb85c;
  color: white;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.btn:hover {
  background-color: #4cae4c;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  position: absolute;
  bottom: 30%; /* 30% from the bottom */
  left: 50%; /* Centered horizontally */
  transform: translateX(-50%); /* Adjust for the content width */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  cursor: pointer;
}

/* Style the buttons inside the modal */
.modal-content button {
  display: block; /* Make it a block element to center it */
  width: 100%; /* Full width */
  padding: 10px;
  margin: 10px 0; /* Space out the buttons */
  border: none;
  background-color: #5cb85c;
  color: white;
  text-align: center; /* Center the text inside */
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.modal-content button:hover {
  background-color: #4cae4c;
}
