/*
 * Ruben Custom code
 */

/*
 Related images
 */
.related-images{
	display: inline-block;
	margin-top: 50px;
	width: 100%;
}

.related-images h1{
	width: 118.8%;
	margin-left: -10% !important;
	color: white !important;
	background-color: rgba(30, 140, 190, 1);
	padding: 15px 40px;
	font-size: 18px !important;
	margin-bottom: 20px !important;
	position: relative;
}

.related-images h1:after{
	position: absolute;
	bottom: -10px;
	right: 0;
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 7px 0 0;
	border-color: #0f4057 transparent transparent transparent;
	-moz-transform: scale(1, 1);
	transform: scale(1.01, 1.01);
}

a.related-wrap{
	display: inline-block;
	text-decoration: none !important;
	width: 48%;
	margin-right: 0;
	margin-bottom: 2%;
	position: relative;
}

a.related-wrap:nth-child(2n){
	margin-right: 2%;
}

.related{
	display: inline-block;
	height: 200px;
	width: 100%;
	background-repeat: no-repeat;
	background-position: center center;
	padding: 10px;
}

.related figcaption{
	color: white;
	font-size: 18px;
	font-family: Dosis, Arial, sans-serif;
	margin: 0;
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 100%;
	padding: 10px;
	background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 4%, rgba(0,0,0,0.65) 99%, rgba(0,0,0,0.65) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(4%,rgba(0,0,0,0)), color-stop(99%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0.65)));
	background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%);
	background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%);
	background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%);
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
	padding-top: 40px;
}

/* navigation */

#main-menu .sidebar-content{
	margin: 0;
	padding: 0;
	width: 100%;
}

#main-menu .col-sm-3.left-aside{
	padding: 0;
	width: 100%;
}

#main-menu .mCSB_container{
	margin-top: 0;
}

#teoaccordioncategories-4{
	margin: 0;
}

#teoaccordioncategories-4 h2{
	display: none;
}

#teoaccordioncategories-4 hr{
	display: none;
}

.categories-accordion > .panel-heading h4 a{
	width: 200px;
}

#main-menu{
	background-color: rgb(213, 170, 39) !important;
}

#sec-menu{
	list-style-type: none;
	display: inline-block;
	float: left;
	margin-left: 50px;
	margin-top: 0;
	width: 300px;
	font-size: 16px;
	height: 78px;
	line-height: 78px;
}

#sec-menu li{
	display: inline-block;
	float: left;
}

#sec-menu li a{
	color: white !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	display: inline-block;
	width: 100%;
	height: 78px;
	line-height: 83px;
	padding: 0 15px;
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
	background-color: rgba(17, 120, 166, 0.5);
	border-right: 1px solid rgb(52, 145, 187);
}

#sec-menu li a:hover{
	background-color: rgba(216, 234, 239, 0.3);
	border-bottom: 6px solid rgb(30, 140, 190);
}

#main-menu{
	position: fixed;
	width: 200px;
	top: 78px;
	left: -220px;
	background-color: #fff;
	z-index: 999;
	-webkit-transition: all .3s;
	   -moz-transition: all .3s;
		 -o-transition: all .3s;
			transition: all .3s;
	-webkit-box-shadow: 3px -2px 5px 1px rgba(0,0,0,.5);
	-moz-box-shadow: 3px -2px 5px 1px rgba(0,0,0,.5);
	box-shadow: 3px -2px 5px 1px rgba(0,0,0,.5);
	overflow-y: auto;
	overflow-x: hidden;
}

#main-menu.visible{
	left: 0px;
}

#main-menu>ul{
	width: 100%;
	display: inline-block;
	padding-bottom: 50px;
}

#main-menu.small-header{
	top: 50px;
}

#main-menu>ul>li{
	float: none;
}

#main-menu>ul>li li>a{
	padding-left: 20px;
}

/* little colors */
#main-menu>ul>li>a:before{
	content: '';
	width: 10px;
	height: 10px;
	margin-right: 8px;
	margin-top: -1px;
	display: inline-block;
}
#main-menu>ul>li:nth-child(1)>a:before{
	background-color: #327FC2;
}
#main-menu>ul>li:nth-child(2)>a:before{
	background-color: #F5A927;
}
#main-menu>ul>li:nth-child(3)>a:before{
	background-color: #BEF527;
}
#main-menu>ul>li:nth-child(4)>a:before{
	background-color: #F02432;
}
#main-menu>ul>li:nth-child(5)>a:before{
	background-color: #FCEC00;
}
#main-menu>ul>li:nth-child(6)>a:before{
	background-color: #E828FA;
}

#main-menu>ul>li>a{
	background-color: #ddd;
	border-bottom: 2px solid white;
	font-size: 18px;
	text-transform: uppercase;
	color: #333;
}

#main-menu>ul>li a{
	padding: 10px;
	color: #555;
	font-weight: bold;
	display: block;
	width: 100%;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: normal;
}

#main-menu>ul>li a:hover{
	background-color: #666;
	color: white;
}

#main-menu .sub-menu{
	list-style-type: none;
	width: 100%;
	padding: 0;
}

#main-menu .sub-menu>li{
	width: 100%;
}

.navbar-toggle.pushed{
	color: rgba(118, 181, 210, 1);
}

.icon-bar{
	margin-top: 4px;
}

.navbar-toggle.pushed>.icon-bar{
	background-color: rgba(234, 248, 255, 1) !important;
}

.navbar-toggle.text{
	color: white;
	padding-top: 7px;
	padding-right: 48px;
	font-size: 20px;
	margin-left: 32px;
}

.navbar-toggle.text.pushed{
	color: rgba(234, 248, 255, 1) !important;
}

.navbar-toggle.text:hover{
	border: 1px solid rgba(118, 181, 210, 1);
	background-color: rgba(118, 181, 210, .3);
	padding-top: 6px;
	padding-left: 9px;
	-webkit-box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.2);
}

.navbar-toggle.icon{
	margin-left: 104px;
	margin-top: 2px;
}

#menu-button-wrap{
	display: inline-block;
	float: left;
}

/* sidebar */

.col-sm-13{
	box-shadow: none !important;
}

.rowsingle .col-sm-8{
	border-right: 1px solid #ddd;
}

.main-wrap{
	padding-right: 20px;
}

.right-sidebar{
	padding-left: 30px;
}

.right-sidebar .widget > h2{
	padding: 15px 40px;
	font-size: 18px;
	color: white;
	background-color: rgba(30, 140, 190, 1);
	margin-left: -38px;
	width: 500px;
	position: relative;
}

.right-sidebar .widget > h2:after{
	position: absolute;
	bottom: -10px;
	left: 0;
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 7px 10px 0;
	border-color: transparent #0f4057 transparent transparent;
	-moz-transform: scale(1, 1);
	transform: scale(1.01, 1.01);
}

.right-sidebar .widget > hr{
	display: none;
}

.right-sidebar .widget figcaption{
	background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 4%, rgba(0,0,0,0.65) 99%, rgba(0,0,0,0.65) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(4%,rgba(0,0,0,0)), color-stop(99%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0.65))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 4%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
	padding-top: 40px;
}

/* end sidebar */

.main-wrap article:first-child{
	border-top: none;
}

.post-page .article-top h1{
	margin-bottom: -5px !important;
}

.main-wrap article h1{
	margin-bottom: 24px !important;
	margin-left: 2px !important;
}

.comment-count{
	color: #999;
}

.share-bar-bottom{
	display: none;
	margin-top: 10px;
	width: 100%;
}

.share-bar-bottom .btn-share.facebook{
	margin-left: 0;
	width: 49.5%;
	margin-right: 1%;
}

.share-bar-bottom .btn-share.twitter{
	width: 49.5%;
	margin-left: 0;
}

.post-page .share-bar-bottom{
	display: inline-block;
}

.comment-count a{
	color: #999 !important;
	text-decoration: none !important;
	background-color: #eee;
	padding: 8px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
}

.comment-count img{
	margin-top: -4px;
	margin-right: 5px;
}

.inline-comment-count{
	float: left;
	padding: 10px;
	margin-left: -10px;
}

.post-page .inline-comment-count{
	display: none;
}

.social-icons{
	float: right;
}

.post-page .social-icons{
	float: none;
}

.others{
	float: left;
	display: none;
}

.post-page .others{
	display: inline-block;
}

.others a.more {
	margin-left: 10px;
	display: block;
	width: 42px;
	height: 32px;
	border: 1px solid #eee;
	overflow: hidden;
	border-radius: 3px;
	text-indent: -999px;
	background: #eee url(../img/other-buttons.png) no-repeat;
}

.popup-menu a {
	display: block;
	color: #777;
	background-color: #fff;
	line-height: 30px;
	padding: 0 20px;
	font-size: 13px;
}

.popup-menu{
	display: none;
}

.popup-menu ul {
	list-style-type: none;
	overflow: hidden;
	padding: 5px 0;
	background-color: #fff;
	box-shadow: 0 5px 10px rgba(0,0,0,.2);
	border: 1px solid #ccc;
	position: absolute;
	left: 231px;
	top: 32px;
}


/* Next post link */
.next-post a{
	padding: 0 8px 0 12px;
	font-weight: 700;
	height: 34px;
	line-height: 34px;
	display: block;
	background-color: #ff3c1f;
	border-radius: 3px 0 0 3px;
	text-decoration: none !important;
	color: white !important;
	content: 'Next Post' !important;
}

.next-post a:before{
	content: '';
	position: absolute;
	top: 0;
	right: -12px;
	display: block;
	width: 0;
	height: 0;
	border-top: 17px dashed transparent;
	border-bottom: 17px dashed transparent;
	border-left: 12px solid #ff3c1f;
}

.next-post{
	display: none;
	float: right;
}

.post-page .next-post{
	display: inline-block;
}

/*Sharing */
.share-bar{
	width: 100%;
	height: 40px;
	display: inline-block;
	position: absolute;
	left: 0;
	bottom: 8px;
}

.btn-share.facebook {
	background: #3b5998 url(../img/sharing-button-a.png) 0 0 no-repeat;
}

.btn-share.facebook:hover {
	background-color: #4c70ba;
}

.btn-share.twitter {
	background: #00aced url(../img/sharing-button-a.png) 0 -34px no-repeat;
}

.btn-share.twitter:hover {
	background-color: #21c2ff;
}

.btn-share {
	display: inline-block;
	color: #fff !important;
	font-weight: 700;
	width: auto;
	height: 34px;
	background-color: #f4f4f4;
	line-height: 34px;
	padding: 0 15px 0 34px;
	border-radius: 3px;
	text-align: center;
	font-family: Arial;
	text-transform: none;
	font-weight: normal;
	float: left;
	margin-left: 10px;
}

.btn-share:hover, .btn-share:active, .btn-share:visited{
	text-decoration: none;
	color: white;
}

/* post page share bar */
.post-page .article-content{
	margin-top: 60px;
}

.post-page-extra{
	display: inline-block;
	display: none;
	position: absolute;
	top: -44px;
	right: 10px;
}

.post-page .post-page-extra{
	display: block;
}

.block-comment-count{
	float: left;
	margin-right: 10px;
	margin-top: 8px;
}

.post-page .share-bar{
	width: 72%;
	top: initial;
	top: -42px;
	left: -10px;
}

.post-page .btn-share{
	float: left;
}

.buttons-bar, .main-post .buttons-bar {
  bottom: 0px !important;
  top: initial !important;
  opacity: 1 !important;
  background-color: #1b7eab;
}

.main-post{
	border-top: 1px solid #cdcdcd;
	padding-top: 20px !important;
}

/* Loading */
#infscr-loading{
	text-align: center;
	width: 100%;
	padding-bottom: 50px;
}

#infscr-loading img{
	margin: 0 auto;	
}

/* Search icon */

.search-icon{
	display: none;
	position: absolute;
	top: 18px;
	right: 10px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	font-size: 36px;
	color: white;
	padding-top: 5px;
	-webkit-transform: scale(-1, 1);
	   -moz-transform: scale(-1, 1);
		 -o-transform: scale(-1, 1);
			transform: scale(-1, 1);
}

.header-search-field::-webkit-input-placeholder {
   color: #96dbfa;
}
.header-search-field:-moz-placeholder { /* Firefox 18- */
   color: #96dbfa;
}
.header-search-field::-moz-placeholder {  /* Firefox 19+ */
   color: #96dbfa;
}
.header-search-field:-ms-input-placeholder {  
   color: #96dbfa;
}

div.fixed{
	overflow: visible !important;
	-webkit-transition: all .3s;
	   -moz-transition: all .3s;
		 -o-transition: all .3s;
			transition: all .3s;
}

.navbar-toggle{
	margin-top: 19px !important;
	cursor: pointer;
	position: absolute;
	left: 108px;
	z-index: 99;
}

.fixed.smaller{
	height: 50px;
	-webkit-box-shadow: 0px 0px 18px 0px rgba(77,75,77,1);
	   -moz-box-shadow: 0px 0px 18px 0px rgba(77,75,77,1);
		 -o-box-shadow: 0px 0px 18px 0px rgba(77,75,77,1);
			box-shadow: 0px 0px 18px 0px rgba(77,75,77,1);
}

.fixed.smaller .logonew{
	width: 74px; 
	margin-right: 70px;
}

.fixed.smaller #sec-menu{
	margin-left: 20px;
}

.fixed.smaller #sec-menu li{
	height: 50px;
	line-height: 50px;
}

.fixed.smaller #sec-menu li a{
	height: 50px;
	line-height: 50px;
}

.fixed.smaller #searchformhead{
	margin-top: 7px;
}

.fixed.smaller .navbar-toggle{
	margin-top: 2px !important;	
	left: 60px;
}

.logonew{
	width: 120px;
	float: left;
	margin-right: 40px;
}

.right-header{
	float: right;
	width: 200px;
}

header .container{	
	position: relative;
}

header .right-container{
	display: block !important;
	position: absolute;
	top: 0;
	left: 140px;
}

#searchformhead {
	display: inline-block;
	width: 248px;
	float: right;
	margin-top: 20px;
	background: none !important;
}

#searchformhead .blog-search{
	background-image: url(http://www.humoar.com/wp-content/themes/Aruna/img/searchbar.gif);
	display: inline-block;
	height: 35px;
	width: 248px;
	background-repeat: no-repeat;
}

.header-search-field {
	margin-left: 35px;
	margin-top: 2px;
	background: transparent;
	border: 0px;
	border-image-source: initial;
	border-image-slice: initial;
	border-image-width: initial;
	border-image-outset: initial;
	border-image-repeat: initial;
	font-size: 12px;
	text-transform: uppercase;
	color: white;
	width: 160px;
	font-weight: bold;
	line-height: 27px;
}

.header-search-submit {
	width: 40px;
	height: 35px;
	background: transparent;
	border: none;
	border-image-source: initial;
	border-image-slice: initial;
	border-image-width: initial;
	border-image-outset: initial;
	border-image-repeat: initial;
}

/* Adjust sharing buttons for mobile*/
@media (max-width : 428px) {
	
	.btn-share{
		padding-right: 0;
	}

	.btn-share span{
		display: none;
	}

	.share-bar-bottom .btn-share span{
		display: inline-block;
	}

	.popup-menu ul{
		left: 100px;
	}

	.col-sm-8{
		padding: 5px;
	}

}


#main{
	padding-top: 30px;
}


/* queries */ 

/* Smartphones (portrait and landscape) ----------- */
@media (max-width : 480px) {
/* Styles */

	.navbar-toggle.text{
		display: none;
	}

}

/* Smartphones (landscape) ----------- */
@media (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media (max-width : 320px) {
/* Styles */

	#main-menu.visible{
		width: 90%;
	}
	
}


@media (max-width : 768px) {

	.related-images h1{
		margin-left: 0;
		text-align: center;
	}
	
	#main{
		padding-top: 30px !important;
		margin-top: 0 !important;
	}

	.col-sm-12{
		padding: 0 !important;
	}

	.col-sm-7{
		padding: 10px !important;
	}

	.main-wrap{
		padding-right: 0;
	}

	.single-post .container > .rowsingle{
		padding-top: 22px;
	}

	.logonew{
		top: 0;
	}

	/* Styles */

	html, body{
		overflow-x: hidden;
		overflow-y: auto;
	}

	#main{
		padding-top: 0;
		margin-top: -30px;
		-webkit-transition: all .1s ease-in;
		   -moz-transition: all .1s ease-in;
			 -o-transition: all .1s ease-in;
				transition: all .1s ease-in;
	}

	#main.menu-open{
		margin-left: 250px;
	}

	.navbar-toggle{
		margin-top: 2px !important;	
	}

	.container{
		padding: 0;
	}

	.navbar-toggle{
		margin-top: 3px !important;
  		left: 0 !important;
  		margin-left: 0px !important;
	}

	div.fixed{
		height: 50px !important;
		-webkit-transition: all .1s ease-in;
		   -moz-transition: all .1s ease-in;
			 -o-transition: all .1s ease-in;
				transition: all .1s ease-in;
	}

	div.fixed.menu-open{
		left: 250px
	}

	.search-icon{
		top: 5px;
	}

	.logonew{
		position: absolute;
		left: 50%;
		width: 74px !important; 
		margin-left: -30px;
		-webkit-transition: none !important;
		   -moz-transition: none !important;
			 -o-transition: none !important;
				transition: none !important;
	}

	.search-icon{
		display: inline-block;
	}

	.caret{
		display: none;
	}

	.row{
		margin: 0 !important;
	}


	#searchformhead{
		display: none;
		position: absolute;
		top: 50px;
		right: 0;
		width: 100% !important;
		height: auto !important;
		padding: 10px;
		margin-top: 0;
		border-bottom: 1px solid #ddd;
		background: #fefefe !important;
	}

	#searchformhead .blog-search{
		background-image: url(../img/searchbar-no-icon.gif);
		margin: 0 auto;
		display: block;
	}

	.header-search-field{
		margin-left: 0;
		width: 210px;
		padding-left: 8px;
	}

	.fixed.smaller #searchformhead{
		top: 50px;
		margin-top: 0;
	}

	#main-menu{
		top: 50px;
	}

	#sec-menu{
		display: none;
	}

	.navbar-toggle.text{
		padding-left: 48px;
		padding-right: 8px;
	}

	.navbar-toggle.text:hover{
		padding-left: 47px;
		padding-right: 8px;
	}

}

/* iPads (landscape) ----------- */
@media (min-width : 768px) 
and (max-width : 1024px) 
and (orientation : landscape) {
/* Styles */
}

@media (min-width : 768px) {

}

/* Desktops and laptops ----------- */
@media (min-width : 1024px) {
/* Styles */
	#main{
		padding-top: 80px;
	}

	.container{
		max-width: 980px;
	}
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

