/* COLORS
    #0233a1 -> Defender light blue
    #011643 -> Defender dark blue
    #9a1d1b -> FortNine red
    #1c1c1c -> Master dark
    #2d2d2d -> Master dark
    #03a9f4 -> Links
    #751517 -> Price
    #9a1b1e -> Datapop hover
    rgba(156, 28, 31, 0.85) -> Datapop bg
*/

html {
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
	margin-bottom: 2em;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
    background-color: #f2f2f2;
}


/* Layout */
#header {
	clear: both;
	padding: 0 1% 0 1%;
	background: url(bl-icon.png) right 1em center no-repeat;
	background-size: auto 35px;
	color: white;
	height: 50px;
	line-height: 50px;
	vertical-align: middle;
}
#header.header-fortnine {
    background-color: #1c1c1c;
}
#header.header-defender {
    background-color: #011643;
}
#header.header-6routes {
    background-color: #32331A;
}
h1 {
    font-size: 1.8em;
    letter-spacing: -0.02em;
    font-weight: 400;
}
#header h1 {
  display: table-cell;
  vertical-align: top;
  line-height: 0.6em;
}

#category-tree {
    width: 25%;
	max-height: calc(95% - 50px - 1em);
	overflow-y: scroll;
}

#category-tree-master, #category-tree-fortnine, #category-tree-defender, .hidden-keys, #products-list {
    display: none;
}

#category-preview {
	width: 68%;
}

.main-content {
	float: left;
	padding: 1%;
	min-width: 250px;
	min-height: calc(95% - 50px - 1em);
}

iframe {
	border: 0;
}
/* removes textarea from view
   textareas are used for "copy"
*/
.out-of-screen {
    position: absolute;
    left: -1000px;
    top: -1000px;
}

/* Elements */
input {
	box-sizing: border-box;
	margin-bottom: 1em;
	height: 36px;
	min-width: 250px;
	font-size: 1.2em;
	padding: 0 0.4em;
	color: #fff;
	background-color: transparent;
	border: 0;
    outline: none !important;
    text-underline-offset: 6px;
}
input[type="text"] {
	width: 26%;
    background-color: #333333;
    border-radius: 2px;
}
input::placeholder{
    color: #b4b4b4;
  }
input[type="button"]:hover {
    text-decoration: underline double white 2px;
}
input[type="button"]:focus {
    text-decoration: underline double white 2px;
}
input[type="button"].currentlyActive
{
  text-decoration: underline solid white 5px;
  color: #fff;
}

a {
    color: #4d4d4d;
}
.item a, h1 a {
    text-decoration: none;
}

#breadcrumbs, #breadcrumbs a {
	color: #666;
	font-size: 14px;
}

#breadcrumbs a:visited {
	color: #666;
}

a:hover, #breadcrumbs a:hover {
	text-decoration: none;
	color: #03a9f4;
}
img {
	max-width: 100%;
}
#entity_id {
    font-weight: bold;
}

/* Icons */
.k-sprite { background-image: url("tree-icons.png"); }
.rootfolder { background-position: 0 0; }
.folder { background-position: 0 -16px; }
.pdf { background-position: 0 -32px; }
.html { background-position: 0 -48px; }
.image { background-position: 0 -64px; }


/* Products listing */
table {
    border-collapse: collapse;
    margin-bottom: 1em;
    background-color: white;
}
th {
    background-color: #ebebeb;
}
td {
    text-align: center;
}
th, td {
    padding: 0.5em;
    border: 1px solid #ddd;
}
#products-list table td:nth-child(1), #products-list table td:nth-child(2) {
    text-align: left;
}
.item {
    float: left;
    margin: 0.5em;
    padding: 0;
    width: 230px;
    height: 410px;
    text-align: center;
    background-color: white;
    transition: ease .1s;
}
.item > p:first-child {
    margin: 0 0 1em 0;
    padding: 0;
}
.item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
}
.product-img {
    display: inline-block;
    height: 200px;
    vertical-align: middle;
}
p.product-name {
    padding: 0 0.3em;
}
span.fitment-rules {
	display: inline-block;
	padding: 0.7em 0;
	width: 100%;
	text-align: center;
}
span.vlp {
	background-color: #e4dfec;
}
span.direct {
	background-color: #ddd9c4;
}
span.conf {
	background-color: #ebf1de;
}
span.simple {
    background-color: #daeef3;
}
.existing {
    outline: 5px solid #fde9d9;
    outline-offset: -10px;
}
.product-img img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 182px;
    max-height: 182px;
    padding: 4px;
    border: 0;
}
div.hr {
    clear: both;
    width: 100%;
    margin: 40px 10px 5px 10px;
    padding: 50px 0 10px 0;
}
.price {
    font-weight: bold;
    color: #751517;
}
.item:hover .box-description {
    visibility: visible;
    opacity: 1;
}
.item .box-description {
    visibility: hidden;
    opacity: 0;
    position: relative;
    width: 750px;
    z-index: 1000;
    margin-left: -16px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid transparent;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-color: #ddd;
    background: white;
    -webkit-transition: all .4s ease .2s;
    -moz-transition: all .4s ease .2s;
    -o-transition: all .4s ease .2s;
    -ms-transition: all .4s ease .2s;
    transition: all .4s ease .2s;
}
img:hover {
    opacity: 0.6;
    filter: alpha(opacity=60);
    /* For IE8 and earlier */
    
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray;
    /* IE 6-9 */
    
    transition: opacity 0.5s linear;
}
.max-height-50 {
    max-height: 50px;
}


/* Category Description */
.box-description {
    margin-bottom: 2em;
    margin-right: 2em;
    text-align: left;
    border: 1px solid transparent;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-color: #ddd;
    background-color: white;
    -webkit-transition: all .4s ease .2s;
    -moz-transition: all .4s ease .2s;
    -o-transition: all .4s ease .2s;
    -ms-transition: all .4s ease .2s;
    transition: all .4s ease .2s;
}
.box-description > h2 {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    margin: -1em -1em 1em;
    border-color: #ddd;
    background-color: #f5f5f5;
    font-size: 1em;
    font-weight: bold;
}

/* Datapop */
.datapop-group.datapop-wrap-3 .datapop-item {
    width: 33.33%;
    height: 200px;
}
.datapop-group .datapop {
    display: block;
    position: relative;
    margin: 0;
    min-width: unset;
    width: 100%;
    height: 100%;
    line-height: 200px;
    overflow: hidden;
}

.datapop:hover {
    border-color: #9a1b1e;
}

.datapop {
    height: 150px;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 0 1px #fff;
    padding: 1px;
    min-width: 150px;
    display: inline-block;
    vertical-align: middle;
    cursor: zoom-in;
    margin: 0 0 10px 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.datapop:hover .datapop-caption {
    transform: translateY(100%);
    opacity: 0.2;
}

.datapop-group .datapop-caption {
    position: absolute;
    bottom: 1px;
    left: 1px;
    right: 1px;
    padding: 15px 20px;
    color: #fff;
    background-color: rgba(156, 28, 31, 0.85);
    line-height: 1.5;
    text-shadow: 0 0 1px #000;
    transition: all 0.4s ease 0.4s;
    transform: translateY(0);
    opacity: 1;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: auto;
}

.fa {
    padding-right: 6px;
    line-height: 0.9;
    display: inline-block;
}