::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #aaa;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

body.page-template-page-lucky {
    background: radial-gradient(circle at center bottom, #ff4d4d 0%, #a00000 60%, #4a0000 100%) !important;
    color: white;
    margin: 0;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    overflow-y: hidden;
    position: relative;
}

.page-template-page-lucky main {
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    position: relative;
}

body.page-template-page-lucky .top-bar {
/*     background: linear-gradient(to right, #800000, #b30000, #800000); */
    text-align: center;
    padding: 10px;
/*     border-bottom: 2px solid #ffcc00;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); */
    position: relative;
    z-index: 100;
}

body.page-template-page-lucky .top-bar h5 {
    margin: 0;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 40px;
    line-height: 50px;
}

body.page-template-page-lucky .top-bar small {
    color: #ffd700;
	font-size:20px;
}

body.page-template-page-lucky .game-stage {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.page-template-page-lucky .character-img {
    position: absolute;
    bottom: 20px;
    left: 5%;
    width: 250px;
    z-index: 20;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

body.page-template-page-lucky .chance-badge {
    position: absolute;
    top: 20px;
    right: 5%;
    background: #fff;
    border: 4px solid #d35400;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #d35400;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

body.page-template-page-lucky .chance-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

body.page-template-page-lucky .chance-text {
    font-size: 0.8rem;
    font-weight: bold;
}

body.page-template-page-lucky .footer-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

body.page-template-page-lucky .custom-btn {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    border: 2px solid #fff;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
    box-shadow: 0 4px 0 #5e3370;
    transition: all 0.1s;
}

body.page-template-page-lucky .custom-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

body.page-template-page-lucky .wheel-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    background: conic-gradient(from 0deg, #c0392b, #e74c3c, #c0392b, #e74c3c);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

body.page-template-page-lucky .wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 5px solid #fff;
}

body.page-template-page-lucky canvas {
    display: block;
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.page-template-page-lucky .center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f1c40f, #f39c12);
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #d35400;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 18px;
    user-select: none;
    transition: transform 0.1s;
}

body.page-template-page-lucky .center-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

body.page-template-page-lucky .pointer-marker {
    display: none;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #ffcc00;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
    z-index: 40;
}

body.page-template-page-lucky .pointer-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #c0392b;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

div#spinBtn:after {
    content: none !important;
}

body.page-template-page-lucky .bulb {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    z-index: 10;
}

body.page-template-page-lucky .bulb.active {
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

@media (max-width: 768px) {
    body.page-template-page-lucky .wheel-wrapper {
        width: 340px;
        height: 340px;
    }

    body.page-template-page-lucky .character-img {
        width: 120px;
        bottom: 80px;
        left: 0;
        opacity: 0.9;
    }

    body.page-template-page-lucky .chance-badge {
        width: 70px;
        height: 70px;
        top: 20px;
        right: 10px;
    }

    body.page-template-page-lucky .chance-number {
        font-size: 1.5rem;
    }

    body.page-template-page-lucky .chance-text {
        font-size: 0.6rem;
    }
}

#spinBtn:before {
    content: "" !important;
    position: absolute;
    top: -13.5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: #fff;
    border-top: none;
    display: block;
}

input#swal2-input {
    width: 90% !important;
    margin: 20px auto;
    box-shadow: unset !important;
    border: 1px solid #000;
    border-radius: 4px !important;
}

.red-envelope-rain-wrapper {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    z-index: 0;
    /* background-color: rgba(0, 0, 0, 0.6); */
  }
  .red-envelope {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 2;
    cursor: pointer;
  }
  .red-envelope-item1 {
    top: 50px;
    left: 3%;
    animation: fall 3.2s linear infinite;
  }

  .red-envelope-item2 {
    top: 50px;
    left: 13%;
    /* transform: rotate(10deg); */
    animation: fall 3.9s linear infinite;
  }

  .red-envelope-item3 {
    top: 50px;
    left: 28%;
    /* transform: rotate(65deg); */
    animation: fall 3.1s linear infinite;
  }

  .red-envelope-item4 {
    top: 70px;
    left: 39%;
    /* transform: rotate(19deg); */
    animation: fall 3.8s linear infinite;
  }
    .red-envelope-item4-1 {
    top: 30px;
    left: 58%;
    /* transform: rotate(139deg); */
    animation: fall 2.5s linear infinite;
  }

  .red-envelope-item5 {
    top: 250px;
    left: 46%;
    /* transform: rotate(80deg); */
    animation: fall 3.3s linear infinite;
  }

  .red-envelope-item6 {
    top: 200px;
    left: 75%;
    /* transform: rotate(30deg); */
    animation: fall 3.2s linear infinite;
  }
  .red-envelope-item7 {
    top: 50px;
    left: 80%;
    /* transform: rotate(30deg); */
    animation: fall 3.9s linear infinite;
  }
  .red-envelope-item8 {
    top: 50px;
    left: 3%;
    /* transform: rotate(170deg); */
    animation: fall 4.2s linear infinite;
  }

  @keyframes fall {
    to {
      top: 100vh;
    }
  }

  @-webkit-keyframes fall {
    to {
      top: 100vh;
    }
  }

  @-moz-keyframes fall {
    to {
      top: 100vh;
    }
  }

  @media screen and ( min-width: 640px ) {
    .red-envelope {
      width: 100px;
      height: 100px;
    }
  }


img.phaohoa2 {
   	width: 200px;
    height: auto;
    margin: 20px auto 0;
	display:none;
}

img.phaohoa{
   width: 401.942px;
    height: 258.75px;
	position:absolute;
	left:-120px;
	top:-120px;
	display:none;
}

@media only screen and (max-width: 768px) {
	body.page-template-page-lucky .wheel-wrapper {
        width: 100% !important;
        height: 100% !important;
    }
	
    canvas#wheelCanvas {
        width: 100%;
        height: 100%;
    }

    body.page-template-page-lucky .center-btn {
        width: 60px;
        height: 60px;
        font-size: 12px;
        line-height: 18px;
    }

    body.page-template-page-lucky {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
    }

    body.page-template-page-lucky .footer-buttons {
        position: relative;
        flex-direction: column;
        margin: 50px 0;
    }

    .page-template-page-lucky main, body.page-template-page-lucky .game-stage {
        display: block;
    }
	
	body.page-template-page-lucky .top-bar h5 {
    font-size: 25px;
    line-height: 35px;
}

	body.page-template-page-lucky .top-bar small {
		color: #ffd700;
		font-size:15px;
	}
}