/* Estilos globais e remoção do realce de toque em mobile */
* {
    -webkit-tap-highlight-color: transparent; /* Remove o realce azul/cinza ao tocar em links/botões */
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Animação de fade-in para o modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilo para a seção de fundo */
.background-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* ATENÇÃO: Substitua pela imagem de fundo para Desktop */
    background-image: url('img/pc.png');
}

/* Camada escura semi-transparente que cobre o fundo */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center; /* Centraliza verticalmente em TODAS as telas */
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
}

/* Estilos do modal de cookies */
.cookie-modal {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Estilo do botão de fechar (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 35px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.1s ease-out, color 0.1s ease-out; /* Adicionado para suavizar a animação */
}
.close-btn:hover {
    color: #333;
}
.close-btn:active {
    transform: scale(0.90); /* Animação de clique */
}

/* Conteúdo do modal */
.modal-content h2 {
    font-size: 24px;
    margin-top: 0;
    margin-right: 25px;
    color: #1c1e21;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #606770;
    margin-bottom: 20px;
}

/* Container dos botões */
.modal-buttons {
    display: flex;
    gap: 10px;
}

/* Estilos dos botões */
.modal-buttons button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    flex: 1;
    transition: transform 0.1s ease-out; /* Adicionado para suavizar a animação de clique */
}

/* Animação de clique para os botões principais */
.modal-buttons button:active {
    transform: scale(0.98); /* Leve encolhimento ao clicar */
}

.accept-btn {
    background-color: #2c3e50;
    color: white;
}

.preferences-btn {
    background-color: #f0f2f5;
    color: #2c3e50;
}

/* --- AJUSTES PARA MOBILE --- */
@media (max-width: 768px) {
    /* ATENÇÃO: Imagem de fundo para Mobile */
    .background-section {
        background-image: url('img/mobile.png');
    }
}

@media (max-width: 480px) {
    /* Empilha os botões em telas muito pequenas */
    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons button {
        width: 100%;
    }

    .cookie-modal {
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 20px;
    }
}

/* Estilo para OCULTAR completamente o texto */
.content {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}