/*
	Theme Name: Borealis
	Theme URI: http://www.urich.co.il
	Description: Borealis theme for wordpress
	Version: 1.0.0
	Author: Uri Chachick
	Author URI: http://www.urich.co.il

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
    height: 100%;
}
body {
	font:300 11px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #fff;
    height: 100%;
    overflow-x: hidden;
    padding-top: 1px;
    margin-top: -1px;
}

body.light {
	color: #444;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color: #99f;
	text-decoration:none;
}

a.title {
    color: #fff;
}

a.excerpt {
    color: #fff;
}

a.view-article {
    text-decoration: underline;
}
body.light a {
	color: #444;
}
a:hover {
	color: #ddd;
}
body.light a:hover {
	color: #777;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

h1 {
    margin: 0;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	width:100%;
	margin:0 auto;
    padding: 0;
	position:relative;
}
/* header */
.header {
    width: 100%;
    background: url('img/headerbg.png') right top repeat-y #000;
    padding: 25px 5%;
    color: #fff;
    min-height: 159px;
    border-bottom: 1px solid #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}
/* logo */
.logo {
    font-size: 7rem;
    padding-right: 110px;
}
.logo a {
    color: #fff;

}
.logo-img {

}
/* nav */
.nav {
    list-style: none;
    background: #111;
    width: 480px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 0;
    font-size: 3rem;
    padding: 0;
    overflow: hidden;
}

.nav ul {
    list-style-type: square;
}

main {
    min-width: 100%;
    min-height: 100%;
    background-color: #fff;
    position: relative;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.nav-trigger {
    position: fixed;
    top: 45px;
    right: 60px;
    visibility: hidden;
}

label[for="nav-trigger"] {
    position: fixed;
    top: 45px;
    right: 60px;
    z-index: 20000;
    width: 90px;
    height: 70px;
    cursor: pointer;
    background-image: url('img/headermenu.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.3);
}

.nav-trigger:checked + label {
    right: 540px;
}
 
.nav-trigger:checked ~ main {
    left: -480px;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
    margin-right: 480px;
}

.nav-trigger:checked ~ header {
    left: -480px;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
}

.nav-trigger:checked ~ footer {
    left: -480px;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
}

.nav-trigger:checked ~ nav {
    overflow: scroll;
}

.nav-trigger + label, main, header {
    transition: right 0.5s, left 0.5s;
}

/* sidebar */
.sidebar {
    width: 100%
}

.sidebar form {
    padding:  10px 40px;
    border-bottom: 1px solid #fff;
}

.sidebar .widget   {
    padding:  10px 40px;
    border-bottom: 1px solid #fff;
}
/* footer */
.footer {
    width: 100%;
    background: #000;
    padding: 10px 5%;
    color: #fff;
    z-index: 10000;
    position: relative;
}

article {
    position: relative;
    overflow: hidden;
    font-size: 3rem;
    border-bottom: 1px solid #fff;
    
}

article .thumbnail_div {
    width: 480px;
    position: absolute;
    left: 0;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;  
    -webkit-transition: -webkit-transform .3s ease;
    transition: transform .3s ease; 
    
}

article:hover .thumbnail_div {
    -ms-transform: rotate(15deg) scale(1.5); /* IE 9 */
    -webkit-transform: rotate(15deg) scale(1.5); /* Safari */
    transform: rotate(15deg) scale(1.5);
}

article .content {
    margin-left: 480px;
    position: relative;
    background-color: #ccc;
    text-align: left;
    padding: 25px 5%;
    border-left: 1px solid #fff;
}

article .content h2 {
    margin: 0;
    font-size: 5rem;
}

article .content .contentbg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity .3s ease;
}

article:hover .content .contentbg {
    opacity: 0.10;
}

article .content .contenttext {
    position: relative;
}

.thumbnail_single_div {
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.thumbnail_single_div .titlewrapper {
    position: absolute;
    bottom: 25px;
    left: 5%;
    padding: 2%;
}

.thumbnail_single_div .titlewrapper h1 {
    margin: 0;
}

.titlenoimage {
    padding: 0 5%;
}

.contentwrapper {
    padding: 0 5%;
}

.pagination {
    font-size: 3rem;
}

.single .contentwrapper a {
    text-decoration: underline;
}

.search-results h1 {
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #fff;
}


.comments {
    position: relative;
    margin: 10px -5% 0;
}

.comments .commentsbg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.35);
}

.comments .commentscontent {
    position: relative;
    padding: 10px 5%;
}

.comments ul {
    list-style-type: none;
}

.comment-body {
    border-bottom: 3px solid #fff;
    padding: 10px;
    margin: 10px 0;
}

.widget_calendar table {
    width: 100%;
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/

.single-portfolio .thumbnail_single_div {
    width: 50%;
    float: right;
    margin-left: 2%;
    background-size: contain;
}

.single-portfolio .contentwrapper .comments {
    display: none;
}


/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family:'Font-Name';
	src:url('fonts/font-name.eot');
	src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
		url('fonts/font-name.woff') format('woff'),
		url('fonts/font-name.ttf') format('truetype'),
		url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (max-width:1280px) {
    html {
    	font-size: 48%;
    }
    
    .header {
        min-height: 110px;
    }
    .nav {
        width: 320px;
    }
    
    .nav-trigger {
        right: 40px;
    }
    
    label[for="nav-trigger"] {
        right: 40px;
        top:30px;
        width: 60px;
        height: 48px;
        background-size: cover;
    }
    
    .nav-trigger:checked + label {
        right: 360px;
    }
     
    .nav-trigger:checked ~ main {
        left: -320px;
        margin-right: 320px;
    }
    
    .nav-trigger:checked ~ header {
        left: -320px;
    }
    
    .nav-trigger:checked ~ footer {
        left: -320px;
    }
    
    .sidebar form {
        padding:  10px 30px;
    }
    
    .sidebar .widget {
        padding:  10px 30px;
    }
    
    article .thumbnail_div {
        width: 320px;
    }
    
    article .content {
        margin-left: 320px;
    }
}


@media only screen and (max-width:768px) {
    
    html {
    	font-size: 36%;
    }
    
    article .thumbnail_div {
        width: 200px;
    }
    
    article .content {
        margin-left: 200px;
    }
}

@media only screen and (max-width:600px) {
    
    
    
    article .thumbnail_div {
        display: none
    }
    
    article .content {
        margin-left: 0px;
    }
}

@media only screen and (max-width:400px) {
    
    label[for="nav-trigger"] {
        right: 40px !important;
    }
    
    .sidebar {
        margin-top: 90px;
        border-top: 1px solid #fff;
    }
}




/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		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) ")";
	}
	.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;
	}
	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;
	}
}
