// Fonts
@import "tygh/fonts.less";
// Mixins
@import "tygh/mixins.less";
// Reset
@import "tygh/reset.less";
// Plugins
@import "lib/ui/jqueryui.less";
// Core
@import "tygh/grid.less";
@import "tygh/icons.less";
@import "tygh/flags.less";
@font-face {
    font-family: 'engravers_gothic_fsregular';
    src: url('fonts/EngraversGothic-Regular-webfont.eot');
    src: url('fonts/EngraversGothic-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/EngraversGothic-Regular-webfont.woff') format('woff'), url('fonts/EngraversGothic-Regular-webfont.ttf') format('truetype'), url('fonts/EngraversGothic-Regular-webfont.svg#engravers_gothic_fsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font_key_text: "Trebuchet MS", Helvetica, sans-serif;

.keyboard_designer_iframe {
    border: 0px;
    width: 100%;
}

html,
body {
    height: 100%;
    font-family: "Segoe UI", "Arial", "Helvetica", sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.body {
    margin: 10px;
}
.cp-kb{
    margin-top:30px;
}
.cp_kb_help {
    padding: 15px;
    width: 500px;
    background-color: white;
    border-radius: 5px;
}
.cp-kb__setting.cp-kb__setting--selected {
    background-color: #d83636 !important;
}
.cp-kb__settings {
    display: inline-block;
    // border-right:1px solid #ddd;
    // border-left:1px solid #ddd;
}
.cp-kb__settings > ul {
    padding-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.cp-kb__settings > ul:last-child {
    border-bottom: 0px;
}

.cp-kb__settings-value {
    display: inline-block;
    vertical-align: top;
}

.cp-kb__setting-value {
    width: 1025px;
    padding: 0 15px;
}

.cp-kb__setting {
    font-size: 16px;
    text-align: left;
    min-width: 140px;
    /* height: 20px; */
    list-style: none;
    padding: 15px 10px;
    line-height: 16px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    background-color: #303030;
    color: #F9F9F9;
    margin-bottom: 5px;
    border-radius: 5px;
    // border-bottom:1px solid #ddd;
}

.cp-kb__setting:hover {
    background-color: #c21319;
}

.cp-layout--save_but i {
    font-size: 20px;
}
.cp-layout--save_but > .selected-layout{
    background-color:#d83636;
    border-color#d83636;
}
.cp-title-row {
    width: 100%;
    font-size: 20px;
    float: left;
    padding-bottom: 10px;
    padding-top: 10px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

.cp-layout {
    cursor: pointer;
    display: inline-block;
    margin: 7px 7px 7px 0;
    vertical-align: middle;
    text-align: center;
}

.cp-row {
    width: 100%;
    font-size: 12px;
    font-weight: bold;
    float: left;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}
.cp-ajax-loading__img{
    background-position-x: 50%;
    background-image:url('images/ajax-loader.gif');
    background-repeat: no-repeat;
    height:125px;
}

.color-picker {
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid #d9dde1;
    padding: 2px;
    display: inline-block;
    border-radius: 10%;
}

.color-picker > div {
    width: 50px;
    height: 50px;
    border-radius: 10%;
}

.cp-selected-color {
    border: 1px solid #e74c3c !important;
}

.cp-layout-inner:hover {
    border: 1px solid #d83636;
    background-color: #d83636;
}

.cp-layout-inner {
    border: 1px solid #ddd;
    padding: 12px 0px 12px 0px;
    width: 150px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    background-color: #434343;
    border-color: #434343;
    color: white;
    border-radius: 4px;
}

img.cp-layout-inner {
    width: 90px;
    height: 44px;
    padding: 0px 30px 0px 30px;
}

.cp-layout-inner.selected-layout {
    color: #fff;
    background-color: #d83636;
    border-color: #d83636;
}

.cp-ajax-loading {
    top: 20%;
    position: fixed;
    z-index: 100;
    left:47%;
}

.cp-layout--save_but {
    float: none;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.cp-block-save {
    border: 1px solid #F2F2F2;
    padding: 5px 10px;
    margin: 5px 0;
    background-color: #F2F2F2;
    border-radius: 4px;
}

.cp-layouts-buttons {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.ty-table--cp_layouts {
    margin-top: 0px;
}

.cp_kb_help__button {
    width: 135px;
    height: 35px;
    margin-left: 10px;
    border-radius: 4px;
    background: #3498db;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}
i.cp_kb_close_overlay{
    position:fixed;
    top:5px;
    right:5px;
    z-index:1100;
    color:white;
    cursor:pointer;
}
.cp_kb_help__button[disabled]{
    background-color:gray;
}
.cp_disable_scrolling{
    height: 100%;
    overflow: hidden;
}
.cp_kb_popup{
    z-index:1100;
    position:fixed;
    background-color:white;
    left:45%;
    top:45%;    
}
.cp_kb_popup--save{
    padding:10px;
    width:900px;
    left:26%;
    top:30%;
}
.cp_close_popup{
    
}
.cp_kb_popup .cp_close_popup{
    position:absolute;
    top:3px;
    right:3px;
}
.cp_kb_popup .cp-layout--save_but{
    padding-top:5px;
    padding-bottom:5px;
    width:80px;
}
.cp_kb_popup--show{
    width:800px;
    left:33%;
    top:24%;
    padding:30px 10px 0 10px;    
}
.cp_kb_popup--show .ty-table{
    margin-top:0px;
}
/* Wrapper for page content to push down footer */

#wrap {
    margin: 0 auto;
    padding: 0px;
    background-color: #FFFFFF;
    text-align: left;
    overflow: hidden;
}


/* The keyboard background */

#keyboard {
    padding: 5px;
    position: relative;
    border: solid 1px #fff;
    border-radius: 6px;
    background-color: #eee;
    min-height: 64px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    margin-top: 10px;
    margin-bottom: 10px;
}

.key {
    position: relative;
    display: table;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}


/* The external border of the keycap */

.keyborder {
    position: absolute;
    border-radius: 5px;
    border: solid 1px black;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.keyborder.inner {
    opacity: 0.1;
}

.hover .keyborder {
    border-color: green;
}
.led-indicator{
    border:1px solid transparent !important;
}
.selected .keyborder {
    border: 1px solid red !important;
}

.ghosted {
    opacity: 0.4;
}


/* The sides of the cap (darker) */

.keybg {
    position: absolute;
    border-radius: 5px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}


/* The face of the cap */

.keyfg {
    font-family: "Helvetica", "Arial", sans-serif;
    position: absolute;
    border-radius: 3px;
    display: table-cell;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.keyfg .keylabel.textsize1 {
    font-size: 8px;
    line-height: 1em;
}

.keyfg .keylabel.textsize2 {
    font-size: 10px;
    line-height: 1em;
}

.keyfg .keylabel.textsize3 {
    font-size: 12px;
    line-height: 1em;
}

.keyfg .keylabel.textsize4 {
    font-size: 14px;
    line-height: 1em;
}

.keyfg .keylabel.textsize5 {
    font-size: 16px;
    line-height: 1em;
}

.keyfg .keylabel.textsize6 {
    font-size: 18px;
    line-height: 1em;
}

.keyfg .keylabel.textsize7 {
    font-size: 20px;
    line-height: 1em;
}

.keyfg .keylabel.textsize8 {
    font-size: 22px;
    line-height: 1em;
}

.keyfg .keylabel.textsize9 {
    font-size: 24px;
    line-height: 1em;
}

.keyfg .keylabel hr {
    display: inline;
}

.keyfg .keylabel hr:before {
    position: relative;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    content: "\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500\2500";
}

.DCS .keyfg {
    background: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(60%, rgba(0, 0, 0, 0.1)), color-stop(100%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    background: -o-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    background: -ms-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    background-repeat: no-repeat;
}

.DSA .keyborder.inner,
.SA .keyborder.inner {
    margin-top: 3px;
    border-radius: 8px;
}

.DSA .keyfg,
.SA .keyfg {
    font-family: 'engravers_gothic_fsregular';
    /* substitute for Gorton Modified */
    border-radius: 8px;
    margin-top: 3px;
    background: -moz-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(10%, rgba(0, 0, 0, 0.1)), color-stop(100%, rgba(0, 0, 0, 0)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0) 100%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0) 100%);
    background-repeat: no-repeat;
}

.DCS.SPACE .keyfg,
.DSA.SPACE .keyfg,
.SA.SPACE .keyfg {
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(20%, rgba(0, 0, 0, 0)), color-stop(40%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.1)));
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
    background-repeat: no-repeat;
}


/* Key labels */

.keylabels {
    display: table;
}

.keylabel {
    display: table-row;
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
}

.keylabel > div {
    display: table-cell;
}

.keylabel3>div,
.keylabel4>div,
.keylabel6>div,
.keylabel8>div {
    text-align: right;
}

.keylabel7>div,
.keylabel8>div {
    vertical-align: middle;
}

.keylabel2>div,
.keylabel4>div {
    vertical-align: bottom;
}

.keylabel5,
.keylabel6 {
    top: 100%;
    margin-top: 0px;
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
}

.DSA .keylabel5,
.DSA .keylabel6,
.SA .keylabel5,
.SA .keylabel6 {
    margin-top: -1px;
    font-size: 9px !important;
}

.keylabel1.centerx-true>div,
.keylabel2.centerx-true>div,
.keylabel5.centerf-true>div,
.keylabel7.centerx-true>div {
    text-align: center;
}

.keylabel1.centery-true>div,
.keylabel3.centery-true>div {
    vertical-align: middle;
}


/* color swatches */

#swatches {
    list-style-type: none;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 0px;
}

.swatch {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 32px;
    border: solid 1px #888;
    margin-right: -1px;
    margin-bottom: -6px;
    padding: 0px;
}

#swatches.disabled .swatch {
    background-color: rgb(235, 235, 228) !important;
}

.swatch .highlight {
    display: none;
}

.swatch.selected-bg .highlight.bg {
    display: block;
    z-index: 100;
    width: 6px;
    height: 6px;
    border: solid 1px black;
    background: white;
    opacity;
    0.75;
    position: absolute;
    left: 7px;
    top: 23px;
}

.swatch.selected-fg .highlight.fg {
    display: block;
    z-index: 100;
    width: 6px;
    height: 6px;
    border: solid 1px white;
    background: black;
    opacity;
    0.75;
    position: absolute;
    left: 1px;
    top: 23px;
}


/* general styles */

.hidden {
    display: none;
}

.error {
    border: solid 2px rgb(217, 83, 79);
}

#selectionRectangle {
    position: absolute;
    border: dashed 2px red;
}

#rotationCrosshairs {
    display: none;
    position: absolute;
    margin: 0px;
    padding: 0px;
    font-size: 25px;
    line-height: 23px;
    width: 25px;
    height: 25px;
    color: black;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

#rawdata {
    width: 100%;
    height: 200px;
    font-family: "Consolas", "Courier New", "Courier", monospace;
}

#rawdata-error {
    font-family: "Consolas", "Courier New", "Courier", monospace;
    white-space: pre;
}

.tab-content {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding-top: 15px;
    padding-bottom: 15px;
}

#properties.row {
    padding-left: 30px;
}

.form-horizontal .control-label {
    float: left;
    padding-right: 5px;
    padding-top: 3px;
    width: 120px;
}

.form-horizontal input {
    margin-bottom: 2px;
}

.shortcuts tr > td:first-child {
    text-align: right;
    padding-right: 6px;
    padding-top: 3px;
}

.shortcuts .shortcut {
    background-color: #444;
    color: white;
    padding: 1px 6px;
    border-radius: 6px;
    font-family: "Consolas", "Courier New", "Courier", monospace;
}

.checkbox-label {
    font-weight: normal;
    padding-left: 4px;
}


/* Tooltip modifications */

.hint--rounded:after {
    width: 300px;
}

.hint:after,
[data-hint]:after {
    white-space: pre-line;
}

.hint:before,
.hint:after,
[data-hint]:before,
[data-hint]:after {
    -webkit-transition: 0.1s ease;
    -moz-transition: 0.1s ease;
    transition: 0.1s ease;
}

#swap-colors {
    position: relative;
    top: 15px;
}

.color-name {
    display: inline-block;
    min-width: 3em;
    font-size: 10px;
    white-space: nowrap;
}


/* Only show the keyboard layout itself when printing */

@media print {
    html,
    body {
        overflow: hidden;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    #wrap > .navbar,
    #wrap > .body > .btn-group,
    #keyboard ~ *,
    #keyboard + *,
    #footer,
    #helpDialog {
        display: none;
        margin: 0 !important;
        padding: 0 !important;
    }
    div.body {
        margin: 0 !important;
        padding: 0 !important;
    }
    #keyboard {
        border: none;
        background-color: inherit !important;
        transform: scale(0.75, 0.75);
        -moz-transform: scale(0, 75, 0.75);
        -ms-transform: scale(0, 75, 0.75);
        -webkit-transform: scale(0.75, 0.75);
        position: absolute !important;
        left: 0px;
        top: 0px;
        padding-left: 0px;
        padding-top: 0px;
    }
}


.cp_kb_help__button.btn__primary.ty-btn__big.ty-btn i {
    position: static;
}
.cp-ajax-loading--order{
    position:absolute;
    left:46%;
    top:22%;
}
div[ng-app]{
    min-height:250px;
}
#layouts_container tbody {
    height: 270px;       /* Just for the demo          */
    overflow-y: auto;    /* Trigger vertical scroll    */
    overflow-x: hidden;  /* Hide the horizontal scroll */
    display:block;
}

body {

  .cp-kb__setting {
    background: #202020;
  }

  .cp-kb__setting.cp-kb__setting--selected, .cp-layout-inner, .cp-layout-inner:hover, .cp-kb__setting:hover  {
    //background: #b41217;
  }

}

.ty-btn.cp_kb_help__button {
  color: #fff !important;
  height: auto;
  text-transform: uppercase;
}

.cp_kb_help {
  -webkit-box-shadow: -4px 2px 40px -6px rgba(0,0,0,0.5);
  -moz-box-shadow: -4px 2px 40px -6px rgba(0,0,0,0.5);
  box-shadow: -4px 2px 40px -6px rgba(0,0,0,0.5);
}

i.cp_kb_close_overlay {
  color: @secondary_button;
}