@font-face {
    font-family: 'Raleway-Regular';
    font-style: normal;
    font-weight: 300;
    src: url(Raleway-Regular.ttf) format('truetype');
}

html {
    height:100%;
}
body {
    background: #eee;
    font-family: 'Raleway-Regular', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    width:100%;
    height:100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    position:fixed;
}
a {
    color: #4183c4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#modal{
    position: absolute;
    height: 70%;
    width: 80%;
    background: #fff;
    border: 0.5px solid lightslategray;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 70px 0px #999;
    text-align: center;
    vertical-align: middle;
}
#modal p:nth-child(1){
    line-height: 2em;
    font-size: 25px;
}

#modal .button{
    display: inline-block;
    width: 300px;
    height: 60px;
    border-radius: 10px;
    line-height: 60px;
    color: white;
    background: linear-gradient(60deg,rgba(10,10,10,0),rgba(10,10,10,0.1));
    background-origin: padding-box;
    background-size: auto;
    font-size: 22px;
    margin: 30px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 20px 0px, rgb(208, 208, 208) 0px 7px 15px -7px;
}
#modal .group{
    display: block;
    border-radius: 10px;
    line-height: 60px;
    color: white;
    font-size: 22px;
    margin: 20px auto;
    border: 3px solid #999;
}

.fieldminus{
    width: 40px;
    height: 50px;
    background: url("minus.png") no-repeat center;
    background-size: contain;
    margin-left: 5px;
    border-radius: 10px 0 0 10px;
    float:left;
    margin-top: 5px;
    margin-bottom: 5px;
}
.field{
    width: 100px;
    height: 46px;
    border: 2px solid;
    float:left;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 25px;
}
.fieldplus{
    width: 40px;
    height: 50px;
    background: url("plus.png") no-repeat center;
    background-size: contain;
    margin-right: 5px;
    border-radius: 0 10px 10px 0;
    float:left;
    margin-top: 5px;
    margin-bottom: 5px;
}

#content{
    height:100%;
    width:100%;
    overflow:hidden;
}

#tiles{
    height:92%;
    width:73%;
    float:left;
}

#controller{
    height:92%;
    width:27%;
    float:left;
}

#statusbar{
    height:8.1%;
    width:100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background:#f3f3f3;
    border-top: 0.5px solid #999;
    box-shadow: 0px 0px 5px 0px #999;
    line-height: 60px;
    font-size: 20px;
    vertical-align: middle;
    color: #fff;
    z-index:10;
}

.tile{
    display:block;
    position: absolute;
    border-radius:4px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-shadow: 0px -0.5px 20px rgba(60, 60, 60, 1);
    z-index:1;
    background: linear-gradient(60deg,rgba(10,10,10,0),rgba(10,10,10,0.4));
    background-origin: padding-box;
    background-size: auto;
}
.tilepopup{
    display:block;
    position: absolute;
    overflow: hidden;
    z-index: 2;
    margin:0px;
    border: 0.5px solid #333333;
    background: #eee;
    background: linear-gradient(60deg,rgba(240,240,240,0.9),rgba(240,240,240,0.8));
    background-origin: padding-box;
    background-size: auto;
    visibility:hidden;
    box-shadow: 0px 0px 70px 0px #999;
    border-radius:7px;
}

#receipts{
    width: 90%;
    height: 30px;
    background:#fff;
    border: 0.5px solid #999;
    border-top:none;
    box-shadow: 0px 0px 5px 0px #999;
    margin: 0 auto;
    text-align: center;
    color:#bbb;
}

#receiptsmenu{
    position: absolute;
    top:0;
    left:74.35%;
    width: 24.3%;
    height: 54%;
    background:#fff;
    border: 0.5px solid #999;
    border-top:none;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    margin: 0 auto;
    text-align: center;
    color:#bbb;
}

#cartscroller{
    width: 90%;
    height: 48%;
    background:#fff;
    border: 0.5px solid #999;
    margin: 40px auto 0 auto;
    text-align: center;
    color:#666;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#cart{
    width: 100%;
    height:100%;
}
#popupoutside{
    width: 100%;
    height:100%;
    visibility:hidden;
}

.cartline{
    width:100%;
    height: 17%;
    border-bottom: 0.5px solid #999;
    line-height: 1;
}
.cartline div:nth-child(1) {
    display: block;
    float: left;
    height: 100%;
    width: 85%;
}
.cartline div:nth-child(1) span:nth-child(1){
    display:block;
    float:left;
    height:50%;
    width: 100%;
    font-size:20px;
    line-height: 150%;
}
.cartline div:nth-child(1) span:nth-child(2){
    display:block;
    float:left;
    height:50%;
    width: 20%;
    font-size:18px;
    color:dodgerblue;
    text-align: left;
    margin-left:10px;
}
.cartline div:nth-child(1) span:nth-child(3){
    display:block;
    float:left;
    height:50%;
    width: 25%;
    font-size:18px;
    color: #ff0000;
    text-align:right;
}
.cartline div:nth-child(1) span:nth-child(4){
    display:block;
    float:right;
    height:50%;
    width: 40%;
    font-size:18px;
    color:dodgerblue;
    text-align:right;
    margin-right: 10px;
}
.cartline div:nth-child(2){
    display:block;
    float:left;
    height:100%;
    width: 15%;
    font-size:30px;
    color:#fff;
    background: #ff0000 url("minus.png") no-repeat center;
    background-size: 24px;
}

#functions{
    width: 90%;
    height: 8%;
    background:#fff;
    border: 0.5px solid #999;
    border-top:none;
    margin: 0 auto;
    text-align: center;
    color:#666;
    overflow: hidden;
}

#keypad{
    width: 90%;
    /*height: 32%;*/
    background:#fff;
    border: 0.5px solid #999;
    border-top:none;
    border-bottom:none;
    margin: 0 auto;
    text-align: center;
    color:#666;
    overflow: hidden;
}
#funcfield{
    height: 0%;
    width: 100%;
    float:left;
    color:#fff;
    font-size: 30px;
    line-height: 55px;
    vertical-align: middle;
    background-size: 30px !important;
    background-position: 5% 50% !important;
}

#funcfield div:nth-child(2){
    height: 100%;
    width: 15%;
    float:right;
    color:#fff;
    font-size: 20px;
    line-height: 55px;
    vertical-align: middle;
    background-size: 30px !important;
    background: url('cancel.png') no-repeat center;
}
#funcfield div:nth-child(3){
    height: 100%;
    width: 15%;
    float:right;
    color:#fff;
    font-size: 20px;
    line-height: 55px;
    vertical-align: middle;
    background-size: 30px !important;
    background: url('ok.png') no-repeat center;
}

.funckey{
    width: 33.33333333333%;
    height: 100%;
    float:left;
    box-sizing: border-box;
    line-height: 55px;
    vertical-align: middle;
    font-size: 20px;
}
.funckey:nth-child(3) {
    border-left: 0.5px solid #999;
    border-right: 0.5px solid #999;
}
.key{
    width: 33.33333333333%;
    /*height: 25%;*/
    box-sizing: border-box;
    float:left;
    border-bottom: 0.5px solid #999;
    line-height: 48px;
    vertical-align: middle;
    font-size: 25px;
}
.key:nth-child(3n+2) {
    border-left: 0.5px solid #999;
    border-right: 0.5px solid #999;
}

#totals{
    position:absolute;
    top:0;
    right:10%;
    background: #00c800;
    height:100%;
    width:17%;
    border-left: 0.5px solid #eee;
}
#sum{
    text-align:center;
    font-size:40px;
}
#checkout{
    position:absolute;
    top:0;
    right: 0;
    background: #00c800 url(cart.png) no-repeat center;
    background-size: 40px;
    height:100%;
    width:10%;
    border-left: 0.5px solid #eee;
}

#clean{
    position:absolute;
    top:0;
    left:6%;
    background: url(clean.png) no-repeat center;
    background-size: 30px;
    height:100%;
    width:6%;
}
#cleanret{
    position:absolute;
    bottom:0;
    left:6%;
    background: url(clean.png) no-repeat center;
    background-size: 30px;
    height:8.1%;
    width:6%;
}

#clear{
    position:absolute;
    top:0;
    left:65%;
    background: url(trash.png) no-repeat center;
    background-size: 30px;
    height:100%;
    width:6%;
}

#settings{
    position:absolute;
    top:0;
    left:0;
    background: url(settings.png) no-repeat center;
    background-size: 30px;
    height:100%;
    width:6%;
}
#settingsmenu{
    position:absolute;
    bottom:8.1%;
    left:0;
    background: #f3f3f3;
    background-size: 30px;
    border-top: 0.5px solid #999;
    border-left: 0.5px solid #999;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    height:26.9%;
    width:30%;
    color:#666;
    font-size:20px;
    z-index:8;
}
#settingspublic{
    position:absolute;
    bottom:8.1%;
    left:0;
    background: #f3f3f3;
    background-size: 30px;
    border-top: 0.5px solid #999;
    border-left: 0.5px solid #999;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    height:10%;
    width:30%;
    color:#666;
    font-size:20px;
    z-index:9;
}
#shutdown{
    background: url(shutdown.png) no-repeat left center;
    background-size: 30px;
    height:100%;
    width:100%;
    float:left;
    line-height: 75px;
    vertical-align:middle;
    padding-left:40px;
    margin-left:15px;
}

#report{
    background: url(bill.png) no-repeat left center;
    background-size: 30px;
    height:25%;
    width:100%;
    float:left;
    line-height: 50px;
    vertical-align:middle;
    padding-left:40px;
    margin-left:15px;
}

#money{
    background: url(money.png) no-repeat left center;
    background-size: 30px;
    height:25%;
    width:100%;
    float:left;
    line-height: 50px;
    vertical-align:middle;
    padding-left:40px;
    margin-left:15px;
}

#timer{
    background: url(timer.png) no-repeat left center;
    background-size: 30px;
    height:25%;
    width:100%;
    float:left;
    line-height: 50px;
    vertical-align:middle;
    padding-left:40px;
    margin-left:15px;
}

#training{
    background: url(training.png) no-repeat left center;
    background-size: 30px;
    height:25%;
    width:100%;
    float:left;
    line-height: 50px;
    vertical-align:middle;
    padding-left:40px;
    margin-left:15px;
}


.discount{
    background: url("discount.png") no-repeat center;
    background-size: 30px;
}
.multiply{
    background: url("multiply.png") no-repeat center;
    background-size: 30px;
}
.price{
    background: url("price.png") no-repeat center;
    background-size: 30px;
}
.undo{
    background: url("undo.png") no-repeat center;
    background-size: 30px;
}

.nav ul{
    width: fit-content;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background-color: #AAA;
    border-radius: 50px;
}

.nav li {
    float: left;
    border-radius: 50px;
    margin: 8px;
}

.nav li div {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 22px;
}

.nav li.active{
    background-color: #666;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 20px 0px, rgb(208, 208, 208) 0px 7px 15px -7px;
}