/*  
Theme Name: Base
Version: 1.0.0
Author: deSiter
Author URI: http://desiter.ru
*/


@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.3.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff');
  font-weight: normal;
  font-style: normal;
}
.fa {
	font-family: FontAwesome;
}

/************************************************************************************
RESET
*************************************************************************************/

/* reset */
html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, table, ul,
dd, dt, li, tbody, td, tfoot, th, thead, tr, button, del, ins, map, object,
a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span,
strong, sub, sup, tt, var, legend, fieldset, figure {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

img, fieldset {
	border: 0;
}

/* set html5 elements to block */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block;
}

/* set img max-width */
img {
	max-width: 100%;
	height: auto;
}
/* ie 8 img max-width */
@media \0screen {
  img { width: auto;}
}

/************************************************************************************
GENERAL STYLING
*************************************************************************************/
body {
	font: 14px/150% Arial, Helvetica, sans-serif;
	background-color: white;
	top: 0px;
	width: 100%;
	bottom: 0px;
}
a {
	text-decoration: none;
	outline: none;
}
a:hover {
	text-decoration: underline;
}
article p {
	text-align: justify;
}
p {
	margin: 0 0 1em;
	padding: 0;
}
b {
	font-weight: bold;
}
i {
	font-style: italic;
}
blockquote, quote {
	font-weight: italic;
	display: inline-block;
	margin-left: 15px;
}
ul, ol {
	margin-left: 24px;
}
sup {
	vertical-align: super;
	font-size: 12px;
	line-height: 1;
}
header, footer {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}
.line div {
	box-sizing: border-box;
}

.core {
    width: 100%;
    margin: 0px auto;
    position: relative;
}
.line {
	text-align: center;
	display: block;
	position: relative;
	z-index: 1;
}
.line > .core {
	z-index: 2;
	display: inline-block;
	text-align: left;
	max-width: 1200px;
	width: 100%;
	padding: 0px 20px;
}

.back {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-size: cover !important;
}

/************************************************************************************
	TABLES
*************************************************************************************/

.table {
	display: table;
	width: 100%;
}
.row {
	display: table-row;
}
.cell {
	display: table-cell;
	vertical-align: middle;
	width: 999px;
}

/************************************************************************************
	OTHER
*************************************************************************************/

/*	menu
*************************************************************************************/

nav ul.menu li {
	position: relative;
	height: 50px;
}
nav ul.menu li ul {
	position: absolute;
	top: 50px;
	left: 0px;
	height: 0px;
	transition: all 0.2s linear 0.1s;
	margin-left: 0px;
	overflow: hidden;
	width: 150%;
}
nav ul.menu li ul li {
	display: block !important;
	width: 100% !important;
}
nav ul.menu li ul li a { 
	padding: 5px 15px;
	box-sizing: border-box;
}
nav ul.menu li:last-child ul {
	left: none;
	right: 0px;
}
nav ul.menu li:hover ul {
	height: auto;
}

/*	social-icones
*************************************************************************************/

.social-icones {
	text-align: center;
	margin-top: 15px;
}
.social-icones a {
	padding: 5px;
}
.social-icones img {
	width: 100%;
}

/************************************************************************************
STRUCTURE
*************************************************************************************/

#header, #wrapper, #footer {
	margin: 0px auto;
}
#wrapper {
	display: block;
}
main {
	display: inline-block;
	width:70%;
}
.post, .widget {
	padding: 15px;
}

#sidebar {
	width: 30%;	
}

/*	Header
*************************************************************************************/

header h1, header h2 {
	margin: 0;
}
h1, h2, h3, h4, h5, h6 {
	line-height: 1.4em;
	margin: .8em 0 .4em;
}
h1 {
	font-size: 2em;
}
h2 {
	font-size: 1.8em;
}
h3 {
	font-size: 1.6em;
}
h4 {
	font-size: 1.4em;
}
h5 {
	font-size: 1.2em;
}
h6 {
	font-size: 1em;
}
#header h1 {
	font-size:2.6em;
}

#header #searchform {
	position: absolute;
	right: 0;
	top: 0px;
}

#header nav ul li, #footer nav ul li, .breadcrumb ul li, .menu ul li {
	list-style: none;
	padding: 0px 5px;
	display: inline-block;
}

#header {
	position: relative;
	padding-top: 15px;
}
#header h2 {
	font-weight: normal;
	line-height: 100%;
	margin: 0;
	font-size:1.2em;
}
#logo {
	width: auto;
	margin: 20px 20px 10px 0px;
	display: inline-block;
	height: 80px;
}
#mobile-menu-btn {
	display: none;
	cursor: pointer;
	position:relative;
	z-index: 5;
	transition: all 0.3s ease 0s;
	font-size: 28px;
	color: #666;
	margin-top: 10px;
}
#header nav {
	position: relative;
	margin-left: 0px;
}


/*	Post
*************************************************************************************/

/* post image */
.post-image {
	margin: 0 0 5px;
}
.post-image.left, .attachment-medium {
	float: left;
	margin-right: 15px;
}
.post-image.right {
	float: right;
	margin-left: 15px;
}

/* fancybox */
.post-thumb {
	display: inline-block;
	width: 100%;
}

/*	Thumbnails
*************************************************************************************/

.back-cover {
	background-size: cover !important;
	display: inline-block;
	width: 100%;
}
.back-contain {
	background-size: contain !important;
	display: inline-block;
	width: 100%;
}
.filler {
	width: 100%;
	height: auto;
	box-sizing: border-box;
}

/*	Similar Posts
*************************************************************************************/

.similar-posts {
	margin-left: 0px;
	list-style-type: none;
}
.similar-posts li {
	width: 25%;
	text-align: center;
	display: inline-block;
}
.similar-posts li a {
	display: inline-block;
	width: 95%;
}
.similar-posts li a:first-child {
	background-size:cover !important;
	height: 100px;
}

/*	Footer
*************************************************************************************/

#footer .copyright {
	margin: 15px;
}
#footer .contacts {
	margin: 15px;
}

#back-top {
	border: 1px solid #33363B;
	position: fixed;
	bottom: 50px;
	right: 50px;
	text-align: center;
	opacity: 0;
	color: #33363B;
	background-color: white;
	width: 50px;
	height: 50px;
	font-size: 30px;
	font-weight: bold;
	line-height: 40px;
	-webkit-transition: opacity 0.5s linear;
	-moz-transition: opacity 0.5s linear;
	-o-transition: opacity 0.5s linear;
	transition: opacity 0.5s linear;
}
#back-top:hover {
	opacity: 1 !important;
	text-decoration: none;
}


/*	Page navigation
*************************************************************************************/

.page-nav {
	clear: both;
	text-align: center;
	margin-bottom: 10px;
}
.page-nav a, .page-nav span {
	display: inline-block;
	zoom:1;
	*display:inline;
	text-align: center;
}

/*	Post navigation
*************************************************************************************/

.post-nav {
	padding: 15px;
	clear: both;
}
.post-nav span {
	width: 47%;
}
.post-nav .prev {
	float: left;
}
.post-nav .next {
	float: right;
	text-align: right;
}
/* post nav arrow */
.post-nav span span {
	width: auto;
	float: left;
	width: 24px;
	text-align: center;
	margin-right: 10px;
	height: 24px; 
}
.post-nav .next span {
	float: right;
	margin-left: 10px;
	margin-right: 0;
}

/************************************************************************************
	FORM
*************************************************************************************/

/* form input */
input[type=text], input[type=password], textarea, input[type=search], input[type=tel], input[type="email"] {
	border: solid 1px #999;
	padding: 5px 10px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-appearance: none;
	box-shadow: 0px 0px 1px grey inset;
	color: grey;
}
textarea:focus, input[type=password]:focus, input[type=text]:focus, input[type=search]:focus, input[type=tel]:focus, input[type="email"]:focus {
	color: black;
}
input[type=text] {
	width: 240px;
	width: 90%;
}

input[type=search] {
	width: 70%;
}
#searchsubmit {
	width: 30%;
	float:right;
}

textarea {
	width: 94%;
}

/* form button */
input[type=reset], input[type=submit], button {
	background: #666;
	color: #fff;
	border: none;
	padding: 5px;
	cursor: pointer;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
input[type=reset]:hover, input[type=submit]:hover, button:hover {
	color: #fff;
}

/************************************************************************************
WORDPRESS POST FORMATTING
*************************************************************************************/

img.alignleft, img.aligncenter, img.alignright, img.alignnone {
	margin-bottom: 15px;
}
.alignleft {
	float: left;
	margin-right: 20px;
	max-width: 50%;
}
.alignright {
	float: right;
	margin-left: 20px;
	max-width: 50%;
}
.aligncenter {
	text-align: center;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-caption {
	text-align: center;
	margin-bottom: 15px;
	max-width: 100%;
}
.wp-caption-text {
	font-style: italic;
	font-size: 95%;
	line-height: 120%;
	margin: 6px 0;
}

/************************************************************************************
CLEAR & ALIGNMENT
*************************************************************************************/
.clear {
	clear: both;
}
.left {
	float: left;
}
.right {
	float: right;
}
.textleft {
	text-align: left;
}
.textright {
	text-align: right;
}
.textcenter {
	text-align: center;
}

/* clearfix   */
.clearfix:before, .clearfix:after {
	content: "";
	display: table;
}
.clearfix:after {
	clear: both;
}
 
.clearfix {
	zoom: 1; /* ie 6/7 */
}