/* Ensure the body and html take full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Center all text */
header, main, footer {
    width: 100%;
}

/* Ensure images are centered */
img {
    display: block;
    margin: 0 auto;
    width: 50%; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
}

/* Center the #game-rules section but keep the list aligned properly */
#game-rules {
    display: flex;
    justify-content: center;  /* Center the entire content horizontally */
    align-items: center;      /* Align content vertically */
    width: 100%;              /* Take up full width */
}

#game-rules ul {
    list-style-position: inside; /* Align bullet points with text */
    padding-left: 0;             /* Remove default padding */
    margin: 0;                   /* Remove default margins */
    line-height: 1.2;            /* Reduce space between lines */
    text-align: left;            /* Keep the text left-aligned */
    width: auto;                 /* Let the list take up space it needs */
}

/* Reduce space between list items */
#game-rules li {
    margin-bottom: 5px;
}

/* Ensure the unordered list is centered but the text remains aligned with the bullets */
#game-rules ul {
    margin: 0 auto;  /* Center the ul block within its parent */
}
