/*
Theme Name: Global Chemical 
Theme URI: http://geckodoit.com
Description: Custom theme for Global Chemical 
Author: Suthum Bumroongpong
Author URI: http://geckodoit.com
Template: glochem
Version: 1.0
Text Domain: glochem
*/

/* My Minimal WordPress Styling comes here */

/* This is a small security for too long strings titles */
body {
	word-wrap: break-word;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Images and wp-captions should always fit and be responsive */
img {
	display: inline-block;
	height: auto;
	max-width: 100%;
}
img[class*="wp-image-"] {
	margin-top: 10px;
	margin-bottom: 10px;
}
.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 10px;
	max-width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0 10px;
}
.wp-caption.aligncenter {
	margin-bottom: 10px;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
}
.wp-caption .wp-caption-text {
	text-align: center;
	margin-top: 10px;
}

/* WP Gallery */
.gallery {
	margin-bottom: 1.5em;
}
.gallery a img {
	border: none;
	height: auto;
	max-width: 90%;
}
.gallery dd {
	margin: 0;
}
.gallery-caption {
	display: block;
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}

/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/* Content */
.main-content-inner {
	padding-bottom: 1.5em;
}
.hentry {
	margin: 0 0 1.5em;
}
.sticky {
	display: block;
}
.bypostauthor {
	display: block;
}

/* Clearing */
.clear {
	clear: both;
}

/* Navigation */

.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu:active>.dropdown-menu, .dropdown-submenu:hover>.dropdown-menu {
display: block;
}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:active>a:after{border-left-color:#ffffff;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}

/* Here some needed widget styles
 * Most widgets are adapted in the file bootstrap-wp.js - and REALLY easy to modify! ;) */
.widget { margin-bottom: 2em; }
.widget_nav_menu ul.sub-menu li, .widget_pages ul.children li { padding-left: 15px; }

/* Hiding the search widget's button in widgets. thats just too old-skool. :) but if you want it back, just delete the next line.
 * Note: you can change the whole appearance of the search_form() function in our searchform.php */
.widget_search .search-form input[type="submit"] { display: none; }

/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}

/* Nested comments? They are threaded and nested already, you just need to add your own styling to finalize!
 * For example with some margin, like the line below ;) Delete, modify, change classes in HTML if you desire another style */
 .comment .children { margin-left: 1.5em; }

/**
* Some WP Theme Repository requirements
*/

.sticky {
}

.gallery-caption {

}

.bypostauthor {

}

.entry-meta {
	clear: both;
}

/*
 == Quick CSS styling tips ==

 You can start off in a rough direction with some minimal styles.
 See below for some tips. ;)

 == Want to have the whole site wrapped? ==

 Just fill the .container class with some background color to have a the whole site "wrapped".
 This works so easy because every main part is wrapped only once into a container class by bootstrap.
 Try out by decommenting the next line and go from there.

 .container { background: #f9f9f9; border-right: 1px solid #eee; border-left: 1px solid #eee; }

 == Want to wrap just the content and sidebar in Bootstrap style? ==

 That one is a great example to show that some things are much cleaner and easier to do via just adding some HTML classes.
 In this case, we will add just one CSS class "panel", look for example at the beginning in content.php!

 == Infinite Scrolling by Jetpack ==
 You can enable this cool feature by simply decommenting the lines below and make sure you use the same classes on the right place in your html..

/* Globally hidden elements when Infinite Scroll is supported and in use.
 * Older / Newer Posts Navigation (the pagination, must always be hidden), Theme Footer only when set to scrolling.. */

/*
.infinite-scroll .page-links,
.infinite-scroll.neverending .site-footer {
	display: none;
}
*/

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */

/*
.infinity-end.neverending .site-footer {
	display: block;
}
*/

/* Hey, if you don't need my comments anymore, just delete me! :)  */

/* Global */
body {
	-webkit-font-smoothing: antialiased;
}

a {
    color: #868b9a;
}

h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
}

.container {
	padding-bottom: 0;
}

.container-fluid {
    padding: 0;
}

.heading-block h1, .heading-block h2, .heading-block h3, .heading-block h4 {
    margin-bottom: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3d2a14;
    font-family: 'Raleway', sans-serif;
}

.heading-block:after {
    content: '';
    display: block;
    margin-top: 30px;
    width: 40px;
    border-top: 4px solid #faea4d;
}

.center {
    text-align: center !important;
}

.no-padding {
    padding: 0;
}

.heading-block.center:after {
    margin: 30px auto 0;
}

.col_full {
    clear: both;
    float: none;
    margin-right: 0;
}

.entry-image, .entry-image > a, .entry-image img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
}

.button {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 0 26px;
    font-size: 16px;
    height: 46px;
    outline: none;
    white-space: nowrap;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.button.button-border {
    border: 2px solid #faea4d;
    background-color: transparent;
    color: #333;
    line-height: 42px;
    font-weight: 600;
    text-shadow: none;
    border-radius: 3px;
    text-decoration: none;
}

.button.button-border:hover {
    background-color: #faea4d;
    color: #3d2a14;
    border-color: transparent !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

p.lead {
    margin-top: 15px;
}

.row-flex {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
}

.row-flex > div[class*='col-'] {  
  display: flex;
  flex-direction: column;
}

.row-flex img {
    margin: 0;
}

.row-flex p {
    margin-bottom: 15px;
}

blockquote {
    font-size: 24px;
}

.entry-meta {
    display: none;
}

/* Header */
#masthead {
	/* margin-bottom: 15px; */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.site-header-inner img {
    width: 75px;
    padding: 20px 0 10px;
}

.lead { 
	margin-bottom: 0;
}

.navbar-default {
    background-color: #ffffff; 
    border: none;
    margin-bottom: 0;
}

.navbar-brand {
	display: none;
}

.navbar-default .navbar-nav>li>a {
    border-bottom: 4px solid transparent;
}

.navbar-nav {
    padding-top: 14px;
}

.navbar-toggle {
    background-color: #fff;
}

.navbar-default .navbar-nav>.active>a, 
.navbar-default .navbar-nav>.active>a:hover, 
.navbar-default .navbar-nav>.active>a:focus {
    color: #000000;
    background-color: transparent;
    border-bottom: 4px solid #faea4d;
}

.navbar-default .navbar-nav>li>a:hover, 
.navbar-default .navbar-nav>li>a:focus {
    color: #000000;
    border-bottom: 4px solid #faea4d;
}

.navbar-default .navbar-nav>li>a {
    color: #868b9a;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-header {
    padding: 27px 0;
}

#top-search {
    margin-right: 20px;
}

#top-search form {
    display: block;
}

.glyphicon-search {
    color: #000000;
}

#language {
    text-align: right;
}

#language > ul {
    padding-left: 15px;
    margin: 0;
}

#language > ul > li {
    display: block;
    position: relative;
    width: auto;
    overflow: hidden;
    display: inline;
    margin:0 5px 0 5px;
}

#language > ul > li > a, #language > ul > li > a:visited {
    text-decoration:underline;
    color: #868b9a;
}

#language > ul > li > a:hover, #language > ul > li > a:active {
    color: #000000;
}

#lang_sel_list {
    float: right;
    padding: 5px 10px 5px 5px;
    height: auto !important;

}

#lang_sel_list ul {
    border-top: none !important;
}

#lang_sel_list ul a {
    padding-left: 10px !important; 
}

#lang_sel_list img.iclflag {
    top: -1px !important;
}

#lang_sel li {
    width: 100px;
}

#lang_sel a {
    border: none;
}

#lang_sel ul ul {
    width: auto;
}

#lang_sel ul li:hover ul, #lang_sel ul a:hover ul {
    visibility: visible;
    width: 100%;
}

.form-control {
    height: 24px !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
}

/* Hero */
#hero {
	position: relative;
    width: 100%;
    overflow: hidden;
    height: 400px;
    top: -15px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    z-index: -1;
}

.hero-unit {
	position: relative;
    transform: translateY(0px);
    top: 90px;
    max-width: 700px;
}

.hero-unit h1 {
	font-size: 64px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    color: #ffffff;
}

.hero-unit h1:after {
    content: '';
    display: block;
    margin-top: 30px;
    width: 40px;
    border-top: 4px solid #faea4d;
}

.hero-unit p {
	font-weight: 300;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    color: #ffffff;
}

#color-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: black;
   opacity: 0.4;
}

/* Welcome */
#section-wrapper {
	padding: 60px 0;
    overflow: hidden;
}

#section-wrapper h2 {

}

#section-wrapper p {
	margin-bottom: 15px;
	font-family: 'Raleway', sans-serif;
	font-size: 17px;
	line-height: 1.5em;
}

#section-wrapper img {
	/*margin: 0 0 -80px 0;*/
}

#section-word {
    padding: 60px 0;
}

#section-word h3 {
    padding: 0 80px;
    line-height: 1.5em;
    margin-top: 10px;
}

/* Product Category */
#product {
	background-color: #F9F9F9;
	padding: 60px 0;
}

#product .heading-block {
	margin-bottom: 30px;
}

.product-cate {
	margin-bottom: 60px;
}

.product-cate-title {
    position: relative;
    margin-bottom: 30px;
}

.product-cate-title:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    border-top: 4px solid #EEE;
    left: auto;
    top: 75%;
    right: 0;
}

.product-cate-title h3 {
	position: relative;
    display: inline-block;
    color: #3d2a14;
    padding-right: 15px;
    margin-bottom: 0;
    background-color: #F9F9F9;
}

.product-item {
    float: left;
    position: relative;
    opacity: 1;
    display: block;
    z-index: 2;
}

.entry-image {
	-webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    opacity: 1;
}

.entry-image img {
	margin: 0 0 20px 0;
    -webkit-box-shadow: rgba(0, 0, 0, 0.246094) 0px 1px 2px 0px, 
    rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
    rgba(0, 0, 0, 0) 0px 0px 0px 0px;
    box-shadow: rgba(0, 0, 0, 0.246094) 0px 1px 2px 0px, 
    rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
    rgba(0, 0, 0, 0) 0px 0px 0px 0px;
    box-sizing: border-box;
    outline-color: rgb(88, 86, 82);
    outline-width: 0px;
}

.entry-image:hover {
	opacity: 0.5 !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-overlay {
    position: absolute;
    width: 100%;
    opacity: 0.85;
    top: auto;
    bottom: 0;
    height: auto;
    padding: 40px 15px 15px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.25)));
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);
    background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);
    background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
}

.text-overlay-title h2, .text-overlay-title h3, .text-overlay-title h4, .text-overlay-meta {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-weight: bold;
}
.text-overlay-title h3 {
    font-size: 18px;
}

.text-overlay-title h3:after {
    content: '';
    display: block;
    margin-top: 10px;
    width: 40%;
    border-top: 1px solid #faea4d;
}

.entry-title h3, .entry-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.entry-title h3 a, .entry-title h4 a {
    color: #0b0903;
}

/* Page Template */
#page-title {
    position: relative;
    padding: 20px 0;
    background-color: #F5F5F5;
    border-bottom: 1px solid #EEE;
    z-index: -1;
}

#page-title h1 {
    margin: 0;
    float: left;
    font-weight: 600;
    font-size: 25px;
    text-transform: uppercase;
}

.content-wrap {
    position: relative;
    padding: 30px 15px 30px 15px;
}

h1.heading-block {
    margin: 0 0 20px;
    font-weight: bold;
    font-size: 32px;
}

h1.heading-block:after {
    margin-top: 15px;
}

.entry-content > h2 {
    font-size: 19px;
    font-weight: bold;
}

.entry-content > h2.heading-block {
    margin: 0 0 20px;
    font-weight: bold;
    font-size: 32px;
}

.entry-content > h2.heading-block:after {
    margin-top: 15px;
}

.entry-content-thumbnail {
    margin-bottom: 25px;
    text-align: center;
}

.breadcrumbs {
    margin: 0;
}

#content > h4 {
    font-size: 15px;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #faea4d;
}

.hentry {
    margin: 0 0 2.5em;
}

/* Contact Page */
.form-contact {
    float: left;
    margin-bottom: 30px;
    /*width: 860px;*/
}

.form-contact h2 {
    margin-top: 10px;
}

.sidebar-contect.col_last {
    /*float: right;
    width: 240px;*/
}

.col_last {
    margin-right: 0 !important;
    clear: right;
}

textarea, input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    padding: 8px 14px;
    font-size: 15px;
    line-height: 1.42857143;
    color: #555555;
    background-color: #ffffff;
    border: 2px solid #DDD;
    border-radius: 0 !important;
    width: 100% !important;
}

input.wpcf7-submit {
    border: 2px solid #faea4d;
    background-color: transparent;
    color: #333;
    line-height: 42px;
    font-weight: 600;
    text-shadow: none;
    border-radius: 3px;
    text-decoration: none;
    padding: 0 15px;
    margin-top: 10px;
}

input.wpcf7-submit:hover {
    background-color: #faea4d;
}

label {
    display: block;
    margin-bottom: 10px;
}

.taxonomy-description {
    margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
    padding-left: 0;
}
.sidebar h4.widget-title {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #faea4d;
    color: #0b0903;
}

#product-cate h4.widget-title {
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid #faea4d;
    color: #0b0903;
    line-height: 1.3em;
}

#product-cate a:hover, #product-cate a:focus {
    color: #0b0903;
    text-decoration: none;
}

/* Footer */
.site-footer {
	background-color: #1c1c1c;
	color: #ffffff;
	border-top: 1px solid rgba(218,222,225,0.85);
	padding-top: 15px;
    padding-bottom: 15px;
}

.site-footer a {
	color: #8d9095;
}

h4.widget-title {
    border-bottom: 2px solid #faea4d;
    padding-bottom: 20px;
    font-weight: bold;
}

.widget_nav_menu ul.menu>li>a {
    padding: 5px 0;
}

address a {
	text-decoration: underline;
}

.site-footer a:hover, .site-footer a:focus {
	color: #f8ec42;
    background-color: #1f1f1f !important;
}

#copyrights {
	/*text-align: center;*/
	padding-top: 15px;
	padding-bottom: 15px;
    background-color: #1f1f1f;
    color: #9B9B99;
}

.dark {
    background-color: #eeeeee;
    color: #777;
}

.blue {
	background-color: #337ab7;
    color: #fcf8e3;
}

.delay-1 {
    -webkit-animation-delay: 1s; /* Chrome, Safari, Opera */
        animation-delay: 1s;
}

h1 > a:hover, h1 > a:focus {
    color: #000000;
    border-bottom: 4px solid #faea4d;
    text-decoration: none;
}

input.search-submit.btn.btn-default {
    display: none;
}

/*==========  Non-Mobile First Method  ==========*/

    /* Large Devices, Wide Screens */
    @media only screen and (max-width : 1200px) {

    }

    /* Medium Devices, Desktops */
    @media only screen and (max-width : 992px) {
       .nav>li>a  {
            font-size: 11px !important;
            padding: 10px 8px !important;
        }
        .button.button-border {
            margin-bottom: 30px;
        }
        .navbar-collapse {
            padding-top: 9px; 
        }
    }

    /* Small Devices, Tablets */
    @media only screen and (max-width : 768px) {
        .site-header-inner img {
            padding-bottom: 0;
        }
        .site-header-inner, .site-navigation {
            float: none !important;
        }
        .site-header-inner, #language {
            text-align: center;
        }
        #language ul {
            padding: 0;
        }
        .hero-unit {
            top: 90px;
        }
        .hero-unit h1 {
            font-size: 34px;
        }
        #section-wrapper img {
            margin: 15px 0;
        }
        .navbar-collapse {
            width: 100%;
        }
        #top-search {
            float: none !important;
            margin: 0;
        }
        .navbar-header {
            background-color: #3d2a14;
            margin: 0;
        }
        #section-word h3 {
            padding: 0 20px;
            line-height: 1.5em;
            margin-top: 10px;
        }
        .top-header {
            padding: 0;
        }
        #lang_sel, #lang_sel li  {
            width: 100%;
        }

    }

    /* Extra Small Devices, Phones */ 
    @media only screen and (max-width : 480px) {
       
    }

    /* Custom, iPhone Retina */ 
    @media only screen and (max-width : 320px) {
        
    }

    .geckodoit {
        text-align: right;
    }

    /*.geckodoit a {
        font-weight: bold;
        color: #f58523;
    }*/

    .geckodoit a:hover {
        color: #868b9a;
    }

    .certificate img {
        padding: 10px 0;
        max-height: 70px;
    }

    .certificate a > img {
        max-height: 150px !important; 
        padding: 0;
    }

