/*
Project: CoalGrid
Description: Responsive CSS Grid layout
Author: Coal Creative
Version: 1.2
Tags: CoalGrid, RWD
*/

/*GENERAL STYLES*/
.clear {
	clear: both;
}
* {
  -webkit-box-sizing: border-box; 
  -moz-box-sizing: border-box; 
  box-sizing: border-box;
}
*:before, *:after {
  -webkit-box-sizing: border-box; 
  -moz-box-sizing: border-box; 
  box-sizing: border-box;
}
/*BASIC BOX STYLES*/
.box {
	display: block;
	float: left;
	transition: ease-out 300ms;
}
/*PADDING FOR ANY ELEMENT*/
.padding_small {
	padding: 20px;
}
.padding_big {
	padding: 40px;
}
/*CONTENT ALWAYS HAS LEFT AND RIGHT MARGIN*/
.body_horizontal_margin {
	padding: 0px 20px 0px 20px;
	width: 100%;
	display: block;
}
/*FLOATS, ALIGNS AND MARGINS*/
.margin_vertical {
	margin: 10px 0px 10px 0px;
}
.margin_horizontal {
	margin: 0px 10px 0px 10px;
}
.row {
	width: 100%;
}
.fixed_top_left {
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 2;
}
.fixed_bottom_left {
	position: fixed;
	bottom: 0px;
	left: 0px;
	z-index: 2;
}
.fixed_top_right {
	position: fixed;
	top: 0px;
	right: 0px;
	z-index: 2;
}
.fixed_bottom_right {
	position: fixed;
	bottom: 0px;
	right: 0px;
	z-index: 2;
}
.all_text_centered * {
	text-align: center !important;
}
/* MASONRY WITH CSS YAY!! - WARNING! IT BREAKS DOCUMENT FLOW! */
.css_masonry {
	-moz-column-count: 3;
    -moz-column-gap: 0px;
    -webkit-column-count: 3;
    -webkit-column-gap: 0px;
    column-count: 3;
    column-gap: 0px;
}
.css_masonry > .box {
	display: inline-block !important;
	width: 100% !important;
	float: none !important;
}
/*.first_in_line {
	margin-left: 0px;
	float: none;
	overflow: hidden;
	width: auto !important;
}*/

/*LIST MENUS - USUALY IN FOOTER*/
ul.list_menu, ul.list_menu > li > ul {
	display: block;
	margin: 0px;
	padding: 0px;
	list-style: none;
}
ul.list_menu > li {
	display: block;
	margin: 0px;
	padding: 0px;
}
ul.list_menu > li > a {
	display: block;
	margin: 0px;
	padding: 0px;
}
ul.list_menu > li > ul > li {
	display: block;
	padding-left: 10px;
	margin: 0px;
}

/*GRID*/
@media only screen and (min-width: 1024px) {
	.one {
		width: 10%;
	}
	.two {
		width: 20%;
	}
	.three {
		width: 30%;
	}
	.four {
		width: 40%;
	}
	.five {
		width: 50%;
	}
	.six {
		width: 60%;
	}
	.seven {
		width: 70%;
	}
	.eight {
		width: 80%;
	}
	.nine {
		width: 90%;
	}
	.ten {
		width: 100%;
	}
	
	/*WEBSITE SPECIFIC*/
	.one_column {
		width: 30%;
	}
	.one_column_center {
		width: 70%;
	}
	.two_columns {
		width: 20%;
	}
	.two_columns_center {
		width: 60%;
	}
	.three_columns {
		width: 33.3%
	}
	.four_columns {
		width: 25%;
	}
	
	/*LAST DIV ALWAYS FITS*/
	.last_in_line {
		margin-right: 0px;
		float: none;
		overflow: hidden;
		width: auto;
		min-width: 20%;
	}
	.float_left {
		float: left !important;
	}
	.float_right {
		float: right !important;
	}
	.padding_huge {
		padding: 60px;
	}
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.one, .two {
		width: 20%;
	}
	.three {
		width: 30%;
	}
	.four {
		width: 40%
	}
	.five {
		width: 50%;
	}
	.six {
		width: 60%;
	}
	.seven {
		width: 70%;
	}
	.eight, .nine {
		width: 80%;
	}
	.ten {
		width: 100%;
	}
	
	/*WEBSITE SPECIFIC*/
	.one_column {
		width: 30%;
	}
	.one_column_center {
		width: 70%;
	}
	.two_columns {
		width: 20%;
	}
	.two_columns_center {
		width: 60%;
	}
	.three_columns {
		width: 33.3%
	}
	.four_columns {
		width: 25%;
	}
	/*LAST DIV ALWAYS FITS*/
	.last_in_line {
		margin-right: 0px;
		float: none;
		overflow: hidden;
		width: auto;
		min-width: 30%;
	}
	.float_left {
		float: left !important;
	}
	.float_right {
		float: right !important;
	}
	.padding_huge {
		padding: 60px;
	}
}
@media only screen and (min-width: 480px) and (max-width: 768px) {
	.one, .two {
		width: 25%;
	}
	.three, .four, .five {
		width: 50%;
	}
	.six, .seven, .eight, .nine, .ten {
		width: 100%;
	}
	
	/*WEBSITE SPECIFIC*/
	.one_column {
		width: 30%;
	}
	.one_column_center {
		width: 70%;
	}
	.two_columns, .two_columns_center, .three_columns {
		width: 100%;
	}
	.four_columns {
		width: 50%;
	}
	.float_left {
		float: left;
	}
	.float_right {
		float: right;
	}
	.padding_huge {
		padding: 30px;
	}
}
@media only screen and (max-width: 480px) {
	.one, .two {
		width: 50%;
	}
	.three, .four, .five, .six, .seven, .eight, .nine, .ten {
		width: 100%;
	}
	
	/*WEBSITE SPECIFIC*/
	.one_column, .one_column_center, .two_columns, .two_columns_center, .three_columns, .four_columns {
		width: 100%;
	}
	.padding_huge {
		padding: 20px;
	}
}

/*FOR WEBSITES WITH FIXED WIDTH*/
.container, .container_small {
	display: block;
	margin: 0 auto;
}
@media only screen and (min-width: 1920px) {
	.container {
		width: 1600px;
	}
	.container_small {
		width: 1200px;
	}
}
@media only screen and (min-width: 1440px) and (max-width: 1920px) {
	.container {
		width: 1400px;
	}
	.container_small {
		width: 1200px;
	}
}
@media only screen and (min-width: 1200px) and (max-width: 1440px) {
	.container {
		width: 1200px;
	}
	.container_small {
		width: 1000px;
	}
}
@media only screen and (min-width: 1024px) and (max-width: 1200px) {
	.container, .container_small {
		width: 1000px;
	}
}
@media only screen and (min-width: 960px) and (max-width: 1024px) {
	.container, .container_small {
		width: 960px;
	}
	
}
@media only screen and (min-width: 768px) and (max-width: 960px) {
	.container {
		width: 768px;
	}
}
@media only screen and (max-width: 768px) {
	.container, .container_small {
		width: 100%;
	}
}

/*BUTTONS AND INPUTS*/
input {
	border: 1px solid #999;
	padding: 10px;
	background-color: transparent;
	color: #999;
	transition: ease-out 300ms;
	width: 100%;
}
input:focus {
	border: 1px solid #666;
	color: #666;
	box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}
.button, button, input[type='submit'] {
	display: block;
	padding: 10px;
	border: 1px solid #000;
	background-color: #000;
	color: #FFF;
	transition: ease-out 300ms;
	cursor: pointer;
}
.button:hover, button:hover, input:hover[type='submit'] {
	background-color: transparent;
	color: #000;
}

/*MENU*/

ul.nav, ul.nav > li > ul, ul.nav > li > ul > li > ul {
	display: block;
	float: left;
	margin: 0px;
	padding: 0px;
	list-style: none;
}
ul.nav > li, ul.nav > li > ul > li, ul.nav > li > ul > li > ul > li {
	display: block;
	margin: 0px;
	padding: 0px;
	position: relative;
}
ul.nav > li > ul, ul.nav > li > ul > li > ul {
	position: absolute;
	bottom: 0px;
	left: -1500px;
	transition: ease-out 300ms;
	opacity: 0;
	width: 0px;
	height: 0px;
}
ul.nav > li:hover > ul, ul.nav > li > ul > li:hover > ul {
	position: absolute;
	bottom: 0px;
	left: 0px;
	opacity: 1;
	width: auto;
	height: auto;
}

/*MENU HORZIONTAL VISIBLE*/
ul.nav.visible > li, ul.nav.hidden.show_menu > li {
	display: block;
	visibility: visible;
	opacity: 1;
	transform: scale(1,1);
	transition: ease-out 300ms;
	height: auto;
	overflow: hidden;
	left: 0px;
	position: relative;
}
.navi_burger {
	width: 100%;
	text-align: center;
	overflow: hidden;
	display: block;
	cursor: pointer;
	padding: 10px;
	border: 2px solid #000;
	cursor: pointer;
	text-transform: uppercase;
	z-index: 2;
	background-color: #FFF;
	position: relative;
}
@media only screen and (min-width: 768px) {
	ul.nav.visible.horizontal_menu > li {
		float: left;
	}
	.navi_burger {
		display: none;
	}
}
@media only screen and (max-width: 768px) {
	ul.nav.visible.horizontal_menu > li {
		float: none;
		width: 100%;
		position: absolute;
		top: -500px;
		left: 0px;
		opacity: 0;
		z-index: 1;
		background-color: #FFF;
		transition: all 300ms;
	}
	ul.nav.visible.horizontal_menu {
		width: 90%;
		margin: 0 auto;
		float: none;
		background-color: #FFF;
		position: relative;
		overflow: hidden;
	}
	ul.nav.visible.horizontal_menu.clicked > li {
		position: relative;
		top: 0px;
		transition: all 300ms;
		z-index: 1;
		opacity: 1;
	}
	ul.nav.visible.horizontal_menu.clicked > li > a {
		width: 100%;
	}
	.navi_burger i {
		font-size: 22px;
	}
	.navi_burger:before {
		content: 'menu';
		text-trasform: uppercase;
		color: #000;
		padding-right: 5px;
		font-size: 16px;
		font-weight: bold;
		line-height: 16px;
	}
}

/*MENU HORIZONTAL HIDDEN*/
ul.nav.hidden > li {
	display: block;
	visibility: hidden;
	opacity: 0;
	transform: scale(0,0);
	transition: ease-out 300ms;
	height: 0px;
	overflow: hidden;
	left: 0px;
	position: absolute;
}
ul.nav.hidden:before {
	content: '\f0c9';
	font-family: 'FontAwesome';
	cursor: pointer;
	font-size: 18px;
	padding: 10px 12px 10px 12px;
	display: block;
	float: left;
}
ul.nav.hidden.fixed_bottom_right:before, ul.nav.hidden.fixed_top_right:before {
	float: right;
}
ul.nav.hidden.horizontal_menu > li {
	float: left;
}
ul.nav.hidden.horizontal_menu > li > a {
	display: block;
	padding: 0px 0px 0px 10px;
	background-color: #DDD;
}
ul.nav.hidden.horizontal_menu > li > a:hover {
	background-color: #000;
	color: #FFF;
}
/*OVERLAY*/
.overlay {
	display: block;
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 9998;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 162, 134, 0.9);
	opacity: 1;
	scale: (1,1);
	transition: ease-out 300ms;
}
ul.nav.overlay_menu.overlay li {
	margin: 0 auto;
	width: 80%;
}
ul.nav.overlay_menu.overlay li:first-child {
	margin-top: 80px;
}
ul.nav.overlay_menu.overlay a {
	font-weight: 600;
	display: block;
	text-align: center;
	color: #FFF;
	font-size: 28px;
	line-height: 32px;
}
