:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --background-color: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    margin: 0;
    padding: 0;
    background: url('../img/BG.png') no-repeat center top fixed;
    background-size: cover;

    font-family: Arial, sans-serif;
}
@media (min-width: 768px) {
    body {
        min-height: 100vh;
        overflow: hidden;
    }
}
.wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-luckywheel {
    position: relative;
    margin: 0 auto;
    will-change: transform;
    z-index: 1;
}

.hc-luckywheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hc-luckywheel-canvas {
    max-width: 100%;
    height: auto;
}

.swal2-popup {
    font-size: 1.6rem !important;
    width: 80% !important;
    max-width: 500px !important;
}
.swal2-title {
    font-size: 1.8rem !important;
    color: #333 !important;
}
#swal2-html-container {
    font-size: 1.6rem !important;
    font-weight: bold;
    color: brown;
}
.swal2-image {
    margin: 1em auto !important;
    max-width: 200px !important;
    max-height: 200px !important;
}
.spin-history {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}
.spin-history h3 {
    margin-bottom: 20px;
}
.spin-list {
    overflow-y: auto;
}
.spin-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.spin-item .prize-info {
    flex: 1;
}
.spin-item .prize-name {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}
.spin-item .spin-time {
    font-size: 0.7rem;
    color: #666;
}
@media (max-width: 768px) {
    .wrapper {
        height: auto;
        min-height: 50vh;
        padding: 20px 0;
    }

    .hc-luckywheel {
        transform: scale(0.8);
    }

    .spin-history {
        max-height: 300px;
        margin-top: 20px;
    }

    .spin-item img {
        width: 30px;
        height: 30px;
    }

    .spin-item .prize-name {
        font-size: 0.8rem;
    }
    .spin-item .spin-time {
        font-size: 0.6rem;
    }
}
#wrapper  *,
#wrapper  *:before,
#wrapper  *:after {
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    box-sizing: content-box !important;
}

@media (max-width: 480px) {
    .wrapper {
        min-height: 40vh;
        padding: 10px 0;
    }

    .hc-luckywheel {
        transform: scale(0.6);
    }

    .spin-history {
        display: none; /* Hide spin history on mobile */
    }

    .spin-item img {
        width: 25px;
        height: 25px;
    }

    .spin-item .prize-name {
        font-size: 0.7rem;
    }
    .spin-item .spin-time {
        font-size: 0.5rem;
    }
}
.container-fluid {
    padding: 20px;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    transform: rotate(0deg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.wheel-item {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
}

.wheel-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.wheel-item span {
    font-size: 14px;
    color: var(--text-color);
    font-weight: bold;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}

.wheel-center button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.wheel-center button:hover {
    background: #ff5252;
}

.wheel-center button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.history-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.history-container h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.history-item:hover {
    transform: translateX(5px);
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.history-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 5px;
    background: white;
    padding: 5px;
}

.history-info {
    flex: 1;
}

.prize-name {
    display: block;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.prize-time {
    font-size: 0.9rem;
    color: #666;
}

.no-history {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 768px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .wheel-item img {
        width: 40px;
        height: 40px;
    }
    
    .wheel-item span {
        font-size: 12px;
    }
    
    .wheel-center {
        width: 80px;
        height: 80px;
    }
    
    .history-container {
        margin-top: 20px;
    }
    
    .prize-name {
        font-size: 1rem;
    }
    
    .prize-time {
        font-size: 0.8rem;
    }
} 