/* Add your CSS styles here */
/* Customize styles to make your game visually appealing */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 30px;

}

h1,
h2,
h3 {
    color: #ffcc00;
}

h1 {
    text-align: center;
    font-size: 3em;
}

h2 {
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    font-size: 1.7em;
}

h3 {
    margin-top: 20px;
    font-size: 1.2em;
}

p {
    line-height: 1.5;
    font-size: 1.1em;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 5px;
    font-size: 1.1em;
    line-height: 1.5;
}

button {
    display: block;
    margin: 40px auto;
    padding: 15px 32px;
    font-size: 24px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ffc000;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    text-decoration: underline;
}

.players {
    display: grid;
    grid-template-columns: auto auto auto;
    width: 70%;
    margin: auto;
}

.player {
    text-align: center;
    margin: 10px;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.player img {
    width: 150px;
    height: 150px;
    padding-top: 5px;
    object-fit: cover;
}

/* Table styles */
#gameTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#gameTable th,
#gameTable td {
    padding: 12px;
    text-align: center;
}

#gameTable thead {
    background-color: #333;
    color: #fff;
}

#gameTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#gameTable tbody tr:hover {
    background-color: #e0e0e0;
}

#result {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

#result p {
    margin: 10px 0;
    line-height: 1.5;
    font-size: 1.1em;
}

#result p:nth-child(3) {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

@media (max-width: 800px) {

    .heading {
        text-align: center;
        color: #ffcc00;
        font-size: 3em;
        margin: 10px auto;
        padding-top: 20px;
    }

    .players {
        display: grid;
        grid-template-columns: auto auto;
        width: 90%;
        margin: auto;
    }

    .player {
        margin: 10px;
        border-radius: 10px;
    }

    .player img {
        width: 120px;
        height: 120px;
        padding-top: 5px;
        object-fit: cover;
    }

    #gameTable {
        width: 100%;
        margin: 0%;

    }

    #gameTable th,
    #gameTable td {
        font-size: 14px;
        padding: 8px;
    }

    #gameTable thead {
        font-size: 14px;
        margin-left: 0px;
    }

    #gameTable tbody tr {
        margin-bottom: 10px;
        width: 100%;
        margin-left: 0px;

    }

    #gameTable tbody td::before {
        content: attr(data-column);
        display: inline-block;
        font-weight: bold;

    }

    #result {
        margin: 20px auto;
    }


}