* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #e6f2ff;
    --gold: #ffd700;
    --gold-dark: #ffb300;
    --white: #ffffff;
    --green: #00cc66;
    --text-dark: #1a1a1a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-3: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url('megafundo.png');
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066cc 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-in;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.counter-container {
    display: flex;
    align-items: center;
}

.counter-box {
    background: var(--gradient-2);
    padding: 10px 10px;
    border-radius: 15px;
    color: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 5px;
}

.counter-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.counter-max {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Info Section */
.info-section {
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-in 0.2s both;
}

.info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.price-info {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.pix-info {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green);
}

/* Banner Section */
.banner-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in 0.4s both;
     background-repeat: no-repeat; /* Prevents tiling */
  background-position: center;  /* Centers the image */
  background-size: cover;       /* Ensures the image covers the whole area */
  background-attachment: fixed; /* Keeps the image fixed during scrolling */
 
}

.banner {
    background: rgba(255, 255, 255, 0.1) ;
    border-radius: 20px;
    padding: 50px 30px;detail-label
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

.banner-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.banner-prize {
    margin: 30px 0;
    text-align: center;
}

.prize-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.prize-note {
    display: block;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 600;
}

.banner-draw {
    margin-top: 20px;
}

.draw-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    border: 2px solid var(--gold);
}

.banner-decoration {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.lottery-ball {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.lottery-ball:nth-child(1) { animation-delay: 0s; }
.lottery-ball:nth-child(2) { animation-delay: 0.2s; }
.lottery-ball:nth-child(3) { animation-delay: 0.4s; }
.lottery-ball:nth-child(4) { animation-delay: 0.6s; }
.lottery-ball:nth-child(5) { animation-delay: 0.8s; }
.lottery-ball:nth-child(6) { animation-delay: 1s; }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.banner-message {
    margin-top: 20px;
    text-align: center;
}

.banner-message p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.form-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in 0.6s both;
    position: relative;
    z-index: 5;
}

.form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
}

.bet-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 5;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--light-blue);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
}

.btn-apostar {
    background: var(--gradient-3);
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: visible;
    pointer-events: auto;
    z-index: 10;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-apostar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
}

.btn-apostar:hover::before {
    width: 300px;
    height: 300px;
}

.btn-apostar:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.btn-apostar:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-apostar:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Details Section */
.details-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in 0.8s both;
}

.details-container {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-blue);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    align-items: center;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.detail-value.prize {
    color: var(--gold-dark);
    font-size: 1.5rem;
}

/* WhatsApp Section */
.whatsapp-section {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-in 1s both;
}

.whatsapp-link {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 204, 102, 0.4);
}

.whatsapp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 204, 102, 0.6);
    background: #00b359;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
    animation: slideDown 0.4s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

#modalMessage {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 100%;
    }
    
    .title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .counter-box {
        width: 100%;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
    }

    .prize-amount {
        font-size: 2rem;
    }

    .banner-message p {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 25px;
    }

    .details-container {
        padding: 20px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .detail-value {
        font-size: 1.1rem;
    }

    .detail-value.prize {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    html {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .title {
        font-size: 1.5rem;
    }
    
    .header {
        border-radius: 0;
        margin-bottom: 0;
        padding: 20px 15px;
    }
    
    .info-section {
        margin-bottom: 0;
    }
    
    .info-card {
        border-radius: 0;
        padding: 20px 15px;
    }
    
    .form-section {
        margin-bottom: 0;
    }
    
    .form-container {
        border-radius: 0;
        padding: 20px 15px;
    }
    
    .banner-section {
        margin-bottom: 0;
    }

    .banner {
        border-radius: 0;
        padding: 30px 15px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .prize-amount {
        font-size: 1.5rem;
    }

    .banner-message p {
        font-size: 1rem;
    }

    .lottery-ball {
        font-size: 2rem;
    }
    
    .details-section {
        margin-bottom: 0;
    }
    
    .details-container {
        border-radius: 0;
        padding: 20px 15px;
    }
    
    .whatsapp-section {
        padding: 20px 15px;
    }

    .btn-apostar {
        padding: 15px;
        font-size: 1.1rem;
    }
}

