/*general*/

body {
	margin:0;
	font-family: sans-serif;
	font-size: 18px;
	color:#404040;
	background-color: #f3f3f3;
}

#wrapper {
	padding:20px;
}

#wrapper.noheader {
    margin-top:60px;   
}

p {
   
}

a {
    color:#ba3e26;
    text-decoration:none;
}
a:hover {
    color:#ba3e26;
    text-decoration:underline;  
}

h1, h2, h3, h4, h5, h6 {
    font-family: montserrat, sans-serif;
	clear:both;
    cursor: default;
}



h1 {
	text-transform:uppercase;
	font-size:35px;
	margin:0;
}
h2 {
    margin:10px 0 10px 0;   
}

.container {
	margin-top:50px;
}

li {
    list-style:none;   
}

img.center {
    display:block;   
}

img.img_vertical {
    max-width: 70%;
}

.center {
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

.separate {
    clear:both;   
}

/*main page*/

#centerizer {
    height: 1px;
    width: 100%;
    top: 50%;
    position:absolute;
    overflow:visible;
}

#name {
	position: absolute;
	top:-40px;
	width:100%;
}
#name h1 {
	text-align: center;
	font-size: 70px;
	width:100%;
	cursor:default;
	font-weight: 400;
	line-height: 70px;
}

.menuelement {
    width: 100%;
    position:relative;
    z-index:-1;
}

#content a {
    display:block;
    float:left;
    height:20%;
    width:20%;
    margin-top:-10%;
    z-index:0;
    background-size: cover;
}

#portfolio_link:hover {
    background-image: url(../img/portfolio.png);
}

#projects_link:hover {
    background-image: url(../img/projects.png);
}

#photos_link:hover {
    background-image: url(../img/photos.png);
}

#resume_link:hover {
    background-image: url(../img/resume.png);
}

#contact_link:hover {
    background-image: url(../img/contact.png);
}

/*main page responsive*/

/*Responsive*/

@media (max-width: 1024px)
{
    body {
        padding: 0px;   
    }

    #portfolio_link {
        background-image: url(../img/portfolio.png);
        background-size:cover;
    }
    
    #projects_link {
        background-image: url(../img/projects.png);
        background-size:cover;
    }
    
    #photos_link {
        background-image: url(../img/photos.png);
        background-size:cover;
    }
    
    #resume_link {
        background-image: url(../img/resume.png);
        background-size:cover;
    }
    
    #contact_link {
        background-image: url(../img/contact.png);
        background-size:cover;
    }
}

@media (max-width: 479px) 
{
    #centerizer {
        top:0;
    }

    #content a {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    img.img_vertical {
        max-width: 100%;
    }
}

@media (min-width:385px) and (max-width: 479px)
{
    #content {
        width:384px;
        margin:auto;
    } 
    
    img.img_vertical {
        max-width: 100%;
    }
}

/* Menu */

#menu {
	position:fixed;
	height:40px;
	left:10px;
	top:10px;
	box-shadow: 0px 1px 4px #000;
	z-index: 1;
}

#menu a {
    display:block;
    float:left;
    width: 40px;
	height: 40px;
    z-index:0;
    margin:0px;
	padding:0px;
    background-size: cover;	
}

#menu a:hover {
    width: 113px;
	height: 113px;
}

@media (max-width:1024px)
{
    #menu {
        position:static;
        width:100%;
        height:205px;
        clear:both;
        left:0;
        top:0;
        margin:10px 0 10px 0;
        padding:0;
        box-shadow: none;
    }

    #menu a, #menu a:hover {
        width:20%;
        height:auto;
    }

    .container {
        margin-top:0;
    }
    
    .header {
        display:none;   
    }
}

@media (min-width:900px) and (max-width:980px)
{
    #menu {
        height:196px;
    }
}

@media (min-width:700px) and (max-width:899px)
{
    #menu {
        height:140px;
    }
}

@media (min-width:500px) and (max-width:699px)
{
    #menu {
        height:100px;
    }
}

@media (max-width:499px)
{
    #menu {
        height:80px;
    }
}

/*header*/
div.header {
    margin-top:60px;
    height:150px;
    background-image: url(../img/header.jpg);
    background-position: center;
    background-repeat: no-repeat;
    display:none;
}
div.header h1 {
    width:100%;
    text-align: center;
    color:#fff;
    line-height: 150px;
    background-position: center;
    background-repeat: no-repeat;
}

/*portfolio*/
section.portfolio_cat {
	margin-bottom:20px;
	overflow-y: auto;
    clear:both;
}

section.portfolio_cat a {
	float:left;
}

a.fancybox, a.fancybox-media {
	position:relative;
}
a.fancybox:hover:before, a.fancybox-media:hover:before {
	content:"";
	display:block;
	width:100%;
	height:150px;
	pointer-events: none;
	background-image: url(/img/pattern.gif);
	background-repeat: repeat;
	left:0;
	top:0;
	position: absolute;
}
a.fancybox img, a.fancybox-media img {
	display:block;
}

/*lightbox 2.6 conflict with bootstrap fix*/

.lightbox .lb-image {
	max-width:inherit;
}
