body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 800px; /* Increased width for better view */
    margin: auto;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    width: 70%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.results {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.game-box {
    display: flex;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px;
    text-align: left;
    transition: transform 0.3s;
}

.game-box:hover {
    transform: scale(1.05);
}

.game-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 80px; /* Constrains image to a fixed width */
    margin-right: 15px; /* Ensures spacing between image and text */
    border-radius: 5px;
    flex: 0 0 80px; /* Image takes exactly 80px width */
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0; /* Removes any default margin */
}

.game-year {
    font-size: 14px;
    color: grey;
    margin-top: 5px; /* Adds space between title and year */
}

.game-link {
    text-decoration: none;
    color: black;
    display: block;
    margin-top: 10px;
    transition: color 0.3s;
}

.game-link:hover {
    color: #007BFF;
}

.review-list {
    margin-top: 20px;
}

.review {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
}

.review-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-icons {
    display: flex;          /* Set flexbox for horizontal alignment */
    gap: 4px;               /* Adjust spacing between icons */
    flex-wrap: wrap;        /* Allows wrapping if too many icons */
    align-items: center;    /* Align icons vertically in the middle */
}

.platform-icon img {
    width: 24px;            /* Icon size */
    height: 24px;
}

.autocomplete-suggestions {
    position: absolute;
    border: 1px solid #ccc;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 60%; /* Match the width of the search bar in navbar */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 2px;
}

.autocomplete-suggestion {
    display: flex;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.autocomplete-suggestion img {
    width: 50px;
    height: auto;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.autocomplete-suggestion .game-info {
    flex: 1;
}

.autocomplete-suggestion .game-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: black;
}

.autocomplete-suggestion .game-year {
    font-size: 12px;
    color: grey;
    margin-top: 5px;
}

.autocomplete-suggestion .platform-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.autocomplete-suggestion:hover {
    background-color: #f0f0f0;
}

