/* Basic styles */
body {
    background-image: url('/images/bg5.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    color: #f1f1f1; 
    font-family: Arial, sans-serif;
    scrollbar-width: thin; 
    scrollbar-color: #555 #333; 
}

html {
    scrollbar-width: thin; 
    scrollbar-color: #555 #333; 
}

.header {
    text-align: center;
    height: 278px;
}
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #dce5ee;
}
.left-section {
    position: relative;
    width: 52%;
    left: -7%;
}

.spin-container {
    position: relative;
    width: 500px;
    margin-left: auto;
    margin-right: 10%;
}

.spin-wheel {
    width: 100%;
    display: block;
    position: relative;
    z-index: 10; 
    transition: transform 2s ease-out;

}

.needle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 148px;
    z-index: 122;
    transition: transform 2s ease-in-out;
    cursor: pointer;
}

.base {
    position: absolute;
    bottom: -132px;
    left: 50%;
    width: 120%;
    z-index: 1; 
}

.girl-image {
    position: absolute;
    right: 50%;
    bottom: -38%;
    height: 600px;
}

.sidebar {
    width: 35%;
    text-align: center;
    padding: 20px;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 10px;
    color: #f1f1f1;
    right: 10%;
    position: relative;
}

.btn-primary {
    background-color: #333;
    border-color: #444;
    color: #f1f1f1;
}

.btn-primary:hover {
    background-color: #555; 
    border-color: #666;
}

#prizeModal, #giftCodeModal {
    top: 38%;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #131313;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}

body.modal-open {
    overflow-y: scroll;
    padding-right: 0 !important;
}

.modal {
    overflow: hidden;
}

.claim-section {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    text-align: center;
    animation: pulse 2s infinite;
}

.total-members {
    font-size: 36px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.total-amount {
    font-size: 36px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.masked-username {
    font-weight: bold;
    color: #ff9800;
}

.prize-amount {
    color: #4caf50;
    font-weight: bold;
}

.jump {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-10px);
    animation: jumpEffect 0.5s ease-in-out;
}

.total-members,
.total-amounts {
    background-color:#1e1e1e; 
    font-size: 20px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
    text-align: center;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.total-members:hover,
.total-amounts:hover {
    transform: scale(1.05);
}

/* Scrollbar styles */
body::-webkit-scrollbar {
    width: 2px; 
    height: 2px; 
}

body::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px; 
}

body::-webkit-scrollbar-thumb {
    background-color: #555; 
    border-radius: 4px; 
    border: 2px solid #333; 
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #666; 
}

html::-webkit-scrollbar {
    width: 12px; 
    height: 12px; 
}

html::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px; 
}

html::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px; 
    border: 3px solid #333; 
}

html::-webkit-scrollbar-thumb:hover {
    background-color: #777; 
}

/* Flex display styles */
.main-content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 20px;
}

.claims-list {
    margin-top: 20px;
    max-height: 300px;
    overflow: hidden;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.claim-item {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
    color: #fff;
}
.table td, .table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: center;
}
/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal.fade .modal-dialog {
    animation: fadeIn 0.3s ease-out;
}

.modal.fade .modal-dialog.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 0, 0, 1);
    }
}

@keyframes jumpEffect {
    0% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}
.guide .item {
    text-align: center;
    cursor: pointer;
    color: #c7a680; /* Màu cho cả chữ và icon */
    font-weight: bold; /* Chữ in đậm */
}

.guide .item i {
    color: #c7a680; /* Màu cho icon */
}

.guide .item:hover i,
.guide .item:hover {
    color: #b8956e; /* Màu khi hover, có thể tùy chỉnh nếu muốn khác khi hover */
}

.relative-container {
    position: relative; /* Allows absolute positioning for children */
    width: 300px; /* Set the container width as needed for your layout */
    height: 400px; /* Set the height to include space for images and marquee */
    margin: 0 auto; /* Center the entire unit horizontally */
}

.spin-wheel,
.needle,
.base {
    position: absolute;
}

.spin-wheel {
    top: 0;
    left: -17%;
    z-index: 10;
    width: 404px;
}

.needle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 122;
}

.base {
    bottom: 0;
    left: -9%;
    z-index: 0;
    top: 96%;
}
.marquee-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    position: relative;
    top: 123%;
    width: 400px;
}

.marquee-icon {
    color: #ffffff;
    font-size: 20px;
}

.marquee-title {
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
    margin: 0; /* Removes default margin for h1 */
}

.marquee-text {
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
    flex: 1; /* Allows the marquee to expand and take up the remaining space */
    white-space: nowrap; /* Ensures the text in marquee stays in one line */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Basic styles optimized for mobile */
    body {
        background-image: url('/images/bg5.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        color: #f1f1f1;
        font-family: Arial, sans-serif;
        scrollbar-width: thin;
        scrollbar-color: #555 #333;
        margin: 0;
        padding: 0;
    }

    /* Scrollbar styles */
    body::-webkit-scrollbar {
        width: 2px;
        height: 2px;
    }

    body::-webkit-scrollbar-track {
        background: #333;
        border-radius: 4px;
    }

    body::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 4px;
        border: 2px solid #333;
    }

    body::-webkit-scrollbar-thumb:hover {
        background-color: #666;
    }

    html::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    html::-webkit-scrollbar-track {
        background: #333;
        border-radius: 10px;
    }

    html::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 10px;
        border: 3px solid #333;
    }

    html::-webkit-scrollbar-thumb:hover {
        background-color: #777;
    }

    /* Header styling */
    .header {
        text-align: center;
        margin: 10px 0;
        padding: 20px 10px;
        border-radius: 10px;
        height: auto;
        width: 100%;
    }
    /* Header styling */
    .header img {
        width: 100%;
    }
    .sidebar {
        width: 35%;
        text-align: center;
        padding: 20px;
        background: rgba(40, 40, 40, 0.9);
        border-radius: 10px;
        color: #f1f1f1;
        position: relative;
        right: 0px;
    }
    .sidebar img{
        width: 80%;
        display: none;

    }
    /* Layout adjustments for mobile, each section acts as a row */
    .left-section {
        position: relative;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .spin-container {
        position: relative;
        width: 100%;
        margin: 0 auto;
    }

    .spin-wheel {
        width: 100%;
        display: block;
        position: relative;
        z-index: 10;
        transition: transform 2s ease-out;
    }

    .needle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 148px;
        z-index: 120;
        transition: transform 2s ease-in-out;
        cursor: pointer;
    }

    .base {
        position: absolute;
        bottom: -132px;
        left: 50%;
        width: 120%;
        z-index: 1;
    }

    .girl-image {
        position: absolute;
        right: 128%;
        transform: translateX(50%);
        height: 388px;
        z-index: 88;
        bottom: 0;
    }

    /* Sidebar styled as a separate row */
    .sidebar {
        width: 100%;
        text-align: center;
        padding: 15px;
        background: rgba(40, 40, 40, 0.9);
        border-radius: 10px;
        color: #f1f1f1;
        margin: 20px 0;
    }

    /* Button styling */
    .btn-primary {
        background-color: #333;
        border-color: #444;
        color: #f1f1f1;
        width: 100%;
        margin: 10px 0;
    }

    .btn-primary:hover {
        background-color: #555;
        border-color: #666;
    }

    /* Modal adjustments */
    .modal-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        pointer-events: auto;
        background-color: #131313;
        border: 1px solid rgba(0, 0, 0, .2);
        border-radius: .3rem;
        outline: 0;
    }

    body.modal-open {
        overflow-y: scroll;
        padding-right: 0 !important;
    }

    .modal {
        overflow: hidden;
    }

    /* Claim section styled as a row */
    .claim-section {
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin: 20px auto;
        max-width: 100%;
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        text-align: center;
    }

    /* Text and font adjustments */
    .total-members, .total-amount {
        font-size: 20px;
        font-weight: bold;
        color: #ffeb3b;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    }

    .masked-username {
        font-weight: bold;
        color: #ff9800;
    }

    .prize-amount {
        color: #4caf50;
        font-weight: bold;
    }

    .jump {
        background: rgba(255, 215, 0, 0.3);
        transform: translateY(-10px);
        animation: jumpEffect 0.5s ease-in-out;
    }

    /* Responsive flex adjustments */
    .main-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    /* Claims list adjustments for mobile */
    .claims-list {
        margin-top: 20px;
        max-height: 300px;
        overflow: hidden;
        background: #1e1e1e;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Each claim item acts as a row */
    .claim-item {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        transition: background 0.3s, transform 0.2s;
        color: #fff;
    }

    /* Animations */
    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: scale(0.9);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes fadeOut {
        0% {
            opacity: 1;
            transform: scale(1);
        }
        100% {
            opacity: 0;
            transform: scale(0.9);
        }
    }

    .modal.fade .modal-dialog {
        animation: fadeIn 0.3s ease-out;
    }

    .modal.fade .modal-dialog.fade-out {
        animation: fadeOut 0.3s ease-out;
    }


    .spin-wheel {
        top: 0;
        left: -9%;
        z-index: 111;
        width: 300px;
    }
    
    .needle {
        top: 37%;
        left: 41%;
        transform: translate(-50%, -50%);
        z-index: 122;
        width: 60px;
        height: 60px;
    }
    
    .base {
        bottom: 0;
        left: -20%;
        z-index: 0;
        top: 69%;
    }
    .marquee-container {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-top: 1px solid #ddd;
        position: relative;
        top: 20%;
        width: 303px;
        left: -11%;
    }
    
    .marquee-icon {
        color: #ffffff;
        font-size: 20px;
    }
    
    .marquee-title {
        font-size: 13px;
        color: #ffffff;
        font-weight: bold;
        margin: 0; /* Removes default margin for h1 */
    }
    
    .marquee-text {
        font-size: 13px;
        color: #ffffff;
        font-weight: bold;
        flex: 1; /* Allows the marquee to expand and take up the remaining space */
        white-space: nowrap; /* Ensures the text in marquee stays in one line */
    }


    @keyframes pulse {
        0%, 100% {
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        }
        50% {
            box-shadow: 0 0 40px rgba(255, 0, 0, 1);
        }
    }

    @keyframes jumpEffect {
        0% {
            transform: translateY(-10px);
        }
        50% {
            transform: translateY(0px);
        }
        100% {
            transform: translateY(-10px);
        }
    }
}


