.sync-room_card {
    position: relative;

    z-index: 300;

    display: flex;
    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 20px;

    width: 100%;
    min-width: 270px;

    background-color: var(--background-color-accent);

    border-radius: 8px;

    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);

    overflow-x: overlay;

    .sync-room_actions {
        position: sticky;

        right: 0;
        bottom: 0;

        display: flex;
        flex-direction: row;

        align-items: center;

        gap: 10px;
    }

    .sync-room_users {
        display: flex;
        flex-direction: row;

        align-items: center;

        gap: 6px;

        // width: 100%;
        // height: 100%;

        // overflow-y: visible;
        // overflow-x: overlay;

        .sync-room_user {
            position: relative;

            display: flex;
            flex-direction: row;

            align-items: center;

            gap: 5px;

            animation: user-join 500ms ease-out forwards;

            .sync-room_user_avatar {
                width: 30px;
                height: 30px;

                img {
                    width: 100%;
                    height: 100%;

                    object-fit: cover;
                    object-position: center;

                    border-radius: 12px;

                    background-color: black;
                }
            }

            .ownerIcon {
                position: absolute;
                top: 0;
                right: 0;

                transform: translate(0, -100%);

                // make gold color
                color: #FFD700;
            }
        }
    }

    .latency_display {
        position: absolute;
        bottom: 0;
        right: 0;

        display: flex;
        flex-direction: row;

        align-items: center;

        gap: 5px;

        padding: 5px 10px;

        border-radius: 0 8px 0 8px;

        font-size: 8px;
        font-weight: 500;

        color: var(--text-color-accent);
    }
}

.sync-room_subcard {
    position: relative;
    z-index: 295;

    top: 0;
    left: 0;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-height: 350px;

    overflow-y: overlay;

    padding: 10px;

    background-color: var(--background-color-accent);

    border-radius: 8px 8px 0 0;

    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);

    transition: all 250ms ease-in-out;

    &.top {
        transform: translateY(10px);
        padding-bottom: 20px;

        border-radius: 8px 8px 0 0;
    }

    &.bottom {
        transform: translateY(-10px);
        padding-top: 20px;

        border-radius: 0 0 8px 8px;
    }

    &.hidden {
        opacity: 0;
        max-height: 0px;

        padding-top: 0;
        padding-bottom: 0;
    }

    .sync-room_share_btns {
        display: flex;
        flex-direction: row;

        gap: 8px;
    }
}

// animate a bounce in
@keyframes user-join {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0px);
    }
}