@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

html {
    background: linear-gradient(102.2deg, rgb(252, 250, 250) 9.6%, rgb(248, 224, 224) 96.1%);
}

nav {
    background-color: #E30613;
    max-width: 100%;
}

.logo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 2;
    padding: 10px 10px;
}

.logo img {
    margin: 10px 10px;
    /* height: auto; */
    max-width: 100%;
    width: 150px;
}

.logo h1 {
    margin: 10px 10px;
    color: #f4fff4;
    font-size: 2rem;
    text-transform: uppercase;
}


/* MENU HOME */

.cards {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    flex: 1 1 200px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 50px;
    margin-bottom: 50px;
}

.card {
    text-align: center;
    position: relative;
    height: 390px;
    background: #fff;
    border-radius: 10px
}

.portrait {
    backdrop-filter: blur(5px);
    /* background-image: url(./imgs/bg.svg), linear-gradient(15deg, #f5f7fa 0%, #c3cfe2 100%); //fundo claro   */
    background-image: url(./imgs/bg.svg), radial-gradient(circle at 10% 20%, rgb(221, 49, 49) 0%, rgb(119, 0, 0) 90%);
    background-repeat: no-repeat;
    background-size: contain;
    width: 350px;
    border-radius: 10px 10px 0 0;
    height: 300px;
}

.portrait img {
    height: 300px;
}

.portrait:hover::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    border-radius: 5px;
    background: rgba(231, 10, 10, 0.3);
    opacity: 0.7;
    width: 350px;
    border-radius: 10px 10px 0 0;
    height: 300px;
}

.portrait::before {
    transition: .3s ease-in-out;
    content: "";
}

.number-home {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    bottom: 4%;
    right: 2%;
}

.first-name-home {
    position: absolute;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.8rem;
    color: #454D59;
    opacity: 0.4;
    bottom: 16%;
}

.name-home {
    position: absolute;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: bolder;
    margin-left: 0.8rem;
    bottom: 8%;
}

.flag-home {
    display: flex;
    position: absolute;
    align-items: center;
    font-size: 1rem;
    margin-left: 0.8rem;
    bottom: 1%;
}

.flag-home p {
    font-weight: 400;
    color: #11111180;
    padding: 0.5rem;
}


/* MENU INFO -JAVASCRIPT */

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.card-player-info {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    flex: 1 1 500px;
    flex-wrap: nowrap;
    gap: 80px;
    padding-top: 50px;
}

.card-photo {
    display: flex;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 1px rgba(255, 255, 255, 0.03), inset 0px 1px 0px rgba(255, 255, 255, 0.03);
}

.card-photo img {
    max-height: 500px;
    border-radius: 5px;
}

.card-mobile {
    display: none;
}

button {
    width: 20px;
    height: 20px;
    position: fixed;
    top: 5px;
    font-size: 1.4rem;
    background: transparent;
    border: transparent;
    right: 10px;
    color: #ffffff50;
    cursor: pointer;
}

.card-profile {
    margin: 0 auto;
    width: 45vw;
    max-height: 500px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 1px rgba(255, 255, 255, 0.03), inset 0px 1px 0px rgba(255, 255, 255, 0.03);
}

.box-title {
    margin: 1rem;
    text-align: center;
    color: #454D59;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.first-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #BDBEBE;
    margin-left: 2rem;
    text-transform: uppercase;
}

.name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-left: 2rem;
    text-transform: uppercase;
}

.number {
    font-size: 3rem;
    color: #111;
    margin-left: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

.infos {
    display: block;
    justify-content: space-between;
    padding-bottom: 5rem;
}

.infos p {
    font-weight: 400;
}

.position,
.foot,
.born,
.nt,
.ex-clubs,
.media {
    letter-spacing: 50px;
    display: flex;
    font-size: 1.15rem;
    font-weight: 400;
    color: #454D59;
    margin-inline: 2rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.media a {
    text-decoration: none;
}

@media (max-width:1250px) {
    .card-profile {
        max-width: 500px;
        width: 85vw;
        height: 55vh;
        padding-right: 1px;
    }
    .box-title,
    .name {
        font-size: 1.9rem;
    }
}

@media (max-width: 940px) {
    .card-player-info {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
    }
    .card-photo {
        display: none;
    }
    .card-mobile {
        display: flex;
    }
    .card-mobile img {
        border-radius: 10px;
        max-height: 80vh;
        width: 86vw;
        max-width: 500px;
        margin-top: 3rem;
    }
    .card-profile {
        max-width: 500px;
        width: 85vw;
        height: 55vh;
        padding-right: 8px;
        padding-bottom: 2rem;
        margin-bottom: 6rem;
    }
    .first-name {
        font-size: 0.9rem;
    }
    .box-title {
        margin-top: 2px;
        margin-top: 0.5rem;
    }
    .box-title,
    .name {
        font-size: 1.4rem;
    }
    .number {
        font-size: 1.5rem;
    }
    .position,
    .foot,
    .born,
    .nt,
    .ex-clubs,
    .media {
        display: block;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .card-profile {
        max-width: 500px;
        width: 85vw;
        height: 45vh;
        padding-right: 8px;
        padding-bottom: 2rem;
        margin-bottom: 6rem;
    }
    .first-name {
        font-size: 0.6rem;
        margin-left: 2rem;
    }
    .box-title,
    .name {
        font-size: 1.1rem;
    }
    .number {
        font-size: 1.1rem;
    }
    .position,
    .foot,
    .born,
    .nt,
    .ex-clubs,
    .media {
        font-size: 0.65rem;
    }
}