/* general */
html {
  background: #F7F7F7;
}

body {
  font: normal 100% Verdana, Geneva, sans-serif; /* 16px */
  width: 100%;
  color: #333333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, a:link, a:visited, a:active {
  text-decoration: none;
  color: #333333;
}

*:focus {
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* layout */
#container {
  min-width: 320px;
  width: 100%;
  max-width: 1366px;
  min-height: 100vh;
  margin: 0 auto;
  
  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;     /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex;         /* NEW, Spec - Opera 12.1, Firefox 20+ */
  flex-direction: column;
}

header, footer {
  width: 100%;
  /*background: #ccc;*/
  display: block;
  padding: 1em;
}
  
/* form style */
.form_def  label, .form_def input {
  display: inline-block;
}
.form_def label {
  min-width: 200px;
  width: 200px;
}

/* table style */
.last-td-center td:last-child { text-align: center;}
.all-td-center td { text-align: center; }
.table_def img {
  height: 100%;
  max-height: 100%;
  width: 100px;
  margin: 0 auto;
}

/* general */
.clearer { clear: both;}
.margin_0 { margin: 0;}
.ie_help { behavior: url("/assets/js/pie.htc");}
.text-pad { padding: 1em;}
.inline-b { display: inline-block;}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/* custom layout */
#main-container {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  width: 100%;
}

.flex-row { flex-direction: row;}
.flex-column { flex-direction: column;}

/* navigation */
nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* column navigation */
.main-nav-hori {
  /*-webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;*/
  
  width: 100%;
  background-color: #FFFFFF;
  height: 5em;
}
.main-nav-hori nav ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
}
.main-nav-hori ul li {
  flex-basis: 16.66%;
}
.main-nav-hori ul li a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  
  height: 5em;
}
.main-nav-hori ul li .icon {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  width: 3em;
}
.main-nav-hori ul li .title {
  width: 6em;
}
.space-hori { margin: 10px 0 0 0;}

/* nav coloring */
.main-nav-hori ul li a {
  transition: background-color 0.5s;
  -moz-transition: background-color 0.5s; /* Firefox 4 */
  -webkit-transition: background-color 0.5s; /* Safari and Chrome */
  -o-transition: background-color 0.5s; /* Opera */
  
}
.inav-home a:hover  { background-color: #ED2E9E; color: #FFFFFF;}
.inav-about  a:hover { background-color: #FEA327; color: #FFFFFF;}
.inav-products a:hover { background-color: #FFC747; color: #FFFFFF;}
.inav-clients a:hover { background-color: #D5EB58; color: #FFFFFF;}
.inav-tech  a:hover { background-color: #0066BA; color: #FFFFFF;}
.inav-contact a:hover { background-color: #6440B6; color: #FFFFFF;}

.inav-home a { background-color: #EB008A; color: #FFFFFF;}
.inav-about a { background-color: #DF8100; color: #FFFFFF;}
.inav-products a { background-color: #FDB719; color: #FFFFFF;}
.inav-clients a { background-color: #BDD533; color: #FFFFFF;}
.inav-tech a { background-color: #005090; color: #FFFFFF;}
.inav-contact a { background-color: #4C21AD; color: #FFFFFF;}

/*.inav-home-active a { background-color: #EB008A; color: #FFFFFF;}
.inav-about-active a { background-color: #DF8100; color: #FFFFFF;}
.inav-products-active a { background-color: #FDB719; color: #FFFFFF;}
.inav-clients-active a { background-color: #BDD533; color: #FFFFFF;}
.inav-tech-active a { background-color: #005090; color: #FFFFFF;}
.inav-contact-active a { background-color: #4C21AD; color: #FFFFFF;}*/

/* row navigation */
.main-nav-verti {
  width: 10em;
  background-color: #FFFFFF;
}
.main-nav-verti ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
}
.main-nav-verti ul li {
  
}
.main-nav-verti ul li a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  align-items: center;

  height: 2em;
}
.main-nav-verti ul li .icon {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  width: 2em;
}
.main-nav-verti ul li .title {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* main content */
.main-content {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  
  background-color: #FFFFFF;
}
.width-full {
  width: 100%;
}

.lay-nav, .lay-content, .lay-other {
  margin: 0 0 0 1em;
}

.lay-nav, .lay-other {
  background-color: #FFFFFF;
  
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  width: 20%;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.lay-nav {
  -webkit-box-ordinal-group: 1; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-ordinal-group: 1;    /* OLD - Firefox 19- */
  -ms-flex-order: 1;            /* TWEENER - IE 10 */
  -webkit-order: 1;             /* NEW - Chrome */
  order: 1;                     /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

.lay-content {
  background-color: #FFFFFF;
  
  -webkit-box-flex: 3;
  -moz-box-flex: 3;
  width: 80%;
  -webkit-flex: 3;
  -ms-flex: 3;
  flex: 3;
  
  -webkit-box-ordinal-group: 2;
  -moz-box-ordinal-group: 2;
  -ms-flex-order: 2;
  -webkit-order: 2;
  order: 2;
}

.lay-other {
  -webkit-box-ordinal-group: 3;
  -moz-box-ordinal-group: 3;
  -ms-flex-order: 3;
  -webkit-order: 3;
  order: 3;
}
/* header footer */
.guest-header {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  
  /*background-color: #055290;*/
  height: 10em;
  padding: 0;
}
.guest-header .logo{
  
}
.guest-header .title{
  align-self: flex-end;
  margin: 1em;
  font-weight: bold;
}
.guest-header img {
  height: 100%;
  max-height: 100%;
}
.logo {
}
.header-item {
  flex: 4;
}
.guest-footer {
  /*background-color: #E61288;
  color: #FFFFFF;*/
}

/* layout login */
#login_form_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  
  flex: 1;
}
#login_form {
  min-width: 320px;
  width: 50%;
  max-width: 50%;
}

/* head nav */
#head-nav nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

/* side nav */
.lay-nav nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
}

/* photo gallery */
.photo-gallery ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;

  list-style-type: none;
  margin: 1em 0 0 0;
  padding: 0;
}
.photo-gallery ul li {
   flex-basis: 24%;
   /*background-color: #05452F;*/
   margin: 0.5em 0 0 0;
   overflow: hidden;
}
.photo-gallery ul li a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  
  height: 8em;
  border-radius: 0.5em;
  border: 0.2em solid #DEDEDE;
}
.photo-gallery ul li a img {
  height: 100%;
  max-height: 100%;
}

/* front page */
.front-page {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  
  width: 100%;
}
.front-product ul, .front-production ul, .front-finishing ul, 
.front-installation ul, .front-delivery ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  
  list-style-type: none;
  margin: 1em 0 0 0;
  padding: 0;
}
.front-product ul li, .front-production ul li, .front-finishing ul li, 
.front-installation ul li, .front-delivery ul li{
   margin: 0 0.5em 0 0;
}
.front-product { background-color: #AAAAAA; }
.front-production { background-color: #CECECE; }
.front-finishing { background-color: #AAAAAA; }
.front-installation { background-color: #CECECE; }
.front-delivery { background-color: #AAAAAA; }

.front-product, .front-production, .front-finishing, .front-installation,
.front-delivery {
  margin: 0 0.5em 0.5em 0;
  border-radius: 0.5em;
  padding: 0 1em 1em 1em;
}

.bxslider img {
  height: 500px;
  margin: 0 auto;
}
.bxslider li {
  text-align: center;
}

/* product */
.product {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  
  width: 100%;
}
.product-item {
  width: 50%;
}

/* other css */
.ribbon {
left: 0;
right: 0;
transition: 0.3s;
top: 0;
height: 13px;
z-index: 5;
background: linear-gradient(90deg, #a85e6c 0%, #a85e6c 12.5%, #e37f52 12.5%, #e37f52 25%, #ef9f48 25%, #ef9f48 37.5%, #9cb641 37.5%, #9cb641 50%, #009484 50%, #009484 62.5%, #21acb8 62.5%, #21acb8 75%, #1972dd 75%, #1972dd 87.5%, #8fa0ae 87.5%, #8fa0ae 100%);
background-image: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, #a85e6c), color-stop(12.5%, #a85e6c), color-stop(12.5%, #e37f52), color-stop(25%, #e37f52), color-stop(25%, #ef9f48), color-stop(37.5%, #ef9f48), color-stop(37.5%, #9cb641), color-stop(50%, #9cb641), color-stop(50%, #009484), color-stop(62.5%, #009484), color-stop(62.5%, #21acb8), color-stop(75%, #21acb8), color-stop(75%, #1972dd), color-stop(87.5%, #1972dd), color-stop(87.5%, #8fa0ae), color-stop(100%, #8fa0ae));
background-image: -webkit-linear-gradient(left, #a85e6c 0%, #a85e6c 12.5%, #e37f52 12.5%, #e37f52 25%, #ef9f48 25%, #ef9f48 37.5%, #9cb641 37.5%, #9cb641 50%, #009484 50%, #009484 62.5%, #21acb8 62.5%, #21acb8 75%, #1972dd 75%, #1972dd 87.5%, #8fa0ae 87.5%, #8fa0ae 100%);
background-image: -moz-linear-gradient(left, #a85e6c 0%, #a85e6c 12.5%, #e37f52 12.5%, #e37f52 25%, #ef9f48 25%, #ef9f48 37.5%, #9cb641 37.5%, #9cb641 50%, #009484 50%, #009484 62.5%, #21acb8 62.5%, #21acb8 75%, #1972dd 75%, #1972dd 87.5%, #8fa0ae 87.5%, #8fa0ae 100%);
background-image: -o-linear-gradient(left, #a85e6c 0%, #a85e6c 12.5%, #e37f52 12.5%, #e37f52 25%, #ef9f48 25%, #ef9f48 37.5%, #9cb641 37.5%, #9cb641 50%, #009484 50%, #009484 62.5%, #21acb8 62.5%, #21acb8 75%, #1972dd 75%, #1972dd 87.5%, #8fa0ae 87.5%, #8fa0ae 100%);
background-image: linear-gradient(left, #a85e6c 0%,#a85e6c 12.5%,#e37f52 12.5%,#e37f52 25%,#ef9f48 25%,#ef9f48 37.5%,#9cb641 37.5%,#9cb641 50%,#009484 50%,#009484 62.5%,#21acb8 62.5%,#21acb8 75%,#1972dd 75%,#1972dd 87.5%,#8fa0ae 87.5%,#8fa0ae 100%);
}

.img-thumb img {
  height: 100%;
  max-height: 100%;
  width: 100px;
}
#map-canvas { 
  width: 100%;
  height: 25em;
}
.gm-style img { max-width: none; }
.gm-style label { width: auto; display: inline; }

.call-now a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
}
.c-green { color: #1B663B;}

/* Media query hide */

/* Media query */
@media screen and (max-width: 865px) {
.guest-header {
  height: 8em;
}
.main-nav-hori ul li {
  flex-basis: 33.33%;
}
.main-nav-hori ul li a {
  height: 2.5em;
}
}
@media screen and (max-width: 600px) {
.photo-gallery ul li {
   flex-basis: 49%;
}
.front-product, .front-production, .front-finishing, .front-installation,
.front-delivery {
  width: 100%;
}
}
@media screen and (max-width: 500px) {
#container {
  font-size: 0.8em;
}
.guest-header {
  height: 6em;
}
.main-nav-hori ul li {
  flex-basis: 50%;
}
.main-nav-hori ul li a {
  height: 1.66em;
}
}