body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Fons fosc */
    color: #ffffff; /* Text blanc */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #ffffff; /* Enllaços blancs */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Capçalera i peu de pàgina */
header, footer {
    background-color: #1f1f1f;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

header h1, footer p {
    margin: 0;
}

header h1 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 14px;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Estils per a les seccions de pregunta */
.question {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #1f1f1f; /* Fons de targeta fosc */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    transition: box-shadow 0.3s;
}

.question:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.9);
}

.question h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Opcions i botons */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1f1f1f; /* Fons fosc per a opcions */
    color: #ffffff; /* Text blanc */
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ffffff; /* Contorn blanc */
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.option:hover {
    background-color: #333333; /* Fons més clar al hover */
    color: #ffffff;
}

.option:disabled {
    background-color: #3a3a3a;
    color: #aaa;
    cursor: not-allowed;
    border: 2px solid #555;
    box-shadow: none;
}

.feedback {
    margin: 10px 0;
    font-size: 16px;
    padding: 10px;
    border-radius: 4px;
    background-color: #2a2a2a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

/* Botons de navegació */
#next-btn {
    background-color: #4caf50;
    color: #ffffff;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0.6;
}

#next-btn.visible {
    opacity: 1;
    box-shadow: 0px 0px 15px rgba(76, 175, 80, 0.8);
}

#next-btn:hover {
    opacity: 1;
    box-shadow: 0px 0px 20px rgba(76, 175, 80, 1);
}

.btnContainer {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.backBtn {
    text-decoration: none;
    padding: 12px 20px;
    background-color: #da0347;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.backBtn:hover {
    background-color: #960432;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#next-btn.disabled {
    background-color: #3a3a3a;
    color: #aaa;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .question h2 {
        font-size: 18px;
    }

    .option {
        font-size: 14px;
        padding: 10px 15px;
    }

    #next-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

