.lucky-wheel-container {
    max-width: 1300px;
    margin: 0px auto;
    padding: 30px;
    text-align: center;
    /*background:url(/wp-content/plugins/vongquaymayman/img/background.jpg);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Vòng quay luôn hiển thị ở giữa */
#wheel-container {
    margin: 0 auto;
    width: 100%;
    max-width:50%;
    height: 620px;
    position: relative;
}

/* Wheel base */
.wheel {
    background-image:url(/wp-content/plugins/vongquaymayman/img/lucky_wheel.png) !important;
    background-size: cover !important;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    overflow: hidden;
}

/* Prize sections */
.wheel-section {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 50%;
    transform-origin: 0% 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
}

/* Individual sections with colors and positioning */
.prize1 {
    /*background: #007bff;*/
    transform: rotate(-18deg);
    color: white;
}

.prize2 {
    /*background: #fff;*/
    transform: rotate(54deg);
}

.prize3 {
    /*background: #007bff;*/
    transform: rotate(126deg);
    color: white;
}

.prize4 {
    /*background: #fff;*/
    transform: rotate(198deg);
}

.prize5 {
    /*background: #ffcc00;*/
    transform: rotate(270deg);
    color: #000;
}

/* Các section bây giờ sẽ đều và không bị lệch */


/* Center circle with text */
.btn-spin{
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffd700;
    z-index: 10;
}

/* Spin button */

.pointer img{
    position: absolute;
    width: 70px;
    height: 80px;
    top: 50%;
    right: -30px; /* Đặt pointer ở bên phải */
    transform: translateY(-50%) rotate(90deg); /* Dịch chuyển vào giữa dọc và xoay */
    z-index: 10;
    border-radius: 50%; /* Làm tròn các góc để mượt mà hơn */
}

/* Tạo hiệu ứng hover để pointer nổi bật hơn */

/* CSS cho form đăng ký dưới dạng popup */
#registration-form {
    display: none; /* Ẩn ban đầu */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 400px;
    max-width: 90%;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}

#registration-form h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

#registration-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

#registration-form input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#registration-form button.submit-btn {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#registration-form button.submit-btn:hover {
    background: #0056b3;
}

/* Overlay nền tối khi popup hiện */
#form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* CSS cho Popup kết quả */
#result-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#result-container h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

#result-container p {
    font-size: 18px;
    margin-bottom: 20px;
}

#close-result {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-result:hover {
    background-color: #d32f2f;
}
.wheel-section span{
    Display:none;
    
}
.section-lucky{
    min-height:100vh !important;
    background:url(/wp-content/plugins/vongquaymayman/img/background.jpg)0% 0% / 100vw 100vh fixed rgb(250, 250, 250) !important;
    align-items: center;
    display: flex;
    flex-flow: row;
    min-height: auto;
    padding: 30px 0;
    position: relative;
    width: 100%;
}
.row_lucky{
    display:flex;
    flex-wrap: wrap;
}
.row_lucky .left{
    max-width:40%;
}
.banner-left{
    margin-top:80px;
}
.row_lucky .right{
    max-width:60%;
    width:100%;
}
@media (max-width: 1200px){
    .row_lucky .left{
    max-width:35%;
    }
    .row_lucky .right{
        max-width:65% !important;
       
    }
}
@media (max-width: 768px) {
    .section-lucky{
    background:url(/wp-content/plugins/vongquaymayman/img/background_mobile.jpg)0% 0% / 100vw 100vh fixed rgb(250, 250, 250) !important;
    align-items: flex-start;
    }
    .lucky-wheel-container {
        padding: 20px;
        max-width: 100%;
    }

    #wheel-container {
        width: 300px;
        height: 300px;
    }

    .wheel {
        border-width: 8px;
    }

    .btn-spin {
        width: 70px;
        height: 70px;
        font-size: 14px;
    }

    #registration-form {
        width: 90%;
        padding: 15px 20px;
    }

    #result-container {
        width: 80%;
        padding: 15px;
    }

    .pointer img {
        width: 40px;
        height: 50px;
        right: -20px;
    }
    .row_lucky .left{
        order:0;
    max-width:100%;
    }
    .banner-left{
    margin-top:0px;
}
    .row_lucky .right{
        max-width:100% !important;
       order:1;
    }
}
