@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,800,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
/*  background: url(./img/main-bg.jpg) center top no-repeat;*/
  font-size: 14px;
  height: 895px;
  min-width: 320px;
  background: #f7f7f7;
}

.inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative
}

.content {
    margin: 0 auto;
    padding-top: 50px;
    text-align: center;
    width: 100%;
    height: 1000px;
    overflow: hidden;
}

.content-left {
    position: relative;
    max-width: 350px;
    width: 100%;
    display: inline-block;
    vertical-align: top
}

.content-right {
    position: relative;
    max-width: 982px;
    width: 100%;
    display: inline-block;
    vertical-align: top;
    margin-left: -340px
}

.banner {
    max-width: 380px;
    width: 100%;
    text-align: left;
    color: #fff;
    height: 800px
}

.banner p {
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px;
    font-size: 29px
}

#result {color: #000;}
#statusResult {font-size: 22px}
.container {
  position: relative;
  height: 550px;
  width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./img/wheel-round.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.container .spinBtn {
  position: absolute;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.1em;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

.container .spinBtn::before {
  content: "";
  position: absolute;
  top: -28px;
  width: 20px;
  height: 30px;
  clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
  background: #fff;
}

.container .wheel {
  position: absolute;
  width: 400px;
  height: 400px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #333, 0 0 0 15px #fff, 0 0 0 15px #111;
  overflow: hidden;
  transition: transform 5s ease-out;
}

.container .wheel .option {
  position: absolute;
  width: 50%;
  height: 50%;
  background: var(--clr);
  clip-path: polygon(0 0, 63% 0, 100% 100%, 0 63%);
  transform-origin: bottom right;
  transform: rotate(calc(var(--i) * 1deg));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.container .wheel .option span {
  position: absolute;
  transform: rotate(45deg);
  font-size: 2em;
  color: #fff;
  font-weight: 700;
  text-shadow: 3px 5px 2px rgba(0, 0, 0, 0.15);
}

.wheel-wrap {
  width: 100%;
  height: 700px;
  position: absolute;
  top: 20px;
}

.wheel-top {
  background: url(./img/wheel-top-bg.png) no-repeat;
  width: 447px;
  height: 195px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  cursor: pointer;
  -webkit-transition: all .5s ease-in-out 0s;
  -moz-transition: all .5s ease-in-out 0s;
  -o-transition: all .5s ease-in-out 0s;
  -ms-transition: all .5s ease-in-out 0s;
  transition: all .5s ease-in-out 0s
}

.wheel-top:hover {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -o-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-filter: drop-shadow(0 0 5px #ffe000);
  -moz-filter: drop-shadow(0 0 5px #ffe000);
  -o-filter: drop-shadow(0 0 5px #ffe000);
  -ms-filter: drop-shadow(0 0 5px #ffe000);
  filter: drop-shadow(0 0 5px #ffe000)
}

.wheel-top h2 {
  text-align: center;
  color: #fff;
  font-family: "Montserrat","Opensans",Arial,sans-serif;
  font-size: 35px;
  text-transform: uppercase;
  position: relative;
  top: 32px;
  line-height: 1
}

.wheel-top h2 span {
  font-family: "Montserrat-Bold","Opensans-Bold",Arial,sans-serif;
  font-size: 24px
}

.wheel-top h2 span.remain_time {
  font-size: 12px;
  line-height: 0.5;
}

.wheel-holder {
  width: 100%;
  height: 550px;
  margin: 0 auto;
  position: relative;
  top: -60px;
}


.tncText {
  top: 750px;
  width: 100%;
  position: absolute;
  text-align: left;
  margin: 0 auto;
}

div.jb-tip {
    position: relative;
    margin: 25px 10px 20px 10px;
    padding: 20px 20px 1px 20px;
    border: 5px solid #eeeeee;
    border-radius: 10px;
    background-color: #ffffff;
}

@media screen and (max-width: 450px) {
  .container {
    height: 370px;
    width: 370px;
    margin: 0 auto;
  }
  .container .wheel .option span {
    font-size: 1.5em;
  }
  .container .wheel {
    height: 280px;
    width: 280px;
    margin: 0 auto;
    box-shadow: 0px;
  }
  .wheel-top {
    background-size: contain;
    width: 320px;
    height: 130px;
    top: -76px;
    left: 0
  }
  .wheel-top h2 {
    top: 20px;
    line-height: 0.7;
  }
  .wheel-top h2 span {
    font-size: 20px;
  }
  .wheel-wrap {
    height: 450px;
    position: relative;
    margin: 0 auto;
    left: auto;
    right: auto;
    top: 160px;
    width: 100%;
    background-position: top center;
  }
  .inner {
      max-width: 320px
  }

  .wheel-holder {
      width: 100%;
      height: 423px;
      top: -100px;

  }

  .wheel-holder>img.clacker {
      max-width: 35px;
      height: auto;
      top: -5px
  }

  .content {
      height: 1100px
  }

  li:hover {
      height: 42px
  }
  .tncText {
    top: 540px;
  }
}
@media screen and (max-width: 360px) {
  .container {
      height: 340px;
      width: 340px;
  }
  .container .wheel {
    height: 250px;
    width: 250px;
    box-shadow: 0px;
  }
}
#overlay {
    background: rgba(0,0,0,.8);
    display: none;
    height: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    background-attachment: local;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    z-index: 25
}

canvas {
    display: block;
    position: absolute;
    z-index: 1;
    pointer-events: none
}

/* 모달 스타일 */
.modal {
  display: none;  /* 초기에는 숨김 */
  position: fixed;
  z-index: 1;  /* 캔버스 위에 위치하도록 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);  /* 반투명 배경 */
}

/* 모달 콘텐츠 스타일 */
.modal-content {
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  background-color: white;
}

.lbox {
    background: url(./img/lbox-bg.png) center no-repeat;
    color: #fff;
    margin: 250px auto 0;
    z-index: 50;  /* 캔버스 위에 위치하도록 */
    position: relative;
    text-align: center;
    padding: 15px;
    line-height: 1.2;
    width: 350px;
    height: 265px;
    background-size: contain
}

.lbox-content {
  margin-top: 60px;
}

.lbox h1 {
    text-transform: uppercase;
    color: #af0000;
    font-size: 37px;
    font-weight: 900;
    top: 50px;
}
