@font-face {
    font-family: 'theme-font';
    src: url('../fonts/Oxygen-Regular.ttf');
}

@font-face {
    font-family: 'title-font';
    src: url('../fonts/Pacifico-Regular.ttf');
}

:root {
    --bg-color1: #008cff;
    --bg-color2 : #004aaa;
    --bg-color3 : #002d80;
    --bg-color4 : #093ac2;
    --bg-color5: #001541;

    --light-color: #ffffff;
    --secondary-color: #ffd900;
    --dark-color: #131313;
}

html {
    height: 100%;
}


.jackpot-wrapper {
    /* width: 31rem;
    height: 6rem; */
    max-width: 100%;
}
.jackpot-list {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

.jackpot-list li {
    margin-right: -1.4rem;
}

.jackpot-list li:last-child {
    margin-right: 0;
}

.major, .minor, .mega {
    width: 230px;
    height: 125px;
    position: relative;
}

.major {
    background: url(../images/major.gif);
    transform: scale(0.8);
}

.mega {
    background: url(../images/mega.gif);
    transform: scale(1);
    z-index: 1;
}

.minor {
    background: url(../images/minor.gif);
    transform: scale(0.8);
}

.major span, .mega span, .minor span {
 position: absolute;
 font-size: 1.7rem;
 font-weight: bold;
 top: 57%;
 left: 50%;
 transform: translate(-50%, -50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'title-font';
    color: var(--light-color);
    text-transform: capitalize !important;
}


.modal-title {
    color: var(--bg-color5);
}


.navbars-lucky {
    display: flex;
    font-weight: bold;
    justify-content: space-between;
    align-items: center;
}

.wrapper-lucky {
    position: relative;
    width : 434px;
    height: 454px;
    background-image: url('../images/wheel_back.png');
    background-size: 434px;
    background-repeat: no-repeat;
    margin-top: 2rem;
    max-width: 100%;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

#canvas {
    z-index: -1;
    top: 4.5%;
    /* left: 2.49rem; */
    position: relative;
  /* image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -o-crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor; */
}

.lucky-bg {
    z-index: 1;
    position: absolute;
    /* border-radius: 100%;
    border: 1.70rem solid #000; */
    background-image: url('../images/wheel_back.png');
    background-size: 508px;
    width: 504px;
    height: 580px;
    left: 0.69rem;
    top: 1.2rem;
    background-repeat: no-repeat;
}

#prizePointer {
    position: absolute;
    left: 15.08rem;
    top: 1.7rem;
    width: 3rem;
    z-index: 1;
    animation: animatePointer 1s linear infinite;
}

.title-ticket {
    color: var(--bg-color3);
    font-size: 1.2rem;
}

.screenshot-text {
    background: var(--bg-color4);
    color: var(--light-color);
    padding: 0.4rem;
    border-radius: 3px;
    font-size: 1rem;
}

#startDraw {
    background: var(--bg-color3);
    border-radius: 100%;
    padding: 1.6rem 0.9rem;
    font-size: 1.3rem;
    font-weight: bold;
    position: relative;
    top: 3.30rem;
    left: -10.30rem;
    color: var(--light-color);
    z-index: 1;
    border: 3px dashed var(--secondary-color);
}

.nav-top, .nav-top-left {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-top li {
    margin-right: 1rem;
    font-size: 1rem;
    background: var(--bg-color2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--light-color);
}

.nav-top li:first-child {
    padding: 0;
    background: none;
}

.nav-top li:hover {
    cursor: pointer;
}

.nav-top-left li {
    margin-left: 1rem;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

header {
    background: var(--dark-color);
    border-bottom: 1px solid var(--bg-color4);
    padding: 1.2rem;
}

.logo {
    width: 8rem;
    max-width: 100%;
}

#message-wrapper {
    margin-top: 1rem;
}

.avatar-img {
    width: 15rem;
    height: 14rem;
    background: url(../images/img-1.png) no-repeat;
    background-size: 14rem;
    background-position: center;
    transition: 0.3s ease-in-out;
    margin-bottom: 4rem;
}

.winner-title {
    font-size: 3rem;
    text-align: center;
    color: var(--secondary-color);
    animation: change-color 0.8s infinite;
}

.winner-title i {
color: var(--secondary-color);
font-size: 3rem;
animation: change-color 0.8s infinite;
}

.main-content {
    background: var(--bg-color4);
    color: var(--light-color);
    padding: 2rem;
}

.winner-title:hover {
    color: var(--light-color);
    cursor: pointer;
}

#winnerTable {
    margin-top: 1rem;
}

.voucher-wrapper {
    margin-top: 2rem;
    /* width: 23rem;
    z-index: 1;
    position: relative;
    left: 5.60rem; */
}

.btn-primary, .active>.page-link, .page-link.active {
    background-color: var(--bg-color3);
    border-color: var(--bg-color3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bg-color5);
    border-color: var(--bg-color3);
}

@keyframes change-color {
    from {
      color: var(--secondary-color);
    }
    to {
      color: var(--light-color);
    }
  }

  @keyframes animatePointer {
    0%, 100% {
        top: 1.7rem;
    }
    50% {
      top: 1rem;
    }
  }

  footer {
    position: relative;
    padding: 3rem 0 1rem 0rem;
    background: var(--dark-color);
  }

  .footer-img {
    display: block;
    margin-left: auto;
    margin-top: 3rem;
    margin-right: auto;
    width: 70%;
  }

  .coins-footer {
    position: absolute;
    right: 1rem;
    width: 9rem;
    max-width: 100%;
    animation: updown 1s infinite;
  }

  .copyright {
    font-size: 1rem;
    margin-top: 0.9rem;
    text-align: center;
  }

  .mobile-menu {
    display: none;
  }

  .rain-wrapper {
    width: 20px;
  }

  .raindrop {
    position: absolute;
    z-index: 2;
    animation: fall linear infinite;
  }
  @keyframes fall {
    from {
      transform: translateY(-20px);
      opacity: 1;
    }
    to {
      transform: translateY(100vh);
      opacity: 0;
    }
  }


  @keyframes updown {
    0%, 100% {
        top: -8rem;
    }
    50% {
        top: -6rem;
    }
  }


  /* 
  Responsive Theme
  */

  /* For Tablet View */
@media screen and (min-device-width: 768px)
and (max-device-width: 1024px) {

}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px)
and (orientation: portrait) {

    /* .jackpot-wrapper {
        display: block;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        max-width: 100%;
    } */

    .major, .minor, .mega {
        width: 230px;
        height: 125px;
    }

    .major {
        transform: scale(0.4);
    }

    .jackpot-list {
        overflow-x: hidden;
        width: 22.10rem;
        display: flex;
        justify-content: center;
    }

    .jackpot-list li {
        margin-right: -7rem;
    }

    .mega {
        transform: scale(0.6);
    }

    .minor {
        transform: scale(0.4);
    }

    .wrapper-lucky {
        margin-top: 0;
        width: 320px;
        height: 340px;
        background-size: 320px;
    }

    #canvas {
        transform: scale(1); /* Scale canvas to half size */
        transform-origin: 0 0; 
        width: 320px;
        top: 4.4%;
    }

    .navbars-lucky {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    #message-wrapper { 
        margin-top: 0.2rem;
    }

    .m-menu-item {
        margin-top: 0.6rem;
        list-style-type: none;
    }

    .m-menu-item li {
        display: inline;
        border-bottom: 2px dotted var(--bg-color4);
        padding: 0.2rem;
        border-radius: 3px;
        margin-right: 0.5rem;
    }

    .m-menu-item li:last-child {
        margin-right: 0;
    }

    .m-menu-item li:hover {
        cursor: pointer;
    }

    .menu-login-m {
        display: flex;
        justify-content: center;
    }

    .menu-login-m button {
        margin-right: 0.5rem;
    }

    .menu-login-m button:last-child {
        margin-right: 0;
    }
/* 
    #canvas {
        width: 250px;
        left: 3.70rem;
        top: 0;
    } */

    .lucky-bg {
        width : 292px;
        height: 330px;
        background-size: 292px;
        left: 2.67rem;
        top: -0.60rem;
    }

    #prizePointer {
        left: 10.80rem;
        top: -0.40rem;
        width: 2rem;
        animation: animatePointerMobile 1s linear infinite;
    }

    #startDraw {
        font-size: 0.6rem;
        padding: 1rem 0.9rem;
        top: 0;
        left: -3.80rem;
    }

    /* .voucher-wrapper {
        width: 100%;
        top: -3rem;
        left: 0;
    } */

    .winner-title {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .avatar-img {
        width: 100%;
        margin-top: -1rem;
    }

    .logo {
        width: 7rem;
        display:block;
        margin-left:auto;
        margin-right:auto;
    }

    footer p {
        text-align: justify;
    }

    .coins-footer {
        width: 5rem;
        right: 0;
    }

    @keyframes animatePointerMobile {
        0%, 100% {
            top: -0.40rem;
        }
        50% {
          top: -0.10rem;
        }
      }

}

/* For Mobile Landscape View */
@media screen and (max-device-width: 899px)
and (orientation: landscape) {
    .winner-title {
        top: 2.80rem;
    }

    /* .jackpot-list {
        display: flex;
        margin-left: 7rem;
        justify-content: center;
    } */

    .avatar-img {
        width: 14rem;
        margin-top: 2rem;
    }

    .lucky-bg {
        left: 4rem;
    }

    /* .voucher-wrapper {
        left: 8.61rem;
    } */
/* 
    #canvas {
        left: 9.4rem;
    } */

    #startDraw {
        left: -7.31rem;
    }

    #prizePointer {
        left: 18.30rem;
    }
}