.sfd_segment * {
    transform-style: preserve-3d;
}

.sfd_segment {
    /* width: 70px; - set by js */
    /* height: 120px; - set by js */
    float: left;
    display: block;
    position: relative;
    text-align: center;
    font-size: 100px;
    background-color: black;
    color: white;
    margin-right: 5px;
    font-family: 'Monaco', 'Roboto', 'Menlo', 'Lucida Console', monospace;
    border-radius: 5px;
}
.sfd_segment_flap {
    /* perspective: 400; */
    transform-origin: left bottom;
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0px;
    top: 0px;
    /* display: none; */
    /* background-color: purple; */
}
.sfd_segment_flap div {
    overflow: hidden;
    position: relative;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    /* Black line between the halves: */
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
.sfd_half_top {
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 50%;
    /* background-color: darkgreen; */
    line-height: 120px;
}
.sfd_half_bottom {
    position: absolute;
    overflow: hidden;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 50%;
    /* background-color: darkred; */
    line-height: 0px;
}