@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('images/new-assets/background.png') center center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow: hidden;
    position: relative;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F15A22 0%, #D94A1A 100%);
    border: none;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(241, 90, 34, 0.5),
        0 0 20px rgba(241, 90, 34, 0.3),
        inset 0 -3px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(241, 90, 34, 0.7),
        0 0 30px rgba(241, 90, 34, 0.5),
        inset 0 -3px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-toggle svg {
    width: 30px;
    height: 30px;
    color: white;
}

.music-toggle.muted .music-icon {
    display: none;
}

.music-toggle.muted .mute-icon {
    display: block !important;
}

.container {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.company-logo {
    /* width: 400px; */
    max-width: 70%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.spin-title {
    max-width: 40%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

h1 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #F15A22, #FF6B40, #FF8866, #E84E1C);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(241, 90, 34, 0.5);
    position: relative;
}


.wheel-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    perspective: 1000px;
    width: 70vw;
    max-width: 60vh;
    /* max-width: 600px; */
    height: 70vw;
    max-height: 60vh;
    /* max-height: 600px; */
}

.wheel-container::before {
    content: '';
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 8%;
    height: 15%;
    /* background: url('images/new-assets/spin layout ending mark.png') center center / contain no-repeat; */
    z-index: 100;
    pointer-events: none;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: visible;
    background: url('images/new-assets/spin layout.png') center center / contain no-repeat;
    transform-origin: center center;
    box-shadow: 
        0 0 0 15px rgba(255, 255, 255, 0.2),
        0 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(241, 90, 34, 0.6),
        0 0 150px rgba(255, 107, 64, 0.4),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.wheel.spinning {
    box-shadow: 
        0 0 0 15px rgba(255, 255, 255, 0.3),
        0 0 0 30px rgba(255, 255, 255, 0.2),
        0 0 120px rgba(241, 90, 34, 0.8),
        0 0 180px rgba(255, 107, 64, 0.6),
        inset 0 0 50px rgba(255, 255, 255, 0.3);
}

.wheel svg {
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: url('images/new-assets/botton with cick text.png') center center / contain no-repeat;
    color: transparent;
    font-weight: 900;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    letter-spacing: 5px;
    text-transform: uppercase;
    overflow: visible;
    text-indent: -9999px;
    padding: 0;
}

.spin-btn-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.1);
}

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

.spin-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
    filter: grayscale(1);
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 0;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(241, 90, 34, 0.4),
        inset 0 0 50px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.prize-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 20px auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: #fff;
    transform: rotate(90deg) scale(1.2);
}

#resultTitle {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(241, 90, 34, 0.6);
}

#resultText {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

#prizeWon {
    font-weight: 900;
    background: linear-gradient(45deg, #F15A22, #FF6B40, #FF8866);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    display: inline-block;
}

.play-again-btn {
    background: linear-gradient(135deg, #F15A22, #D94A1A, #E84E1C);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 10px 30px rgba(241, 90, 34, 0.5),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.play-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.play-again-btn:hover::before {
    left: 100%;
}

.play-again-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(241, 90, 34, 0.7),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.play-again-btn:active {
    transform: translateY(-2px) scale(1.02);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
    
    .music-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .wheel-container {
        width: 95vw;
        /* max-width: 450px; */
        height: 95vw;
        /* max-height: 450px; */
    }
    
    .spin-btn {
        width: 140px;
        height: 140px;
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .modal-content {
        padding: 30px;
    }
    
    #resultTitle {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .wheel-container {
        width: 95vw;
        /* max-width: 350px; */
        height: 95vw;
        /* max-height: 350px; */
    }
    
    .spin-btn {
        width: 110px;
        height: 110px;
        font-size: 18px;
        letter-spacing: 2px;
    }
}

@media (min-width: 1200px) {
    .spin-btn {
        width: 160px;
        height: 160px;
        font-size: 36px;
    }
}

