/* General styles for all menus */

.rhp-spmenu {
    background: #47a3da;
    position: fixed;
}

.rhp-spmenu h3 {
    color: #afdefa;
    font-size: 1.9em;
    padding: 20px;
    margin: 0;
    font-weight: 300;
    background: #0d77b6;
}

.rhp-spmenu a {
    display: block;
    color: #fff;
    font-size: 1.1em;
    font-weight: 300;
}

.rhp-spmenu a:hover {
    background: #258ecd;
}

.rhp-spmenu a:active {
    background: #afdefa;
    color: #47a3da;
}

/* Orientation-dependent styles for the content of the menu */

.rhp-spmenu-vertical {
    width: 240px;
    height: 100%;
    top: 0;
    z-index: 1000;
}

.rhp-spmenu-vertical a {
    border-bottom: 1px solid #258ecd;
    padding: 1em;
}

.rhp-spmenu-horizontal {
    width: 100%;
    height: 150px;
    left: 0;
    z-index: 1000;
    overflow: hidden;
}

.rhp-spmenu-horizontal h3 {
    height: 100%;
    width: 20%;
    float: left;
}

.rhp-spmenu-horizontal a {
    float: left;
    width: 20%;
    padding: 0.8em;
    border-left: 1px solid #258ecd;
}

/* Vertical menu that slides from the left or right */

.rhp-spmenu-left {
    left: -240px;
}

.rhp-spmenu-right {
    right: -240px;
}

.rhp-spmenu-left.rhp-spmenu-open {
    left: 0px;
}

.rhp-spmenu-right.rhp-spmenu-open {
    right: 0px;
}

/* Horizontal menu that slides from the top or bottom */

.rhp-spmenu-top {
    top: -150px;
}

.rhp-spmenu-bottom {
    bottom: -150px;
}

.rhp-spmenu-top.rhp-spmenu-open {
    top: 0px;
}

.rhp-spmenu-bottom.rhp-spmenu-open {
    bottom: 0px;
}

/* Push classes applied to the body */

.rhp-spmenu-push {
    overflow-x: hidden;
    position: relative;
    left: 0;
}

.rhp-spmenu-push-toright {
    left: 240px;
}

.rhp-spmenu-push-toleft {
    left: -240px;
}

/* Transitions */

.rhp-spmenu,
.rhp-spmenu-push {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Example media queries */

@media screen and (max-width: 55.1875em){

    .rhp-spmenu-horizontal {
        font-size: 75%;
        height: 110px;
    }

    .rhp-spmenu-top {
        top: -110px;
    }

    .rhp-spmenu-bottom {
        bottom: -110px;
    }

}

@media screen and (max-height: 26.375em){

    .rhp-spmenu-vertical {
        font-size: 90%;
        width: 190px;
    }

    .rhp-spmenu-left,
    .rhp-spmenu-push-toleft {
        left: -190px;
    }

    .rhp-spmenu-right {
        right: -190px;
    }

    .rhp-spmenu-push-toright {
        left: 190px;
    }
}
