﻿div#addc, div.pg-cmds{
    position: fixed;
    top: 3em;
    right: 3px;
    width: 1.5em;
    text-align: right;
    z-index: 9;
    border: 1px solid #ddd;
    text-align: right;
    background:#eee;
    -webkit-border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    -ms-border-radius: 0.5em;
    -o-border-radius: 0.5em;
}

div#addc a.button, div.pg-cmds a.button, a.pg-cmds.button{
    color: #fff;
    background: #000;
    margin-top: 5px;
    width: 1.3em;
    height: 1.5em;
    vertical-align: middle;
    padding-top: 0.8em;
    font-weight: bold;
    display: block;
    opacity: 0.7;
}

span.top-bottom-nav{
    position:fixed;
    display:inline-block;
    right: 3px;
    bottom:1em;
    height: 3.5em;
    width:calc(1.3em + 2px);
    z-index: 9;
}
span.top-bottom-nav a.goTop.button{
    position:absolute;
    height: 1em;
    top:0;
}

span.top-bottom-nav a.goBot.button{
    position:absolute;
    height: 1em;
    bottom:0;
}

.show-cmd-name div.pg-cmds a.button > span{
    display: block;
    width:100%;
    height:100%;
    position:relative;
}
.show-cmd-name div.pg-cmds a.button span span
{
    position:absolute;
    top:0;
    width:50%;
    height:100%;
    
}
.show-cmd-name div.pg-cmds a.button span span:first-child{
    right:0;
    vertical-align:middle;
    padding-top:50%;    
}

.show-cmd-name div.pg-cmds a.button span span.cmd-name{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display:block;
    text-align:center;
    vertical-align:middle;
    left:0;
    
}
.show-cmd-name div.pg-cmds a.button
{
    font-size:0.5em;
    width: 2.7em;
    height: 4em;
}



a.pg-cmds.button{
    display: inline-block;
        
}
div.pg-cmds a.button:hover {
    opacity: 1;
    background: #333;
}

div#addc a.button:first-child, div.pg-cmds a.button:first-child {
    margin-top: 0;
}