.pref_button_container
{
    --frame-height: 158px;
    --frame-width: 55px;
    --b-height: 33px;
    --b-width: 43px;
    --bf-border-width: 6px;
    --wn-border-width: 5px;
    --bf-border-color:  rgba(110, 25, 0, 1);
    --bf-background-color: rgba(10, 20, 10, 1);
    --wheel-trans_delta: .5s;
    position: relative;
    height: var(--frame-height, 100%);
    width: var(--frame-width, 100%);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.1);
    transition: visibility var(--wheel-trans_delta), opacity var(--wheel-trans_delta), transform  var(--wheel-trans_delta);
}

.pref_button_container.display_area_receptive
{
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.pref_button_container.bf_container_horizontal
{
    --frame-height: 55px;
    --frame-width: 230px;
}

.wheel_message_area_bot,
.wheel_message_area_top
{
    --wm-height: 20px;
    --wm-top: calc(0px - 1/4*var(--wm-height));
    --wm-left: var(--wm-top);
    --wm-width: fit-content;
    --wm-shadow-color: rgba(0, 10, 10, 0.7);
 /*
   position: absolute;
   top: var(--wm-top);
   bottom: 0px;
   left: var(--wm-left);
 */
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    height: var(--wm-height);
    width: var(--wm-width);
    width: calc(100% - 20px);
    box-shadow: 1px 1px 1px 1px var(--wm-shadow-color);
    color: rgba(250, 250, 250, 0.9);
    font-size: 13px;
    line-height: 20px;
    font-family: arial;
    font-weight: bold;
    text-align: center;
    background: rgba(180, 80, 10, .7);
    background: linear-gradient(
        90deg,
        rgba(30, 10, 1, .5),
        rgba(180, 80, 10, .7),
        rgba(30, 10, 1, .5)
    );
    margin: auto;
/*
    padding-left: 5px;
    padding-right: 5px;
    */
}

.wheel_shortcut_area_top,
.wheel_shortcut_area_bot
{
    --wm-height: 20px;
    --ws-trans-delta: 0.13s;
    --wm-angle: 30deg;
    position: absolute;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wm-height);
    width: 100%;
}

.wheel_shortcut_area_top
{
    top: calc(0px - 1/2*var(--wm-height) - 3px);
}

.wheel_shortcut_area_bot
{
    bottom: calc(0px - 1/2*var(--wm-height) - 3px );
}

.wheel_shortcut0, .wheel_shortcut1,
.wheel_shortcut2, .wheel_shortcut3,
.wheel_shortcut4, .wheel_shortcut5,
.wheel_shortcut6, .wheel_shortcut7,
.wheel_shortcut8, .wheel_shortcut9
{
    height: 100%;
    min-width: 15px;
    border: 2px solid rgba(120, 120, 120, 1);
    border-radius: 5px;
    background: rgba(180, 80, 10, .7);
    padding-left: 5px;
    padding-right: 5px;
    font-size: 13px;
    line-height: 20px;
    font-family: arial;
    font-weight: bold;
    text-align: center;
    filter: brightness(70%);
    transform: translate(0, 0);
    transition: transform var(--ws-trans-delta), filter var(--ws-trans-delta);
}

.wheel_shortcut0, .wheel_shortcut1,
.wheel_shortcut2, .wheel_shortcut3,
.wheel_shortcut4
{
    /* transform: perspective(70px) rotateX(calc(0deg - var(--wm-angle))); */
}

.wheel_shortcut5,
.wheel_shortcut6, .wheel_shortcut7,
.wheel_shortcut8, .wheel_shortcut9
{
    /* transform: perspective(70px) rotateX(calc(var(--wm-angle)));*/
}

.wheel_shortcut0:hover, .wheel_shortcut1:hover,
.wheel_shortcut2:hover, .wheel_shortcut3:hover,
.wheel_shortcut4:hover, .wheel_shortcut5:hover,
.wheel_shortcut6:hover, .wheel_shortcut7:hover,
.wheel_shortcut8:hover, .wheel_shortcut9:hover
{
    filter: brightness(90%)
}

.wheel_shortcut0:active, .wheel_shortcut1:active,
.wheel_shortcut2:active, .wheel_shortcut3:active,
.wheel_shortcut4:active
{
    transform: perspective(70px) rotateX(calc(var(--wm-angle)));
    filter: brightness(100%)
}

.wheel_shortcut5:active,
.wheel_shortcut6:active, .wheel_shortcut7:active,
.wheel_shortcut8:active, .wheel_shortcut9:active
{
    transform: perspective(70px) rotateX(calc(0deg - var(--wm-angle)));
    filter: brightness(100%)
}

.wheel_shortcut_area_top .wheel_shortcut_disable,
.wheel_shortcut_area_bot .wheel_shortcut_disable,
.wheel_message_area_top .wheel_shortcut_disable,
.wheel_message_area_bot .wheel_shortcut_disable,
.wheel_message_area_top_left .wheel_shortcut_disable,
.wheel_message_area_bot_left .wheel_shortcut_disable,
.wheel_message_area_top_right .wheel_shortcut_disable,
.wheel_message_area_bot_right .wheel_shortcut_disable
{
    display: none
}

.pref_button_frame
{
    display: flex;
    position: relative;
    box-sizing: border-box;    
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--bf-background-color);
    /* bordered version
    border: var(--bf-border-width) solid var(--bf-border-color);
    border-radius: var(--bf-border-width);
   */
    box-shadow: 0px 0px 3px 3px var(--bf-background-color), -0px -0px 3px 3px var(--bf-background-color);    
    /* declarations below are temporary*/
}

.bf_container_horizontal .pref_button_frame
{
    justify-content: center;
}

.inverted_text
{
    color: white;
    background: rgba(10, 10, 10, 0.7);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-align: center;
    line-height: 13px;
    padding: 3px;
    border-radius: 3px;
    height: 13px;
    min-width: 16px;
}

.dial_shortcut > .inverted_text
{
    color: white;
    text-shadow: 0px 0px 2px black;
    background: none;
   /* background: rgba(10, 10, 10, 0.7);*/
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-align: center;
    line-height: 13px;
    padding: 1px;
    border-radius: 3px;
    border-radius: 8px;
    height: 13px;
    min-width: 16px;
}

.buffer_insert
{
    --bi-stripe-color: rgba(100, 100, 150, 1);
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 1px solid black;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 5px,
        var(--bi-stripe-color) 5px,
        var(--bi-stripe-color) 6px,
        transparent 6px 
    ),
    repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 5px,
        var(--bi-stripe-color) 5px,
        var(--bi-stripe-color) 6px,
        transparent 6px 
    );
    background-repeat: repeat repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.buffer_insert.bi_variant1
{
    --bi-stripe-color: rgba(190, 50, 90, 1);
}

.buffer_insert.bi_variant2
{
    --bi-stripe-color: rgba(0, 50, 90, 1);
}

.pref_bf_button_bot,
.pref_bf_button_top,
.pref_bf_button_bot_hidden,
.pref_bf_button_top_hidden
{
    box-sizing: border-box;
    height: var(--b-height, 30px);
    width: 100%;
    align-self: flex-start;
    margin: 0;
    transition: margin var(--trans_delta);
    /* declarations below are temporary*/
}

.pref_bf_button_bot_hidden,
.pref_bf_button_top_hidden
{
    z-index: -1;    
}

.pref_bf_button_bot_hidden
{
    margin-bottom: calc( 0px - var(--b-height));
}

.pref_bf_button_top_hidden
{
    margin-top: calc( 0px - var(--b-height));
}

.pref_bf_button_spacer_mid
{
    flex-grow: 1;
}

.pref_bf_button_center
{
    position: absolute;
    box-sizing: border-box;
    width: calc(var(--b-width));
    height: calc(var(--b-height));
    top: 50%;
    transform: translate(0px, -50%);
    /* declarations below are temporary*/
}

.pref_card_element
{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: white;
    height: 100%;
    width: calc(100% - var(--bf-border-width));
    /* left: calc(1/2*var(--bf-border-width)); */
    border-radius: 8px;
    box-shadow: 0px 1px 3px 1px rgba(100, 100, 100, 1);
    border: 1px solid black;
    background-clip: padding-box;
    font-family: Montserrat, arial;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}    

.bf_container_horizontal .pref_card_element
{
    justify-content: center;
    box-shadow: -2px 0px 2px 0px rgba(100, 100, 100, 1);
    box-shadow: -5px 0px 3px -3px rgba(30, 30, 10, 1);
}

.pf_tape_clip
{
    --pf-tape-shift: 50%;
    --pf-tape-length: 3;
    width: calc(100% - 2*var(--bf-border-width, 6px));
    height: calc(var(--pf-tape-length, 2)*(var(--b-height) - var(--bf-border-width)));
    top: 50%;
    transform: translate(0px, calc(0px - var(--pf-tape-shift)));
    position: absolute;
    overflow: hidden;
    display: flex; /* just for centering */
    justify-content: center;
    background-image: linear-gradient( var(--bf-background-color), white, var(--bf-background-color) );
}

.pf_tape
{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    top: var(--pf-tape-shift);
    transform: translate(0px, -50%);
    width: 100%;
    height: var(--b-height);
    height: calc( var(--b-height) - 2*var(--bf-border-width));              
    position: absolute;
    overflow: visible;
}

.tape_element_top,
.tape_element_mid,
.tape_element_bot
{
    --pf-tape-bd_width: 1px;
    --pf-tape-bd-color: black;
    --pf-tape-bd-radius: 3px;
    width: 100%;
    width: calc(100% - var(--bf-border-width));
    height: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0);
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-family: arial;
    font-size: 12px;
    line-height: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 0px;
}

.tape_element_top
{
    border: 0px solid var(--pf-tape-bd-color);
    border-width: var(--pf-tape-bd_width) var(--pf-tape-bd_width)
                     var(--pf-tape-bd_width) var(--pf-tape-bd_width);
    border-radius: var(--pf-tape-bd-radius) var(--pf-tape-bd-radius) 0px 0px;
}

.tape_element_mid
 {
     border: 0px solid var(--pf-tape-bd-color);
     border-width: 0px var(--pf-tape-bd_width)
               var(--pf-tape-bd_width) var(--pf-tape-bd_width);
}

.tape_element_bot
{
    border: 0px solid var(--pf-tape-bd-color);
    border-width: 0px var(--pf-tape-bd_width)
                      var(--pf-tape-bd_width) var(--pf-tape-bd_width);
    border-radius: 0px 0px var(--pf-tape-bd-radius) var(--pf-tape-bd-radius);
}
