/* Reset some default styles */
body, h1, h2, p, label, input, select, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Global styles */
body {
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 28px;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Search container styles */
.search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

label {
    flex-basis: 20%;
    text-align: right;
    font-weight: bold;
}

select,
input[type="number"] {
    flex-basis: 20%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

button {
    flex-basis: 20%;
    padding: 8px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* Game results styles */
#results {
    margin-top: 20px;
}

.game {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.game h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }

    label,
    select,
    input[type="number"],
    button {
        flex-basis: 100%;
    }
}
