
#button-float,
#button-justify {
    position: relative;
    background: none !important;
}

#button-float img,
#button-justify img {
    opacity: 0;
}

#button-float::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 9px;

    width: 0;
    height: 0;

    margin-top: -4px;

    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #4f5458;
}

#button-float::after,
#button-justify::before {
    content: "";

    position: absolute;
    top: 9px;
    left: 16px;

    width: 13px;
    height: 14px;

    background:
        linear-gradient(
            to bottom,
            #4f5458 0,
            #4f5458 2px,
            transparent 2px,
            transparent 4px,
            #4f5458 4px,
            #4f5458 6px,
            transparent 6px,
            transparent 8px,
            #4f5458 8px,
            #4f5458 10px,
            transparent 10px,
            transparent 12px,
            #4f5458 12px,
            #4f5458 14px
        );
}

#button-justify::before {
    left: 10px;
    width: 18px;
}

#mybb-float-menu {
    display: none;
    position: absolute;
    z-index: 9999;

    padding: 6px;

    background: rgba(20, 23, 29, .94);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}

#mybb-float-menu button {
    min-width: 42px;
    min-height: 30px;
    margin: 0 3px;
    padding: 0 10px;

    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
}

#mybb-float-menu button:hover {
    color: rgba(255, 255, 255, .96);
    background: rgba(255, 255, 255, .12);
}

.mybb-float {
    display: block;
    max-width: min(46%, 360px);
}

.mybb-float-left {
    float: left;
    margin: 2px 18px 10px 0;
}

.mybb-float-right {
    float: right;
    margin: 2px 0 10px 18px;
}

.mybb-float img {
    max-width: 100%;
    height: auto;
}

.mybb-align-justify {
    text-align: justify;
}

@media (max-width: 640px) {
    .mybb-float {
        float: none;
        max-width: 100%;
        margin: 10px 0;
    }
}

