/* FONTS */
@font-face {
    font-family: 'HK1';
    src:  url('../fonts/HIEN KHANH 1.ttf') format('truetype');
}
@font-face {
    font-family: 'HK2';
    src:  url('../fonts/HONG KY 2.ttf') format('truetype');
}
/* PHONE */
img {
    width: 100%;
}
#uxp-phone {
    background: rgb(0,0,0, .8)
}
.uxp-luckywheel_phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.uxp-luckywheel_phone {
    display: flex;
    flex-flow: wrap row;
    justify-content: center;
    width: 300px;
    box-sizing: border-box;
    gap: 10px;
}
.uxp-luckywheel_phone input {
    max-width: 100%;
    flex-basis: 100%;
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 99px;
    border: 0;
    text-align: center;
    font-size: 20px;
}
.uxp-luckywheel_phone p {
    font-size: 16px;
    color: #05f30e;
    margin: 0;
}
#uxp-verify {
    margin-top: 0;
    padding: 10px 20px;
    width: 100%;
}

.uxp-luckywheel__header {
    display: flex;
    box-sizing: border-box;
    flex-flow: nowrap row;
    gap: 70px;
    align-items: center;
    justify-content: space-between;
}
.uxp-luckywheel__logo {
    flex: 0 1 50%;
    max-width: 200px;
}
.uxp-luckywheel__logo:nth-child(2) {
    max-width: 150px;
}
.uxp-luckywheel__logo img {
    width: 100%;
}
#uxp-luckywheel {
    margin: 0;
    padding: 0;
    /* background: radial-gradient(circle, #5b06a0, #2a0054); */
    font-family: Arial, sans-serif;
    text-align: center;
    height: 100vh;
    overflow-x: hidden;
}

.wheel-wrapper {
    background: url('../img/bg.jpg') no-repeat;
    padding: 30px 30px;
    max-width: 500px;
    margin: 0 auto;
    background-size: cover;
    height: 100%;
    position: relative;
    min-height: 780px;
    background-position: top center;
}

.uxp-luckywheel__title {
    max-width: 350px;
    margin: 15px auto;
    
}
.uxp-luckywheel__title img,
.uxp-luckywheel__slogan img {
    width: 100%;
}
.uxp-luckywheel__slogan {
    margin: 60px auto;
    max-width: 400px;
}
.uxp-luckywheel__note {
    font-size: 16px;
    color: #c1272d;
    animation-name: flash;
    animation-delay: 1s;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.wheel-box {
    position: relative;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
    left: 50%;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    z-index: 2;
}
.wheel-box:before {
    content: "";
    background: url("../img/luckywheel-shadow.png") no-repeat;
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1;
    width: 100%;
    height: 40px;
    background-size: contain;
    transform: translate(-50%, -50%);
}
.wheel img {
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    transform: rotate(60deg);
}

.spin-btn {
    position: absolute;
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

button.uxp-luckywheel__btn {
    margin-top: 100px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: red;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px red;
}

/* Popup */
.uxp-luckywheel__popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0, .5);
    z-index: 9999;
    top: 0;
    left: 0;
    transition: all .2s;
    display: none;
}

.uxp-luckywheel_gift {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.uxp-luckywheel__bg img {
    width: 100%;
}
.uxp-luckywheel_gift button {
    animation-name: flash;
    animation-delay: 0s;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.uxp-luckywheel__info {
    padding: 30px 30px;
    max-width: 500px;
    margin: 0 auto;
    background: url("../img/bg.jpg") no-repeat;
    color: #fff;
    background-size: cover;
    background-position: center center;
    display: none;
}
.uxp-luckywheel__info > p {
    margin: 0;
    color: rgb(193 39 45);
    font-family: 'HK1';
    font-size: 16px;
    font-weight: bold;
}
.uxp-luckywheel__info ul {
    list-style: none;
    text-align: left;
    font-size: 14px;
    margin-left: 0;
    padding-left: 0;
    color: #d3332e;
}
.uxp-luckywheel__info li span {
    font-weight: 700;
    color: #037472;
}
.uxp-luckywheel__info a {
    text-decoration: none;
    text-transform: none;
}
.uxp-luckywheel__info p.gift {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'HK2';
    color: rgb(193 39 45);
    text-shadow: 1px 1px 0px #ffffff, 1px 1px 2px #090909
}
.uxp-luckywheel__expired {
    color: rgb(193 39 45);
    display: none;
}
.uxp-luckywheel__news p {
    text-align: left;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    background-image: linear-gradient(rgb(193 39 45), rgb(3 116 114));
}
.uxp-luckywheel__news p:last-child {
    text-align: center;
}
/* Countdown */
.uxp-luckywheel__countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  font-family: sans-serif;
  color: white;
  flex-wrap: wrap;
    
}

.uxp-luckywheel__expired p {
    text-align: center;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.countdown-box {
  background: linear-gradient(to bottom, #ffdd80, #ffae3c);
  padding: 10px 20px;
  border-radius: 20px;
  text-align: center;
  min-width: 40px;
}

.countdown-box .number {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  line-height: 1;
}

.countdown-box .label {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}
.uxp-luckywheel__form {
    display: none;
}
.uxp-luckywheel__form form {
    display: flex;
    flex-flow: wrap row;
    width: 100%;
    gap: 15px;
    padding: 0 30px;
    box-sizing: border-box;
}
.uxp-luckywheel__form form input {
    flex-basis: 100%;
    max-width: 100%;
}
.uxp-luckywheel__form form input {
    min-height: 40px;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: none;
    padding: 0 10px;
    border: 0
}
.uxp-luckywheel__form input[type="submit"] {
    background: #c1272d;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 0 10px #ff502b;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.hide {
    display: none;
}
.show {
    display: block;
}
.wheel-warmup {
  animation: spinWarmup 1.5s ease-in forwards;
}
@media only screen and (min-width: 414px) {
    .wheel-box {
        width: 340px;
        height: 340px;
    }
    .wheel-box:before {
        top: 99%;
    }
}
@media only screen and (min-width: 768px) {
    .wheel-wrapper {
        height: 850px;
    }
    .uxp-luckywheel_gift {
        max-width: 800px;
    }
}
@keyframes flash {
    0%, 100%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
@keyframes spinWarmup {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); } /* quay 2 vòng */
}