.sidebar
{
    position: fixed;
    z-index: 30;
    top: 70vh;
    transform:translateY(-50%);
    right: 0;
    transition: 0.5s;
}
.sidebar-button
{
    display:block;
    border-radius:0 0 8px 8px;
    padding:10px 20px 10px 20px;
    font-size:13px;
    text-transform: uppercase;
    position:relative;
    width:224px;
    opacity:0;
    pointer-events: none;
    transition:0.5s ease opacity;
}
.sidebar-button.visible
{
    opacity:1;
    pointer-events:inherit;
}
.sidebar-button:after
{
    /* right is top and top is right (rotated) */
    content: "";
    position: absolute;
    top: -1px;
    right: 8px;
    color: white;
    font-size: 16px;
    width: 28px;
    height: 41px;
    line-height: 24px;
    text-align: center;
    transform: rotate(-90deg);
    background-repeat: no-repeat;
    background-size: contain;
}
.sidebar-button:hover
{
    cursor:pointer;
}
.sidebar-rotate
{
    transform:rotate(90deg);
}
.sidebar-unrotate
{
    transform:rotate(-90deg);
    height: 180px;
    width: 501px;
    position: absolute;
    top: 130px;
    left: -130px;

}
.sidebar-offset
{
    transform:translateX(60px);
}
.sidebar-rotate.sidebar-offset
{
    transform:translateX(92px) rotate(90deg);
}
.sidebar-content
{
    position:absolute;
    /* top is "right" */
    /* bottom is "left" */
    bottom:50px;
    width:100%;
    background:white;
    height:481px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
.sidebar-offset
{
    transition:all 0.5s ease;
}
@media only screen and (max-width : 997px) {
    .sidebar-content
    {
        width:320px;
        height:400px;
    }
    .sidebar-unrotate
    {
        top:40px;
        left:-40px;
    }
}
@media only screen and (max-width : 480px) {
    .sidebar-content
    {
        width:320px;
        height:280px;
    }
    .sidebar-unrotate
    {
        top:-20px;
        left:30px;
    }
}
@media only screen and (max-width : 976px) {
    .sidebar-button
    {
        width:40px;
        padding:10px 16px 10px 16px;
    }
    .sidebar-rotate.sidebar-offset {
        transform: translateX(6px) rotate(90deg);
    }
    .sidebar-button:after{
        top: 3px;
        right: 3px;
        width: 24px;
    }
}
