@font-face {
  font-family: "Galano";
  src: url("./fonts/GalanoGrotesque/GalanoGrotesque-Regular.woff") format("woff2");
  src: url("./fonts/GalanoGrotesque/GalanoGrotesque-Regular.woff") format("woff");
  font-weight:400;
  font-style:normal;
}

@font-face {
  font-family: "Galano";
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Italic.woff") format("woff2");
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Italic.woff") format("woff");
  font-weight:400;
  font-style:italic;
}

@font-face {
  font-family: "Galano";
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Light.woff") format("woff2");
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Light.woff") format("woff");
  font-weight:200;
  font-style:normal;
}

@font-face {
  font-family: "Galano";
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-LightItalic.woff") format("woff2");
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-LightItalic.woff") format("woff");
  font-weight:200;
  font-style:italic;
}

@font-face {
  font-family: "Galano";
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Medium.woff") format("woff2");
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-Medium.woff") format("woff");
  font-weight:600;
  font-style:normal;
}

@font-face {
  font-family: "Galano";
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-MediumItalic.woff") format("woff2");
  src: url("fonts/GalanoGrotesque/GalanoGrotesque-MediumItalic.woff") format("woff");
  font-weight:600;
  font-style:italic;
}

body {
    font-size: 0.8em;
    /*background: #888888;*/
    background:#F5F5F5;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Galano','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight:400;
    font-style:normal;
}

#lcol {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #ffffff;
}

#rcol {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #ffffff;
}

#mcol {
    position: absolute;
    top: 0;
    bottom: 0;
}

#linr {
    position: absolute;
    /*left: 8px;*/
    left:0;
    top: 8px;
    right: 20px;
    bottom: 8px;
    overflow: hidden;
}

#rinr {
    position: absolute;
    left: 20px;
    top: 8px;
    right: 8px;
    bottom: 8px;
    overflow: hidden;
}

#lslide, #rslide {
    position: absolute;
    top: 0;
    bottom: 0;
    /*width: 16px;*/
    width:40px;
    background:#ffffff;
    /*background: url("imgs/slide.png") repeat-y;*/
    cursor: e-resize;
    border-right:1px solid #eeeeee;
    border-left:1px solid #eeeeee;
}


#lslide {
    right:-40px;
}
#rslide {
    left:-40px;
    background-position: -40px 0;
}

#lclose, #rclose {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    margin-top: -10px;
    background: url("imgs/close-40px.png") no-repeat;
    background-size: 40px 20px;
}
#lclose {
    left: 10px;
    background-position: -20px 0;
}
#rclose {
    right: 10px;
    background-position: 0 0;
}

#view {
    margin: 8px auto;
}

#vCan {
    cursor:pointer;
}

#instruct, #disclaimer {
    font-size:80%;
    color:#989898;
}
#instruct ol {
    padding-left: 12px;
    margin: 4px 0 4px 12px;
}

#swatches {
    margin-top: 8px;
    overflow: hidden;
}

#swcol1, #swcol2 {
    width: 135px;
    float: left;
}

.swatch {
    position: relative;
    height: 28px;
    font-size: 70%;
}

.swcolor {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    /*border: 1px solid #cccccc;*/
    border: 1px solid transperent;
    background: white;
    overflow: hidden;
}

.swcb {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    top: 1px;
    left: 1px;
    width: 22px;
    height: 22px;
    border: 11px solid;
}

.swci {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: url("imgs/cutloopkey3.png") no-repeat;
}

.swsel {
    /*border: 1px solid black;*/
    border: 1px solid #f04c3e;
}

.swletter {
    color: white;
    position: absolute;
    left: 6px;
    top: 7px;
    width: 14px;
    text-align: center;
    cursor: pointer;
}

.swcode {
    position: absolute;
    left: 30px;
    top: 7px;
    color:#707070;
}

#palette {
    margin-top: 8px;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100px;
    /*border: 1px solid silver;*/
}
#bg-palette-wrap {
    display:none; /* Initially display none unless background yarns are mapped */
    margin-top: 30px;
    display:none;
    height:0;
}
#bg-palette {
    overflow-x: hidden;
    overflow-y: scroll;
    height: 58px;
}

#pinr {
    position: relative;
}

#palCan {
    position: absolute;
    cursor: pointer;
}

#descat {
    /*display:none; /* Temporary while there is only one collection: Elevate */
    display:block;
    margin-bottom:15px;
}

#descat select {
    width: 100%;
}

#thumbs {
    margin-top: 8px;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 400px;
    /*border: 1px solid silver;*/
    border:0;
}

#thinr {
    position: relative;
    margin: 0;
    /*padding: 7px 0 0 10px;*/
    padding: 7px 0;
}

#thinr li {
    float: left;
    padding:0;
    margin:5px;
    list-style: none outside none;
    cursor: pointer;
    border: 1px solid white;
    /*width: 80px;
    height: 100px;*/
    width:104px;
    /*height:143px;*/
    height:auto;
    /*line-height:96px;*/
    position:relative;
    box-sizing:border-box;
}

#thinr li.selected {
    border: 1px solid #0D3448;
}

#thinr li img {
    vertical-align: middle;
	display:inline-block;
    width:100%;
    height:auto;
    margin-left: auto;
    margin-right: auto 
}

.btns {
    clear: both;
    overflow: hidden;
    margin-top:15px;
    padding: 15px 0;
    border-top: 1px solid #BABABA;
    text-align:left;
}

#reset, #pdf {
    cursor: pointer;
}

#lckey {
    margin: 0 0 0 0;
    float: left;
    color:#707070;
}
#loop, #cut, #cutloop, #bg {
    display: inline-block;
    font-size: 80%;
    /*width: 55px;*/
    height: 20px;
    padding: 3px 10px 0 20px;
}
#loop {
    background: url("imgs/loopkey.png") no-repeat;
    background-size: 15px 14px;
}
#cut {
    background: url("imgs/cutkey.png") no-repeat;
    background-size: 15px 14px;
}
#cutloop {
	background: url("imgs/cutloopkey.png") no-repeat;
    background-size: 15px 14px;
}
#bg {
	background: url("imgs/bgkey.png") no-repeat;
    background-size: 15px 14px;
}

.bgbar {
    width:33.33%;
    height:100%;
    min-height:22px;
    display:inline-block;
}

#wait {
    position: absolute;
}

#tooltip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    border: 1px solid #444444;
    background-color: #ffffff;
    padding: 5px;
}

/*CSS EXTENDED for MANNINGTON COMMERCIAL*/
label, label.top-label {
    width:100%;
    display:block;
    font-size:14px;
    line-height:18px;
    color:#989898;
    margin:0 auto 6px auto;
}

select, .m-select {
    border-radius: 0 !important;
    width: 100%;
    padding: 5px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("imgs/arrow-down.svg") 96%/15% no-repeat #fff;
    background-size: 10px;
    border: 1px solid #989898;
    font-size: .875em !important;
    color:#4D4F53 !important;
}

.name-block {
    display:none;
    width:100%;
    margin:0;
    padding:0;
    background-color:#0D3448;
    color:#ffffff;
    font-size:12px;
    line-height:18px;
    letter-spacing:.015em;
    text-align:center;
    position:absolute;
    left:0;
    bottom:0;
    box-sizing:border-box;
}

#thinr li.selected .name-block, #thinr li:hover .name-block {
    display:block !important;
}

.border-link {
    color: #f04c3e;
    border-bottom: 2px solid #f04c3e;
    font-size: 13px;
    display: inline-block;
    /*margin-top: 20px;
    margin-left: 16px;*/
    transition: .25s ease-in-out;
    text-decoration:none;
}

.border-link:hover {
    color: #f06e63;
    border-bottom: 2px solid transparent;
}

.grad-overlay {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg,hsla(0,0%,100%,0),#000);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#000000",GradientType=0);
    opacity: .5;
}

.btn.btn-red {
    text-transform: none;
    color: #fff;
    background: #f04c3e;
    font-size: 14px;
    border: none;
    
    font-weight:200;
    
    outline: none;
    letter-spacing: 0;
    padding: 10px 24px;
    text-shadow: none;
    transition: .2s;
    white-space: nowrap;
    
    text-decoration: none;
    
    box-sizing:border-box;
    text-align:center;
}


.rug-tool-controls {
    display: block; 
    opacity:1;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 58px;
    text-align:center;
    margin:auto;
}

#add-tackboard {
    /*position: absolute;
    right: 70px;
    bottom: 125px;*/
    position:relative;
    display:inline-block;
    min-width: 230px;
    margin: 0 7px;
}
#pdf {
    /*position: absolute;
    right: 70px;
    bottom: 75px;*/
    position:relative;
    display:inline-block;
    min-width: 230px;
    margin: 0 7px;
}

#rug-quote{
    /*position: absolute;
    right: 70px;
    bottom: 25px;*/
    position:relative;
    display:inline-block;
    min-width: 230px;
    margin: 0 7px;
}


#add-tackboard img, #pdf img, #rug-quote img {
    width: 16px;
    height: 22px;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: -5px;
    fill: #fff;
    stroke: #fff;
}

/* JQUERY UI OVERRIDES */
.ui-widget {
    font-family: 'Galano','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size:inherit;
}
.ui-widget-overlay {
    background: #000000;
    opacity: .60;
    filter: Alpha(Opacity=60);
}
.ui-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    width:100vw;
    height: 100%;
    height:100vh;
}
.ui-dialog {
    padding:30px;
    width: 300px;
    /*background:#ffffff;*/
}
.ui-corner-all {
    -moz-border-radius:0;
    -webkit-border-radius:0;
    border-radius:0;
}
.ui-widget-header {
    border: 0;
    background:none;
    color: #444444;
    font-weight: bold;
}
.ui-dialog-title {
   color: #2e2e2e;
    font-size: 20px;
    line-height: 22px;
    text-align: left;
    margin: auto;
    padding: 0;
    font-weight: 600;
}
.ui-dialog-titlebar-close {
    display: block;
    position: absolute;
    top:0;
    right:0;
    background: url('imgs/close_icon_4D4F53.gif') no-repeat 50% !important;
    color: #4d4f53;
    border:0 !important;
}
.ui-dialog .ui-dialog-titlebar-close span {
    display: none;
}
/*.ui-state-hover, .ui-state-focus, .ui-widget-header .ui-state-hover, .ui-widget-header .ui-state-focus {
    border:0 !important;
    background:none !important;
}*/
.ui-widget-header .ui-icon {
    background-image:none;
}
.ui-widget-content .ui-icon {
    background-image:none;
}
.ui-dialog-content.ui-widget-content {
    font-family: 'Galano','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight:400;
    font-style:normal;
    color:#707070;
    min-height:120px !important;
    /*overflow:visible !important;*/
}
.ui-dialog .ui-dialog-buttonpane {
    border-width:0;
}
.ui-dialog .ui-dialog-buttonpane button {
    float: right;
    margin: 0.5em 0.4em 0.5em 0;
    cursor: pointer;
    /*padding: 0.2em 0.6em 0.3em 0.6em;*/
    line-height: 1.4em;
    width: auto;
    overflow: visible;
    
    text-transform: none;
    color: #fff;
    background: #f04c3e;
    font-size: 14px;
    border: none;
    
    font-family: 'Galano','Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight:200;
    
    outline: none;
    letter-spacing: 0;
    padding: 10px 24px;
    text-shadow: none;
    transition: .2s;
    white-space: nowrap;
    
    text-decoration: none;
    
    box-sizing:border-box;
    text-align:center;
}
/* JQUERY UI OVERRIDES */

.mobile-ui {
    display:none;
    position:relative;
}

.slide-nav  {
    display:inline-block;
    width:auto;
    min-width:40px;
    color:#DE5C51;
    font-size:14px;
    line-height:24px;
    cursor:pointer;
    text-decoration:none;
    opacity:1;
    background:none;
}

.slide-nav:hover {
    opacity:.8;
}


#r-slide-nav {
    /*float:right;*/
    margin-right:0;
    padding-right:20px;
    position:absolute;
    top:15px;
    right:20px;
    background-image: url('imgs/arrow-forward_d9531e.svg');
    background-repeat:no-repeat;
    background-position: right 0 center;
    background-size:20px;
}
#l-slide-nav {
    /*float:left;*/
    margin-left:0;
    padding-left:20px;
    position:absolute;
    top:15px;
    left:20px;
    background-image: url('imgs/arrow-back_d9531e.svg');
    background-repeat:no-repeat;
    background-position: 0 center;
    background-size:20px;
}
#pattern-name-mbl {
    color:#2E2E2E;
    font-size:18px;
    line-height:20px;
    text-align:center;
    display:block;
    width:100%;
    position:absolute;
    top:0;
    left:0;
}

.mobile-closer {
    width: 30px;
    height: 30px;
    margin: auto;
    margin-top:15px;
    opacity: .5;
    cursor:pointer;
}

.mobile-closer:hover {
    opacity: .8;
}

#lcol-view-btn, #rcol-view-btn {
    display:none;
    position:absolute;
    width:100%;
    padding:15px 0;
    margin:auto;
    cursor:pointer;
    background-color:#ffffff;
    box-sizing:border-box;
    /*box-shadow:2px 0 8px 1px rgba(0, 0, 0, 0.2);*/
    border-top: 1px solid #eeeeee;
}

#lcol-view-btn {
    position:absolute;
    left:40px; /* Offsets mobile view's negative margin */
    bottom:0;
}
#rcol-view-btn {
    position:absolute;
    left:-40px; /* Offsets mobile view's negative margin */
    bottom:0;
}

@media (max-width: 768px) {
    /*#mcol, #linr, #rinr {*/
    #mcol {
        top:60px;
    }
    .mobile-ui {
        display:block;
        width:100%;
        height:60px;
        padding:15px;
        margin:auto;
        text-align:center;
        position:absolute;
        top:0;
        left:0;
        box-sizing:border-box;
    }
    /*#lslide, #rslide {
        display:none;
    }*/
    #linr, #rinr {
        box-sizing:border-box;
        text-align:center;
    }
    #thumbs, #palette {
        text-align:center
    }
    #thinr {
        margin:auto;
        width:264px;
    }
    #swatches, #rinr .btns, #palette {
        width:100%;
        max-width:302px;
    }
    #palCan {
        position:absolute;
        left:0;
    }
    
    .rug-tool-controls {
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height:auto;
    }
    
    #add-tackboard, #pdf, #rug-quote {
        display:block;
        max-width:230px;
        margin:auto;
        margin-bottom:12px;
    }
    
    /*#lcol-view-btn, #rcol-view-btn {
        display:block;
    }*/
    
}

/* Color Reference for variables in svr/data.php
#DEF_INDEX_COLORS {
    color: #f2ef3e;
    color: #52b243;
    color: #7ec6c9;
    color: #e4662a;
    color: #b6679e; -Replaced by #000000 in TEST pattern
    color: #7b4e90;
    color: #35498f;
    color: #dc342f;
    color: #e79eb9;
    color: #d3e9c9;
    color: #cfb725;
    color: #3a9a39;
    color: #35989b;
    color: #ba522c;
    color: #84356C;
    color: #491C5E;
    color: #03175D;
    color: #AA0200;
    color: #B56C87;
    color: #A1B797;
    color: #9D8500;
    color: #086807;
    color: #036669;
    color: #882000;
    color: #52033A;
    color: #17002C;
}
#BG_INDEX_COLORS{
    color: #000000;
    color: #696969;
    color: #808080;
    color: #A9A9A9;
    color: #C0C0C0;
    color: #D3D3D3;
    color: #DCDCDC;
    color: #F5F5F5;
}
*/