.game-list {
    margin-top: 20px;
    padding: 10px;
    background-color: #431971;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    overflow-y: auto;
}

.game-list h3 {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-align: center;
}

.game-list form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-height: 50px;
}

.game-list label {
    color: #FFFFFF;
    font-size: 1em;
    flex: 1;
    margin-right: 10px;
}

.game-list button {
    background-color: #5000A7;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid #fff;
    cursor: pointer;
    font-size: 1em;
    min-width: 130px;
    text-align: center;
    transition: background-color 0.3s;
    margin-top: auto;
    margin-bottom: auto;
    font-family: 'Wargate', sans-serif;
}

.game-list button:hover {
    background-color: #050630;
}

.game-list::-webkit-scrollbar {
    width: 10px;
}

.game-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.game-list::-webkit-scrollbar-thumb {
    background-color: #5000A7;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.game-list::-webkit-scrollbar-thumb:hover {
    background-color: #050630;
}

@-moz-document url-prefix() {
    .game-list {
        scrollbar-width: thin;
        scrollbar-color: #050630 rgba(255, 255, 255, 0.1);
    }
}

@media screen and (max-width: 600px) {
    .game-list {
        width: 80%;
        max-height: 300px;
        padding: 8px;
    }

    .game-list h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .game-list form {
        flex-direction: column;
        padding: 8px;
        margin-bottom: 8px;
    }

    .game-list label {
        font-size: 0.9em;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .game-list button {
        font-size: 0.9em;
        padding: 6px 16px;
        width: 100%;
        min-width: unset;
    }
}
