*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.section, .author-actions {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 12px;
}
.section.section-links {
    margin-bottom:75px;
}

.card {
    padding: 48px 48px;
    box-shadow: 7px 7px 50px 10px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    border-radius: 40px;
}

.first-section {
    padding: 75px;
    margin-top: 130px;
}

.profile-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
}

.section-links {
    border-radius: 40px;
    justify-content: flex-start;
    /* ensure items align left when wrapped */
    align-items: flex-start;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.header-logo {
    font-weight: 600;
    font-size: 67.2px;
    line-height: 91.2px;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.header-share {
    text-align: center;
    font-weight: 600;
    font-size: 32px;
    line-height: 43.2px;
    color: #000;
    text-decoration: none;
}

.author-text p {
    font-weight: 400;
    font-size: 32px;
    line-height: 43.2px;
}

.author-text h1 {
    font-weight: 600;
    font-size: 96px;
    line-height: 131.2px;
    margin-bottom: 48px;
}

.author-btns {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 96px;
}

.author-btns .btn {
    margin-bottom: 0;
}

.author-actions {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 50px;
    position: relative;
    padding-top: 24px;
    padding-bottom: 24px;
}

.author-action {
    box-shadow: 7px 7px 50px 10px rgba(0, 0, 0, 0.10);
    padding: 24px 36px;
    text-decoration: none;
    line-height: 1;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* center text and icon */
    gap: 12px;
    margin-right: 16px;
}

.author-action span {
    padding-left: 0;
    text-align: center;
    /* center the text inside the button */
    display: inline-block;
}

.author-action:last-child {
    margin-right: 0;
}

#native_share_button {
    position: absolute;
    right: 0;
    top: 24px;
    width: 48px;
    height: 48px;
    margin-right: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    box-shadow: 7px 7px 50px 10px rgba(0, 0, 0, 0.10);
    border: none;
    cursor: pointer;
    color: #2b9a2b;
    /* icon stroke color */
}

/* Force all SVG elements inside the button to be stroke-only */
#native_share_button svg,
#native_share_button svg *,
.author-action.native-share svg,
.author-action.native-share svg * {
    stroke-width: 3px !important;
    fill: white;
}

.author-actions-left {
    display: inline-block;
}

.media-btn {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-links {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-flow: wrap;
    box-shadow: none;
    background-color: transparent !important;
    border: 2px solid white;
}

.section-links a.links span {
    max-width: 82px;
    font-size: 13px;
    line-height: normal;
    word-wrap: break-word;
    padding-top: 10px;
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    justify-content: center;
    line-height: 50px;
    color: #000;
    text-decoration: none;
    text-align: center;
}

.link-icon {
    width: 82px;
    height: 82px;
    border: 1px solid #000;
    box-shadow: 4px 4px 0px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-footer {
    width: 300px;
    height: 300px;
    background: #ffffff;
    border-radius: 40px;
    margin: 0 auto 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-footer2 {
    display: flex;
    margin: 20px auto;
    align-items: center;
    justify-content: center;
}

footer {
    font-size: 18px;
}

footer .text-center {
    margin-top: 10px;
    text-align: center
}
footer .language-switcher {
    margin-bottom:130px;
}

@media only screen and (max-width: 768px) {
    .section {
        width: 1350px;
        margin: 0 auto 25px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
    }

    .topsection {
        margin-top: 112px;
    }

    .card {
        padding-bottom: 96px;
        padding-top: 64px;
    }

    .header {
        margin-bottom: 65.6px;
    }

    .btn {
        width: 96px;
        height: 96px;
    }

    .btn img {
        transform: scale(0.85);
    }

    .author {
        gap: 112px;
    }

    .author-text p {
        font-size: 28.8px;
        line-height: 39.2px;
    }

    .author-text h1 {
        font-size: 75.2px;
        line-height: 102.4px;
        margin-bottom: 36px;
    }

    .author-btns {
        gap: 32px;
        margin-bottom: 52px;
    }


    .author-img {
        justify-content: center;
    }

    .author-actions .author-action {
        margin-bottom: 20px;
    }
/*
    .link-icon, .media-btn {
        width: 112px;
        height: 112px;
    }*/

    .media-btn img {
        transform: scale(0.85);
    }

    /*.link-icon {
        width: 112px;
        height: 112px;
    }*/

    .link-icon img {
        transform: scale(0.85);
    }
}

@media only screen and (max-width: 876px) {
    .section {
        width: 90%;
    }

    .first-section {
        margin-top: 56px;
    }

    .card {
        padding: 32px;
    }

    .header {
        margin-bottom: 40px;
    }

    .header-logo {
        font-weight: 600;
        font-size: 44.8px;
        line-height: 60.8px;
        gap: 24px;
    }

    .header-logo img {
        transform: scale(0.75);
    }

    .header-share {
        font-size: 22.4px;
        line-height: 30.4px;
    }

    .btn {
        width: 64px;
        height: 64px;
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .btn img {
        transform: scale(0.6);
    }

    .author {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .author-text {
        text-align: center;
    }

    .author-text p {
        font-weight: 400;
        font-size: 22.4px;
        line-height: 30.4px;
    }

    .author-text h1 {
        font-size: 64px;
        line-height: 86.4px;
        margin-bottom: 32px;
    }

    .author-actions {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .author-btns {
        justify-content: center;
        gap: 40px;
    }

    .author-actions {
        gap: 32px;
        align-items: center;
    }

    .section-links {
        flex-wrap: wrap;
        gap: 25px;
    }

    .link-icon, .media-btn {
        /*width: 104px;
        height: 104px;*/
        min-width: 70px;
        min-height: 70px;
    }

    .links span {
        font-size: 90%;
    }

    .link-icon img {
        transform: scale(0.75);
    }
}

@media only screen and (max-width: 400px) {
    html {
        font-size: 50.5%;
    }

    .header-share {
        padding-top: 10px;
    }
}

@media only screen and (max-width: 316px) {
    html {
        font-size: 40.5%;
    }

    .btn img {
        transform: scale(0.45);
    }

    .media-btn img {
        transform: scale(0.35);
    }

    .author-action img {
        transform: scale(0.65);
    }

    .link-icon img {
        transform: scale(0.45);
    }
}
