body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Imagem de fundo - ADAPTADA PARA BAC BO */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/bacbo/img/bacbo.jpg'); /* Mudança para pasta bacbo */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Estilo da seção de resultados */
.result-section {
    background-color: #e2f0d9;
    border: 2px solid #8bc34a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.results-container {
    display: flex;
    justify-content: center;
}

.result {
    display: inline-block;
    margin: 0 10px;
    font-size: 18px;
}

.sinal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    z-index: 1;
}

.sinal-gerado {
    width: 380px;
    height: 50px;
    border: 1px solid orange;
    background-color: #1c1b1d;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sinal-text {
    font-size: 20px;
    color: rgb(21, 255, 0);
    margin: 0;
}

.sinal-gale-container {
    display: flex;
    justify-content: space-between;
    width: 380px;
    margin-top: 20px;
    gap: 30px;
}

.sinal-div,
.gale-div {
    width: 150px;
    border: 1px solid orange;
    background-color: #1c1b1d;
    border-radius: 15px;
    padding: 10px;
}

.sinal-title,
.gale-title {
    font-size: 15px;
    color: rgb(255, 255, 255);
    margin: 0;
    text-align: center;
}

.sinal-data,
.gale-data {
    font-size: 14px;
    margin: 15px 0;
    color: #20ff45;
    text-align: center;
}

.gale-data {
    font-size: 25px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logo {
    width: 20%;
    max-width: 150px;
    height: auto;
}

#loadingMessage {
    margin-top: 20px;
}

.analyzing {
    color: #ff9900;
    animation: pulse 1.5s infinite;
}

.valid {
    color: #4CAF50;
    animation: fadeIn 1s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para dispositivos móveis - ADAPTADO PARA BAC BO */
@media (max-width: 768px) {
    body::before {
        background-image: url('/bacbo/img/bacbo_mobile.jpg'); /* Mudança para pasta bacbo */
    }
}

.footer {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.493);
    font-size: 12px;
}

.guima-link {
    color: #abfc4ef1;
    font-size: 12px;
    text-decoration: none;
}

.guima-link:hover {
    text-decoration: underline;
}

#messages {
    margin-top: 20px;
    padding: 0;
    list-style-type: none;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid orange;
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 0 8px 3px rgba(255, 165, 0, 0.5);
    background-color: #f9f9f9;
}

#messages li {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 15px;
    margin-bottom: 5px;
    text-align: center;
}

#messages li:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.ultimosnumeros {
    text-align: center;
    color: rgb(0, 0, 0);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    margin: 10px 0;
    padding: 2px;
    border-radius: 5px;
}

/* ===== SEÇÃO DE RESULTADOS BAC BO - NOVA ===== */

/* Container principal dos resultados */
.results {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px auto;
    padding: 15px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid #ffd700;
    z-index: 2;
    position: relative;
}

/* Caixas de resultado para Bac Bo */
.result-box {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Conteúdo interno das caixas */
.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Ícone dos dados */
.dice-icon {
    font-size: 22px;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Label do resultado */
.result-label {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Cores específicas para cada resultado */
.result-box.banker {
    background: linear-gradient(135deg, #c21807, #dc3545);
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(194, 24, 7, 0.4);
}

.result-box.player {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
}

.result-box.tie {
    background: linear-gradient(135deg, #2d5a27, #4caf50);
    border-color: #81c784;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.4);
}

/* Animação para resultado mais recente - ADAPTADA */
.result-box.new-result {
    animation: newResultBacBo 3s ease-in-out;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    border-color: #ffd700;
}

@keyframes newResultBacBo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.9);
    }
    25% {
        transform: scale(1.2);
        box-shadow: 0 0 25px 8px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px 15px rgba(255, 215, 0, 0.4);
    }
    75% {
        transform: scale(1.18);
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.7);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    }
}

/* Hover effect */
.result-box:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ===== FIM SEÇÃO BAC BO ===== */

/* Mantém as animações de texto originais */
.loading-text {
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}

.loading-validada {
    background: linear-gradient(45deg, #28a745, #20c997, #28a745);
    background-size: 200% 200%;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    animation: gradientShift 2s ease-in-out infinite;
}

.loading-analisando {
    background: linear-gradient(45deg, #fd7e14, #ffc107, #fd7e14);
    background-size: 200% 200%;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
    animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}




/* CSS IFRAME CASA DE APOSTA */
.iframe {
    border-radius: 15px; 
    align-items: center;
    align-content: center;
    margin-bottom: 1em;
    margin-left: calc(50% - 600px);
    width: 1200px;
    height: 1000px;
}

@media (max-width: 1024px){
    .iframe{
        margin-left: calc(50% - 384px);
        width: 768px;
        height: 800px; 
    }
    
    /* Ajustes para resultados em tablet */
    .results {
        gap: 10px;
        padding: 12px;
        max-width: 95%;
    }
    
    .result-box {
        width: 60px;
        height: 60px;
    }
    
    .dice-icon {
        font-size: 18px;
    }
    
    .result-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px){
    .iframe{
        margin-left: calc(50% - 180px);
        width: 360px;
        height:600px; 
    }
    
    /* Ajustes para resultados em mobile */
    .results {
        gap: 8px;
        padding: 10px;
        max-width: 95%;
    }
    
    .result-box {
        width: 50px;
        height: 50px;
    }
    
    .dice-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .result-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
    
    .ultimosnumeros {
        font-size: 12px;
    }
}

.container-botao {
    text-align: center;
    margin-top: 20px;
}

.botao-bonito {
    padding: 12px 24px;
    font-size: 16px;
    color: #fff;
    background-color: #00cc1b;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.botao-bonito:hover {
    background-color: #8fbc8f;
    transform: scale(1.05);
}

.home-button {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.home-button:hover {
    border-color: #f0c420;
    box-shadow: 0 0 15px rgba(240, 196, 32, 0.8);
}

.home-button:hover img {
    filter: brightness(1.2);
    transform: scale(1.1);
}
