body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #e0f7fa;
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
    box-sizing: border-box;

  background-image: url('img/fundo-megasena.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

h1 {
    margin-bottom: 15px;
    font-size: 24px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 100%;
    flex-wrap: wrap;
}

.globo-area {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.globo {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;
    border: 3px solid #0077b6;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffffff 60%, #0077b6 100%);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.funil {
    width: 50px;
    height: 50px;
    background: #0077b6;
    margin: -10px auto 0; /* Faz o funil colar na base do globo */
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.sorteadas-container {
    margin-top: 20px;
    text-align: center;
}

.sorteadas-container h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.sorteadas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    border: 2px dashed #0077b6;
    min-height: 50px;
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    background-color: #f5f5f5;
    margin: 0 auto;
}

.bola {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 10px;
    position: absolute;
}

.painel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 350px;
}

button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
    min-height: 35px;
}

.cartela {
    display: grid;
    grid-template-columns: repeat(6, 40px);
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    max-width: 300px;
}

.cartela .numero {
    width: 40px;
    height: 40px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #999;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-size: 12px;
}

.cartela .numero.selecionado {
    background-color: #4caf50;
    color: white;
}



.voltar-btn {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background-color: #00796b;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.voltar-btn:hover {
  background-color: #004d40;
}



/* Responsivo */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .globo-area, .painel {
        max-width: 100%;
    }

    .globo {
        max-width: 200px;
    }

    .funil {
        width: 40px;
        height: 40px;
    }

    .sorteadas {
        max-width: 200px;
    }

    .cartela {
        grid-template-columns: repeat(6, 35px);
    }

    .cartela .numero {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 5px;
    }

    .globo {
        max-width: 180px;
    }

    .funil {
        width: 36px;
        height: 36px;
    }

    .sorteadas {
        max-width: 180px;
    }

    .cartela {
        grid-template-columns: repeat(5, 30px);
    }

    .cartela .numero {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .bola {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    button {
        font-size: 12px;
        padding: 6px 12px;
    }

    h1 {
        font-size: 18px;
    }

    .sorteadas-container h2 {
        font-size: 16px;
    }
}



nav {
  background-color: #2E7D32;
  padding: 12px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 10px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Estilo para o botão Gerador Estatístico com nova cor */
.destaque {
  background-color: #e65100;        /* Laranja escuro */
  color: #1b5e20 !important;         /* Verde escuro */
  animation: pulse 1.5s infinite;    /* Pulsação mais rápida */
  font-weight: bold;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.9);
  transition: transform 0.2s ease;
}

.destaque:hover {
  background-color: #ff6d00;
  transform: scale(1.05);
}

/* Pulsação mais intensa */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.9);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(230, 81, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0);
  }
}

.titulo-simulador {
  color: #fdd835; /* amarelo escuro */
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
