@charset "utf-8";
@import "initialize.css";

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #e7f4f9;
}
#wrapper {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* class */
.jalnan {
  font-family: "Jalnan";
}
.btn {
  display: block;
  width: 100%;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emphasis {
  color: #ff6167;
  font-weight: 700;
}
.modal-area {
  color: #000;
}

/* mCustomScrollbar */
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  width: 5px;
  background-color: #999;
  margin: 0;
}
.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
  background-color: #999;
}
.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar {
  background-color: #999;
}
.mCSB_scrollTools .mCSB_draggerRail {
  background-color: transparent;
}
.mCSB_scrollTools .mCSB_dragger .mCSB_scrollTools .mCSB_draggerRail {
  background-color: transparent;
}

/* index-wrap */
#index-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* display: none; */
}
#index-wrap .bg-wrap {
  width: 100%;
  height: 100%;
  background: #8bc8e1 url("../images/bg-dot.png") no-repeat;
  background-size: cover;
}
#index-wrap .bg-wrap > div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 170%;
  height: 113%;
}
#index-wrap .bg-wrap .layer1 {
  background: url("../images/bg-cloud1.png") no-repeat 55% 0%;
  background-size: 100% 100%;
  margin-left: -170%;
  animation: cloudLeft 110s -10s infinite linear alternate both;
  -webkit-animation: cloudLeft 110s -10s infinite linear alternate both;
  -moz-animation: cloudLeft 110s -10s infinite linear alternate both;
}
#index-wrap .bg-wrap .layer2 {
  width: 100%;
  height: 100%;
  background: url("../images/bg-cloud2.png") no-repeat center center;
  background-size: 100% 100%;
}
#index-wrap .bg-wrap .layer3 {
  background: url("../images/bg-cloud3.png") no-repeat 55% 0%;
  background-size: 100% 100%;
  margin-left: 170%;
  animation: cloudRight 20s 2s infinite linear alternate both;
  -webkit-animation: cloudRight 20s 2s infinite linear alternate both;
  -moz-animation: cloudRight 20s 2s infinite linear alternate both;
}
#index-wrap .bg-wrap .layer4 {
  background: url("../images/bg-cloud4.png") no-repeat 55% 0%;
  background-size: 100% 100%;
  margin-left: -170%;
  animation: cloudLeft 50s -10s infinite linear alternate both;
  -webkit-animation: cloudLeft 50s -10s infinite linear alternate both;
  -moz-animation: cloudLeft 50s -10s infinite linear alternate both;
}
#index-wrap .bg-wrap .layer5 {
  background: url("../images/bg-cloud5.png") no-repeat 55% 0%;
  background-size: 100% 100%;
  margin-left: 170%;
  animation: cloudRight 70s -15s infinite linear alternate both;
  -webkit-animation: cloudRight 70s -15s infinite linear alternate both;
  -moz-animation: cloudRight 70s -15s infinite linear alternate both;
}
#index-wrap .bg-wrap .layer6 {
  background: url("../images/bg-cloud6.png") no-repeat 55% 0%;
  background-size: 100% 100%;
  margin-left: -170%;
  animation: cloudLeft 30s -5s infinite linear alternate both;
  -webkit-animation: cloudLeft 30s -5s infinite linear alternate both;
  -moz-animation: cloudLeft 30s -5s infinite linear alternate both;
}

#index-wrap .btn-wrap_hor {
  width: 88%;
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
}
#index-wrap .btn-wrap_hor > div {
  height: 100%;
  display: flex;
  justify-content: space-between;
}
#index-wrap .btn-wrap_hor > div a {
  width: 16%;
}

#main-wrap,
#end-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}

/* main-wrap */
#main-wrap {
  /* display: none; */
}
#main-wrap .con-wrap {
  height: 100%;
  padding: 0 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
#main-wrap h1 {
  width: 100%;
  animation: float 2.5s ease-in-out infinite;
  -webkit-animation: float 2.5s ease-in-out infinite;
  -moz-animation: float 2.5s ease-in-out infinite;
  /* display: none; */
}

#main-wrap .audio-toggle {
  position: absolute;
  right: 6%;
  top: 5%;
  width: 11%;
  height: 6%;
  border-radius: 50%;
  overflow: hidden;
  display: none;
}
.audio-toggle.on {
  background: url("../images/btn-o-audio-on.png") no-repeat;
  background-size: 100% 100%;
}
.audio-toggle.off {
  background: url("../images/btn-o-audio-off.png") no-repeat;
  background-size: 100% 100%;
}

#main-wrap .loading-wrap {
  width: 90%;
  margin: 18% auto 0;
  /* display: none; */
}
#main-wrap .loading-wrap .loading-bar {
  width: 100%;
  height: 45%;
  min-height: 20px;
  background-color: #fff;
  border: 3px solid #fff;
  border-radius: 6px;
  box-sizing: border-box;
}
#main-wrap .loading-wrap .loading-curr {
  width: 0%;
  height: 100%;
  border-radius: 6px;
  background-color: #ff6167;
  transition: width 3s ease;
}
#main-wrap .loading-wrap .loading-curr.on {
  width: 100%;
}
#main-wrap .loading-wrap .loading-info {
  margin-top: 1.5em;
  color: #fff;
  font-size: 1.3em;
  text-align: center;
}

#main-wrap .btn-wrap_vert {
  width: 70%;
  margin: 18% auto;
  display: none;
}
#main-wrap .btn-wrap_vert .rank-btn {
  margin-top: 1.5em;
}

#main-wrap .rank-wrap {
  width: 88%;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: none;
}
#main-wrap .rank-wrap .rank-tit_wrap {
  margin-top: 10%;
}
#main-wrap .rank-wrap h2 {
  box-sizing: border-box;
}
#main-wrap .rank-wrap p {
  color: #666;
  text-align: center;
  font-size: 1.1em;
}
#main-wrap .rank-wrap .rank-list {
  margin-top: 4%;
  height: 51%;
  position: relative;
}
#main-wrap .rank-wrap .rank-list ul {
  position: relative;
  width: 100%;
  /* height: 100%; */
  /* overflow-y: auto; */
}
#main-wrap .rank-wrap .rank-list li {
  background: url("../images/bg-rank.png") no-repeat 0 0 / 100% 100%;
  box-sizing: border-box;
  padding: 1.4% 1em 1.9% 0.8em;
  margin-bottom: 2%;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  position: relative;
}
#main-wrap .rank-wrap .rank-list li span {
  display: block;
}
#main-wrap .rank-wrap .rank-list .rank {
  width: 7%;
  margin-right: 3%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.23em;
}
#main-wrap .rank-wrap .rank-list .name {
  width: 70%;
}
#main-wrap .rank-wrap .rank-list .score {
  width: 20%;
  text-align: right;
}
#main-wrap .rank-wrap .rank-list li.medal .rank {
  text-indent: -9999px;
}
#main-wrap .rank-wrap .rank-list .rank-user {
  background: url("../images/bg-rank-user.png") no-repeat 0 0 / 100% 100%;
  box-sizing: border-box;
  padding: 1.4% 1em 1.9% 0.8em;
  font-size: 1.26em;
  display: flex;
  align-items: center;
  position: relative;
}
#main-wrap .rank-wrap .rank-list > .rank-user {
  margin-top: 1em;
}

/* end-wrap */
#end-wrap {
  display: none;
}
#end-wrap .logo {
  width: 40%;
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
}
#end-wrap .end-tit {
  font-size: 1.6em;
}
#end-wrap .tit {
  display: inline-block;
  font-size: 1em;
  color: #666;
  padding: 2% 5.5%;
  border: 1px solid #666;
  border-radius: 1em;
  margin-right: 7%;
}
#end-wrap .con {
  font-size: 1.4em;
  position: relative;
  top: 2px;
}

#end-wrap .ending1-wrap {
  display: none;
}
#end-wrap .ending1-wrap .modal {
  height: 42%;
}
#end-wrap .ending1-wrap .modal .stars {
  width: 56%;
  position: absolute;
  left: 50%;
  top: -7%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
#end-wrap .ending1-wrap .modal .stars .star {
  width: 26%;
  position: relative;
}
#end-wrap .ending1-wrap .modal .stars .star:nth-of-type(2) {
  width: 35%;
}
#end-wrap .ending1-wrap .modal .stars .star img:nth-of-type(1) {
  position: relative;
}
#end-wrap .ending1-wrap .modal .stars .star .yes {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 50%;
  transition: all 0.4s;
}
#end-wrap .ending1-wrap .modal .stars .star:nth-of-type(1) .yes {
  transition-delay: 0.2s;
}
#end-wrap .ending1-wrap .modal .stars .star:nth-of-type(2) .yes {
  transition-delay: 0.6s;
}
#end-wrap .ending1-wrap .modal .stars .star:nth-of-type(3) .yes {
  transition-delay: 1s;
}
#end-wrap .ending1-wrap .modal .stars .star.on .yes {
  transform: scale(1);
  opacity: 1;
}
#end-wrap .ending1-wrap .modal.clear .modal-tit img:nth-of-type(1) {
  display: inline-block;
}
#end-wrap .ending1-wrap .modal.clear .modal-tit img:nth-of-type(2) {
  display: none;
}
#end-wrap .ending1-wrap .modal.over .modal-tit img:nth-of-type(1) {
  display: none;
}
#end-wrap .ending1-wrap .modal.over .modal-tit img:nth-of-type(2) {
  display: inline-block;
}
#end-wrap .ending1-wrap .modal-area {
  margin-top: 4%;
  background: url("../images/bg-modal-gray.png") no-repeat 0 0 / 100% 100%;
  justify-content: center;
  gap: 1.3em;
}
#end-wrap .ending1-wrap .modal-area .rank-area,
#end-wrap .ending1-wrap .modal-area .score-area {
  width: 70%;
}

#end-wrap .ending2-wrap {
  height: 100%;
  color: #000;
  display: none;
}
#end-wrap .ending2-wrap .con-wrap {
  height: 80%;
  padding: 0 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#end-wrap .ending2-wrap .txt-wrap {
  background: url("../images/bg-txtwrap.png") no-repeat 0 0 / 100% 100%;
  height: 30%;
  box-sizing: border-box;
  padding: 5% 4%;
}
#end-wrap .ending2-wrap .txt-wrap .end-tit {
  text-align: center;
  font-size:2.0em;
  font-weight:normal;
}
#end-wrap .ending2-wrap .txt-wrap .content {
  margin-top: 10%;
  line-height: 1.4em;
  font-size:1.5em;
} /* 두뇌 건강 관련 내용 구성에 따라 추가 css 필요 */
#end-wrap .ending2-wrap .sns-wrap {
  width: 80%;
  margin-top: 4%;
}
#end-wrap .ending2-wrap .sns-wrap .icon-wrap {
  width: 85%;
  margin: 3% auto 0;
  display: flex;
  justify-content: center;
}
#end-wrap .ending2-wrap .sns-wrap .icon-wrap a {
  margin-right: 5%;
}
#end-wrap .ending2-wrap .sns-wrap .icon-wrap > a:last-of-type {
  margin-right: 0;
}
#end-wrap .ending2-wrap .btn-wrap_vert {
  width: 70%;
  margin: 7% auto 10%;
}
#end-wrap .btn-wrap_vert .home-btn {
  margin-top: 6%;
}

/* game-wrap */
#game-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: none;
}
#game-wrap .game-area {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#game-wrap .play-area {
  width: 100%;
  position: relative;
  margin: 0 auto;
}
#game-wrap .play-area #imgCanvas {
  position: relative;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
}
#game-wrap .play-area canvas:not(:first-of-type) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}
#game-wrap .play-area #drawCanvas1 {
  z-index: 100;
}
#game-wrap .play-area #drawCanvas2 {
  z-index: 200;
}
#game-wrap .play-area #drawCanvas3 {
  z-index: 300;
}
#game-wrap .play-area .disturb-effect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 400;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: none;
}
#game-wrap .play-area .disturb-effect .effect-area {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../images/disturb-cloud-all.png") no-repeat 0 0 / 100% 100%;
  display: none;
}
#game-wrap .play-area .over-effect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 500;
  width: 100%;
  height: 100%;
  background: rgba(255, 52, 27, 0.1);
  opacity: 0;
}
#game-wrap .transition-effect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 600;
  width: 100%;
  height: 100%;
  display: none;
}
#game-wrap .transition-effect .tile {
  position: absolute;
  right: 0;
  width: 0%;
  height: 20%;
  transition: width 0.7s ease;
}
#game-wrap .transition-effect .tile:nth-child(1) {
  top: 0;
  background-color: #16157e;
  transition-delay: 0s;
}
#game-wrap .transition-effect .tile:nth-child(2) {
  top: 20%;
  background-color: #4e6bad;
  transition-delay: 0.2s;
}
#game-wrap .transition-effect .tile:nth-child(3) {
  top: 40%;
  background-color: #8bc8e1;
  transition-delay: 0.4s;
}
#game-wrap .transition-effect .tile:nth-child(4) {
  top: 60%;
  background-color: #a8dbef;
  transition-delay: 0.6s;
}
#game-wrap .transition-effect .tile:nth-child(5) {
  top: 80%;
  background-color: #c8efff;
  transition-delay: 0.8s;
}
#game-wrap .transition-effect.on .tile {
  width: 100%;
}

#game-wrap .info-wrap .progress-bar {
  height: 18%;
  background: #000;
  border-bottom: 2px solid #000;
}
#game-wrap .info-wrap .progress-curr {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #ff323a;
  background: -moz-linear-gradient(
    top,
    #ffdbbe 0%,
    #ffdbbe 10%,
    #f1565c 44%,
    #ff323a 100%
  );
  background: -webkit-linear-gradient(
    top,
    #ffdbbe 0%,
    #ffdbbe 10%,
    #f1565c 44%,
    #ff323a 100%
  );
  background: linear-gradient(
    to bottom,
    #ffdbbe 0%,
    #ffdbbe 10%,
    #f1565c 44%,
    #ff323a 100%
  );
  border-right: 2px solid #ffdbbe;
}
#game-wrap .info-wrap .bot-wrap {
  height: calc(82% - 2px);
  box-sizing: border-box;
  padding: 0.5em 1em;
  display: flex;
  background: #8bc8e1 url("../images/bg-game-cloud.png") no-repeat right bottom /
    100% 100%;
}
#game-wrap .info-wrap .bot-wrap .time-wrap {
  width: 27%;
}
#game-wrap .info-wrap .bot-wrap .time-wrap div {
  height: 100%;
  background: url("../images/time-cloud.png") no-repeat center center / contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.75em;
}
#game-wrap .info-wrap .bot-wrap .time-wrap div .rest-time {
  font-size: 1.6em;
}
#game-wrap .info-wrap .bot-wrap .number-wrap {
  width: 60%;
  box-sizing: border-box;
  padding: 0 4% 0 2%;
  display: flex;
}
#game-wrap .info-wrap .bot-wrap .number-wrap .balloon {
  flex: 1 1 0;
  position: relative;
}
#game-wrap .info-wrap .bot-wrap .number-wrap .balloon > div {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
#game-wrap .info-wrap .bot-wrap .number-wrap .balloon .balloon-off {
  background: url("../images/balloon_off.png") no-repeat center center / contain;
}
#game-wrap .info-wrap .bot-wrap .number-wrap .balloon .balloon-on {
  background: url("../images/balloon_on.png") no-repeat center center / contain;
  opacity: 0;
  transform: translateY(50%);
  transition: all 0.4s;
}
#game-wrap .info-wrap .bot-wrap .number-wrap .balloon .balloon-on.done {
  opacity: 1;
  transform: translateY(0);
}
#game-wrap .info-wrap .bot-wrap .toggle-wrap {
  width: 13%;
}
#game-wrap .info-wrap .bot-wrap .toggle-wrap .menu-btn {
  width: 100%;
  height: 100%;
  background: url("../images/btn-o-menu.png") no-repeat center center / contain;
}

/* modal-wrap */
#modal-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  display: none;
}
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ribbon {
  width: 85%;
}
.modal-tit {
  width: 100%;
  position: absolute;
  left: 0;
  top: 10%;
}
.ribbon .modal-area {
  width: 76.65%;
  height: 100%;
  margin: 0 auto;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ribbon .modal-area .btn-s {
  display: block;
  width: 22%;
  color: #fff;
  position: absolute;
  bottom: 8%;
}

#modal-wrap .modal-bg1 {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

#modal-wrap .info-wrap {
  height: 36.5%;
  display: none;
}
#modal-wrap .info-wrap .modal-tit span {
  margin-top: 0.3em;
}
#modal-wrap .info-wrap .modal-area {
  background: url("../images/bg-modal-blue.png") no-repeat 0 0 / 100% 100%;
}
#modal-wrap .info-wrap .modal-area input {
  width: 85%;
  padding: 3% 0.7em;
  margin-top: 45%;
  border: 0 none;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: 2em;
  font-weight: 500;
}
#modal-wrap .info-wrap .modal-area input::placeholder {
  color: #666;
  font-size: 0.9em;
}

#modal-wrap .share-wrap {
  height: 36.5%;
  display: none;
}
#modal-wrap .share-wrap .modal-area {
  background: url("../images/bg-modal-white.png") no-repeat 0 0 / 100% 100%;
}
#modal-wrap .share-wrap .modal-area .sns-wrap {
  width: 70%;
  margin-top: 42%;
  display: flex;
  justify-content: space-between;
}
#modal-wrap .share-wrap .modal-area .sns-wrap a {
  width: 27%;
}

#modal-wrap .howto-wrap {
  width: 100%;
  height: 100%;
  display: none;
}
#modal-wrap .howto-wrap .modal-area {
  width: 85%;
  /* height: 42%; */
}
#modal-wrap .howto-wrap .modal-area .slick-list {
  width: 100%;
  height: 100%;
  position: relative;
}
#modal-wrap .howto-wrap .modal-area .slick-track {
  height: 100%;
}
#modal-wrap .howto-wrap .modal-area .slide {
  position: relative;
  width: 85%;
  height: 100%;
}
#modal-wrap .howto-wrap .modal-area .slide img {
  position: relative;
}
#modal-wrap .howto-wrap .modal-area .slide .btn-s {
  display: block;
  width: 30%;
  padding-top: 1em;
  color: #fff;
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
}
#modal-wrap .howto-wrap .modal-area .slick-dots {
  position: absolute;
  left: 50%;
  bottom: -18%;
  transform: translateX(-50%);
}
#modal-wrap .howto-wrap .modal-area .slick-dots li {
  display: inline-block;
  margin-right: 0.7em;
}
#modal-wrap .howto-wrap .modal-area .slick-dots li:last-child {
  margin-right: 0;
}
#modal-wrap .howto-wrap .modal-area .slick-dots li button {
  text-indent: -9999px;
  width: 0.5em;
  height: 0.5em;
  background: #999;
  border-radius: 50%;
  transition: all 0.2s;
}
#modal-wrap .howto-wrap .modal-area .slick-dots li.slick-active button {
  background: #fff;
  border-radius: 6px;
  padding: 0 0.8em;
}
#modal-wrap .howto-wrap .skip-btn {
  position: absolute;
  right: 5%;
  bottom: 3%;
  color: #fff;
  font-size: 1.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #fff;
}

#modal-wrap .count-wrap {
  color: #fff;
  display: none;
}
#modal-wrap .count-wrap span {
  display: block;
  text-align: center;
  font-size: 5em;
}
#modal-wrap .count-wrap .ready {
  display: none;
}
#modal-wrap .count-wrap .ready span {
  text-shadow: 3px 4px 2px rgba(56, 116, 236, 1);
  /* display: none; */
}
#modal-wrap .count-wrap .ready .count {
  margin-bottom: 9%;
}
#modal-wrap .count-wrap .start {
  display: none;
}
#modal-wrap .count-wrap .start span {
  text-shadow: 3px 4px 2px rgba(236, 56, 56, 0.93);
}

#modal-wrap .menu-wrap {
  width: 70%;
  height: 54%;
  background: url("../images/bg-pause.png") no-repeat 0 0 / 100% 100%;
  display: none;
}
#modal-wrap .menu-wrap div {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#modal-wrap .menu-wrap .btn {
  width: 60%;
  margin-bottom: 4%;
}
#modal-wrap .menu-wrap .btn:last-of-type {
  margin-bottom: 6%;
}
#modal-wrap .menu-wrap .audio-toggle {
  width: 20%;
  height: 14.5%;
  border-radius: 50%;
  overflow: hidden;
}
#modal-wrap .menu-wrap .audio-toggle.on {
  background-image: url("../images/btn-o-audio-on-blue.png");
}
#modal-wrap .menu-wrap .audio-toggle.off {
  background-image: url("../images/btn-o-audio-off-blue.png");
}

#modal-wrap .clear-wrap {
  width: 100%;
  height: 100%;
  display: none;
}
#modal-wrap .clear-wrap .clear {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: url("../images/effect-clear.png") no-repeat center center /
    contain;
  opacity: 0;
  transition: all 0.8s ease-in-out;
}
#modal-wrap .clear-wrap.on .clear {
  width: 70%;
  height: 60%;
  opacity: 1;
}
#modal-wrap .clear-wrap span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  text-align: center;
  color: #fff;
  font-size: 5em;
  text-shadow: 3px 4px 2px rgba(56, 116, 236, 1);
}

#modal-wrap .over-wrap {
  width: 100%;
  height: 100%;
  display: none;
}
#modal-wrap .over-wrap .over {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 17em;
  background: url("../images/effect-over.png") no-repeat center top / contain;
  margin-top: -3em;
  opacity: 0;
  transition: all 2s 0.5s;
}
#modal-wrap .over-wrap.on .over {
  margin-top: 0;
  opacity: 1;
}
#modal-wrap .over-wrap span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  text-align: center;
  color: #fff;
  font-size: 5em;
  text-shadow: 3px 4px 2px rgba(236, 56, 56, 0.93);
}

#modal-wrap .event-wrap {
  width: 90%;
  /* height: 60%; */
  background: url("../images/bg-modal-gray.png") no-repeat 0 0 / 100% 100%;
  box-sizing: border-box;
  padding: 5% 3%;
  color: #000;
  display: none;
}
#modal-wrap .event-wrap > .inner {
  width: 100%;
  height: 100%;
  position: relative;
}
#modal-wrap .end-tit {
  text-align: center;
}
#modal-wrap .event-wrap .content {
  width: 94%;
  margin: 0 auto;
  margin-top: 4%;
  line-height: 1.3em;
  text-align: center;
} /* 이벤트 내용 구성에 따라 추가 css 필요 */
#modal-wrap .event-wrap #evt-form {
  margin-top: 6%;
}
#modal-wrap .event-wrap #evt-form input[type="text"],
#modal-wrap .event-wrap #evt-form input[type="number"] {
  display: block;
  width: 100%;
  border: 0 none;
  border-radius: 5px;
  box-sizing: border-box;
  outline: none;
  font-size: 1.05em;
  padding: 0.65em 1em;
}
#modal-wrap .event-wrap #evt-form #evtPhone {
  margin-top: 3%;
}
#modal-wrap .event-wrap #evt-form .agree-wrap {
  margin-top: 6.5%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
#modal-wrap .event-wrap #evt-form .agree-wrap label {
  cursor: pointer;
}
#modal-wrap .event-wrap #evt-form .agree-wrap #evtAgree {
  width: 1.2em;
  height: 1.2em;
  border: 1px solid #000;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  top: 1px;
}
#modal-wrap .event-wrap #evt-form .agree-wrap label span {
  text-decoration: underline;
  text-underline-position: under;
  -webkit-text-underline-position: under;
  font-weight: 500;
  font-size: 1.1em;
}
#modal-wrap .event-wrap #evt-form .agree-wrap #evtAgree:checked {
  background: #608bfe url("../images/ico-check.png") no-repeat center center /
    contain;
  border-color: #608bfe;
}
#modal-wrap .event-wrap #evt-form .agree-wrap .btn-more {
  font-size: 0.85em;
  color: #666;
  text-decoration: underline;
  text-underline-position: under;
  -webkit-text-underline-position: under;
}
#modal-wrap .event-wrap #evt-form .alert {
  margin-top: 2%;
  color: #ff6167;
  font-size: 0.95em;
  /* display: none; */
}
#modal-wrap .event-wrap #evt-form .alert:before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  padding-right: 0.2em;
  background: url("../images/ico-alert.png") no-repeat center left / contain;
  position: relative;
  top: 2px;
}
#modal-wrap .event-wrap #evt-form .event-btn {
  width: 50%;
  margin: 7% auto 0;
}
#modal-wrap .event-wrap .close-btn {
  width: 8%;
  position: absolute;
  left: 50%;
  bottom: -11%;
  transform: translateX(-50%);
}

#modal-wrap .privacy-wrap {
  width: 90%;
  height: 70%;
  background: url("../images/bg-modal-gray.png") no-repeat 0 0 / 100% 100%;
  box-sizing: border-box;
  padding: 5% 3%;
  color: #000;
  display: none;
}
#modal-wrap .privacy-wrap .content {
  width: 94%;
  height: 88%;
  margin: 0 auto;
  margin-top: 8%;
  line-height: 1.6em;
  font-size: 0.875em;
  word-break: break-all;
  overflow-y: scroll;
}
#modal-wrap .privacy-wrap .content ul {
  list-style-type: disc;
  padding-inline-start: 1.5em;
}
#modal-wrap .privacy-wrap .close-btn {
  width: 8%;
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
}

/* ******** mediaquery ******** */
@media screen and (max-width: 768px) {
  #wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  #main-wrap .loading-wrap .loading-info {
    /* font-size: 1em; */
  }
  #main-wrap .audio-toggle {
    width: 13%;
    height: 7.3%;
  }
  #main-wrap .rank-wrap p {
    /* font-size: 1.05em; */
  }
  #main-wrap .rank-wrap .rank-list li {
    /* font-size: 1.08em; */
  }
  #main-wrap .rank-wrap .rank-list .rank {
    /* font-size: 1.11em; */
  }
  #main-wrap .rank-wrap .rank-list .rank-user {
    /* font-size: 1.15em; */
  }

  #end-wrap .end-tit {
    /* font-size: 1.5em; */
  }
  #end-wrap .tit {
    /* font-size: 0.9em; */
  }
  #end-wrap .con {
    /* font-size: 1.3em; */
  }
 

  #game-wrap .info-wrap .bot-wrap .time-wrap div {
    /* font-size: 0.6em; */
  }

  #modal-wrap .info-wrap .modal-area input {
    /* font-size: 1.1em; */
  }
  #modal-wrap .count-wrap span {
    /* font-size: 4.3em; */
  }
  #modal-wrap .clear-wrap span,
  #modal-wrap .over-wrap span {
    /* font-size: 4em; */
  }
  #modal-wrap .end-tit {
    /* font-size: 1.4em; */
  }
  #modal-wrap .event-wrap .content {
    /* font-size: 0.95em; */
  }
  #modal-wrap .event-wrap #evt-form input[type="text"],
  #modal-wrap .event-wrap #evt-form input[type="number"] {
    /* font-size: 1em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap label span {
    /* font-size: 1.05em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap .btn-more {
    /* font-size: 0.8em; */
  }
  #modal-wrap .event-wrap #evt-form .alert {
    /* font-size: 0.9em; */
  }
}

@media screen and (max-width: 480px) {
  #main-wrap .loading-wrap .loading-bar {
    height: 40%;
  }
  #main-wrap .loading-wrap .loading-info {
    /* font-size: 0.9em; */
  }

  #main-wrap .rank-wrap p {
    /* font-size: 0.95em; */
  }
  #main-wrap .rank-wrap .rank-list li {
    padding: 1.4% 1em 1.9% 0.5em;
    margin-bottom: 1%;
    /* font-size: 0.95em; */
  }
  #main-wrap .rank-wrap .rank-list .rank {
    /* font-size: 1em; */
  }
  #main-wrap .rank-wrap .rank-list .name {
    width: 65%;
  }
  #main-wrap .rank-wrap .rank-list .score {
    width: 25%;
  }
  #main-wrap .rank-wrap .rank-list .rank-user {
    background: url("../images/bg-rank-user.png") no-repeat 0 0 / 100% 100%;
    box-sizing: border-box;
    padding: 1.4% 1em 1.9% 0.5em;
    /* font-size: 1em; */
  }

  #end-wrap .end-tit {
    padding-top: 0.2em;
    /* font-size: 1.1em; */
  }
  #end-wrap .tit {
    /* font-size: 0.6em; */
  }
  #end-wrap .con {
    /* font-size: 0.9em; */
  }
  #end-wrap .ending1-wrap .modal-area {
    gap: 1em;
  }
  #end-wrap .ending2-wrap .txt-wrap .content {
    /* font-size: 0.75em; */
  }

  #game-wrap .info-wrap .bot-wrap {
    padding: 0.2em 1em;
  }
  #game-wrap .info-wrap .bot-wrap .time-wrap div {
    /* font-size: 0.45em; */
  }
  #game-wrap .info-wrap .bot-wrap .time-wrap div .rest-time {
    /* font-size: 1.8em; */
  }

  #modal-wrap .info-wrap .modal-area input {
    /* font-size: 0.95em; */
  }
  #modal-wrap .howto-wrap .modal-area .slick-dots li {
    margin-right: 0.5em;
  }
  #modal-wrap .howto-wrap .modal-area .slick-dots li button {
    width: 0.4em;
    height: 0.4em;
  }
  #modal-wrap .howto-wrap .modal-area .slick-dots li.slick-active button {
    /* padding: 0 0.6em; */
  }
  #modal-wrap .count-wrap span {
    /* font-size: 3em; */
  }
  #modal-wrap .clear-wrap span,
  #modal-wrap .over-wrap span {
    /* font-size: 2.4em; */
  }
  #modal-wrap .clear-wrap.on .clear {
    width: 60%;
    height: 54%;
    opacity: 1;
  }
  #modal-wrap .over-wrap .over {
    width: 42%;
    height: 25%;
    margin-top: -5%;
  }
  #modal-wrap .end-tit {
    /* font-size: 1.1em; */
  }
  #modal-wrap .event-wrap .content {
    /* font-size: 0.7em; */
  }
  #modal-wrap .event-wrap #evt-form input[type="text"],
  #modal-wrap .event-wrap #evt-form input[type="number"] {
    /* font-size: 0.8em; */
    padding: 0.5em 1em;
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap {
    margin-top: 4.5%;
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap #evtAgree {
    /* width: 0.9em; */
    /* height: 0.9em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap label span {
    /* font-size: 0.8em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap .btn-more {
    /* font-size: 0.6em; */
  }
  #modal-wrap .event-wrap #evt-form .alert {
    /* font-size: 0.7em; */
  }

  #modal-wrap .privacy-wrap .content {
    /* font-size: 0.7em; */
  }
}
@media screen and (max-width: 360px) {
  #main-wrap .loading-wrap .loading-bar {
    height: 36%;
  }
  #main-wrap .loading-wrap .loading-info {
    /* margin-top: 1em; */
    /* font-size: 0.8em; */
  }

  #main-wrap .rank-wrap p {
    /* font-size: 0.8em; */
  }
  #main-wrap .rank-wrap .rank-list .rank {
    /* font-size: 0.9em; */
  }
  #main-wrap .rank-wrap .rank-list li {
    padding: 1.7% 1em 2.1% 0.5em;
    /* font-size: 0.85em; */
  }
  #main-wrap .rank-wrap .rank-list .rank-user {
    /* font-size: 0.95em; */
  }

  #end-wrap .end-tit {
    /* font-size: 1em; */
  }
  #end-wrap .tit {
    /* font-size: 0.5em; */
  }
  #end-wrap .con {
    /* font-size: 0.9em; */
  }


  #modal-wrap .info-wrap .modal-area input {
    /* font-size: 0.75em; */
  }
  #modal-wrap .howto-wrap .skip-btn {
    /* font-size: 0.8em; */
  }
  #modal-wrap .end-tit {
    /* font-size: 1em; */
  }
  #modal-wrap .event-wrap .content {
    /* font-size: 0.55em; */
  }
  #modal-wrap .event-wrap #evt-form input[type="text"],
  #modal-wrap .event-wrap #evt-form input[type="number"] {
    /* font-size: 0.7em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap #evtAgree {
    width: 0.7em;
    height: 0.7em;
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap label span {
    /* font-size: 0.65em; */
  }
  #modal-wrap .event-wrap #evt-form .agree-wrap .btn-more {
    /* font-size: 0.55em; */
  }
  #modal-wrap .event-wrap #evt-form .alert {
    /* font-size: 0.6em; */
  }
  #modal-wrap .event-wrap #evt-form .alert:before {
    width: 0.8em;
    height: 0.8em;
    padding-right: 0.4em;
    top: 0;
  }

  #modal-wrap .privacy-wrap .content {
    /* font-size: 0.6em; */
  }
}

@keyframes cloudLeft {
  0% {
    margin-left: -170%;
  }
  100% {
    margin-left: 170%;
  }
}
@-webkit-keyframes cloudLeft {
  0% {
    margin-left: -170%;
  }
  100% {
    margin-left: 170%;
  }
}
@-moz-keyframes cloudLeft {
  0% {
    margin-left: -170%;
  }
  100% {
    margin-left: 170%;
  }
}

@keyframes cloudRight {
  0% {
    margin-left: 170%;
  }
  100% {
    margin-left: -170%;
  }
}
@-webkit-keyframes cloudRight {
  0% {
    margin-left: 170%;
  }
  100% {
    margin-left: -170%;
  }
}
@-moz-keyframes cloudRight {
  0% {
    margin-left: 170%;
  }
  100% {
    margin-left: -170%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4%);
  }
  100% {
    transform: translateY(0);
  }
}
@-webkit-keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4%);
  }
  100% {
    transform: translateY(0);
  }
}
@-moz-keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4%);
  }
  100% {
    transform: translateY(0);
  }
}
