/*
Theme Name: TwentyTwelve-tweak
Theme URI: http://wordpress.org/
Description: Child Theme for Twenty Twelve with better mobile menu
Author: Admin at Alexanderjanoberg.com
Author URI: http://www.alexanderjanoberg.com
Template: twentytwelve
Version: 0.1
*/

@import url("../twentytwelve/style.css");

/* remove weird rectangle around clicked links */
li.lyssna span:focus { 
    outline: none; 
}
.menu-menu-1-container li.menu-item a:focus {
	outline: none;
}

.slicknav_brand a:focus {
	outline: none;
}
ul.slicknav_nav li a:focus {
	outline: none;
	background: #777;
	border-radius: 6px;
}

/* Tweak line-height for mobile devices */
.site-header h1 a {
	line-height: 1.2 !important;
	text-transform: capitalize !important;
	font-size: 59px;
}
/* Tweak header position */
h1.site-title {
	padding-top: 0;
	padding-bottom: 0;
}

/* turn menu into a regular list on narrow display */
div.splitmenuhack {
	display:inline;
}


	/* Remove automatic hyphenation */
	.site-content article { word-wrap: break-word; -webkit-hyphens: none; -moz-hyphens: auto; 	
		hyphens: none;
	}

@media screen and (min-width: 35ex) {
	-moz-hyphens: none;
}

@media screen and (min-width: 600px) {
	.menu-menu-1-container li.menu-item a:focus:before {
		background: lightgray;
		width:150%;
		height:120%;
		margin-left: -25%;
		margin-top: -3px;
		content: "\000a";
		position:absolute;
		opacity: .5;
	}
	.main-navigation div.nav-menu > ul {
		text-align: center;
	}

	/* split menu into two line if needed (there's javascript in header.php) */
	div.splitmenuhack {
		display:inline-block;
	}

	.site-header h1,
	.site-header h2 {
		text-align: center;
	}
	/* make title split lines earlier */
	.site-header h1 a {
		padding-left: 0.5ex;
		padding-right: 0.5ex;
	}

	/* Tweaks to header positions */
	.site-header h2 {
		line-height: 1.2 !important;
		padding-bottom: 1ex;
	}
	h1.site-title {
		padding-top: 1.8ex;
		padding-bottom: 1.8ex;
	}


	.main-navigation ul.nav-menu,
	.main-navigation div.nav-menu > ul {
		text-align: center;
	}
	
	body.page-template-page-templateslyssna-page-php .entry-content .content-column {
		width: 47%;
		width: 47.5%;
		margin: 0;
		margin-right: 5%;
		overflow:hidden;
	}
	body.page-template-page-templateslyssna-page-php .entry-content .last_column {
		margin-right: 0;
	}	
	
	body.page-template-page-templateslyssna-page-php .site-content {
		width: 90%;
		margin:0px auto;
		float: none;
	}	
}

@media screen and (max-width: 750px) and (min-width:600px) {
	body.page-template-page-templateslyssna-page-php .site-content {
		width: 100%;
		margin:0px auto;
		float: left;
	}
	body.page-template-page-templateslyssna-page-php .entry-content .content-column {
		clear:both;
		width: 100%;
		margin-right: 0;
	}

	/* Tweaks to header positions */
	h1.site-title {
		padding-bottom: 1ex;
		padding-top: 0;
	}
	.site-header h2 {
		padding-bottom: 1ex;
	}

}
body.full-width .entry-header,.page-template-page-templateslyssna-page-php .entry-header {
	display: none;
}
.site-content article  {
	border-bottom: none;
	margin-bottom: 0;
}

body.page-template-page-templateslyssna-page-php .entry-content object,
body.page-template-page-templateslyssna-page-php .entry-content iframe {
	margin-bottom: 0 !important;
}

.lyssna_instrumentation  {
	font-style: italic;
	font-size: small;
	color: darkgray;
	margin: 0;
	padding: 0;
	text-align: right;
}

li.lyssna {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

/* .nav-menu is the original menu */
.nav-menu ul {
  //display:none !important;
}
.slicknav_menu {
  display:block;
}

/*CSS Menu Style*/
  @media screen and (min-width:600px) {
  .slicknav_menu {
  display:none;
  }
  .nav-menu ul{
  display:block;
  }
}

.main-navigation ul.nav-menu,
.main-navigation div.nav-menu > ul {
	display: block;
}


@media screen and (max-width: 599px) {
li.focused {
	background: lightgrey;
	opacity: .5;
}
h1 {
	font-family: "Playfair Display";
}

body.slicknav .entry-header {
	display: block;
}

body.slicknav header#masthead {
	display:none;
}

}

/* No link underline for menu in mobile, either */
.main-navigation li a,
.main-navigation li {
	text-decoration: none;
}


/* slicknav tweaks */

.slicknav_brand {
	line-height: inherit !important;
  height: inherit !important;
  padding: 8px 12px;
	font-family: "Playfair Display SC";
	}
	
.slicknav_menu li.menu-item a {
	color: white !important;
}

.slicknav_menu li.current_page_item  a::before {
	content: "> ";
}

.slicknav_brand a {
text-decoration: none;
color: white;
}

.slicknav_brand a:hover {
	text-decoration: underline;
	color: lightgrey;
}

.wpcf7-text, .wpcf7-textarea {
	max-width: 30em;
	min-width: 14em;
	width: 94%;
}

.email-address {
	word-break: none;
	word-wrap: none;
	-webkit-hyphens: none; -moz-hyphens: none; hyphens: none;
}

/* Alternate controls for gallery on narrow screens */
.hack-ms-wrap {
	display:none;
}

@media screen and (max-width: 239px) {
	.site-header h1 a {
		font-size: 30px;
		font-size: 14vw;
	}
}

@media screen and (max-width: 480px) {
	.site-header h1 a {
		font-size: 40px;
		font-size: 14vw;
	}

	body.page-id-25 .hack-ms-wrap {
		position: absolute;
		right: 10%;
		display: inline;
		top: -1px;
	}

	.hack-ms-navbutton {
		position: static !important;
		left: 0 !important;;
		margin-top: -51px !important;
		margin-left: 5px;
		float: left;
		height: 51px !important;
		margin-bottom: 1px;
	}
}