/* Main container with background */
.container2 {
    background-image: url(../assets/img/DSCF3388_5881aadc-5b70-4194-92a7-f3f086601d1a.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    padding: 2rem;
}

#video {
    width: 100%;
    max-width: 500px;
    border: 2px solid #000;
    border-radius: 8px;
}

#error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 4px solid #000;
    border-radius: 8px;
    overflow: hidden;
}

video {
    width: 100%;
    height: auto;
}

#qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.qr-hint {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

#toggle-camera {
    display: block;
    margin: 0 auto;
}

.btn-custom {
    background-color: #be8d11; /* Cor de fundo azul */
    color: #fff; /* Texto branco */
    border: 2px solid #be8d11; /* Borda azul-escuro */
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px; /* Borda arredondada */
    text-transform: uppercase; /* Texto em maiúsculas */
    transition: all 0.3s ease; /* Efeito de transição */
}

.btn-custom:hover {
    background-color: #be8d11; /* Fundo mais escuro ao passar o mouse */
    color: #fff; /* Mantém o texto branco */
    border-color: #be8d11; /* Borda mais escura */
    transform: scale(1.05); /* Pequeno aumento no tamanho */
}