.main-player h1 {
    display: inline-block;
    margin: 0;
    font-size: 3rem;
    vertical-align: middle;
    color: var(--ternary-green);
}

.profile-image {
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
    width: 100px;
    height: 100px;
}

.profile-image img {
    border-radius: 50%;
    border: 1px solid var(--primary-green);
}

.player-stats,
.player-box {
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, var(--background-radial-grad));
    border-radius: 10px;
    border: 2px solid var(--primary-green);
    width: 55%;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    width: 200px;
}

.player-stats h3 {
    font-size: 2rem;
    color: var(--ternary-green);
    margin-bottom: 20px;
}

.player-stats table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-stats th,
.player-stats td {
    padding: 14px 18px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1.1rem;
}

.player-stats thead th {
    background-color: var(--ternary-green);
    color: white;
    font-weight: bold;
}

.player-stats tbody tr:nth-child(odd) {
    background-color: #eef5e9;
}

.player-stats tbody tr:hover {
    background-color: var(--hover-highlight, #d8e8d4);
    transition: background-color 0.3s ease;
}

/* Players page */
.players {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    background: transparent;
    border: 2px solid var(--primary-green);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: fit-content;
}

.players h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--ternary-green);
    margin-bottom: 20px;
}

.players-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80%, 1fr));
    background-color: transparent;
    gap: 1.5rem;
    margin: 0% 5% 0% 5%;
    justify-content: center;
    box-shadow: none;
}

player-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    gap: 1rem;
}

player-card h2 {
    color: var(--ternary-green);
    margin-bottom: 0.5rem;
}

player-card p {
    text-align: justify;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

player-card a {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: bold;
}

player-card a:hover {
    text-decoration: underline;
}

player-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.player-info h2 {
    color: var(--ternary-green);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.player-info p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #555;
}

.profile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-link {
    grid-column: span 2;
    text-align: center;
}

.card-link a {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-green);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.card-link a:hover {
    background-color: var(--secondary-green);
    color: white;
}

@media (min-width: 1200px) {
    .players-section {
        grid-template-columns: repeat(auto-fit, minmax(35%, 1fr));
    }
}

@media (max-width: 900px) {
    .main-player h1 {
        font-size: 2rem;
        text-align: center;
    }

    .profile-image {
        margin-left: 0;
    }

        .profile-image img {
            width: 60px;
            height: 60px;
        }

    .player-stats,
    .player-box {
        width: 90%;
        padding: 10px;
    }

    .player-stats h3 {
        font-size: 1.5rem;
    }

    .player-stats th,
    .player-stats td {
        font-size: 0.9rem;
        padding: 8px;
    }
}

/* Players Page */
@media (max-width: 1200px) {
    .players {
        max-width: 90%;
        width: 100%;
        padding: 15px;
    }

        .players h1 {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .players-section {
            grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
            gap: 1rem;
        }

    player-card {
        padding: 1rem;
        justify-content: space-between;
    }

        player-card h2 {
            font-size: 1.5rem;
        }

        player-card p {
            font-size: 0.8rem;
        }

    .player-info {
        width: 150px;
    }

    .card-content .profile-image img {
        margin-left: 100%;
    }
}

@media (max-width: 600px) {
    .players {
        max-width: 100%;
        width: 100%;
        padding: 0px;
    }

    .players-section {
        width: 100%;
        margin: 0;
    }

    .card-content .profile-image img {
        margin-left: 50%;
    }

}