html {
    width: 100vw;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.card-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 220px 1fr;
    gap: 52px;
    background: linear-gradient(to bottom, rgba(0, 93, 154, 1), rgba(4, 174, 82, 0.75));
    overflow-x: hidden;
    overflow-y: auto;
}

.card-header {
    position: relative;
}

.card-header img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.profile-picture {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    outline: 5px solid #FB9446;
    overflow: hidden;
}

.profile-picture img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.card-body {
    width: 85%;
    justify-self: center;
}

.profile-name {
    margin: 0;
    margin-top: 16px;
    text-align: center;
    color: white;
    font-family: sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
}

.profile-description {
    margin: 0;
    margin-top: 8px;
    color: white;
    text-align: center;
    font-family: sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
}

.globes-container {
    margin-top: 8px;
}

.globes-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.globes-container ul li {
    display: grid;
    place-content: center;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.globes-container ul li a {
    color: white;
}

.links-container {
    margin: 0;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.links-container .link a {
    text-decoration: none;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    padding: 4px;
    gap: 8px;
    margin-top: 8px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.4);
}

.links-container .link img {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 50%;
    background: white;
}

.link-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    margin-left: 4px;
}

.link-name {
    color: white;
    font-family: sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    margin: 0px;
}

.link-url {
    color: white;
    font-family: sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 100;
    margin: 0px;
}

.leyend {
    text-align: center;
    font-size: 10px;
    color: white;
    margin: 0px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-family: sans-serif;
}

@media (min-width: 577px) {
    html {
        width: initial;
        height: initial;
    }

    body {
        background-image: url(../resources/img/portada-1080px.png);
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size: cover;
        overflow-y: auto;

        height: 100vh;
        display: flex;
        align-items: safe center;
        justify-content: safe center;

        box-sizing: border-box;
        padding: 4rem 0;
    }
    
    .card-container {
        box-sizing: border-box;
        grid-template-rows: 0 1fr;
        margin: 0;
        height: initial;
        width: 80%;
        max-width: 576px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 24px;
        overflow: initial;
        flex-shrink: 0;
    }
    
    .card-header > img {
        display: none;
    }

    .profile-name {
        margin: 0;
        margin-top: 16px;
        text-align: center;
        color: white;
        font-family: sans-serif;
        font-size: 2rem;
        font-style: normal;
        font-weight: bold;
        line-height: normal;
    }

    .profile-description {
        margin: 0;
        margin-top: 16px;
        color: white;
        text-align: center;
        font-family: sans-serif;
        font-size: 1.25rem;
        font-style: normal;
        font-weight: normal;
        line-height: normal;
    }

    .globes-container {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}
