/*
Theme Name: EADA
Author: kleegro
Description: eada theme
Version: 1.0


EADA Theme
*/


/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highligreht: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}


/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/* ==========================================================================
   Author's custom styles
   		=== 1. Base
   		=== 2. Layout
   		=== 3. Modules
   		=== 4. States
   ========================================================================== */



   /* ======================================================================= 
   	  ==========================|      %Base      |=========================
   	  ======================================================================= */
   	  
/* @group Document */

body {
	background-color: #333366; s
	font-size: 100%;
	line-height: 1.875;
	font-family: Montaga, Georgia, serif;
	color: #FFF;
}

/* @end Document */

/* @group Typography */

h1, h2, h3, h4, h5, h6 {
	color: #FFF;	
}
h1 {
	font-family: 'IM Fell English', serif;
	font-weight: normal;
	font-size: 2.5em;
	line-height: 1.125;
	padding-top: 1em;
	margin-bottom: 0.3em;
	color: #FFFFFF;
	border-bottom: 1px solid #669;
}
h2 {
	font-family: 'IM Fell English', serif;
	font-weight: normal;
	font-size: 1.875em;
	line-height: 1.5;
	margin-bottom: 0.7em;
	border-bottom: 1px solid #669;
}
h3 {
	font-family: 'IM Fell English', serif;
	font-weight: normal;
	font-size: 1.5625em;
	line-height: 1.4;
	margin-bottom: 0.7em;
	border-bottom: 1px solid #669;
}
h4 {
	font-family: 'IM Fell English', serif;
	font-weight: normal;
	font-size: 1.25em;
	line-height: 1.5;
	margin-bottom: 1em;
}
h5 {
	font-family: 'IM Fell English', serif;
	font-weight: normal;
	font-size: 1.125em;
	line-height: 1.6667;
}
h6 {
	padding-top: 1em;
}
b, strong {
	font-weight: bold;
}
i, em {
	font-style: italic;
}
hr {
	border: none;
	height: 1px;
	background: #669;
}
p, ul, ol, hr, table, form, fieldset {
	margin: 1.25em 0;
}
blockquote {
	margin: 1em;
	border-top: 0.1em solid;
	border-bottom: 0.1em solid;
	padding: 0 1em;
	font-family: "IM Fell English", Palatino, Georgia, serif;
	font-style: italic;
	font-size: 1.25em;
	line-height: 1.5;
	letter-spacing: 0.05em;
	color: #FFF;
	border-color: #669;
	border-color: rgba(102,102,153,0.2);
	-webkit-border-radius: 0.25em;
	-moz-border-radius: 0.25em;
	-o-border-radius: 0.25em;
	border-radius: 0.25em;
}
blockquote em {
	font-style: normal;
}
figcaption {
	font-family: Palatino, Cambria, Georgia, serif;
	font-style: italic;
	font-size: 0.857em;
	line-height: 1.4286;
	color: #666;
}
article > p,
article section > p {
	/*font-size: 1.125em;*/
	line-height: 1.6667;
	word-spacing: 0.1em;
	margin: 1.1111em 0;
}
article h2:first-child {
	margin-top: 0;
}
p.metaInfos {
	color: #669;	
	font-family: "Verdana";
	font-size: 0.875em;
	margin: -1.25em 0 0 0;
}
article .introduction {
	font-size: 0.875em;
	color: #CCF;
	margin: 2em 2em 2em 2em;
}
.largetext {font-size: 120%;}
.smalltext {font-size: 80%;}
.centertext {text-align: center;}
/* @end Typography */

/* @group Links */

a {
	text-decoration: none;
	border-bottom-style: dotted;
	border-bottom-width: 1px;
	white-space: pre-wrap;
}
a:link,
a:visited {
	color: #B6B6E9;
	border-bottom-color: #B6B6E9;
}
a[href]:hover,
a[href]:focus {
	color: #C8C8FB;
	border-bottom-color: #C8C8FB;
}
a:active {
	color: #66F;
	border-bottom-color: #66F;
}
.logo a, h1 a, h2 a, h3 a {
	border: none;
}
button a:link, button a:visited {
	color: #FFF;
	border: none;	
}

/* @end Links */

/* @group Forms */

label {
	cursor: pointer;
}
input[type],
textarea,
select {
	background-color: #fff;
	width: 100%;
	font-family: inherit;
	font-size: inherit;
	padding: 0.125em;
	border: 1px solid #ccc;
	-webkit-border-radius: 0.25em;
	-moz-border-radius: 0.25em;
	-o-border-radius: 0.25em;
	border-radius: 0.25em;
}
input[type="checkbox"],
input[type="radio"],
input[type="image"] {
	width: auto;
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: #666;
}
input[required],
textarea[required] {
	border-color: #999;
}


#mainNavigation ul > li a,
button,
input[type="button"],
input[type="submit"] {
	width: auto;
	height: 36px;
	text-align: center;
	font-family: "IM Fell English", serif;
	font-size: inherit;
	font-weight: normal;
	font-style: normal;
	cursor: pointer;
	padding: 0.5em 1em;
	line-height: 1;
	background-color: #369;
	color: #fff;
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#669),to(#336));
	background-image: -moz-linear-gradient(top,#669,#336);
	background-image: -o-linear-gradient(top,#669,#336);
	background-image: linear-gradient(top,#669,#336);
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	-o-border-radius: 1px;
	border-radius: 1px;
	border: none;
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.65);
}

#mainNavigation ul > li a:hover,
#mainNavigation ul > li a:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	outline: none;
	background-color: #669;
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#336),to(#669));
	background-image: -moz-linear-gradient(top,#336,#669);
	background-image: -o-linear-gradient(top,#336,#669);
	background-image: linear-gradient(top,#336,#669);
	color: #fff;
}
#mainNavigation ul > li a:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active {
	background-color: #669;
	background-image: -webkit-gradient(linear,0% 0%,0% 100%,from(#336),to(#669));
	background-image: -moz-linear-gradient(top,#336,#669);
	background-image: -o-linear-gradient(top,#336,#669);
	background-image: linear-gradient(top,#336,#669);
	color: #fff;
}

	/* @group search */
	
	[role="search"] {
		position: relative;
		background-color: #669;
		padding: 0 0.75em;
		-webkit-border-radius: 1px;
		-moz-border-radius:1px;
		-o-border-radius: 1px;
		border-radius: 1px;
		box-shadow: inset 0 0 1px 0 #000;
		margin: 0 0 3.875% 0;
	}
	[role="search"] input {
		color: #FFF;
		background: transparent;
		border: none;
		-webkit-appearance: none;
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		-o-border-radius: 0;
		border-radius: 0;
	}
	[role="search"] input[type="image"] {
		background-color: #transparent;
		position: absolute;
		top: 0.0em;
		right: 0.3em;
		padding: 0.2em 0.2em;
	}
	
	/* @end search */

/* @end Forms */


   /* ======================================================================= 
   	  ==========================|      %Layout       |=======================
   	  ======================================================================= */
   	  
   	  body {
	   	  background: url(/wp-content/themes/eada/img/bg-full.png) no-repeat 0 0 #336;
	   	  background-size: cover;
   	  }
   	  
   	  #wrapper {
	   	  width: 90%;
	   	  margin: 0 auto;
	   	  padding: 0 0 20px 0;
	   	  max-width: 1480px;
   	  }
   	  
   	  #header {
	   	  margin: 0 0 1.25% 0;
   	  }
   	  
   	  #content {
   	  	  float: left;
	   	  width: 77.76%;
	   	  background: rgba(34, 34, 85, 0.85);
	   	  margin: 0 1.25% 1.25% 0;
	   	  padding: 1%;
   	  }
   	  
   	  #sidebar {
   	  	  float: left;
   	  	  width: 18.84%; 
   	  	  margin: 0 0 0 0;  	  	  
   	  }
   	  
   /* ======================================================================= 
   	  ==========================|      %Modules      |=======================
   	  ======================================================================= */
   	  
#header h1 {
	text-shadow: 0px 0px 2px #000;	
	padding: 0 0 5px 0;
}

/* @group Main Navigation */   	  

#mainNavigation {
/*	width: 79.71%*/
}

#mainNavigation ul {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style-type: none;
}
#mainNavigation ul > li a {
	float: left; 
	padding: 1em 0 0 0;
	margin: 0 0 0 1.25%;
	width: 24.0625%;
	}

#mainNavigation ul > li:first-child a {
	margin-left: 0;	
}
#mainNavigation button {
	width: 100%;	
}

/* @end Main Navigation */


/* @group Alpha-Pager */

.alphaPager {
	list-style-type: none;
	text-align: center;
	margin: 0 auto; 
	padding: 0;
}
.alphaPager li {
	display: inline-block;
	background: rgba(40, 40, 91, 0.85);
	height: 40px;
	width: 3%;
}
.alphaPager li a {
	color: #FFF;
	display: block;
	height: 40px;
	
}

/* @end Alpha-Pager */
   	  
/* @group Advanced Links */

.advancedLinks {
	padding: 2.5% 0;
	margin-top: 2.5%;
	border-top: 1px solid #669;	
}

/* @end Advanced Links */

/* group News */

	.news article > h3 {
		font-size: 1.25em;
		border: none;
		margin: 0 0 .2em 0;
	}
	.news article > p  {
		margin: .2em 0 2em 0;
	}
/* @end News */

/* @group Search Results */
	
	.searchResults > header {
		position: relative;
	}
	
	.searchResults .sortLinks {
		position: absolute;
		bottom: 6px;
		right: 0;
	}
	/*.searchResults a {
		border: none;
	}	*/
	.searchResults table {
		width: 80%;
	}

/* @end Search Results */

/* @group Advanced Search */
	.advancedSearch {
		width: 100%;
		margin: 1.25% 0 1.25% 0;
	}

	.advancedSearch label {
		clear: both;
		float: left;
		width: 22%;
		margin: 0 1.25% 1% 0;
		text-align: right;
	}
	.advancedSearch input, .advancedSearch select {
		float: left;
		width: 70%;
		margin: 0 0 1% 0;
	}
	.advancedSearch select {
		width: 70.54%;
	}

/* @end Advanced Search */
   	  
   /* ======================================================================= 
   	  ==========================|      %States       |=======================
   	  ======================================================================= */

   	  #sidebar button {
   	  	  position: relative;
	   	  width: 100%;
	   	  background: rgba(34, 34, 85, 0.85);
   	  }
   	  #sidebar button:hover, #sidebar:active {
	   	  background: rgba(40, 40, 91, 0.85);
   	  }
   	  
   	  .submit-text .eada-icon {
   	  	  position: absolute;
   	  	  bottom: -1px;
   	  	  left: 5px;
	   	  background: url(/wp-content/themes/eada/img/submit-text-icon.png) no-repeat 0 0;
	   	  width: 48px;
	   	  height: 30px;
   	  }
   	  .submit-text {
	   	  text-align: left;
	   	  padding-left: 4em;
   	  }
   	  
   	  
   /* ============================================================================== 
   	  ==========================|      %Media Queries       |=======================
   	  ============================================================================== */   	  

#content .entry-content img{max-width: 33%;}

@media screen and (max-width: 735px) {
	#content {
		margin-right: 0;
		width: 98%;

	}
	
	#sidebar {
		width: 100%;
	}
	#mainNavigation {
		width: 100%;
	}
	#mainNavigation button {
		margin-bottom: 1.25%;
	}
	.searchResults table {
		width: 100%;
	}
	
	#mainNavigation ul > li a {
		width: 49.375%
	}	
	#mainNavigation li:nth-child(3) a {
		margin-left: 0;
	}
	
	[role="search"] {
		margin: 0 0 1.25% 0;
	}
	
	.searchResults .sortLinks {
		position: static;
	}

	#content .entry-content img{max-width: 50%;}

	
}

@media screen and (max-width: 580px) {
	#header h1 {
		text-align: center;
	}
	#mainNavigation button {
	
	}

		#content .entry-content img{max-width: 75%;}

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.floatleft {
	float: left;
}
.floatright {
	float: right;
}

.center {
	text-align: center;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/* Added May 2015 by Stefan Sommer / kleegro.com */

 .numbering-line { color: #8585AD; float: right; } 
/* .numbering-line { color: #8585AD; position: absolute ; left:650px ; font-size: 9pt ; text-align: right }*/


h3.entry-archve {font-size: 1.25em;
		border: none;
		margin: 0 0 ; padding:0;}

	
		.tooltip{
   		display: inline;
    		position: relative;
		}
		
		.tooltip:hover:after{
    		background: #F8ECC2;
    		border-radius: 5px;
    		bottom: 26px;
    		color: #584C46;
    		content: attr(title);
    		left: 20%;
    		padding: 5px 15px;
    		position: absolute;
    		z-index: 98;
    		width: 400px;
		text-align: left;
		font-size: 0.9em;

		}
		
		.tooltip:hover:before{
    		border: solid;
    		border-color: #F8ECC2 transparent; 
    		border-width: 6px 6px 0 6px;
    		bottom: 20px;
    		content: "";
    		left: 50%;
    		position: absolute;
    		z-index: 99;
		}
	#main img, #content img {max-width: 100%; height: auto;}


	.sidebar-search {height: 28px; max-width: 84%;}
	.sidebar-button {float: right; }

figure {margin:0; padding: 0;}
.wp-caption-text {margin-top: 0.5em; color: white;}

a.fancybox-close {
border: none;
}