* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100vh;

    font-family: Verdana;

}

.btn-primary {
    background-color: #4D008C;

}

.contenedor {
    border: solid 1px rgb(255, 255, 255, 0.2);

}


table {
    color: black;
    font-size: 14px;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0 auto;

}



thead {
    background: #4D008C;

}

th {
    padding: 5px 10px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid black;
    color: #f5f5f5;
}

td {
    padding: 5px 10px;
    border-bottom: solid 1px rgb(255, 255, 255, 0.2);
    border: 1px solid black;
}

tbody tr {
    cursor: pointer;
}


main {
    padding: 1em 2em;

}


@media(max-width: 50em) {

    table {
        width: 100%;
        font-size: .9em;
    }

    table tr {
        display: flex;
        flex-direction: column;
        border: 3px solid #4D008C;
        padding: 1em;
        margin-bottom: 1em;
    }

    table td[data-titulo] {
        display: flex;

    }

    table td,
    table th {
        border: none;
    }

    table td[data-titulo]::before {

        content: attr(data-titulo);
        width: 90px;
        color: black;
        font-weight: bold;
    }

    table thead {

        display: none;

    }

    table {
        border: none;


    }

}