/* Global Resets and Basic Styling */
body {
    font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Light grayish-blue background */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#app-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

header h1 {
    color: #1a73e8; /* Google Blue */
    margin-bottom: 20px;
    font-size: 2.5rem;
}

main p {
    font-size: 1.1rem;
    color: #5f6368; /* Darker gray for text */
    margin-bottom: 25px;
}

/* Game List Styling */
#game-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.game-item {
    margin-bottom: 15px;
    border-radius: 6px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.game-item a {
    display: block;
    background-color: #e8f0fe; /* Light blue background for links */
    color: #1967d2; /* Darker blue for link text */
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #d2e3fc; /* Light border for links */
    transition: background-color 0.2s ease;
}

.game-item a:hover,
.game-item a:focus {
    background-color: #d1e3fa; /* Slightly darker blue on hover */
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.game-title {
    font-weight: bold;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 5px;
}

.game-description {
    font-size: 0.9rem;
    color: #3c4043; /* Even darker gray for description */
}

/* Footer Styling */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0; /* Light gray border */
    font-size: 0.9rem;
    color: #70757a; /* Medium gray for footer text */
}

/* Accessibility */
[aria-label] {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    #app-container {
        margin: 10px;
        padding: 15px;
    }
    .game-item a {
        padding: 12px 15px;
    }
    .game-title {
        font-size: 1.1rem;
    }
}
