html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffe600;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.img-logo {
    width: 180px;
    height: auto;
    margin-top: 20px;
}

.text-hero {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #1976d2;
    margin-top: 20px;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.roulette-container {
    position: relative;
    width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -20px;
    margin-top: -50px;
}

#wheel {
    width: 100%;
    height: auto; 
    transition: transform 9s ease-out;
    animation: entice-spin 3s ease-in-out infinite;
}

.pointer {
    position: absolute;
    width: 80px;
    height: auto;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@keyframes entice-spin {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}

#spinButton {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#spinButton:not(:disabled) {
    animation: pulse 2s infinite ease-in-out;
}


#spinButton:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#spinButton:disabled {
    background-color: #8ab0d6;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%); 
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    z-index: 1010;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

@media (max-width: 768px) {
    .roulette-container {
        width: 100%;
        max-width: 350px;
        margin-top: -40px;
        margin-bottom: -20px;
    }
    .text-hero {
        font-size: 24px;
        line-height: 30px;
    }
    #spinButton {
        padding: 15px 40px;
        font-size: 18px;
        width: 80%;
    }
    .notification {
        top: 0;
        padding: 14px 16px;
        font-size: 13px;
        width: 100%;
        white-space: normal;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .img-logo {
        width: 200px;
    }
    .text-hero {
        font-size: 24px;
        line-height: 30px;
    }
    .roulette-container {
        margin-top: -60px;
        width: 100%;
        max-width: 350px;
        margin-top: -40px;
        margin-bottom: -20px;
    }
    #spinButton {
        font-size: 20px;
        padding: 15px 20px;
        margin-top: -20px;
    }
    .notification {
        top: 0;
        padding: 12px 14px;
        font-size: 12px;
        width: 100%;
    }
}

/* =========================================== */
/* ========= ESTILOS PARA O POP-UP =========== */
/* =========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    max-width: 350px;
    width: calc(100% - 20px);
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.text-win {
    font-size: 18px;
    line-height: 24px;
}

.modal h2 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal .modal-emoji {
    font-size: 80px;
    margin-bottom: 15px;
}

.modal p {
    font-size: 1em;
    margin-bottom: 25px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .modal {
        padding: 25px 20px;
        width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .modal h2 {
        font-size: 1.75em;
        margin-bottom: 8px;
    }
    
    .modal .modal-emoji {
        font-size: 60px;
        margin-bottom: 12px;
    }
    
    .modal p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .text-win {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 400px) {
    .modal {
        padding: 20px 16px;
        width: calc(100% - 20px);
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .modal h2 {
        font-size: 1.5em;
        margin-bottom: 6px;
    }
    
    .modal .modal-emoji {
        font-size: 50px;
        margin-bottom: 10px;
    }
    
    .modal p {
        font-size: 0.9em;
        margin-bottom: 18px;
        line-height: 1.4;
    }
    
    .text-win {
        font-size: 15px;
        line-height: 20px;
    }
    
    .modal-button {
        width: 100%;
        padding: 14px;
        font-size: 1em;
    }
}

.modal .chance-number {
    font-weight: 700;
    color: #28a745;
    font-size: 1.2em;
}

.modal .highlight-text {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.modal-button {
    background-color: #28a745;
    color: white;
    border: none;
    width: 90%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.modal-button:hover {
    background-color: #218838;
}

.modal-button-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}