/*
	Theme Name: D-Theme
	Author: Alexander Dimitrov
	Author URI: http://alex-dimitrov.dunked.com
	Description: D-theme - Clean and elegant WordpPess theme.
	Theme Version: 1.0.2
	Theme URI: http://demo.xavortm.com/d-theme
	Tags: light, gray, white, red, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, sticky-post, translation-ready
	License: GNU General Public License, v2 (or newer)
	License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
	 ******************************************************************
	 *
	 * discover WordPress Theme, Copyright (C) 2013 Manish Gori
	 *
	 * This program is free software; you can redistribute it and/or modify
	 * it under the terms of the GNU General Public License as published by
	 * the Free Software Foundation; either version 2 of the License, or
	 * (at your option) any later version.
	 * 
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU General Public License for more details.
	 * 
	 * Note: see the "license.htm" page for copyright and 
	 * license information for bundled resources, including images
	 ******************************************************************
*/

/*
 * 0. General
 * 1. Typography
 * 2. Header
 * 3. Main
 * 4. Sidebar
 * 5. Footer
 * 6. Misc
 * 6.1. Home page slider styling
 */

/* ==========================================================================
   0. General
   ========================================================================== */
body {
	font-family: "Open Sans", arial, sans-serif;
	font-size: 14px;
	line-height: 1.8em;
	color: #5c5c5c;
}

.left		{ float: left; }
.right		{ float: right; }
.clear 		{ clear: both;}
.clear-r	{ clear: right; }
.clear-l	{ clear: left; }

.sep			{ clear: both; height: 20px; display: block; overflow: hidden; }
.hidden 		{ display: none !important; }
.hidden-txt 	{ color: rgba(0, 0, 0, 0); } /* Doesnt work in older IE browsers*/
.overflow 		{ overflow: hidden; }

::selection {
	color : white;
	background: #000;
}

::-moz-selecrion {
	color : white;
	background: #000;
}

.wp-caption {
	/* TODO */
}

.wp-caption-text {
	/* TODO */
}

.sticky {
	/* TODO */
}

.bypostauthor {
	/* TODO */
}

.alignleft {
	float: left;
}

.alignright  {
	float: right;
}

.aligncenter  {
	margin: 0 auto;
}

.gallery-caption {
	/* TODO */
}

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

#wrapper {
	width: 1100px;
	padding: 0 40px;
	margin-top: 40px;
	border: 6px solid rgba(0,0,0,0.06);
	background: white;
}

/* ==========================================================================
   1. Typography
   ========================================================================== */

a {
	color: black;
}

a:hover {
	text-decoration: none;
	color: #aaa;
}

h1,h2,h3,h4,h5,h6 { font-weight: bold; font-family: "Source Sans Pro", Arial; }
h1 { font-size: 26px; line-height: 1.4em; margin-bottom: 26px; }
h2 { font-size: 22px; line-height: 1.4em; margin-bottom: 22px; }
h3 { font-size: 18px; line-height: 1.5em; margin-bottom: 18px; }
h4 { font-size: 16px; line-height: 1.6em; margin-bottom: 16px; }
h5 { font-size: 14px; line-height: 1.7em; margin-bottom: 14px; }
h6 { font-size: 12px; line-height: 1.7em; margin-bottom: 12px; }

.label.label-important a{color: white;}
.btn.btn-success a{color: white;}
/* ==========================================================================
   2. Header
   ========================================================================== */
#secoundary-nav {
	padding: 0 40px;
	margin: 0 -40px;
	background: #c84646;
	background: -moz-linear-gradient(top,  #c84646 0%, #bc4141 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c84646), color-stop(100%,#bc4141));
	background: -webkit-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: -o-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: -ms-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: linear-gradient(to bottom,  #c84646 0%,#bc4141 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c84646', endColorstr='#bc4141',GradientType=0 );
}

#secoundary-nav ul.children {
	background: #c84646;
	background: -moz-linear-gradient(top,  #c84646 0%, #bc4141 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c84646), color-stop(100%,#bc4141));
	background: -webkit-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: -o-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: -ms-linear-gradient(top,  #c84646 0%,#bc4141 100%);
	background: linear-gradient(to bottom,  #c84646 0%,#bc4141 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c84646', endColorstr='#bc4141',GradientType=0 );	
}

#secoundary-nav ul {
	margin: 0;
	padding: 0;
	display: block;
}

#secoundary-nav ul li {
	display: block;
	float: left;
	list-style: none;
}

#secoundary-nav ul li a {
	color: white;
	font-family: "Open Sans Pro", "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	padding: 8px 16px;
	display: block;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2);

	transition: 0.2s;
	-moz-transition: 0.2s;
	-o-transition: 0.2s;
}

#secoundary-nav ul li:first-child {
	border-left: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
}

#secoundary-nav ul li a:before {
	content: "."; 
	visibility: hidden; 
	display: block; 
	height: 0; 
	clear: both;
}

#secoundary-nav ul li a:after {
	content: "."; 
	visibility: hidden; 
	display: block; 
	height: 0; 
	clear: both;
}

#secoundary-nav ul ul li a {
	font-size: 12px;
	text-transform: none;
	border: none;
	box-shadow: none;
	min-width: 200px;
	color: #333;
}

#secoundary-nav ul ul li a:hover {
	color: white
}

#secoundary-nav ul li a:hover {
	border-right: 1px solid rgba(0, 0, 0, 1);
	box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2);
	text-decoration: none;
	background: #3c3c3c; /* Old browsers */
	background: -moz-linear-gradient(top, #3c3c3c 0%, #020202 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3c3c3c), color-stop(100%,#020202)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #3c3c3c 0%,#020202 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #3c3c3c 0%,#020202 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #3c3c3c 0%,#020202 100%); /* IE10+ */
	background: linear-gradient(to bottom, #3c3c3c 0%,#020202 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3c3c3c', endColorstr='#020202',GradientType=0 ); /* IE6-9 */
}

#secoundary-nav ul ul li a:hover {
	box-shadow: none;
	border: none;
}

#branding h1.logo {
	margin: 5px 0 0 0;
	font-size: 36px;
}

#branding h1.logo a {
	color: #3a3a3a;
	transition: 0.2s;
	-moz-transition: 0.2s;
	-o-transition: 0.2s;
}

#branding h1.logo a:hover {
	opacity: 0.8;
}

#branding p.description {
	font-style: italic;
	font-size: 13px;
	color: #3a3a3a;
	margin-top: -5px;
}

#main-nav {
	padding: 10px 40px;
	margin: 0 -40px;
	border: 1px solid #d5d5d5;
	border-left: none;
	border-right: none;
	background: #ffffff; /* Old browsers */
	background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* IE10+ */
	background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}

#main-nav ul.children {
	padding-right: 10px;
	margin: 0;
	border: none;
	background: #ffffff; /* Old browsers */
	background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* IE10+ */
	background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}

#main-nav ul {
	margin: 0;
	padding: 0;
	display: block;
}

#main-nav ul li {
	display: block;
	float: left;
	list-style: none;
	margin-right: 30px;
}

#main-nav ul li a {
	color: #3b3b3b;
	font-family: "Open Sans Pro", "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	padding: 3px 6px;
	display: block;
	/*transition: 0.2s background;
	-moz-transition: 0.2s background;
	-o-transition: 0.2s background;*/
}

#main-nav ul li a:before {
	content: "."; 
	visibility: hidden; 
	display: block; 
	height: 0; 
	clear: both;
}

#main-nav ul li a:after {
	content: "."; 
	visibility: hidden; 
	display: block; 
	height: 0; 
	clear: both;

}

#main-nav ul li a:hover {
	text-decoration: none;
	background: #bd4242; /* Old browsers */
	border-radius: 3px;
	color: white;
}

#main-nav ul ul li {
	margin: 0;
}

#main-nav ul ul li a:hover {
	border-radius: 0
}

#main-nav ul ul li a {
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	font-size: 12px;
	text-transform: none;
	width: 100%;
	min-width: 200px;
}

#main-nav li,
#secoundary-nav li {
	position: relative;
}

#main-nav ul.menu ul,
#secoundary-nav ul.menu ul {
	display: none;
	position: absolute;
	left: 0;
	z-index: 99999;
	border: 1px solid #999;
	background: white;
}

#main-menu ul.menu ul {
	border: 1px solid #999;
	background: white;
}

#main-nav ul ul ul,
#secoundary-nav ul ul ul {
	left: 100%;
	top: 0;
}

#main-nav ul.menu ul li a,
#secoundary-nav ul.menu ul li a {
	padding: 5px 5px;
}

#main-nav ul li:hover > ul,
#secoundary-nav li:hover > ul {
	display: block;
}

/* ==========================================================================
   3. Main
   ========================================================================== */
.container {
	width: 1140px;

}

#main-content {
	margin-top: 30px;
	margin-bottom: 30px;
}

#content {
	width: 800px;
	float: left;
}

.entry {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 10px;
	margin-bottom: 20px;
	overflow: hidden;
	clear: both;
}

.entry:last-child {
	border-bottom: none;
}

.entry .attachment-post-thumbnail {
	float: left;
}

.entry .entry-container {
	float: right;
	width: 630px;
}

.entry .entry-title {
	margin-top: -10px;
	margin-bottom: 0;
	display: inline-block;
}

.entry .entry-title a {
	color: #bd4242;
	font-size: 18px;
	line-height: 1.2em;
}

.entry .entry-meta {
	margin: 0;
	font-size: 12px;
	font-family: Arial;
	color: #cecece;
	text-transform: uppercase;
}

.entry .short-content.has-post-thumbnail {
	float: right;
	width: 630px;
}

.entry .entry-tags span {
	margin-right: 10px;
}

.entry .entry-tags span:hover {
	opacity: 0.8;
}

.entry .entry-tags a{
	color: white;
}

.entry .entry-content .page-link {
	background: #f0f0f0;
	padding: 5px 20px;
	font-weight: bold;
	border-bottom: 3px solid #ddd;
	background: #ffffff; /* Old browsers */
	background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 100%); /* IE10+ */
	background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}

.entry .entry-content .page-link a {
	font-weight: normal;
}

.format-quote,
.format-link,
.format-status,
.format-image,
.format-video,
.format-audio {
	text-align: center;
}

.format-quote .entry-content,
.format-link .entry-content {
	margin-top: 10px;
	border: 1px solid  #f0f0f0;
	font-style: italic;
	font-size: 18px;
	padding: 10px;

}

.format-link .entry-content {
	font-style: normal;
}

.format-status .entry-content {
	font-size: 18px;
	font-style: normal;
}

.single .entry .entry-title {
	clear: both;
}

.single .entry .entry-meta {
	margin-bottom: 20px;
}

.single .entry .attachment-post-thumbnail  {
	margin-right: 20px;
	margin-bottom: 20px;
}

.commentlist {
	padding: 0;
	margin: 0;
}

.commentlist li {
	list-style-type: none;
}

li.comment {
	margin-bottom: 30px;
	border-radius: 3px;
	border: 3px solid #f0f0f0;
	box-shadow: inset 0 0 1px #555;
	padding: 10px;
	position: relative;
}

li.comment ul.children {
	margin-top: 10px;
	margin-bottom: -20px;
}

.comment  .avatar {
	border-radius: 50%;
	margin-right: 10px;
	border: 3px solid #ddd;
}

.comment .comment-meta {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	margin: 10px -10px;
	padding-top: 10px;
	margin-top: -10px;
	background: #f0f0f0;
}

.comment .comment-content {
	
}

.comment .comment-content p:first-child {
	margin-top: 0;
}

.comment .comment-content p:last-child {
	margin-bottom: 0;
}

.comment .comment-reply-link .icon-white {
	margin-left:5px;
}

#respond {
	border: 3px solid #f0f0f0;
	box-shadow: inset 0 0 2px #888;
	padding: 30px;

}

#respond p label {
	font-weight: bold;
}

#respond .comment-form-comment #comment{
	display:block;width:100%;
	min-height:30px;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box
}

#respond .logged-in-as a{
	font-weight: bold
}	


/* ==========================================================================
   4. Sidebar
   ========================================================================== */
#sidebar {
	width: 280px;
	float: right;
	margin-left: 10px;
}

#sidebar .widget {
	margin-bottom: 20px;
/*	border-bottom: 1px solid #f0f0f0;*/
	padding-bottom: 20px;
}


#sidebar .widget .widget-heading {
	border-bottom: 3px solid #333;
	padding: 5px 0px;
}

#sidebar .widget ul {
	padding: 0;
	margin: 0;
}

#sidebar .widget ul li {
	list-style: none;
}

#sidebar .widget ul li a {
	display: block;
	padding: 5px 15px;
	border-bottom: 1px solid #f0f0f0
}

#sidebar .widget ul li a:hover {
	background: #c84646;
	color: white;
}

#sidebar .widget:last-child {
	border-bottom: none
}

#sidebar .widget .widget-heading {
	margin-bottom: 10px;
}

#sidebar .widget:first-child .widget-heading {
	margin-top: 0;
}


/* ==========================================================================
   5. Footer
   ========================================================================== */
#footer {
	border-top: 1px solid #f0f0f0;
	margin-bottom: 40px;
	padding-top: 40px;
}

#footer #footer-menu {
	width: 800px;
}

#footer ul.menu {
	margin: 0;
	padding: 0;
}

#footer ul.menu li {
	float: left;
	margin-right: 20px;
	list-style-type: none;
}


/* ==========================================================================
   6. Misc
   ========================================================================== */