table thead tr {
    background-color: #d3d3d3; /* Color de fons per a la fila dels encapçalaments */
    font-weight: bold; /* Text en negreta per als encapçalaments */
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:nth-child(odd) {
    background-color: #ffffff;
}

.centrada {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #4f81bd;
}

:root {
    --md-admonition-icon--descarrega: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 20h14v-2H5m14-9h-4V3H9v6H5l7 7z"/></svg>')
}
.md-typeset .admonition.descarrega,
.md-typeset details.descarrega {
    border-color: #7c4dff;
}
.md-typeset .descarrega > .admonition-title,
.md-typeset .descarrega > summary,
.md-typeset .note.dos > .admonition-title,
.md-typeset .note.dos > summary {
    /*background-color: rgba(43, 155, 70, 0.1);*/
    background-color: rgba(223,65,251,0.1);

}
.md-typeset .descarrega > .admonition-title::before,
.md-typeset .descarrega > summary::before {
    /*background-color: rgb(43, 155, 70);*/
    background-color: rgb(223,65,251);
    -webkit-mask-image: var(--md-admonition-icon--descarrega);
    mask-image: var(--md-admonition-icon--descarrega);
}

.md-typeset .admonition.estret, .descarrega.estret, .note.estret, .question.estret{
    max-width: 600px; /* <-- adjust to fit */
    margin-inline: auto;
}

.contenidor {
     width: 90%;
     margin: 0 auto;
     padding: 20px;
     background-color: #f9f9f9;
     border-radius: 10px;
     box-shadow: 0 0 15px rgba(0,0,0,0.1);
 }
h1.extra {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}
.pregunta {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.pregunta:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.pregunta h3 {
    margin-top: 0;
    color: #2c3e50;
}
.opcions {
    margin-left: 15px;
}
.opcio {
    margin: 10px 0;
    display: flex;
    align-items: center;
}
input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}
.feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-weight: bold;
}
.correcte {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}
.incorrecte {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}
@media (max-width: 600px) {
    .contenidor {
        width: 95%;
        padding: 10px;
    }
    .pregunta {
        padding: 15px;
    }
}
