body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    background-image: url('assets/images/bg.png');
    background-size: cover;
    background-position: center;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.logo-top {
    display: block;
    margin: 0 auto;
    width: 80%;
    margin-top: 0px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}
#close-popup:hover {
    background: rgba(255, 0, 0, 0.7);
}


.popup h1 {
    
    display: none;
}

.popup p, .popup span, .popup div, .popup a {
    font-size: 0.1px;
}

.popup img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: block;
    margin: 0;
}


.container {
    text-align: center;
    margin-top: 50px;
    max-width: 100%;
    padding: 0px;
    background-color: rgba(255, 255, 255, 0);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.5s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    color: #000000;
    margin-bottom: 80px;
    font-size: 21pt;
}

.wheel-container {
    position: relative;
    margin-top: 10px;
}

#wheel {
    width: 640px;
    height: 640px;
    max-width: 95vw;
    max-height: 95vw;
}

.pointer {
    position: absolute;
    top: -10px;
    left: calc(50% - 5px);
    width: 50px;
    height: 50px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    transform: rotate(180deg);
    z-index: 9999;
}

#spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 0;
    
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#spin-button:hover {
    background-color: #0056b3;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.pulsing {
    animation: pulse 1s infinite;
}

/* 🔁 TV vertical 1080x1920 */
@media screen and (min-width: 1080px) and (min-height: 1920px) {
    .logo-top {
        width: 80%;
        margin-top: 0px;
    }

    .container {
        max-width: 500px;
        margin-top: 0px;
    }

    header h1 {
        font-size: 48px;
        margin-bottom: 120px;
    }

    #wheel {
        width: 640px;
        height: 640px;
    }

    #spin-button {
        width: 150px;
        height: 150px;
        font-size: 26px;
        border: none;
    }

    #prize-display {
        font-size: 36px;
    }
}

/* 🔁 TV horizontal 1920x1080 */
@media screen and (min-width: 1600px) and (max-height: 1200px) {
    .logo-top {
        width: 50%;
        margin-top: 100px;
    }

    .container {
        max-width: 700px;
        margin-top: 0px;
    }

    header h1 {
        font-size: 42px;
        margin-bottom: 100px;
    }

    #wheel {
        width: 640px;
        height: 640px;
    }

    #spin-button {
        width: 120px;
        height: 120px;
        font-size: 24px;
        border: none;
    }

    #prize-display {
        font-size: 30px;
    }
}

/* 📱 Smartphone em pé */
@media screen and (max-width: 767px) {
    .logo-top {
        width: 80%;
        margin-top: 0px;
    }

    header h1 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    #wheel {
        width: 320px;
        height: 320px;
    }

    #spin-button {
        width: 70px;
        height: 70px;
        border: none;
    }

    #prize-display {
        font-size: 18px;
    }
}
