/*
Theme Name: 	Teleindustrien
Theme URI: 		http://www.teleindu.dk
Description: 	Custom Wordpress theme for Teleindustrien by Liebling.
Version: 		1.0
Author: 		Frederik Christensen (Liebling)
Author URI: 	http://liebling.dk
*/

/* Reset */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0b1 | 201101 
   NOTE: WORK IN PROGRESS
   USE WITH CAUTION AND TEST WITH ABANDON */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define visible focus styles! 
:focus {
	outline: ?????;
} */

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* Base */

/*
	Variable Grid System (Fluid Version).
	Learn more ~ http://www.spry-soft.com/grids/
	Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/

	Licensed under GPL and MIT.
*/


/* Containers
----------------------------------------------------------------------------------------------------*/
.container_8 {
	width: 92%;
	max-width:960px;
	margin:0 auto;
}

/* Grid >> Global
----------------------------------------------------------------------------------------------------*/

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8 {
	display:inline;
	float: left;
	position: relative;
	margin-left: 1%;
	margin-right: 1%;
}

/* Grid >> Children (Alpha ~ First, Omega ~ Last)
----------------------------------------------------------------------------------------------------*/

.alpha {
	margin-left: 0;
}

.omega {
	margin-right: 0;
}

/* Grid >> 8 Columns
----------------------------------------------------------------------------------------------------*/


.container_8 .grid_1 {
	width:10.5%;
}

.container_8 .grid_2 {
	width:23.0%;
}

.container_8 .grid_3 {
	width:35.5%;
}

.container_8 .grid_4 {
	width:48.0%;
}

.container_8 .grid_5 {
	width:60.5%;
}

.container_8 .grid_6 {
	width:73.0%;
}

.container_8 .grid_7 {
	width:85.5%;
}

.container_8 .grid_8 {
	width:98.0%;
}



/* Prefix Extra Space >> 8 Columns
----------------------------------------------------------------------------------------------------*/


.container_8 .prefix_1 {
	padding-left:12.5%;
}

.container_8 .prefix_2 {
	padding-left:25.0%;
}

.container_8 .prefix_3 {
	padding-left:37.5%;
}

.container_8 .prefix_4 {
	padding-left:50.0%;
}

.container_8 .prefix_5 {
	padding-left:62.5%;
}

.container_8 .prefix_6 {
	padding-left:75.0%;
}

.container_8 .prefix_7 {
	padding-left:87.5%;
}



/* Suffix Extra Space >> 8 Columns
----------------------------------------------------------------------------------------------------*/


.container_8 .suffix_1 {
	padding-right:12.5%;
}

.container_8 .suffix_2 {
	padding-right:25.0%;
}

.container_8 .suffix_3 {
	padding-right:37.5%;
}

.container_8 .suffix_4 {
	padding-right:50.0%;
}

.container_8 .suffix_5 {
	padding-right:62.5%;
}

.container_8 .suffix_6 {
	padding-right:75.0%;
}

.container_8 .suffix_7 {
	padding-right:87.5%;
}



/* Push Space >> 8 Columns
----------------------------------------------------------------------------------------------------*/


.container_8 .push_1 {
	left:12.5%;
}

.container_8 .push_2 {
	left:25.0%;
}

.container_8 .push_3 {
	left:37.5%;
}

.container_8 .push_4 {
	left:50.0%;
}

.container_8 .push_5 {
	left:62.5%;
}

.container_8 .push_6 {
	left:75.0%;
}

.container_8 .push_7 {
	left:87.5%;
}



/* Pull Space >> 8 Columns
----------------------------------------------------------------------------------------------------*/


.container_8 .pull_1 {
	left:-12.5%;
}

.container_8 .pull_2 {
	left:-25.0%;
}

.container_8 .pull_3 {
	left:-37.5%;
}

.container_8 .pull_4 {
	left:-50.0%;
}

.container_8 .pull_5 {
	left:-62.5%;
}

.container_8 .pull_6 {
	left:-75.0%;
}

.container_8 .pull_7 {
	left:-87.5%;
}




/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/

/* http://sonspring.com/journal/clearing-floats */

.clear {
	clear: both;
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}

/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */

.clearfix:after {
	clear: both;
	content: ' ';
	display: block;
	font-size: 0;
	line-height: 0;
	visibility: hidden;
	width: 0;
	height: 0;
}

.clearfix {
	display: inline-block;
}

* html .clearfix {
	height: 1%;
}

.clearfix {
	display: block;
}

/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */

 
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 

/* FlexSlider Necessary Styles
*********************************/ 
.flexslider {margin: 0; padding: 0; height:400px; display:none;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden; max-height:400px; overflow:hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; height:auto; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}


/* FlexSlider Default Theme
*********************************/
.flexslider {margin: 0 0 40px; max-width:590px; max-height:400px; relative; float:left; zoom: 1;}
.flexslider:hover {cursor: pointer;}
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}

.carousel li {margin-right: 5px}


/* Direction Nav */
.flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(../images/bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
.flex-direction-nav .flex-next {background-position: 100% 0; right: -36px; }
.flex-direction-nav .flex-prev {left: -36px;}
.flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
.flexslider:hover .flex-prev {opacity: 0.8; left: 5px;}
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
.flex-direction-nav .disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}

/* Control Nav */
.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
.flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; box-shadow: inset 0 0 3px rgba(0,0,0,0.3);}
.flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); }
.flex-control-paging li a.flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; }

.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .active {opacity: 1; cursor: default;}

@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
}

/* General */

body{
	font-family:Verdana, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size:0.750em;
	color:#666;
	background:#f7f7f7;
	margin:0 0 3.438em 0;
	}

p {
	line-height: 1.4;
	word-wrap: break-word;
	margin-bottom:1.5em;
}

strong {
	font-weight:bold;
}

a, a:visited, a:active {
	color:#666;
	text-decoration:none;
}

a:hover {
	color:#000;
}

img {
	max-width: 100%;
	height: auto;
} 

#topHeader {
	background: transparent url(img/map.png) top center no-repeat;
	padding:3.438em 0;
}

#logo {
	width:204px;
	height:246px;
	display:block;
	margin-left:20px;
	margin-bottom:3em;
}

#search input {
position: relative;
left: -30px;
top:200px;
min-width: 90%;
margin: 0;
padding: 15px;
border: 1px solid #999;
font-size: 13px;
font-weight: bold;
color:#42d767;
text-transform: uppercase;
font-family: verdana;
margin-bottom:3em;
}


#topNav {
	background:#f7f7f7;
	font-weight:bold;
	text-transform:uppercase;
	margin-bottom:1.250em;
	border-top:1px solid #cacaca;
	border-bottom:1px solid #cacaca;
	display:block;
}

.headerLeft {
	float:left;
}

.headerRight {
	float: right;
	width:23%;
}

p.titleCaption {
	background: #666;
	color:#fff;
	font-weight:bold;
	padding: 0.5em;
	position: absolute;
	bottom: -18px;
}

/* 
	LEVEL ONE
*/
ul.dropdown                         { position: relative; z-index: 9999; -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.035); box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.035);}
ul.dropdown li                      { float: left; zoom: 1; }
ul.dropdown a:hover		            { color: #42d767; }
ul.dropdown li a                    { display: block; padding: 15px; border-right: 1px solid #a4a4a4; }
ul.dropdown li.hover,
ul.dropdown li:hover                { background: transparent url(img/dropdown_bg.png); color: #42d767; position: relative; }
ul.dropdown li.hover a              { color: black; }


/* 
	LEVEL TWO
*/
ul.dropdown ul 						{ width: 15.786em; visibility: hidden; position: absolute; top: 100%; left: 0; }
ul.dropdown ul li 					{ background: transparent url(img/dropdown_bg.png); color: #000; 
									  border-bottom: 1px solid #ccc; float: none; }
									  
                                    /* IE 6 & 7 Needs Inline Block */
ul.dropdown ul li a					{ border-right: none; width: 100%; display: inline-block; } 

/* 
	LEVEL THREE
*/
ul.dropdown ul ul 					{ left: 100%; top: 0; }
ul.dropdown li:hover > ul 			{ visibility: visible; }


#indexGrid {
	position:relative;
	padding-bottom:15.714em;
}

#indexGrid article {
	height: 581px;
}

.gridPost {
	background:transparent url(img/postShadow.png) bottom center no-repeat;
	background-size:auto cover;
	padding-bottom:2.929em;
}

.gridPost:hover p {
	color:#000;
}

img.attachment-thumbnail {
	width:100%;
	height:auto;
	border-bottom: 2px solid #42d767;
	margin-bottom: 0.357em;
}

.postMeta {
	background:transparent url(img/metaDivider.png) bottom left no-repeat;
	font-family: Courier;
	font-size:1.167em;
	line-height:1.3;
	color: #999;
	padding-bottom:1.563em;
	margin-bottom:1.250em;
}

.excerpt {
	margin-bottom:0.625em;
}

.readMore {
	color: #42d767;
}

h2, h3 {
	font-size: 1.5em;
	text-transform:uppercase;
	color: #42d767;
	font-weight:bold;
	margin-bottom:0.833em;
}

h2 span {
	color: #666;
	line-height:1.5;
	text-transform: none;
}

h4 {
	font-weight:bold;
	text-transform:uppercase;
	margin-bottom:0.625em;
}

footer ul, footer li {
	margin:0;
	padding:0;
	list-style-type: none;
}

footer li {
	margin-right:1.875em;
}

footer li.cat-item, footer ul#archive li {
	border-top:1px solid #42d767;
	padding:0.313em 0 0.625em 0;
}

#twitter_update_list {
line-height: 1.4;
}

div#dividerBottom {
	border-top:1px solid #999;
	margin-bottom:2.813em;
	padding-bottom:1px;
	-webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.035); box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.035);
}

ul.contact {
	padding-top:1.250em;
}

ul.contact li {
	margin-bottom:0.625em;
}

#pagination {
	display:block;
	margin-bottom:1.5em;
	padding:2.143em 0;
}

a[rel=prev], a[rel=next] {
text-indent: -9999px;
display: block;
background: transparent url(img/next.png) top left no-repeat;
height: 25px;
width: 88px;
float:right;
}

a[rel=next] {
	background: transparent url(img/prev.png) top left no-repeat;
	float:left;
}

a:hover[rel=prev]{
	background: transparent url(img/next_hover.png) top left no-repeat;;
}

a:hover[rel=next]{
	background: transparent url(img/prev_hover.png) top left no-repeat;;
}

/* POSTS */

.sidebar {
	background: transparent url(img/sidebarDots.png) bottom left repeat-x;
	color:#999;
	padding-top:2em;
	margin-bottom: 5.714em;
}

.sidebar time {
	color:#ccc;
	font-family:Courier;
	font-size:1.333em;
}

.sidebar h4 {
	margin-top:0.625em;
}

.sidebarPosts {
	background: transparent url(img/metaDivider.png) top left no-repeat;
	padding-top:10px;
	margin-bottom: 2.857em;
}

.sidebar h2 span {
	color: #ccc;
	font-weight:normal;
	text-transform:none;
}

.single h3 {
	font-size:2.000em;
	margin-bottom:1em;
}

.single h3 span {
	color: #666;
	text-transform:none;
	line-height: 1.083;
}

.postContent {
	font-size:1.167em;
padding-top:2em;
margin-bottom: 4em;
padding-right: 2.143em

}

.postContent p a {
	text-decoration:underline !important;
}

#socialBar {
	border-top: 1px solid #42d767;
	padding:1.5em 0;
}

.fb-like, .tweet {
	float:left;
	margin-right:1em;
}

.postCount {
	font-family:Courier, sans-serif;
	font-size:1.714em;
	line-height:1.5;
	color:#c2c2c2;
}

.searchResults {
	padding-top: 2em;
	padding-right: 2.143em;
margin-bottom: 4em;
}

li.searchResult {
	padding-top:1.071em;
	margin-bottom:2.5em;
	background:transparent url('img/searchDivider.png') top left no-repeat;
}

li.searchResult a:hover {
	color:#42d767;
}

.page-numbers {
font-weight: bold;
text-transform: uppercase;
line-height: 1.5em;
}

.page-numbers.current {
text-decoration: underline;
}

.pagination {
	text-align:center;
	padding:1.5em 0;
}

.wp-caption-text {
	font-family: courier, sans-serif;
	margin-top:1em;
	text-align:right;
	margin-right: 0.5em;
}
/* Less than 720 */

@media only screen and (max-width: 835px) {
	
	body {
		margin:0;
	}
	
	.container_8 {
		overflow:hidden;
	}
	
	.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .headerRight  {
		width:100% !important;
		margin:0;
	}
	
	.sidebar {
		display:none;
	}
	
	footer li {
		margin-right:0;
	}
	
	footer section.grid_2 {
		margin-bottom:2em;
	}
	
	.flexslider {
		display: none;
	}
	
	#topHeader {
		background:none;
		padding:5% 0 1em 0;
	}
	
	#logo {
		
		margin-bottom: 2em;
	}
	
	form {
		margin-bottom: 1.5em;
	}
	
	#topNav {
		border-bottom:none;
	}
	
	#search input {
		max-width:92%;
		left:0;
	}
	
	.postContent {
		padding-top:0;
		padding-right: 0;
		margin-bottom:0;
	}
	
	#indexGrid {
		padding-bottom:0;
	}
	
	.gridPost {
		padding-bottom:4.286em;
		background:none;
	}
	
	.searchResults {
	padding-right: 0;
}
	
	ul.dropdown li {
		float:none;
		border-bottom:1px solid #cacaca;
	}
	
	ul.dropdown li a {
		padding:15px 0;
		border:none;
	}
	
	ul.dropdown ul {
		width:100%;
	}
	
	ul.dropdown li:hover a {
		border-bottom:1px solid #cacaca;
	}
	
	ul.dropdown li:hover a, ul.dropdown ul li a {
		padding-left:7.5%;
	}

}

footer .grid_2 .contact:last-of-type,footer .grid_2 .contact:first-of-type {display: none;}
