/* Estilos gerais do overlay (fundo escuro) */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro com 70% de opacidade */
    z-index: 999; /* Coloca o overlay abaixo do popup */
}

/* Estilos do popup */
#videoPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Coloca o popup acima do overlay */
    background-color: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 800px; /* Tamanho inicial no desktop */
}

/* Estilo para o vídeo (YouTube embed) */
#videoPopup iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px 10px 0 0;
}

/* Botão de fechar o popup */
#videoPopup .close-btn {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 50%;
    border: none;
    outline: none;
}

/* Para telas menores (responsividade) */
@media (max-width: 600px) {
    #videoPopup {
        width: 100%;
        height: auto;
    }
    #videoPopup iframe {
        height: 250px;
    }
}

