body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#game-container {
    text-align: center;
}

#quiz-table {
    border-collapse: collapse;
    margin: 0 auto;
    border-spacing: 0;
}

#quiz-table td {
    padding: 0;
    text-align: center;
    vertical-align: top;
    width: 300px;
    height: 300px;
    position: relative;
    border: none;
    overflow: hidden;
}

#quiz-table tr + tr td {
    border-top: 2px solid #fff; /* Espai petit entre files */
}

#quiz-table td div.question-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 1;
}

#quiz-table td p {
    margin: 0 0 10px 0;
    padding: 5px;
}

#quiz-table td button {
    margin: 2px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

#quiz-table td .image-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
}

/* Alineació per columnes */
#quiz-table td:first-child .image-container {
    justify-content: flex-end;
}

#quiz-table td:nth-child(2) .image-container {
    justify-content: center;
}

#quiz-table td:last-child .image-container {
    justify-content: flex-start;
}

#quiz-table td .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#quiz-table td .image-container img.wrong-img {
    width: 50%;
    height: 50%;
}

.hidden {
    display: none !important;
}

#reset-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#reset-button:hover {
    background-color: #45a049;
}