/*
Theme Name: EHAL
Author: Rumos
Version: 1.44
*/


/* Base */

html {
	position: relative;
	min-height: 100%;
}

ul, 
ol {
	padding-left: 20px;
}

p {
	margin-bottom: 16px; /* child theme overrides 1em -> 16px */
}

ul,
ol,
table {
	margin-bottom: 1em;
}

img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

iframe,
video {
	max-width: 100%;
}

a, 
a:visited {
	color: #00afee; /* child overrides #888 */
}

a:hover,
a:active,
a:focus {
	color: #0083af; /* child overrides #222 */
	text-decoration: none;
}

.entry a, 
.entry a:visited {
	border-bottom: 1px solid; /* child addition */
}

h1, 
.h1 {
	margin-top: 0;
	font-size: 32px; /* child overrides */
	line-height: 1.2; /* child overrides */
	font-weight: 500; /* child overrides */
	color: #000; /* child overrides */
}

h2, .h2 {
	font-size: 24px;
	margin: 20px 0 16px;
	font-weight: 500;
	color: #000;
}

h3, .h3 {
	font-size: 18px;
	line-height: 1.4;
	margin: 20px 0 16px;
	font-weight: 500;
	color: #000;
}

h4, .h4 {
	font-size: 15px;
	text-transform: uppercase;
	margin: 25px 0 16px;
	font-weight: 500;
	color: #000;
}

h5, .h5 {
	font-size: 13.1px; 
	text-transform: uppercase;
	margin: 25px 0 16px;
	font-weight: 500;
	color: #000;
}

h6, .h6 {
	font-size: 13.1px;
	color: #999;
	text-transform: uppercase;
	margin: 25px 0 16px;
	font-weight: 500;
}

b, strong {
    font-weight: 500;
}

.entry strong,
.entry b {
	color: #000;
}

.clearfix {
	clear: both;
}

/* Bootstrap overwrites and general styles */

.page-header {
	margin-top: 23px;
}

.lead {
	font-size: 19px;
}

.text-muted {
	color: #888;
}

.media-left img {
	max-width: 150px;
}

.media-left {
	padding-right: 20px;
}

.media-left,
.media-body {
	display: table-cell;
	vertical-align: top;
}

.btn {
	transition: all .2s;
	border-radius: 3px; /* child addition */
	font-size: 16px; /* child addition */
	font-weight: normal; /* child addition */
	white-space: wrap; /* child addition */
	padding: 8px 25px 7px; /* child addition */
	text-decoration: none; /* child addition */
}

.btn:active {
	box-shadow: none;
}

.entry .btn {
	margin: .5em 0 1em;
}

.entry .btn-block {
	margin: 1em 0;
}

.btn:visited {
	color: #fff;
}

.btn-link,
.btn-link:visited {
	color: #888;
}

.btn-default,
.btn-default:visited {
	color: #454545; /* child overrides #333 */
	border-color: #ccc; /* child addition */
}

.btn-default:hover,
.btn-default:active,
.btn-default:focus,
.btn-default:active:focus {
	background: #fafafa;
	border-color: #aaa;
	color: #333;
}

.btn-unstyled {
	border: 0;
	background: transparent;
	padding: 0;
	line-height: 1;
}

.btn-primary,
.btn-primary:visited, 
.wpcf7 input[type=submit],
.wpcf7 input[type=submit]:visited {
	background: #ffd259;
	color: #000;
	border: 0 none;
	text-transform: none;
	font-weight: normal;
	width: auto;
}

.wpcf7 input[type=submit],
.wpcf7 input[type=submit]:visited {
	padding: 7px 25px 6px;
	border: 1px solid #efc24b;
}

.btn-primary:hover,
.wpcf7 input[type=submit]:hover,
.btn-primary:active,
.wpcf7 input[type=submit]:active,
.btn-primary:focus,
.wpcf7 input[type=submit]:focus,
.wpcf7 input[type=submit]:active:focus,
.btn-primary:active:focus {
	background: #ffd259;
	box-shadow: 0 0 15px 0 rgba(0,0,0,0.25) inset;
	color: #000;
}

.wpcf7 input[type=submit]:hover,
.wpcf7 input[type=submit]:active,
.wpcf7 input[type=submit]:focus {
	box-shadow: 0 0 15px 0 rgba(0,0,0,0.1) inset;
}

.btn-info,
.btn-info:visited {
	color: #0f8ace;
	background: #fbfdfe;
	border-color: #0f8ace;
}

.btn-info:hover,
.btn-info:active,
.btn-info:focus,
.btn-info:active:focus {
	background: #fbfdfe;
	color: #28a1c6;
	border-color: #28a1c6;
}

.btn-success,
.btn-success:visited {
	background: #4cae4c;
    border-color: #3c8c3c;
}

.btn-success:hover,
.btn-success:active,
.btn-success:focus,
.btn-success:active:focus {
	background: #4cae4c;
    border-color: #3c8c3c;
	box-shadow: 0 0 15px 0 rgba(0,0,0,0.25) inset;
}

.btn-warning,
.btn-warning:visited {
	color: #eea236;
	background: #fefdfa;
	border-color: #eea236;
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning:focus,
.btn-warning:active:focus {
	background: #fefdfa;
	color: #de8a13;
	border-color: #de8a13;
}

.btn-danger,
.btn-danger:visited {
	color: #d43f3a;
	background: #fefbfb;
	border-color: #d43f3a;
}

.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus,
.btn-danger:active:focus {
	background: #fefbfb;
	color: #b42c27;
	border-color: #b42c27;
}

.btn-link:hover, 
.btn-link:focus {
	color: #444;
}

.btn-sm {
	font-size: 14px;
	padding: 4px 14px;
}

.btn-xs {
	font-size: 13px;
	padding: 2px 10px;
}

.btn-lg {
    padding: 11.5px 22px;
	font-size: 18px;
}

.btn-caps {
	text-transform: uppercase;
}

/* General styles */
.subpages .current_page_item > a, .subpages .current_page_item > a:visited {
    font-weight: 600;
    color: #111;
}
.container {
	max-width: 450px;
}

.link-scroll {
	display: inline-block;
}

#wp-admin-bar-my-account img {
	max-height: none;
}

.entry hr {
	clear: both;
}

.margin-fixer + h1,
.margin-fixer + h2,
.margin-fixer + h3 {
	margin-top: 0;
	display: block;
}

p + .margin-fixer {
	margin-top: -0.9em;	
}

.entry label {
    text-transform: none;
    font-weight: normal;
    color: #000;
}

/* General styles - forms */ 

.wpcf7-form {
	text-align: left;
	border-radius: 3px; /* child overrides no radius */
	border: 1px solid #e0e0e0; /* child overrides 2px solid #dbdbdb */
	padding: 16px 20px 20px 20px; /* parent padding */
	background: #fafafa; /* child addition */
}

div.wpcf7 {
    margin: 35px 0;
}

.entry input,
.sections-wrap input,
.entry textarea,
.sections-wrap textarea,
.form-control {
	background: #fff; /* child overrides #fafafa */
	width: 100%;
	border-radius: 2px; /* child addition */
	border: 1px solid #bbb; /* child overrides #dbdbdb */
	box-shadow: none;
	height: 35px;
	padding: 6px 10px;
}

textarea,
.entry textarea, 
.sections-wrap textarea {
	max-width: 100%;
	height: auto;
}

.entry input:focus, 
.sections-wrap input:focus, 
.entry textarea:focus,
.sections-wrap textarea:focus,
.form-control:focus {
	border-color: #bbb; /* child overrides #65769A */
	box-shadow: none; /* child overrides inset shadow */
	outline: 0;
}

input[type=radio], 
input[type=checkbox] {
	height: auto;
    width: auto;
    margin-right: 7px;
}

/* WordPress classes */

#wpadminbar {
	position: fixed!important;
}

.alignleft {
	float: left; 
	margin: 0 20px 20px 0;
}

.alignright {
	float: right; 
	margin: 0 0 20px 20px;
}

.aligncenter {
	margin: 0 auto;
	display: block;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-style: italic;
	margin: 5px 0 20px;
}

/* Header */

.header-default {
	background-color: #153e44; /* child overrides white #fff */
	background-image: url('img/esjn-page-cover.jpg'); /* child addition */
	background-position: center top;
	background-size: cover;
	border-bottom: 0 none;
	text-align: center;
}

.navbar {
	margin-bottom: 0;
	background: #fff; /* from parent, but overridden by .header-default background-color */
	text-align: left;
	border-bottom: 0 none;
}

.header-container {
	padding: 10px 20px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.brand img {
	max-width: 100%;
	max-height: 100%;
	vertical-align: baseline;
}

.brand, 
.brand:visited {
	width: 130px;
	height: auto;
	line-height: 1;
}

.navbar-menu {
	float: right;
	display: none;
}

.navbar-menu ul {
	margin: 0;
	padding: 0;
}

.navbar-menu li {
	line-height: normal;
	display: inline-block;
}

.navbar-menu a, 
.navbar-menu a:visited {
	color: #222;
	line-height: normal;
	transition: .3s all;
	margin-left: 15px;
}

.navbar-menu a:hover,
.navbar-menu a:active {
	color: #000;
}

.navbar-menu .current-menu-item a, 
.navbar-menu .current-menu-item a:visited,
.navbar-menu .current-page-ancestor a,
.navbar-menu .current-page-ancestor a:visited {
	color: #222;
	font-weight: 700;
} 

.header-transparent .navbar {
	background: transparent;
	border-bottom: 0 none;
}

.open-menu {
	background: none;
	border: 0;
	height: 40px;
	width: 37px;
	padding: 0 6px;
	line-height: 1px;
	display: block;
}

.close-icon-line {
	height: 2px;
	background: #363636dd;
	width: 100%;
	display: inline-block;
	position: relative;
    top: -2px;
}

.close-menu:focus {
	outline: 0 none;
}

.close-icon-line:before {
    display: inline-block;
    height: 2px;
    width: 100%;
    background: #363636;
    content: '';
    position: absolute;
    left: 0;
	transform: rotate(-90deg);
}

.close-icon-line1 {
	transform: rotate(45deg);
}

.close-menu {
	position: absolute;
	background: none;
	border: 0;
	right: 9px;
	top: 5px;
	height: 40px;
	width: 37px;
	padding: 0 6px;
	line-height: 1px;
	display: block;
}

.menu-icon-line {
	height: 2px;
    width: 100%;
    background: #363636;
	margin: 2.5px 0;
    display: inline-block;
	border-radius: 1px;
}

.header-content {
	padding-top: 40px;
	padding-bottom: 40px;
	color: white;
}

.header-content h1 {
	color: white;
}

.content-default {
	padding: 20px 0;
}

.blur-body {
	display: none;
	position: fixed;
	background: rgba(0,0,0,0.3);
	width: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 997;
}

/* Mobile Sidebar */

.sidebar-menu-wrap {
	background: #fff;
	width: 250px;
	position: fixed;
	top: 0;
	bottom: 0;
	right: -100%;
	overflow-y: auto;
	z-index: 999999999999999999;
	display: none;
}


.logged-in .sidebar-menu-wrap {
    top: 46px;
}
.sidebar-menu {
	margin: 48px auto 20px;
	list-style: none;
	padding: 0 35px;
}

.sidebar-menu ul {
	list-style-type: none;
	padding-left: 0;
}

.sidebar-menu li {
	padding-left: 0;
	border-bottom: 1px solid #ddd;
}

.sidebar-menu a, 
.sidebar-menu a:visited {
	color: #222;
	padding: 15px 0;
	display: block;
}

.sidebar-menu a:hover {
	color: #00afee;
}

/* Footer */

.site-footer {
  position: absolute;
  color: #888;
  bottom: 0;
  width: 100%;
  height: auto;
  text-align: center;
  padding-top: 14px;
  padding-bottom: 0px;
  border-top: 1px solid #e0e0e0;
  background: #f5f5f5;
  font-size: 15px;
}

/* TEMPLATES */

/* Page */

.header-lead {
	color: #fff;
	font-size: 16px;
	margin: 10px 0 0;
	opacity: 0.9;
}

/* Blog */

.single-post-meta p {
	margin-bottom: 0;
}

/* CUSTOM TEMPLATES */

/* Submenu page */

.main-submenu-wrap {
	border-radius: 3px;
}

.main-submenu-wrap {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	padding: 11px 16px 0;
	margin-bottom: 20px;
}

.subpages a,
.subpages a:visited {
	color: #555;
}

/* ESJN Home */

.cover {
	background: #0a3843;
	box-shadow: 0 -1px 0px 0 rgba(0,0,0,0.05) inset;
	background-size: cover;
	background-position: center center;
	min-height: 300px;
	position: relative;
	color: #fff;
}

.esjn-home .cover {
	background-image: url('img/esjn-cover.jpg');
	background-position: left bottom;
}

.cover-inner {
	padding: 40px 0;
}

.cover h1 {
	color: inherit;
}

.cover-heading {
	margin: 0;
}

.cover-subtitle {
    margin: 15px 0 0;
}

.cover-subtitle br {
	display: none;
}

.btn-cover {
	margin: 25px 0 0;
	display: inline-block;
}

.section-landing {
	padding: 25px 0;
	border-bottom: 1px solid #eee;
	line-height: 1.5;
}

.esjn-home .section-landing {
	text-align: center;
}

.content section:last-of-type {
	border-bottom: 0 none;
}

.section-even {
	background: #f9f9f9;
}

.section-news ul {
	text-align: left;
	max-width: 735px;
	margin: 0 auto 10px;
}

.home-about li {
	display: inline-block;
	margin: 0 8px;
}

.section-landing .container {
	max-width: 820px;
}

.section-landing a,
.section-landing a:visited {
	color: #333;
	border-bottom: 1px solid #999;
	transition: .25s all;
}

.section-landing a:hover,
.section-landing a:active,
.section-landing a:focus {
	color: #00afee;
	border-color: #00afee;
}

/* Partners */

.partner-logos {
	text-align: center;
	font-size: 0;
}

.home-partners .container {
	max-width: 1000px;
}

a.partner-link,
a.partner-link:visited {
	display: inline-block;
	width: 19.9%;
	padding: 3%;
	vertical-align: middle;
	border: 0 none;
}

.home-partners img {
	width: auto;
	height: auto;
	max-height: 75px;
	opacity: 1;
	transition: .2s transform;
}

.home-partners img:hover {
	transform: scale(1.2); 
}

/* Events */

.list-events span {
	color: #1c8f9e;
}

.list-events a,
.list-events a:visited {
	margin-right: 5px; 
}

/* Single event */

.open-members-gallery {
	text-align: center;
	background: #153e44;
	border: 1px solid #eee;
	border-radius: 3px;
	padding: 30px;
	color: #fff;
}

.open-members-gallery h3 {
	color: #fff;
	margin-top: 0;
	margin-bottom: 10px;
}

.open-members-gallery .field-wrap {
	max-width: 400px;
	margin: 15px auto 19px;
	color: #000;
}

.open-members-gallery .btn {
	margin: 0 auto 3px;
}

.esjn-gallery {
	margin-right: -3%;
	width: 103%;
}

.esjn-gallery a,
.esjn-gallery a:visited {
	border-bottom: 0 none;
	float: left;
	width: 17%;
	margin-right: 3%;
	margin-bottom: 3%;
	transition: .4s opacity;
	display: inline-block;
}

.esjn-gallery a:hover {
	opacity: 0.8;
}

.g-pw-error {
	color: #ff3434;
	margin-top: 5px;
}

.event-galleries-wrap {
	margin-top: 30px;
	margin-bottom: 30px;
}

.close-gallery .fa {
	margin-left: 3px;
}

/* Members */

.page-template-members h2 {
	padding-top: 30px;
	margin-top: 0;
}

.maakonnad {
	position: fixed;
	top: 40px;
	width: 260px;
	display: none;
	transition: .5s display;
}

.maakonnad li {
	text-align: right;
}

/* CUSTOM STYLES BY PAGE ID */

/* Contact */
.contact-list h3 {
    margin-top: 40px;
}

.esjn-contact h4 {
    margin: 32px 0 1px;
    text-transform: none;
    font-size: 16px;
}

.esjn-contact hr + h4 {
    margin-top: 26px;
}

.esjn-contact .wpcf7 {
	margin-bottom: 30px;
    margin-top: 3px;
}

/* Devices >= 768px */
@media (min-width: 768px) { 

	.single-level-submenu .subpages li {
        display: block;
        margin: 10px 10px 6px 0;
        padding: 0;
		font-size: 15px;
    }

	.single-level-submenu .btn-show-subpages {
        display: none;
    }

	.content-default {
		padding: 45px 0;
	}

	.open-menu {
		display: none;
	}
	
	.navbar-menu {
		display: block;
	}
	
	.container {
		max-width: none;
	}
	
	.container-narrow {
		max-width: 700px;
	}

	/* Header */
	
	.header-container {
		padding: 20px;
		width: 100%
	}
	
	.navbar {

	}
	
	.brand, 
	.brand:visited {
		width: 180px;
	}
	
	.header-content {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.header-content h1 {
		margin: 0;
		color: #fff;
	}

	
	h1 {
		font-size: 48px;
	}
	
	/* Page */

	.header-lead {
		font-size: 17px;
	}
	
	/* ESJN Home */
	
	.esjn-home .cover {
		background-position: center center;
	}
	
	.esjn-home h1 {
		font-size: 35px;
	}
	
	.cover-inner {
		padding: 100px 0;
	}
	
	.section-landing {
		padding: 80px 0;
	}
	
	.cover-subtitle br {
		display: block;
	}
		
	.section-landing h2 {
		font-size: 30px;
		margin-bottom: 20px;
	}
}

/* Devices >= 992px */
@media (min-width: 992px) {  

	.wpcf7-form {
        padding: 26px 30px 30px;
    }

	.main-submenu-wrap {
        padding: 15px 20px 15px;
        margin: 0 0 30px;
    }

	.container {
        width: 900px;
    }

	.content-default {
		padding: 50px 0;
	}

	/* Header */
	.header-container {
		max-width: 980px;
	}
	
	.navbar {
	}
	
	.brand, 
	.brand:visited {
		width: 220px;
	}
	
	.navbar-menu {
	}
	
	.navbar-menu a, 
	.navbar-menu a:visited {
		font-size: 17px;
		margin-left: 21px;
	}
	
	.header-content {
		padding-top: 75px;
		padding-bottom: 75px;
	}
	
	/* Submenu page */ 
	
	.single-level-submenu  .submenu-title,	
	.single-level-submenu .submenu-title:visited {
		margin-right: 0;
		display: block;
	}
	
	.submenu-title h4 {
		padding-bottom: 13px;
		margin-bottom: 13px;
		display: block;
		border-bottom: 1px solid #ccc;
		margin: 0;
		display: block;
	}
	
	/* ESJN Home */
	
	.cover-inner {
		padding: 12% 0;
	}
	
	.esjn-home .cover {
		background-position: center -100px;
	}

	.esjn-home h1 {
		font-size: 48px;
	}
	
	.cover-subtitle {
		font-size: 18px;
		margin-top: 25px;
	}
	
	.btn-cover {
		margin-top: 35px;
	}
}

/* Devices >= 1200px */
@media (min-width: 1200px) {

	.main-submenu-wrap {
        padding: 21px 25px 20px;
    }


	.container {
        width: 980px;
    }
	/* Members */

	.maakonnad {
		width: 287px;
	}
}

/* Devices >= 1400px */
@media (min-width: 1400px) {  
	.header-default {
		background-position: center -70px;
	}
	
	/* ESJN Home */
	
	.cover-inner {
		padding: 12% 0;
	}
	
	.esjn-home .cover {
		background-position: center bottom;
	}
}

/* Exceptions */

@media (max-width: 992px) {
	/* Members */

	.maakonnad {
		display: none!important;
	}
}

/* Base - from child theme */

body {
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.47;
	min-height: 100%;
}

