/* Reset some default styles */
body, h1, p, div, input, button, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set global font and background */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 20px;
}

/* Style the container */
.container {
    width: 90%;
    max-width: 800px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.container:hover {
    transform: scale(1.02);
}

/* Style the heading */
h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Style the search container */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Style the search input */
#search {
    width: 70%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
}

#search:focus {
    border-color: #555;
}

/* Style the search button */
#searchButton {
    padding: 12px 20px;
    border: none;
    border-radius: 0 8px 8px 0;
    background-color: #333;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #555;
}

/* Style the games container */
#games {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Style each game card */
.game {
    display: flex;
    padding: 20px;
    background: #fafafa;
    border: 2px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.game:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Style the game image */
.game img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    margin-right: 20px;
    object-fit: cover;
}

/* Style the game details */
.game div {
    text-align: left;
}

.game h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.game p {
    margin-bottom: 10px;
    color: #666;
    font-size: 1rem;
}

.game a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.game a:hover {
    color: #555;
}
