body {
    background-image: url(https://res.feednews.com/assets/v2/44b5344d91a07a71475fd34ebe196dad?width=1280&height=720&quality=hq&category=us_News_Sports.Soccer);
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

nav {
    font-family: fantasy;
    background-color: white;
    color: rgb(33, 24, 24);
    font-size: 32px;
    border-top: solid 5px black;
    border-bottom: solid 5px black;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-around;
}

.items a {
    color: rgb(216, 103, 103);
}

#player_img {
    width: 10%;
}

#player_stats {
    width: 100%; /* Updated width to 100% */
    max-width: 400px; /* Set a maximum width */
    text-align: left;
    padding: 30px;
    padding-right: 75px;
    background-color: #171414;
    border-radius: 5px;
    margin: 0 auto; /* Center the element horizontally */
}

#player_stats div {
    height: 4px;
    text-shadow: 2px 2px #000000;
    transition: 0.25s;
    margin: 30px;
}

.attributes {
    font-size: 15px;
}

.color {
    height: 0px;
}

#pace {
    width: 300px;
    background-color: #00ff00c7;
}

#shooting {
    width: 220px;
    background-color: #00ff00c7;
}

#passing {
    width: 220px;
    background-color: #00ff00c7;
}

#dribbling {
    width: 200px;
    background-color: #00ff00c7;
}

#defending {
    width: 200px;
    background-color: #00ff00c7;
}

#physicality {
    width: 168px;
    background-color: #00ff00c7;
}

#random_btn {
    width: 10%;
    margin: 1%;
    padding: 1%;
    border-radius: 5px;
    border: none;
}

#random_btn:hover {
    transition: 0.25s;
    background-color: #bbbbbb;
}

@media (max-width: 1440px) {
    #player_stats {
        margin-left: auto; /* Remove margin-left */
        margin-right: auto; /* Add margin-right */
    }
}

@media (max-width: 1030px) {
    nav {
        font-size: 20px;
    }

    .items {
        font-size: 17px;
        height: 20px;
    }

    #logo {
        font-size: 17px;
    }

    #player_content {
        flex-direction: row;
        align-items: center;
    }

    #player_img {
        width: 100px;
    }

    #player_stats {
        margin-left: auto; /* Remove margin-left */
        margin-right: auto; /* Add margin-right */
    }
}

@media (max-width: 768px) {
    #player_stats {
        margin-left: auto; /* Remove margin-left */
        margin-right: auto; /* Add margin-right */
    }
}

@media (max-width: 320px) {
    #player_stats {
        margin-left: auto; /* Remove margin-left */
        margin-right: auto; /* Add margin-right */
        padding-right: 0px;
    }

    #random_btn {
        width: 100px;
    }
}
