.goalkeepers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 50px 420px;
}

.defenders {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0px 420px 50px 420px; 
}

.goalkeepers h1 {
    color: #000000;
}


.goalkeepers h2 {
    margin-bottom: 50px;
    text-align: center;
    color: #000000;
}

.defenders h2 {
    margin-bottom: 50px;
    text-align: center;
    color: #000000;
}

.goalkeepers-center {
    display: flex;
    justify-content: center;
}

.goalkeepers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.outer-wrapper {
    display: flex;
    justify-content: center;
}

.container-players {
    display: flex;
    position: relative;
    width: 330px;
    max-width: 330px;
    justify-content: center;
}

.player-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    display: block;
}

.stats-outside {
    display: flex;
    justify-content: center;
}

.stats {
    position: absolute;
    bottom: 15px;
    left: 8px;
    width: 95%;
    display: flex;
    flex-direction: column;
    background: #12425B;
    color: white;
    padding: 10px 0;
    font-weight: bold;
    font-size: 10px;
    border-radius: 5px;
}

.player-name {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    padding: 0 10px;
}

.stats-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.stat-block {
    text-align: center;
    margin: 2px 0;
}

.stat-block span {
    display: block;
    font-size: 12px;
}





/*---------------RESPONZIVITA---------------*/

@media (max-width: 419px) {
    .goalkeepers {
        margin: 50px 0px 50px 0px;
    }

    .defenders {
       margin: 50px 0px; 
    }

    .goalkeepers h1 {
        text-align: center;
        font-size: 20px;
    }

    .goalkeepers-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 420px) and (max-width: 479px) {
    .defenders {
       margin: 50px 0px; 
    }

    .goalkeepers {
        margin: 50px 0px 50px 0px;
    }

    .goalkeepers h1 {
        text-align: center;
        font-size: 30px;
    }

    .goalkeepers-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 600px) {
    .defenders {
       margin: 50px 0px; 
    }

    .goalkeepers {
        margin: 50px 0px 50px 0px;
    }

    .goalkeepers h1 {
        text-align: center;
    }

    .goalkeepers-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    .defenders {
       margin: 50px 0px; 
    }

    .goalkeepers {
        margin: 50px 0px 50px 0px;
    }

    .goalkeepers h1 {
        text-align: center;
    }

    .goalkeepers-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .defenders {
        margin: 50px 0px 50px 0px; 
    }

    .goalkeepers {
        margin: 50px 0px 50px 0px;
    }

    .goalkeepers h1 {
        text-align: center;
    }

    .goalkeepers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}