/*
Theme Name: Timeliner Child Theme
Author: DJMiMi
Theme URI: http://themeforest.net/user/DJMiMi
Author URI: http://themeforest.net/user/DJMiMi
License: GPL 2.1
License URI: license.txt
Template: timeliner
Description:  Clean and powerfull timeline bloggig theme
Version: 1.0
Tags: light
*/

/*
	General
*/

body {
	color: #fff;
	background-color: #152B3D;
}

h1, h2, h3, h4, h5, h6 {
	color: #152B3D;
}

h1 {
	font-size: 56px;
	line-height: 1.3;
	margin-bottom: 30px;
}

h2 {
	font-size: 38px;
}

h3 {
	font-size: 20px;
	margin-bottom: 0px;
	font-weight: 600;
}

p {
	font-size: 18px;
	line-height: 1.4;
	color: #152B3D;
}

.cd-content p {
	font-size: 15px;
	line-height: 1.6;
}

.cd-timeline-content a.cd-read-more,
.full-post a.close-button {
	color: #0057A4;
	background-color: transparent;
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

.cd-timeline-content a.cd-read-more:hover {
	color: #152B3D;
}

/*
	Header
*/

.blog-title img {
	width: 450px;
}
.site-logo {
	display: block;
	padding-bottom: 100px;
}
.blog-title img.arrow-down {
	width: 130px;
}

.mobile-logo {
	display: none;
}

.top-bar {
	background-size: 100% auto;
}

/*
	Navigation
*/

#navigation {
	position: fixed;
	right: 0;
	z-index: 10;
	-webkit-transform: translate3d(0,0,0);
}

.navbar {	
	margin-top: 40px;
	float: right;
}

.navbar-collapse {
	padding-right: 0px;
}

.nav.navbar-nav > li {
	float: none;
	margin-left: 0px;
	margin-right: 0px;
	text-align: right;
}

.nav.navbar-nav > li:after {
	content: '';
	position: absolute;
    top: 15px;
    right: 0px;
    width: 15px;
	border-top: 2px solid #FFD30A;
}

.nav.navbar-nav > li > a {
	padding: 5px 25px;
}

.nav.navbar-nav li a {
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	color: #fff;
	font-weight: 600;
	text-transform: none;
}

.nav.navbar-nav li a:hover,
.nav.navbar-nav li a:focus {
	color: #fff;
}

#navigation .nav.navbar-nav > li > a {
	border-bottom: 0px;
}

ul.sub-nav {
	margin-bottom: 30px;
	display: block;
}

ul.sub-nav.is_hidden {
	display: none;
}

ul.sub-nav li {
	list-style-type: none;
	text-align: right;
	line-height: 1.6;
}

.nav.navbar-nav ul.sub-nav li a {
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	padding: 4px 25px;
}

.nav.navbar-nav ul.sub-nav li a:hover {
	color: #fff;
	background-color: inherit;
}

#navigation .navbar-toggle {
	position: absolute;
	top: 0;
	right: 0;
	color: #fff;
	z-index: 10;
}

img.menu-bars {
	width: 27px;
}

img.menu-cross {
	width: 27px;
}

.mobile-menu.is_hidden {
	display: none;
}

/*
	Page
*/

.main-content {
	background-color: #152B3D;
	text-align: center;
	padding: 80px 0 110px;
}

.main-content p {
	font-family: 'Open Sans', sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.7;
	color: #fff;
	margin-bottom: 0px;
}

.main-content p b {
	font-weight: 600;
}

.post-content p strong {
	font-weight: 400;
}

.full-post {
	position: relative;  
	width: 100%;
	padding: 60px 120px 80px;
	background-color: #fff;
}

.full-post.is_hidden {
	display: none;
}

h1.mobile {
	display: none;
}

.full-post img.attachment-post-thumbnail {
	margin-bottom: 45px;
}

.full-post .close-btn {
	position: absolute;
	top: 10px;
	right: 20px;
	z-index: 12;
	cursor: pointer;
	width: 24px;
}

.wp-caption p.wp-caption-text {
	font-style: italic;
	font-size: 12px;
	padding-top: 8px;
}

div.wp-caption {
	margin-bottom: 20px !important;
}

/*
	Timeline
*/

.main-listing {
	position: relative;
	background-color: transparent;
}

.main-listing > .container {
	position: absolute; 
	z-index: 2; 
	left: 50%; 
	top: 0; 
	margin-left: -585px;
}

.bg-timeline {
	position: relative; 
	background-attachment: fixed; 
	background-size: 100% auto;
}

.bg-timeline.bg-image-1 {
	background-image: url('images/Gamla-stan2000.jpg');
	height: 2770px; 
}
.bg-timeline.bg-image-2 {
	background-image: url('images/OS-i-Sthlm2000.jpg');
	height: 3520px; 
}
.bg-timeline.bg-image-3 {
	background-image: url('images/Slussen2000.jpg');
	height: 3530px; 
}
.bg-timeline.bg-image-4 {
	background-image: url('images/TV2000.jpg');
	height: 2765px; 
}
.bg-timeline.bg-image-5 {
	background-image: url('images/Manlandningen2000.jpg');
	height: 3110px; 
}
.bg-timeline.bg-image-6 {
	background-image: url('images/Disketter2000.jpg');
	height: 3315px; 
}
.bg-timeline.bg-image-7 {
	background-image: url('images/Fyrverkeri2000.jpg');
	height: 2270px; 
}
.bg-timeline.bg-image-8 {
	background-image: url('images/Matrix2000.jpg');
	height: 2310px; 
}
.bg-timeline.bg-image-9 {
	background-image: url('images/Robot2000.jpg');
	height: 2770px;
}

.bg-timeline.bg-image-10 {
	background-image: url('images/Robot2000.jpg');
	height: 5180px;
}

.bg-timeline.desktop {
	display: block;
}

.bg-timeline.mobile {
	display: none;
}

.bg-timeline p.byline {
	position: absolute;
	font-size: 11px;
	font-style: italic;
	color: #fff;
	bottom: 60px;
	left: -30px;
	-webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.cd-timeline-img, .cd-timeline-year {
	margin-bottom: 30px;
}

.cd-timeline-img h2, .cd-timeline-year h2{
	line-height: 35px;
}

.cd-timeline-block {
	margin: 30px 0;
}

.cd-timeline-content {
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
}

.cd-timeline-block.open .cd-timeline-content {
	display: none;
}

.cd-timeline-block.open .cd-timeline-img {
	position: relative;
}

.cd-timeline-content.is_hidden {
	opacity: 0 !important;
}

/*
	Footer
*/

footer {
	background-color: #152B3D;
    padding: 70px 0 45px;
}

.footer {
	width: 660px;
	margin: 0 auto;
	text-align: center;
}

.footer img {
	width: 320px;
	margin-bottom: 24px;
}

.footer p {
	font-family: "Lora", sans-serif;
	line-height: 1.5;
	font-size: 15px;
	color: #fff;
	margin-bottom: 24px;
}

.footer ul {
	margin-bottom: 24px;
	padding-left: 0px;
}

.footer ul li {
	display: inline;
	font-family: "Lora", sans-serif;
	line-height: 1.5;
	font-size: 15px;
	color: #fff;
	border-left: 2px solid #FFD30A;
	padding: 0px 10px;
}

.footer ul li:first-child {
	border-left: 0px;
}

.footer ul li a {
	color: #fff;
}

.to_top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: none;
    z-index: 1000;
    -webkit-transform: translate3d(0,0,0);
}

img.arrow-top {
	width: 32px;
}

/*
	Custom
*/

.full-post .wp-block-image figcaption,
.white-block .wp-block-image figcaption {
	color: #152B3D;
	font-style: italic;
	font-size: 12px;
	text-align: center;
}

/*
	Devices
*/

@media (max-width: 1199px) {
	h1 {
		font-size: 48px;
	}
	h2 {
		font-size: 32px;
	}

	.full-post {
		padding: 40px 80px 60px;
	}

	.main-content {
		padding: 70px 0 90px;
	}
	.main-content p {
		font-size: 28px;
	}

	.main-listing > .container {
		margin-left: -485px;
	}
}

@media (max-width: 991px) {
	h1 {
		font-size: 38px;
	}
	h2 {
		font-size: 24px;
	}

	.full-post {
		padding: 40px 80px 60px;
	}

	.main-content {
		padding: 60px 0 80px;
	}
	.main-content p {
		font-size: 21px;
	}

	.main-listing > .container {
		margin-left: -375px;
	}
	.blog-title img {
		max-width: 350px;
	}
}

@media (max-width: 767px) {
	h2 {
		font-size: 20px;
	}
	h3 {
		font-size: 15px;
	}
	p {
		font-size: 15px;
	}

	.main-listing > .container {
		max-width: 100%;
		left: unset;
		margin-left: 0px;
	}

	.mobile-logo {
		display: block;
		max-width: 232px;
		margin-bottom: 10px;
	}

	#navigation {
		width: 100%;
	}

	.navbar {
		width: 100%;
    	background-color: #152B3D;
    	margin-top: 0;
    	float: none;
	}

	.navbar-collapse {
		padding: 10px 20px 20px;
	}

	.navbar-default .navbar-collapse, 
	.navbar-default .navbar-form {
		border-color: transparent;
	}

	.navbar-collapse {
		box-shadow: 0px;
	}

	ul.nav.navbar-nav {
		overflow-y: scroll;
		height: 100vh;
		padding-bottom: 100px;
	}

	.nav.navbar-nav > li {
		text-align: left;
	}

	.nav.navbar-nav > li:after {
		border-top: 0px;
	}

	#navigation .navbar-nav li a {
		text-align: left;
	}
	
	.nav.navbar-nav li a {
		font-size: 15px;
	}

	.nav.navbar-nav > li > a {
		padding: 0px 35px;
	}

	ul.sub-nav.is_hidden {
		display: block;
	}
	ul.sub-nav {
		margin-bottom: 20px;
	}
	ul.sub-nav li {
		text-align: left;
		line-height: 24px;
	}
	.nav.navbar-nav ul.sub-nav li a {
		font-size: 15px;
		padding: 0px 35px;
	}

	.top-bar {
		background-size: 100% 600px;
	}

	.blog-title img {
		width: 260px;
		margin: 70px auto 0;
	}
	.blog-title img.arrow-down {
		width: 60px;
	}

	.container {
		padding-left: 0px;
		padding-right: 0px;
	}
	.main-content {
		padding: 50px 26px 60px;
	}
	.main-content p {
		font-size: 15px;
	}

	.post-content {
		margin: 10px 0px;
	}

	.bg-timeline.desktop {
		display: none;
	}
	.bg-timeline.mobile {
		display: block;
	}

	.cd-timeline-content{
		margin: 0px 26px;
	}
	.cd-timeline-content a.cd-read-more {
		font-size: 15px;
	}

	.full-post {
		width: 100%;
		padding: 0px 0px 20px;
	}
	h1.mobile {
		display: block;
		font-size: 20px;
		margin-bottom: 4px;
	}
	h1.desktop {
		display: none;
	}
	.full-post h1 {
		padding: 10px 20px;
	}
	.full-post h2,
	.full-post h3,
	.full-post h4,
	.full-post p {
		padding: 0px 20px;
	}
	.full-post div {
		padding: 0px 20px;
	}
	.full-post div.close-btn {
		padding: 0px;
	}
	.full-post a.close-button {
		padding: 0px 20px;
	}

	.full-post img.attachment-post-thumbnail {
		margin-bottom: 20px;
	}
}

@media (max-width: 600px) {
	*, :after, :before {
		box-sizing: border-box;
	}

	body, html {
		height: 100%;
		width: 100%;
	}

	body {
		overflow-x: hidden;
	}

	.bg-timeline {
		position: relative; 
		background-attachment: fixed; 
		background-size: 100% auto;
	}

	.bg-timeline.bg-image-1 {
		background-image: url('images/Gamla-stan600.jpg');
		height: 3050px; 
	}
	.bg-timeline.bg-image-2 {
		background-image: url('images/OS-i-Sthlm600.jpg');
		height: 3800px; 
	}
	.bg-timeline.bg-image-3 {
		background-image: url('images/Slussen600.jpg');
		height: 3800px; 
	}
	.bg-timeline.bg-image-4 {
		background-image: url('images/TV600.jpg');
		height: 3050px; 
	}
	.bg-timeline.bg-image-5 {
		background-image: url('images/Manlandningen600.jpg');
		height: 3400px; 
	}
	.bg-timeline.bg-image-6 {
		background-image: url('images/Disketter600.jpg');
		height: 3600px; 
	}
	.bg-timeline.bg-image-7 {
		background-image: url('images/Fyrverkeri600.jpg');
		height: 2550px; 
	}
	.bg-timeline.bg-image-8 {
		background-image: url('images/Matrix600.jpg');
		height: 2600px; 
	}
	.bg-timeline.bg-image-9 {
		background-image: url('images/Robot600.jpg');
		height: 3050px;
	}

	.bg-timeline.bg-image-10 {
		background-image: url('images/Robot600.jpg');
		height: 4770px;
	}

	.cd-timeline-img.last {
		position: absolute;
    	left: 50%;
    	margin-left: -30px;
    	z-index: 4;
	}

	footer {
		padding: 40px 0px 10px;
	}
	.footer {
		width: 100%;
		padding: 0px 20px;
	}
	.footer ul li {
		display: block;
		border-left: 0px;
	}

	.to_top {
		bottom: 30px;
	}
}
