body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: black;
    /* 超出部分填充黑色 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    max-width: 720px;
    width: 100%;
    background-color: #333333;
    /* 主体深灰色 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ff6347;
    color: white;
    text-align: center;
    padding: 10px 25px;
    font-size: 1.5em;
    font-weight: bold;
}

main {
    padding: 20px;
    flex-grow: 1;
    color: white;
}

main h1, main h2, main h3 {
    color: white;
}

main p {
    margin-bottom: 1em;
    line-height: 1.6;
}

footer {
    background-color: #333;
    /* 蓝色 */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

footer p {
    /* 移除p标签的默认边距 */
    margin-bottom: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Common game card styles */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-card {
    display: block;
    background-color: #555;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none;
    aspect-ratio: 1 / 1; /* Make it square */
}

.game-card img {
    width: 100%;
    height: 100%; /* Fill the square card */
    object-fit: cover;
    display: block;
}

