main {
    padding-bottom: 20px;
}

.heading {
    padding: 20px;
}

section.member-card {
    border: none;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    box-shadow: none;

    .info-box {
        color: var(--light-primary-text);
        background-color: var(--light-ui-surface-bg);
        margin: 20px;
        padding: 15px;
        border-radius: 4px;
        width: 400px;

        @media all and (max-width: 600px) {
            width: initial;
        }

        border-image: url("/assets/_ui/button-border.webp") 50 / 10px / 2px;
        filter: drop-shadow(5px 5px 5px var(--ui-shadow));

        & h2 {
            line-height: 1.5em;
            font-size: 1.5em;
            font-style: italic;

            &::before {
                content: "";
                display: inline-block;
                width: 1.5em;
                height: 1.5em;
                background-size: contain;
                margin-right: 0.25em;
                vertical-align: bottom;
            }
        }

        ul.traits {
            padding-left: 1em;

            & li {
                list-style-type: none;
                display: flex;
                align-items: center;
                gap: 5px;

                & img {
                    width: 2em;
                    height: 2em;
                }

                & img + img {
                    margin-left: -5px;
                }
            }
        }
    }

    .backdrop {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        overflow: hidden;
    }

    .graphic {
        max-width: clamp(200px, 95vw, 600px);
        position: relative;
    }

    &[data-member="pola"] {
        background-color: #170a2baa;

        & .name-tag {
            transform: rotate(-12deg);
            filter: drop-shadow(5px 5px 5px black);
        }

        & .name-tag:hover {
            filter: drop-shadow(5px 5px 10px 5px black);
        }

        & .info-box {
            & h2 {
                color: #885800;

                &::before {
                    background-image: url("/assets/_ui/star_orange.webp");
                }
            }
        }
    }

    &[data-member="eli"] {
        background-color: #ccc;

        & .name-tag {
            transform: rotate(-5deg);
            filter: drop-shadow(3px 3px 5px #00000077);
        }

        & .backdrop {
            height: 900px;
            mask-image: linear-gradient(
                    to bottom,
                    #ccccccff 80%,
                    transparent 100%
            );

            @media all and (max-width: 1400px) {
                object-position: 0;
            }

            @media all and (max-width: 950px) {
                object-position: 0;
                min-height: 600px;
                max-height: 700px;
            }

            @media all and (max-width: 700px) {
                min-height: 0;
                max-height: 600px;
                object-position: -200px 0;
            }

            @media all and (max-width: 400px) {
                object-position: -300px 0;
            }
        }

        & .info-box {
            @media all and (max-width: 700px) {
                margin-top: 300px;
            }

            & h2 {
                color: #088;

                &::before {
                    background-image: url("/assets/_ui/icon-cat-face.webp");
                }
            }
        }
    }

    &[data-member="alya"] {
        background-color: #342d35;

        & .name-tag {
            transform: rotate(-8deg);
            filter: drop-shadow(5px 5px 5px black);
        }

        & .info-box {
            & h2 {
                color: #3e0088;

                &::before {
                    background-image: url("/assets/_ui/icon-purple-heart.webp");
                }
            }
        }
    }

    &[data-member="sky"] {
        background-color: skyblue;

        & .name-tag {
            transform: rotate(-2deg);
            filter: drop-shadow(5px 5px 5px black);
        }

        & .info-box {
            & h2 {
                color: #002888;

                &::before {
                    background-image: url("/assets/_ui/icon-high-voltage.webp");
                }
            }
        }
    }

    @media not (prefers-reduced-motion) {
        & .name-tag {
            transition: all 0.3s ease-in-out;
        }

        & .name-tag:hover {
            transform: scale(1.2) rotate(10deg);
        }
    }
}
