@import 'reset';
$font-stack:    Helvetica, sans-serif;
$primary-color: #333;
$width: 1280px;
$height: 720px;
$padding: 15px 20px;
$border-radius: 5px;
$left-space : 455px;
$margin: 20px;
$margin-top: 103px;
$right-space: $width - $left-space - $margin;
$fnb-serv: 345px;
$padding-left-right: 15px;
$prev-next: 50px;
$icon: 40px;
::-webkit-scrollbar{
    width: 12px;
}
	
::-webkit-scrollbar-track{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
}
::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.header{
	color: #ffffff;
	margin-bottom: 5px;
}
#fnb-container {
        position: absolute;
        left: $left-space;
        display: inline-block;
	text-align: left;
	margin: $margin-top $margin $margin 0px;
        width: $right-space;
        height: $height - $margin-top - $margin;
	font-size: 130%;
	line-height: 1.3em;
}

#detail-container {
        position: absolute;
        left: $left-space;
        display: block;
        visibility: hidden;
	text-align: left;
	margin: ($margin-top - 10px) $margin $margin 0px;
        padding: 0px 10px 10px 0px;
        width: $right-space;
        height: $height - $margin-top - $margin;
	font-size: 2.8em;
	line-height: 1.3em;
        background-color: #002541;
        button{
            font-size: 1.3em;
            /*transition: background-color 0.5s ease;*/
        }
        button:focus{
            background-color: #003399;
            color: #ffffff;
        }
        button:active{
            background-color: #ff3399;
            color: #ffffff;
        }
}

#confirm-container {
        position: absolute;
        left: $left-space;
        display: block;
        visibility: hidden;
	text-align: left;
	margin: ($margin-top - 10px) $margin $margin 0px;
        padding-top: 10px;
        padding-left : 25px;
        width: $right-space - 25px;
        height: $height - $margin-top - $margin;
	font-size: 2.8em;
	line-height: 1.3em;
        background-color: #002541;
        div{
            float: left;
            text-align: left;   
        }
        p{
            
            font-size: 0.5em;
        }
        #confirm-top{
            background: #ffffff;
            border-radius: $border-radius;
            padding: 5px;
        }
        #confirm-bottom{
            position:absolute;
            display: inline-block;
            font-size: 0.5em;
            height: 40px;
            background: #ffffff;
            border-radius: $border-radius;
            bottom: 0px;
            right: 0px;
            left: 0px;
        }
}
.detail-wrapper{
    position: relative;
    float : left;
    max-height: 480px;
    width: $right-space - $icon/*- (2 * $prev-next)*/;
    height: 100%;
}
.detail-wrapper-scroll{
    position: relative;
    float : left;
    max-height: 480px;
    width : $icon;
    height: 100%;
}
#scroll{
    position: absolute;
    top: 0px;
    left:0px;
    right:0px;
}
.detail-wrapper-beside{
    position: relative;
    float : left;
    width: $right-space/*$prev-next*/;
    font-size:0.5em;
    max-height: $icon;
/*    margin-top: $height/2 - $margin-top;*/
    
}

.fnb-serv{
    float: left;
    width: $fnb-serv;
    padding: 0px $padding-left-right;
    margin-bottom: $margin;
    color: #ffffff;
    div {
        display: inline-block;
        text-align: center;
    }
}

#fnb-id{
    display: none;
}
#fnb-title{
    float: left;
    width: $fnb-serv;
    display: inline-block;
    overflow: hidden;
    .inner-wrapper{
      float:left;
      width:auto;
      white-space: nowrap;
    }
}

#fnb-minus{
    float: left;
    width: $icon + 10px;
    height:  $icon + 10px;
    background: url("../../images/left.png") center center no-repeat;
    margin-right: $margin;
}
#fnb-plus{
    float: right;
    width:  $icon + 10px;
    height:  $icon + 10px;
    background: url("../../images/right.png") center center no-repeat;
    margin-right: $margin;
    
}
#fnb-s-ok{
    float: right;
    margin-right: $margin;
}
#fnb-s-cancel{
    float: left;
    margin-right: $margin;
}
#fnb-s-count{
    display: inline-block;
    width: 50%;
    &[data-state="alert"]{
        
        border-radius: 5px;
        border: 3px solid #ff0000;   
    }
}
#fnb-preview{
    float: right;
    width: $right-space - (2 * $prev-next) - ( $fnb-serv + $padding-left-right   *2);
    height: $right-space - (2 * $prev-next) - ( $fnb-serv + $padding-left-right *  2);
}
#fnb-prev{
    width: $icon;
    height: $icon;
    display: block;
    float: right;
    text-align: center;
    background-image: url("../../images/up.png");
}
#fnb-next{
    width: $icon;
    height: $icon;
    display: block;
    float: right;
    text-align: center;
    background-image: url("../../images/down.png");
}
.fnb-serv-full{
    float: left;
    width: $right-space - (2 * $prev-next);
    margin-top: $margin;
}
#fnb-detail-legend{
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: $border-radius;
    font-size: 0.5em;
    background: #ffffff;
}
.group-menu{
	width: 330px;
	background: #ffffff;
}
.fnb-header{
	display: inline-block;
	background: #eeeeee;
	text-align: center;
	padding: 8px 0px;
	border-radius: $border-radius;
        &[data-state="highlight"]{
            background: #003300;
            color: #ffffff;
            float: left;
            -webkit-animation-name: Floatingx;
            -webkit-animation-duration: 2s;
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-timing-function: ease-in-out;
            -moz-animation-name: Floating;
            -moz-animation-duration: 2s;
            -moz-animation-iteration-count: infinite;
            -moz-animation-timing-function: ease-in-out;
        }
}

#menu-left{
        position: relative;
	float: left;
}
#menu-right{
        position: relative;
	float: right;
}
#menu-bottom{
        position: absolute;
        left: 0px;
        right: 0px;
        bottom: 0px;
	width: 100%;
	height: $icon;
	margin-top: 10px;
	display: inline-block;
	background: #ffffff;
	border-radius: $border-radius;
}

#red{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/red.png') ;
    }
}

#left_right{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/left_right.png') ;
    }
}

#up_down{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/up_down.png') ;
    }
}

#back{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/back_1.png') ;
    }
}

#ok{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/ok_1.png') ;
    }
}
#nav{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/nav_1.png') ;
    }
}
#exit{
    float: right;
    line-height: $icon;
    margin-right: 8px;
    font-weight:bold;
    &:before{
        content: '';
        display: inline-block;
        float: left;
        width: $icon;
        height: $icon;
        background-image: url('../../images/exit_1.png') ;
    }
}
ul.list{
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
	li a{
		display: block;
		height: 38px;
		line-height: 1.8em;
		padding-left: 10px;
		text-decoration: none;
		display: block;
		overflow: hidden;
		white-space: nowrap;
		text-align: left;
		color: #000;
		min-width: 320px;
		max-width: 415px;
		vertical-align: top;
		-webkit-transition: max-width 2s;
		transition: max-width 2s;
        
		&:focus{
			/*display: inline-block;*/
			min-width: 320px;
			width: auto;
			max-width: 415px;
			color: yellow;
			background-color: #4CAF50;
			overflow:visible;
                        
                }
		&:hover:not(:focus) {
			background-color: #555;
			color: white;
                        
                }
                span {
                }
        }
}
#ordered-menu{
    @extend ul.list;
    li a{
        position: relative;
        line-height: 2.4rem;
        div{
            display: inline-block;
            width: 320px;
            
            marquee{
                 -moz-binding:none; 
                 -webkit-marquee-style: none;
            }
        }
        
        span{
            float:right;
            width: 50px;
            margin-right: 5px;
            padding: 0px 5px;
            display: inline-block;
            vertical-align: middle;
            &:after{
                content: '';
                display: inline-block;
                float: right;
                width: 16px;
                height: 16px;
                margin: 10px 0px 0px 5px;
                background-image: url('images/ui-icons_cc0000_256x240.png') ;
                background-position: -16px -192px;
                
            }
        }
        
        &:focus{
            span{
                padding: 0px 5px;
                background-color: #ff0000;
                &:after{
                    content: '';
                    display: inline-block;
                    float: right;
                    width: 16px;
                    height: 16px;
                    margin: 10px 0px 0px 5px;
                    background-image: url('images/ui-icons_ffffff_256x240.png') ;
                    background-position: -16px -192px;

                }
            }
        }
        &:hover:not(:focus) {
            span{
                padding: 0px 5px;
                background-color: #ff0000;
                &:after{
                    content: '';
                    display: inline-block;
                    float: right;
                    width: 16px;
                    height: 16px;
                    margin: 10px 0px 0px 5px;
                    background-image: url('images/ui-icons_ffffff_256x240.png') ;
                    background-position: -16px -192px;

                }
            }
        }
        &.active{
            
        }
    }
}
.food-menu{
	display: inline-block;
	font-size: 3em;
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
}
ul#food-cont{
	border-radius: $border-radius;
	box-sizing: border-box;
}
ul#bvrg-cont{
	border-radius: $border-radius;
	box-sizing: border-box;
}
.bvrg-menu{	
	float: left;
	font-size: 3em;
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
}
.ui-widget-header {
	padding: 0.2em ;
}
	
#ordered-menu{
	position: relative;
	float: left;
	width: 415px;
	height: 300px;
	background: #BBBBBB;
	margin-bottom: 10px;
	border-radius: $border-radius;
}
#order-act{

	float: right;
}

#exit-act{
	float: right;
}

.act{
    margin: 0px 10px;
    font-size: 1.2em;
    padding: 0px 10px;
    
}

@-webkit-keyframes Floatingx{
    from {-webkit-transform:translate(0, 0px);}
    65% {-webkit-transform:translate(5px, 8px);}
    to {-webkit-transform: translate(0, -0px);    }    
}
    
@-moz-keyframes Floating{
    from {-moz-transform:translate(0, 0px);}
    65% {-moz-transform:translate(5px, 8px);}
    to {-moz-transform: translate(0, -0px);}    
}

