@font-face {
    font-family: "Dimbo";
    src: url(../font/Dimbo\ Regular.ttf);
}

body {
    font-family: "Dimbo", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
  }

.wrap {
    position: relative;
    width: 300px;
    height: 600px;
    margin: auto;
    overflow: hidden;
}

#ad-container {
    height: 600px;
    width: 300px;
    position: absolute;
    left: 0;
    top: 0;
}

#bg,
#bg-2,
#bg-3{
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bg-2,
#bg-3{
    opacity: 0;
    transition: all 200ms;
}

#bg-2.show,
#bg-3.show  {
    opacity: 1;
    visibility: visible;
}

#front {
    position: absolute;
    left: 0;
    right: 0;
    top: 85px;
    margin: auto;
    width: 220px;
}

#ctaplay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 114px;
    margin: auto;
    z-index: 5;
    width: 200px;
    color: #fff;
    border-radius: 20px;
    background: rgb(46,56,109);
    background: -moz-linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    background: -webkit-linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    background: linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2e386d",endColorstr="#813b9a",GradientType=1);
}

#gamemekanisme {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    margin: auto;
    z-index: 5;
    width: 200px;
    color: #fff;
    border-radius: 20px;
    background: rgb(46,56,109);
    background: -moz-linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    background: -webkit-linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    background: linear-gradient(22deg, rgba(46,56,109,1) 0%, rgba(129,59,154,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2e386d",endColorstr="#813b9a",GradientType=1);
}

#timercon {
    right: 0;
    left: 0;
    width: 90px;
    text-align: center;
    margin: auto;
    top: 100px;
    font-size: 20px;
    color: #652D90;
    position: absolute;
    background: #D1C1FF;
    padding: 5px;
    border-radius: 6px;
}

#box {
    position: relative;
    left: 0;
    width: 300px;
    height: 300px;
    top: 160px;
    background: #3a1548;
}

.game {
    position: relative;
    background-size: 300px 300px;
    background-repeat: no-repeat;
    display: block;
    float: left;
    transition: 0.2s;
}

#instruction {
    position: absolute;
    width: 240px;
    margin: 0 auto;
    left: 0;
    right: 0;
    text-align: center;
    top: 30px;
    font-size: 12px;
    background: #fbae17;
    padding: 8px;
    border: solid 2px #000;
    display: none;
    float: left;
    transition: 0.2s;
}

.game_0 {
    height: 100px;
    width: 100px;
    background-position: -0px -0px;
}

.game_1 {
    height: 100px;
    width: 100px;
    background-position: -100px -0px;
}

.game_2 {
    height: 100px;
    width: 100px;
    background-position: -200px -0px;
}

.game_3 {
    height: 100px;
    width: 100px;
    background-position: -0px -100px;
}

.game_4 {
    height: 100px;
    width: 100px;
    background-position: -100px -100px;
}

.game_5 {
    height: 100px;
    width: 100px;
    background-position: -200px -100px;
}

.game_6 {
    height: 100px;
    width: 100px;
    background-position: -0px -200px;
}

.game_7 {
    height: 100px;
    width: 100px;
    background-position: -100px -200px;
}

.game_8 {
    height: 100px;
    width: 100px;
    background-position: -200px -200px;
}

.prevent_click {
    pointer-events: none;
}

#gameend {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

#gameend > p {
    color: #000;
    font-size: 24px;
    margin-top: 135px;
    font-weight: 400;
    width: 200px;
}

#gameend_2 {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

#gameend_2 > p {
    color: #fff;
    font-size: 24px;
    margin-top: 135px;
    font-weight: 400;
    width: 200px;
}

#endtitle {
    width: 90%;
    text-align: center;
    color: #fff;
    font-size: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
}

#lastimg {
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100px;
}

.sosmed {
    margin-top: 10px;
    width: 220px;
    height: 105px;
    background-image: url(../images/sosmed-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding: 15px 10px;
    color: #621C9F;
    font-size: 17px;
    text-align: center;
  }

  .sosmed__icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 10px;
  }

  .icons {
    width: 25px;
    display: inline-block;
  }

  .icons img {
    width: 100%;
    object-fit: cover;
  }

  #gameend .end-text {
    color: #461F68;
    font-size: 16px;
    line-height: 16px;
    width: 280px;
  }

  #gameend_2 .end-text {
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    width: 280px;
  }

.game-lain {
    margin-top: 5px;
    width: 180px;
    color: #fff;
    background-color: #711FAF;
    font-size: 21px;
    border-radius: 13px;
    padding: 10px;
    text-align: center;
}

/* update modal style */

.modal__container {
    position: relative;
    background: #6F34AF !important;
    border-radius: 20px;
    box-shadow: inset 0 0 5px #5C3487;
}

.modal__close {
    border: 1px solid #5C3487;
    background-color: #6F34AF;
    color: #fff;
    width: 35px;
    border-radius: 50%;
    font-size: 25px;
    position: absolute;
    top: -10px;
    right: -5px;

}

.modal__content ul {
    text-align: left;
    font-size: 15px;
    color: #fff;
    line-height: 20px;
    padding-left: 30px;
    margin-top: 5px;
  }

  .modal__content ul li {
    list-style-type: none;
    padding-left: 10px;
    margin: 3px 0;
  }
  
  .modal__content ul li::marker {
    content: "-"; 
  }