@font-face {
    font-family: oswaldRedona;
    src: url(Oswald.ttf);
}
@font-face {
    font-family: oswaldNegreta;
    src: url(Oswald-Bold.ttf);
}

html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
}


h1{
    font-family: oswaldNegreta, sans-serif;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

input[type="submit"] {
    background-color: #197ba9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: OswaldRedona, sans-serif;
}
.etiqueta{
    font-family: OswaldRedona, sans-serif;
    margin-right: 10px;
    font-size: 1rem;
}

.etiquetaResalte{
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: OswaldNegreta, sans-serif;
    font-size: 3rem;
    color: #197ba9;
    font-weight: bold;
}

/* ------------------- estil per als radio buttons -------------- */
/* 1. Oculte l'input real */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Asegura que no ocupe espacio pero que siga siendo accesible mediante teclado */
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}

/* 2. Estilitzar l'etiqueta (ara actúa com botó visual) */
label {
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 50px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 5px;
    font-family: OswaldRedona, sans-serif;
}

/* 3. Estilitzar l'etiqueta quan el seu input asociat està :checked (selector +) */
input[type="radio"]:checked + label {
    background-color: #197ba9; /* Color de fons quan està seleccionat */
    color: white;              /* Color de text quan està seleccionat */
    border-color: #197ba9;
}

/* 4. Efecte hover para mejor UX */
label:hover {
    background-color: #f2f2f2;
}

/* -------------- estil per al datalist -------------- */
input#alumne {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    padding: 10px;
    margin-bottom: 50px;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    width: 80%;
    font-family: OswaldRedona, sans-serif;
}

input#alumne:focus {
    outline: none;
    border-color: #197ba9;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* -------------- estil per als contenidors -------------- */
.form-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;

    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

@media (min-width: 1000px) {
    .form-container {
        width: 75%;
    }
}


