#topfix {
    position: fixed;
    background-image: linear-gradient(360deg, transparent, rgb(0 0 0 / 50%));
    width: 100%;
    height: 50px;
    top: 0px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 99993;
    transition: all 300ms;
    background-clip: padding-box;
    box-sizing: content-box;
    border-bottom: 10px solid transparent;
}

#topfix.green {
    background-clip: padding-box!important;
}

#topbar {
    background: transparent;
    height: 50px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    z-index: 10000;
    overflow: hidden;
    overflow-x: hidden;
}

.open #topfix {
    background: #FFF;
    background-clip: content-box!important;
}

.inv body.open  #topfix {
    background: #000000;
    background-clip: content-box;
}


#pushdown {
    height: 50px;
    width: 100%;
    background: transparent;
}

.numpad {
    position: absolute;
    background: url(../images/numpad-bg.png) no-repeat center 3px;
    background-size: 81px;
    width: 70px;
    height: 50px;
    top: 0;
    left: 50%;
    margin-left: -35px;
    text-indent: 999em;
    overflow: hidden;
    display: none;
}

.listpad {
    position: absolute;
    background: url(../images/listpad.png) no-repeat center 0px;
    background-size: 70px;
    width: 70px;
    height: 50px;
    top: 0;
    left: 50%;
    margin-left: -35px;
    text-indent: 999em;
    overflow: hidden;
    display: none;
}

a:active.numpad {
    background: url(../images/numpad-bg-active.png) no-repeat center 5px;
    background-size: 60px;
}

.hidenumpad {
    display: none!important;
}

.back {
    position: absolute;
    height: 50px;
    width: 80px;
    left: 0;
    top: 0;
    /* padding-top: 10px; */
    /* padding-left: 15px; */
    background: url(../images/icon_back-w.png) no-repeat 10px center;
    background-size: 25px;
}

.inv .back {
    position: absolute;
    height: 60px;
    width: 80px;
    padding-top: 6px;
    padding-left: 10px;
    background: url(../images/icon_back-w.png) no-repeat 10px 12px;
    background-size: 26px;
}

.hideback, .backopen {
    display: none;
}

.backtest {
    display: none;
}

a.back, a:visited.back {
    color: #666;
    font-size: 26px;
    text-decoration: none;
}

a:active.back {
    /*! background: -webkit-radial-gradient(center ellipse,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); */
    /*! background: radial-gradient(ellipse at center,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); */
    /* background: url(../images/icon_back_a.png) no-repeat 10px 20px; */
    /* background-size: 24px; */
}

.back p {
    font-size: 26px;
}

#homeicon {
    position: absolute;
    left: 50%;
    width: 50px;
    margin-left: -25px;
    display: none;
    text-align: center;
    height: 50px;
    line-height: 50px;
}

#homeicon.show {
    display: block;
}

#overlay {
    height: 100%;
    position: fixed;
    /* max-width: 1000px; */
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99992;
    background: rgb(255 255 255 / 0%);
    display: block;
    -webkit-transform: translate(0px,0px);
    transform: translate(0px,200vhpx);
    opacity: 0;
    display: none;
}

#overlay.open {
    display: block;
    -webkit-transform: translate(0px,1px);
    transform: translate(0px,0px);
    opacity: 1;
    display: block;
}

#menu {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    max-width: 1000px;
    background: #ec090900;
    max-height: 100%;
    position: fixed;
    overflow-y: auto;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99994;
    transition: all 400ms;
    transform: translate(0, -100vh);
}

#menu.open {
    transform: translate(0, 50px);
    transition: all 400ms;
}

#menu a, #menu a:visited, #size-button, #invert-button {
    font-size: 125%;
    font-weight: 100;
    background: #ffffff;
    border-bottom: 1px solid #dfdfdf;
    padding: 20px 8px 20px 15px;
    display: block;
    color: #525252;
    text-decoration: none;
    /* text-transform: uppercase; */
    /* margin-left: 40%; */
    min-height: 44px;
    width: 50%;
    min-width: 350px;
    margin: 0 auto;
    box-shadow: -5px 0 10px #00000014;
}

.inv #menu a, .inv #menu a:visited, .inv #size-button, .inv #invert-button {
    background: #011920;
    color: #FFF;
    border-bottom: 1px solid #013241;
}

.menufirst {
    border-top: 1px solid#dfdfdf!important;
}

.inv .menufirst {
    border-top: 0px solid#333!important;
}

#navbutton {
    height: 50px;
    width: 70px;
    position: absolute;
    right: 0;
    overflow: hidden;
}

#nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 {
    width: 29px;
    height: 25px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    position: absolute;
    right: 9px;
    top: 15px;
    /* transform: translateY(-50%); */
    /* overflow: hidden; */
}

#nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
    display: block;
    position: absolute;
    height: 2px;
    width: 29px;
    background: #424242;
    border-radius: 0px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
    background: #ffffff;
}

.open #nav-icon1 span, .open #nav-icon3 span, .open #nav-icon4 span {
    background: #000;
}

.open .green #nav-icon1 span, .open .green #nav-icon3 span, .open .green #nav-icon4 span {
    background: #fff;
}

.inv #nav-icon1 span, .inv #nav-icon3 span, .inv #nav-icon4 span {
    background: #FFF;
}

/* Icon 3   #nav-icon3.open span{ background:#D73E3E} */
#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) {
    top: 8px;
}

#nav-icon3 span:nth-child(4) {
    top: 16px;
}

#nav-icon3.open span:nth-child(1) {
    opacity: 0;
}

#nav-icon3.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    height: 2px;
}

#nav-icon3.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    height: 2px;
}

#nav-icon3.open span:nth-child(4) {
    opacity: 0;
}

#menu a p:first-child {
    color: #474747;
    font-size: 111%;
}

.inv #menu a p:first-child {
    color: #FFF;
    font-size: 120%;
}

.menuwrap {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}
