* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

#grupoInferior {
    background-color: #1e1e1e;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 400px;
    font-size: 1.2rem;
}

#comboExercicio {
    margin: 0 2% 0 0;
    background-color: #2c2c2c; /* um tom acima do fundo do grupo */
    color: #ffffff; /* verde para combinar com a sombra */
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    /* box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); */
    transition: all 0.3s ease;
    appearance: none; /* remove estilo padrão do select */
    cursor: pointer;
}

#comboExercicio:hover {
    /* box-shadow: 0 0 8px rgba(0, 255, 0, 0.5); */
    background-color: #2c2c2c;
}

#comboExercicio:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

#grupoInferior {
    background-color: #1e1e1e;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 500px;
    font-size: 1.2rem;

    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Responsivo */
}

/* Combobox estilizado */
#comboExercicio {
    background-color: #2c2c2c;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2300ff00' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

#comboExercicio:hover {
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

#comboExercicio:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Botão harmonizado */
button {
    background-color: #00ff00;
    color: #1e1e1e;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

button:hover {
    background-color: #1e1e1e;
    color: #00ff00;
    border: 1px solid #00ff00;
}

#info {
    background-color: #1e1e1e;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 400px;
    font-size: 1.2rem;
}

#info div {
    margin: 0.5rem 0;
}

#videoCanvas {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    margin-bottom: 1rem;
}

/* Estilos para visualização mobile */
@media (max-width: 768px) {
    #info {
        font-size: 1.6rem;
        padding: 1.2rem;
    }

    button, select {
        width: 100%;
        max-width: 300px;
        font-size: 1.3rem;
        padding: 1rem;
    }

    #videoCanvas {
        height: auto;
        width: 100%;
        max-width: 100%;
        height: 40vh; /* altura do vídeo em mobile */
        aspect-ratio: unset; /* remove restrição do 16:9 */
    }
}