
body {
    background: linear-gradient(#000000, #001f3f);
    color: #FFFFFF;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

header {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
}

header img {
    width: 100px;
    height: 100px;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    color: #FFD700;
    margin: 10px 0;
}

header p {
    font-style: italic;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wheel-section {
    margin: 40px 0;
}



#wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

#background-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: conic-gradient(
        from 11.25deg,
            black 0deg 22.5deg,
            red 22.5deg 45deg,
            black 45deg 67.5deg,
            red 67.5deg 90deg,
            black 90deg 112.5deg,
            red 112.5deg 135deg,
            black 135deg 157.5deg,
            red 157.5deg 180deg,
            black 180deg 202.5deg,
            red 202.5deg 225deg,
            black 225deg 247.5deg,
            red 247.5deg 270deg,
            black 270deg 292.5deg,
            red 292.5deg 315deg,
            black 315deg 337.5deg,
            red 337.5deg 360deg
        );
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    transform: translate(-50%, -50%);
    z-index: 1;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    user-select: none;
}

@keyframes spin-left {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-1800deg);
    }
}

.spinning-left {
    animation: spin-left 180s ease-out forwards;
}

#bonus-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 20px solid #ffffff;
    background: conic-gradient(red, gold, red, gold, red, gold, red, gold, red, gold, red);
    transform: translate(-50%, -50%);

    z-index: 2;
}

#bonus-wheel::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid rgb(36, 36, 36);
}


.spinning {
    animation: spin 5s ease-out;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(1800deg); }
}





footer {
    padding: 20px;
    text-align: center;
}

button {
    background: #FF0000;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
    font-weight: bold;
}

button:hover {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 20px;
    }
    #background-circle {
        width: 400px;
        height: 400px;
    }

    #bonus-wheel {
        width: 300px;
        height: 300px;
    }

    button {
        width: 90%;
        font-size: 18px;
    }

    .modal-content {
        width: 90%;
        margin: 25% auto;
        padding: 20px;
        font-size: 1rem;
    }

    .modal-message {
        font-size: 1rem;
        padding: 15px;
    }

    .modal-message p.main {
        font-size: 1.2rem;
    }

    #modal-spin-button {
        font-size: 18px;
        padding: 12px 24px;
    }
}
@media (max-width: 420px) {
    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 16px;
    }
    #background-circle {
        width: 300px;
        height: 300px;
    }

    #bonus-wheel {
        width: 200px;
        height: 200px;
    }

    button {
        width: 80%;
        font-size: 14px;
    }



    .modal-content {
        margin: 35% auto;
        padding: 15px;
        font-size: 0.95rem;
        border-width: 5px;
    }

    .modal-message {
        font-size: 0.95rem;
        padding: 10px;
    }

    .modal-message p.main {
        font-size: 1rem;
    }

    #modal-spin-button {
        font-size: 16px;
        padding: 10px 20px;
        width: 100%;
    }
}



/* MODAL */

.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    overflow: hidden;
    
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    color: black;
    position: relative;
    font-family: 'Roboto', sans-serif;
    border: 10px solid #000000;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.progress-messages {
    margin: 20px auto;
    max-width: 600px;

}

.modal-message {
    text-align: center;
    font-size: 1.2rem;
    border-radius: 10px; 
    padding: 20px;
}

.modal-message p.main {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.modal-message p.green {
    color: #00FF00; 
    font-weight: bold;
    font-size: 1.6rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.modal-message p.gold {
    color: gold;
    font-weight: bold;
    font-size: 1.6rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.modal-message p.italic {
    color: #666;
    font-style: italic;
}

#modal-spin-button {
    background: #FF0000;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
    font-weight: bold;
}


@keyframes fadeIn {
    to { opacity: 1; }
}