/*
Theme Name: Im Kino Berlin
Author: Neue Central Kino Ltd.
Author URI: http://imkino.berlin
Description: Custom theme for Im Kino Berlin
Version: 1.39
Text Domain: imkinoberlin
*/

@font-face {
	font-family: "Lato";
	src: url("/lib/fonts/Lato/Lato-Regular.woff") format("woff");
}

@font-face {
	font-family: "Latp";
	font-weight: bold;
	src: url("/lib/fonts/Lato/Lato-Bold.woff") format("woff");
}

@font-face {
	font-family: "Lato";
	font-style: italic;
	src: url("/lib/fonts/Lato/Lato-Italic.woff") format("woff");
}

@font-face {
	font-family: "Lato";
	font-style: italic;
	font-weight: bold;
	src: url("/lib/fonts/Lato/Lato-BoldItalic.woff") format("woff");
}

/* Elements */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	font-family: "Lato", sans-serif;
	background: #220000;
	margin: 0;
	padding: 0;
	line-height: 1.2em;
    overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6 {
	padding: 0;
	margin: 0;
	font-weight: bold;
	text-align: center;
	line-height: 1.2em;
}

header.page-header {
	margin-top: 16px;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6  {
	margin: 16px 0 8px 0;
}

h1 {
	font-size: 1.125em;
	text-transform: uppercase;
}

h1.programtitle {
	margin-top: -4px;
}

h2 {
	font-size: 1.1em;
}

h2.newblock {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #dddddd;
}

h3 {
	font-size: 1em;
}

h4 {
	font-size: 1.0625em;
}

h5 {
	font-size: 16px;
	font-style: italic;
}

h6 {
	color: #606060;
	font-size: 0.875em;
	letter-spacing: 0.0625em;
	text-transform: uppercase;
}

sup, sub {
	vertical-align: baseline;
	position: relative;
	top: -0.4em;
}

sub { 
	top: 0.4em; 
}

hr {
	border: none;
	height: 1px;
	background-color: #ffffff;
}

.center {
    text-align: center;
}

.signup-content {
	margin: 16px;
}

.entry-content {
	margin-top: 16px;
}

.content-area-full .entry-content {
	max-width: 100%;
}

.entry-title a {
	color: #ffffff;
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:active {
	text-decoration: underline;
}

.entry-content p {
	line-height: 1.5em;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin-top: 4px;
}

.entry-content img.alignleft {
	float: left;
	margin: 4px 16px 16px 0;
}

.entry-content img.alignright {
	float: right;
	margin: 4px 0 16px 16px;
}

.entry-content img.aligncenter {
	display: block;
	margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
}


.entry-content img.max25 {
	max-width: 25%;
	height: auto;
}

.entry-content img.max40 {
	max-width: 40%;
	height: auto;
}

.entry-content img.max50 {
	max-width: 50%;
	height: auto;
}

.wp-embedded-content {
	width: 100%;
}

/* Page layout */

#page {
	max-width: 1400px;
	margin: 8px auto;
}

#sitelogo {
	width: 480px;
    max-width: 100%;
}

#main {
    margin-top: 4px;
}

#content {
	width: 100%;
    padding: 0px 16px;
}

#content a {
    color: #ffffff;
}

#comments {
	margin-top: 16px;
}

.page-template-page_program #sidebar1 {
	display: none;
}

.breadcrumb {
	margin: 0 0 2px 0;
	font-style: italic;
}

.entry-header {
	margin-top: 16px;
}

.entry-meta {
	font-style: italic;
	margin: 8px 0 8px 0;
	color: #666666;
}

.entry-meta a {
	text-decoration: none;
	color: #666666;
}

.languages {
	float: right;
	margin-left: 32px;
}

.entry-footer {
	clear: both;
	padding-top: 16px;
}

table {
	border-spacing: 0;
	margin: 0 0 16px;
	border-collapse: collapse;
}

td {
	text-align: left;
	border-bottom: 1px solid #ccc;
	padding: 6px 10px 6px 0;
}

th p,
td p {
	margin: 0;
}

td:last-child {
	padding: 6px 0 6px 0;
}

table.raw tbody tr td,
table.raw tbody tr th {
	text-align: left;
	border-bottom: none;
	padding: 0 16px 0 0;
}

table.raw tbody tr td:last-child,
table.raw tbody tr th:last-child {
	padding: 0;
}

th {
	text-align: left;
	font-weight: bold;
	padding: 6px 16px 6px 0;
	border-bottom: 1px solid #ccc;
}

th:last-child {
	padding: 6px 0 6px 0;
}

tr:last-child td {
	border: none;
}

/* Archive pages (categories, tags, etc.) */

.archive-header {
	margin: 0 0 24px 0;
}

h1.taxonomy-head {
	font-size: 20px;
}

/* Menus in sidebar */

.widget-area ul.menu {
    padding: 0;
    margin: 0;
}

/* Navigation */

#site-navigation {
	background: #404040;
	color: #ffffff;
	padding: 0;
	margin: 2px 0 2px 0;
	height: 40px;
}

.site-title {
    float: left;
    padding: 8px;
    text-transform: uppercase;
}

ul.nav-menu,
div.nav-menu > ul {
	margin: 0;
	padding: 0 40px 0 0;
	list-style-type: none;
}

.nav-menu li {
	float: left;
	position: relative;
	list-style-type: none;
	cursor: default;
}

.nav-menu li a {
	color: #ffffff;
	display: block;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	padding: 12px 12px;
	text-decoration: none;
	text-transform: uppercase;
}

.nav-menu li > ul a {
	color: #000;
}

.nav-menu .sub-menu,
.nav-menu .children {
	background-color: #bbb;
	border-top: 0;
	display: none;
	padding: 0;
	position: absolute;
	left: 0;
	z-index: 1;
}

.nav-menu .sub-menu ul,
.nav-menu .children ul {
	border-left: 0;
	left: 100%;
	top: 0;
}

ul.nav-menu ul a,
.nav-menu ul ul a {
	margin: 0;
	width: 15.625em;
}

ul.nav-menu li:hover > ul,
.nav-menu ul li:hover > ul {
	display: block;
}

.visible {
	display: block !important;
}

/* "Skip to content" link for screen readers */

a.skip {
	padding: 8px;
	position: absolute;
	top: -4em;
	left: 0px;
	color: white;
	border-right: 1px solid white;
	border-bottom: 1px solid white;
	border-bottom-right-radius: 8px;
	background: #bf1722;
	-webkit-transition: top 1s ease-out;
    transition: top 1s ease-out;
    z-index: 100;
}

a.skip:focus {
	position: absolute;
	left: 0px;
	top: 0px;
	outline-style: none;
	-webkit-transition: top .1s ease-in;
    transition: top .1s ease-in;
}

/* Post */

.post, .type-page, .type-movie-2016, .type-movie-2017, .type-movie-2018 {
	border-bottom: 1px #dddddd solid;
	margin-bottom: 32px;
}

.post:last-child, .type-page:last-child, .type-movie-2016:last-child, .type-movie-2017:last-child, .type-movie-2018:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Paging and post navigation */

.paging-navigation {
	padding-bottom: 3em;
}

.navigation .nav-previous {
	float: left;
	padding-bottom: 8px;
	max-width: 60%;
}

.navigation .nav-next {
	float: right;
	padding-bottom: 8px;
	max-width: 60%;
}

.paging-navigation a {
	border: 1px solid #ccc;
	display: inline-block;
	line-height: normal;
	padding: 12px 12px;
	margin: 4px 0 4px;
	text-transform: uppercase;
	text-decoration: none;
}

.paging-navigation a:focus,
.paging-navigation a:hover {
	border-color: #404040;
	outline-style: none;
}

.post-navigation {
}

.post-navigation .nav-links {
	text-transform: uppercase;
	display: table;
	width: 100%;
}

.post-navigation a[rel="prev"] {
	float: left;
	border: 1px solid #ccc;
	padding: 8px 10px;
	margin: 4px 0 4px;
	text-decoration: none;
}

.post-navigation a[rel="next"] {
	border: 1px solid #ccc;
	float: right;
	padding: 8px 10px;
	text-align: right;
	margin: 4px 0 4px 4px;
	text-decoration: none;
}

.post-navigation a[rel="next"]:focus,
.post-navigation a[rel="prev"]:focus ,
.post-navigation a[rel="next"]:hover,
.post-navigation a[rel="prev"]:hover {
	border-color: #404040;
	outline-style: none;
}

.post-navigation-title {
	margin-top: 0;
}

/* Widgets */

.widget-area {
	padding-bottom: 8px;
}

.widget-area .widget-title {
	font-size: 19px;
	margin-top: 8px;
}

.widget-area ul {
	list-style: none;
	padding: 0;
}

.widget-area li {
	padding: 8px 0;
}

.widget-area a {
	text-decoration: none;
	color: #ffffff;
}

.widget-area a:hover {
	text-decoration: underline;
}

.widget-area img.sidebar {
    max-width: 100%;
}

.widget-area input[type="text"] {
    width: 100%;
	border-radius: 4px;
}

/* "Scroll to top" container */

#scrolltop-container {
    display: none;
    position: fixed;
	right: 20px;
	bottom: 20px;
    cursor: pointer;
    z-index: 999;
	line-height: 16px;
}
#scrolltop-container img {
	width: 40px;
	height: 40px;
}

/* Form elements */

/* Form fields, general styles first. */
button,
input,
textarea,
select {
	font-family: "Lato", sans-serif;
	font-size: 16px;
	border: 1px solid #404040;
	padding: 8px 10px;
	-webkit-transition: border 0.2s;
	transition:         border 0.2s;
}

/* Input elements */
input,
textarea,
select {
	background: #ffffff;
	border-radius: 4px;
}

textarea {
	background-color: #817987;
	color: #ffffff;
}

/*
input:focus,
textarea:focus,
select:focus {
	border-color: #404040;
	outline-style: none;
}
*/

/* Buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	border: 1px solid #404040;
	display: inline-block;
	font-weight: bold;
	text-decoration: none;
	background-color: #ffffff;
	cursor: pointer;
	border-radius: 4px;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
	border-color: #404040;
	outline-style: none;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
	background-color: #e0e0e0;
	-webkit-transition: none;
	transition:         none;
}

input[type="text"],
input[type="email"],
input[type="url"] {
	width: 100%;
	border-radius: 4px;
	background-color: #817987;
	color: #ffffff;
}

textarea {
	width: 100%;
	height: 10em;
}

/* search form */

input[type="search"] {
	-webkit-appearance: textfield;
	padding-right: 2px; /* Don't cut off the webkit search cancel button */
	width: 270px;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

#site-navigation .search-form {
	float: right;
	overflow: hidden;
}

.search-form .search-submit {
	display: none;
}

/* Assistive text */
.screen-reader-text {
	clip: rect(0px, 0px, 0px, 0px);
	position: absolute !important;
	color: #ccc;
}

/* embedded version of img/search-48x48.png) */
#site-navigation .search-field {
	background-color: transparent;
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAIfSURBVGhD7ZnBrcIwEEQ5UAAl/ANF0AQlUAhl8EUDSByogit90AYH/ryvjRStDCSOnbBSRhoRZbMztrN2nLCYEQ3H4+9K3Ikn8SbexYeRY84R45qVpU0PNWYrXsVnT5KzNZnxIfONyKimGteHaGxMtj5kthQPZl6SaC7Npg5kQJ2/KxdGcy9yd9Yi10OOOUfs3V1Du878QFhkMqaMz+KPXfoRXCsyoVNaeJTthAQpm9TIY5Zdv+SahtfFq1w5SSxV85TC4JFCw7S8/sEuGQYJMUpeHMNiI4SWaXqf4auTRLxw+RoV0DTtttfNwnmQAA+ptiCstmaj7bxg/sNOyX7ini1UDXg4z6uF+kGJ3NK2EOy8VOYCD+cJ+5eskth0tUWG1WMP4OW8dxbqDiX5B83eQtWBl/M+Wag7lORHYbQNF17Ou//dV5Jf0tYWqg68nPfdQt2hJF5E2iJ1NlkJ4OW8HxbqDpKcyJQdeFqoO5QUvoTCT+Lwy2j4B9k3bSXyfJUYdzMHlBx7Ow0kEPeFBkgk9islkNAUL/UXu2Q4JDb2Z5WGRTuRqtGGOR+2/GrzisU7kboTDSmFIZ8WX7F4OdX4uHtJnGuzXCeABBnRnNH0RON/Hul33E4AiRb9g0Pnxu8EkDC1nvqLCVOOOdf8xfR2wis+TSdKgka6RnvOnRgFNNI12jN8J76/A4CGuobHaXwDGhy28Q2sEzEbPyMOFos/kF30XEmo9lcAAAAASUVORK5CYII=);
	background-position: 10px center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	border: none;
	height: 32px;
	margin: 4px 4px 4px 0;
	padding: 6px 0 6px 2.625em;
	vertical-align: middle;
	width: 140px;
	background-color: #e8e8e8;
}

#site-navigation .search-field:focus {
	border: none;
	outline-style: none;
	padding-right: 2px; /* Don't cut off the webkit search cancel button */
	width: 140px;
}

/* Contact forms */

div.wpcf7-response-output {
	margin: 32px 0;
	padding: 24px;
	font-weight: bold;
}

span.wpcf7-list-item {
	display: inline;
	margin-left: 0;
}

span.wpcf7-list-item.first {
	margin-top: 8px;
}

div.wpcf7-response-output:not(.wpcf7-mail-sent-ok)[role="alert"] {
	border: 4px solid red !important;
}

div.wpcf7-mail-sent-ok[role="alert"] {
	border: 4px solid green !important;
}

/* Additional helper stuff */

.margin1top {
	margin-top: 32px !important;
}

.background-white {
	background: #fff;
}

.background-black {
	background: #000;
}

/* Input width settings which take padding into account */

.em2 {
	width: 3.125em !important;
}

.em3 {
	width: 4.125em !important;
}

.em4 {
	width: 5.125em !important;
}

.em8 {
	width: 9.125em !important;
}

.em20 {
	width: 21.125em !important;
}

table.plain {
	width: 100%;
	border-collapse: collapse;
}

table.plain tr td {
	padding: 0 0 8px;
	border: none;
}

table.plain tr:last-child td {
	padding: 0;
}

/* Embedded stuff */

embed, iframe, object, video {
	border: 0;
	max-width: 100%
}

/* Adjustment for galleries */

.gallery-icon {
    padding-bottom: 8px;
}

.gallery-icon img {
	padding: 0 !important;
}

.gallery-item {
	text-align: left !important;
}

.gallery-caption {
	display: none;
}

/* Some other custom styles */

img.image25 {
	max-width: 25%;
}

img.image30 {
	max-width: 30%;
}

img.image40 {
	max-width: 40%;
}

img.image45 {
	max-width: 45%;
}

img.image50 {
	max-width: 50%;
}

img.image60 {
	max-width: 60%;
}

img.image75 {
	max-width: 75%;
}

img.image100 {
	max-width: 100%;
}

img.aside40 {
	width: 132px;
	max-width: 40%;
}

.clear {
	clear: both;
}

.nobr {
	white-space: nowrap;
}

div.hscroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0 0 16px;
}

div.hscroll table {
	margin: 4px 0 0 0;
}

/* Logo left to the menu */

.menu-logo {
	float: left;
	height: 100%;
	display: table;
}

.menu-logo a {
	display: table-cell;
	vertical-align: middle;
}

.custom-logo {
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 4px;
	max-width: 16em;
	height: auto;
}

body.page-template-page_fullwidth > #page > #main > #content {
	padding: 0 8px;
}

/* Zoom cursor for linked images */

a[data-lbwps-width]>img:hover {
	cursor:zoom-in;
}

/* Cover image */

#imkinoberlin_cover {
	max-width: 100%;
	height: auto;
}

/* Additional layout helpers */

.pt16 {
	padding-top: 16px;
}

.pt32 {
	padding-top: 32px;
}

.pt48 {
	padding-top: 48px;
}

.pb16 {
	padding-bottom: 16px;
}

.pb32 {
	padding-bottom: 32px;
}

.pb48 {
	padding-bottom: 48px;
}

.underline {
	text-decoration: underline !important;
}

/* Responsive stuff */

@media only screen and (min-width: 1120px) {
	/* This makes only sense in "desktop" view */
	.nav-menu li:hover > a {
		background-color: #bbb;
		color: #000;
	}

	ul.nav-menu ul a:hover,
	.nav-menu ul ul a:hover {
		background-color: #202020;
		color: #fff;
	}

	#content {
		order: 2;
		max-width: 700px;
	}

	#sidebar1 {
		padding-left: 8px;
		padding-right: 16px;
		min-width: 350px;
		max-width: 400px;
		flex-grow: 1;
		flex-shrink: 1;
		border-right: 1px solid #404040;
		order: 1;
	}

	#sidebar2 {
		padding-right: 8px;
		padding-left: 16px;
		width: 288px;
		flex-shrink: 0;
		flex-grow: 0;
		border-left: 1px solid #404040;
		order: 3;
	}

	#main {
		display: flex;
		flex-direction: row;
	}

	#page {
		padding: 4px 0.3em;
		border: 1px solid #404040;
	}

	/* Menu link will only displayed for "mobile" view */
	.menu-mobile {
		display: none;
	}

	/* Hide sidebar cover image in desktop view */
	#sidebar1 #imkinoberlin_cover {
		display: none;
	}
}

@media only screen and (max-width: 1120px) {
	#site-navigation {
		height: inherit;
	}

	#page {
		padding: 0;
		border: none;
	}

    #main {
        margin-top: 24px;
		display: flex;
		flex-direction: column;
    }

	#sidebar1 {
		padding: 8px 16px 16px 16px;
		border-bottom: 1px solid #404040;
		order: 2;
	}

	#content {
		padding: 0 16px 16px 16px;
		border-bottom: 1px solid #404040;
		order: 1;
	}

	#sidebar2 {
		padding: 8px 16px 0 16px;
		order: 3;
	}

	#content.frontpage {
		order: 2;
	}

	#sidebar1.frontpage {
		order: 1;
	}

	.page-template-page_program #sidebar2 {
		display: none;
	}

	.entry-content img:not(.ajax-loader), .entry-content img.alignright, .entry-content img.alignleft {
		float: none;
		width: 100%;
		margin: 0 0 16px 0;
	}
	
	.languages {
		float: none;
		text-align: right;
		margin-bottom: 16px;
	}

	/* Navigation for mobile view */
	
	.menu-main-container,
	.menu-main-generic-container,
	.menu-main-accreditation-container,
	.menu-main-submission-container {
		display: none;
		float: none;
	}

    .site-title {
        padding: 12px;
    }

	.menu-logo {
		padding-top: 8px;
		padding-bottom: 8px;
		width: 100%;
		display: block;
	}

	.menu-logo a {
		float: none;
		display: block;
		width: 100%;
	}

	.custom-logo {
		width: 100%;
		max-width: inherit;
	}

	.menu-mobile {
		display: block;
		clear: both;
	}

	.menu-toggle,
	.menu-program {
		margin: 2px 0;
		text-align: left;
		background: #404040;
		height: 3em;
		color: #ffffff;
		text-decoration: none;
		text-transform: uppercase;
		display: block;
		cursor: pointer;
	}

	.menu-toggle {
		padding: 12px 8px 0 16px;
	}

	.menu-language,
	.menu-program {
		float: right;
		padding: 12px 16px 0 16px;
		margin: 0;
	}

	.menu-language a,
	.menu-program a {
		text-decoration: none;
		color: #ffffff;
	}

	.nav-menu li {
		display: block;
		float: none;
		z-index: 1;
		background: #404040;
	}

	ul.nav-menu {
		padding: 0;
	}
	
	.nav-menu .sub-menu,
	.nav-menu .children {
		display: block;
		position: relative;
		float: none;
		padding-left: 32px;
		background: #404040;
	}

	.nav-menu li > ul a {
		color: #fff;
		width: 100%;
	}
	
	.nav-menu li a {
		padding: 16px 24px;
	}
	
	#menu-sidebar .menu-item {
		margin: 0;
		padding: 8px;
		background: #404040;
	}
	
	#menu-sidebar  a {
		color: #ffffff;
		text-decoration: none;
	}

	/* search form in mobile view */
	
	#site-navigation .search-field {
		cursor: pointer;
		width: 8em;
		height: 3em;
		margin: 0;
		padding: 0 0 0 2.625em;
		-webkit-transition: width 0.2s ease;
		transition:         width 0.2s ease;
	}

	#site-navigation .search-field:focus {
		cursor: text;
		width: 140px;
		-webkit-transition: width 0.2s ease;
		transition:         width 0.2s ease;
	}

	body.page-template-page_fullwidth > #page > #main > #content {
		padding: 0 16px;
	}

	/* Hide main cover image in desktop view and mobile sub pages */

	#content #imkinoberlin_cover,
	#imkinoberlin_cover.subpage {
		display: none;
	}

	/* Hide language item from main menu as it is displayed in header */
	.menu-item-language {
		display: none !important;
	}
}
