/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}

body {
	overflow: -moz-scrollbars-vertical;
	font-family: Helvetica Neue, texgyreherosregular, Arial, sans-serif;
	font-size: 16px;
    color: #333;
    background-color: #ededed;
}

html, body {
    height:100%; /* needed for container min-height */
}

@font-face {
    font-family: 'droid_serifregular';
    src: url('/local/site/layout/droidserif-webfont.eot');
    src: url('/local/site/layout/droidserif-webfont.eot?#iefix') format('embedded-opentype'),
         url('/local/site/layout/droidserif-webfont.woff') format('woff'),
         url('/local/site/layout/droidserif-webfont.ttf') format('truetype'),
         url('/local/site/layout/droidserif-webfont.svg#droid_serifregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'texgyreherosregular';
    src: url('/local/site/layout/texgyreheros-regular-webfont.eot');
    src: url('/local/site/layout/texgyreheros-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/local/site/layout/texgyreheros-regular-webfont.woff') format('woff'),
         url('/local/site/layout/texgyreheros-regular-webfont.ttf') format('truetype'),
         url('/local/site/layout/texgyreheros-regular-webfont.svg#texgyreherosregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'texgyreherosbold';
    src: url('/local/site/layout/texgyreheros-bold-webfont.eot');
    src: url('/local/site/layout/texgyreheros-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('/local/site/layout/texgyreheros-bold-webfont.woff') format('woff'),
         url('/local/site/layout/texgyreheros-bold-webfont.ttf') format('truetype'),
         url('/local/site/layout/texgyreheros-bold-webfont.svg#texgyreherosbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
	margin: 0px;
	padding: 0px;
}

ul {
	margin-left: 30px;
	margin-top: 0px;
	padding: 0px;
    list-style-image: url(/local/site/layout/Byggbyra_li_logga.png);
}

li{
    padding:5px 0 5px;
}

img {
	border: 0;
    max-width: 100%;
}

.miljoe_img{
    padding-top:80px;
}

a {
    color: #c7b200;
	text-decoration: none;
}

.byggbyran_h1{
    font-weight: bold;
    font-size:33px;
    padding-bottom:80px;
}

.byggbyran_h2{
    font-weight: bold;
    
}

.byggbyran_h1 img{
    margin-top:-5px;
}

h6, h5, h4, h3, h2, h1 { 
     line-height: 120%;
     color: #333;
     margin: 0; 
     font-weight: bold;
} 
 
p { 
     font-size: 16px;
     margin: 0; 
     padding: 0 0 1em 0; 
} 

h1 { 
     font-size: 33px; 
     padding: 0 0 7px 0;
     font-weight: normal; 
     font-family: droid_serifregular, Arial, sans-serif;
} 
 
h2 { 
     font-size: 20px; 
     padding: 0 0 2px 0; 
     font-weight: normal;
     font-family: droid_serifregular, Arial, sans-serif;
} 
 
h3 {      
     font-size: 17px; 
     padding: 0 0 .3em 0; 
} 
 
h4 { 
     font-size: 15px; 
     padding: 0 0 .3em 0; 
} 
 
h5 { 
     font-size: 13px; 
     padding: 0 0 .2em 0; 
} 
 
h6 { 
     font-size: 12px; 
     padding: 0 0 .1em 0; 
}

.clear {
	clear: both;
	height: 0px;
	font-size: 0px;
}

#container {
    position:relative; /* needed for footer positioning*/
    height:auto !important; /* real browsers */
    height:100%; /* IE6: treaded as min-height*/
    min-height:100%; /* real browsers */
}

#top_container {
    width: 100%;
    height: 163px;
    background: url(/local/site/layout/header.jpg) repeat;
}

#top {
    max-width: 980px;
    margin: 0 auto;
}


#logga {
    width: 134px;
    height: 134px;
    float: left;
    padding-top: 15px;
}

#menu {
    width: 80%;
    float: right;
    height: 163px;
}

#menu ul {
    padding: 65px 0px 0px 0px;
    margin: 0px;
    list-style-type: none;
}

#menu ul li {
    float: left;
    position: relative;
}

#menu ul li a {
    display: block;
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    padding: 0px 24px;
    border-right: 2px solid #fff;
    font-family: Helvetica Neue, texgyreherosregular, Arial, sans-serif;
}

#menu ul li:last-child a {
    border-right: none;
}

#menu ul li.active a, #menu ul li.subactive a, #menu ul li:hover a {
    color: #c7b200;
}

#content, #content2 {
    max-width: 980px;
    margin: 60px auto 0px;
}

#content {
    padding-bottom: 124px;
}

#maincontent {
    text-align: center;
}

#maincontent h1 {
    font-size: 70px;
    padding-bottom: 5px;
    text-transform: uppercase;
    color: #293137;
    font-family: Helvetica Neue, texgyreherosregular, Arial, sans-serif;
}

#maincontent p {
    font-size: 30px;
    color: #293137;
    font-family: droid_serifregular, Arial, sans-serif;
}

#bildyta {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 124px;
}

#leftcontent {
    float: left;
    width: 57%;
}

#maincontent2 {
    float: right;
    width: 40.8%;
}

#maincontent2 a{
    text-decoration: underline;
}

#footer_container {
    position:absolute;
    bottom:0; /* stick to bottom */
    width: 100%;
    height: 64px;
    background-color: #293137;
}

#footer_content {
    max-width: 980px;
    margin: 0 auto;
    padding-top: 24px;
}

#footer {
    width: 70%;
    float: left;
    font-size: 12px;
    color: #fff;
}

#footer p {
    font-size: 12px;
    color: #fff;
}

#forss {
    width: 28%;
    float: right;
    text-align: right;
    font-size: 12px;
}

#forss a {
    color: #fff;
}

.kontakt_container{
    width:100%;
}

.kontakt {
    width: 222px; 
    /*height: 190px;   */
    float: left;
    margin-right: 30px;
    margin-bottom: 30px;
    position: relative;
}

.projekt_container {
    
}

.projekt {
    width: 222px;
    height: 190px;
    float: left;
    margin-right: 30px;
    margin-bottom: 30px;
    position: relative;
}

.projekt:nth-child(4n+4) {
    margin-right: 0px;
}

.projekt_hover {
    position: absolute;
    width: 222px;
    height: 190px;
    background: url(/local/site/layout/projekt_hover.png) repeat;
    top: 0px;
    left: 0px;
    z-index: 6;
    display: none;
}

.projekt:hover .projekt_hover {
    display: block;
}

.projekt_rubrik {
    font-size: 16px;
    color: #fff;
    left: 20px;
    position: absolute;
    top: 120px;
    text-transform: uppercase;
    font-family: droid_serifregular, Arial, sans-serif;
}

.projekt_text {
    font-size: 14px;
    color: #fff;
    left: 20px;
    position: absolute;
    top: 140px;
}

.projekt_rubrik a, .projekt_text a {
    color: #fff;
    display: block;
}

@media only screen and (min-width : 100px) and (max-width : 480px) {
    .byggbyran_h2{
        padding-bottom:3px;
    }
    
    .miljoe_img{
        padding-top:0px;
    }
    
    #maincontent h1 {
        font-size: 30px;
    }
    
    #maincontent p {
        font-size: 20px;
    }
    
    #bildyta {
        padding-bottom: 100px;
    }
}

@media only screen and (min-width : 768px) and (max-width : 1024px) {
	
}

@media only screen and (min-width : 481px) and (max-width : 900px) {
    #maincontent h1 {
        font-size: 40px;
    }
    .byggbyran_h2{
        padding-bottom:3px;
    }
}

@media only screen and (min-width : 100px) and (max-width : 900px) {
    .byggbyran_h2{
        padding-bottom:3px;
    }
    
    .miljoe_img{
        padding-top:0px;
    }
    
    #footer_content {
        padding-top: 8px;
    }
    
    #footer, #forss {
        width: 95%;
        margin: 0 auto;
        float: none;
        text-align: center;
    }
}

@media only screen and (min-width : 760px) and (max-width : 1024px) {
    .miljoe_img{
        padding-top:60px;
    }
    
    .projekt_container {
        width: 726px;
        margin: 0 auto;
    }
    
    .kontakt_container {
        
    }
    
    .kontakt:nth-child(2n+2){
         margin-right: 0px;
    }
    
     .kontakt:nth-child(4n+4){
         margin-right: 0px;
    }
    
    .projekt:nth-child(3n+3) {
        margin-right: 0px;
    }
    
    .projekt:nth-child(4n+4) {
        margin-right: 30px;
    }
}

@media only screen and (min-width : 510px) and (max-width : 759px) {
      .kontakt_container {
        width: 550px;
        
    }
    
    .kontakt:nth-child(2n+2){
         margin-right: 30px;
    }
    
     .kontakt:nth-child(4n+4){
         margin-right: 30px;
    }
    
    
    .projekt_container {
        width: 474px;
        margin: 0 auto;
    }
    
    .projekt:nth-child(3n+3) {
        margin-right: 30px;
    }
    
    .projekt:nth-child(4n+4) {
        margin-right: 30px;
    }
    
    .projekt:nth-child(2n+2) {
        margin-right: 0px;
    }
}

@media only screen and (min-width : 100px) and (max-width : 509px) {
    .projekt_container {
        width: 222px;
        margin: 0 auto;
    }
    
    .projekt {
        margin-right: 0px;
    }
    
    .projekt:nth-child(3n+3) {
        margin-right: 0px;
    }
    
    .projekt:nth-child(4n+4) {
        margin-right: 0px;
    }
    
    .projekt:nth-child(2n+2) {
        margin-right: 0px;
    }
}

@media only screen and (min-width : 100px) and (max-width : 720px) {
    #leftcontent {
        width: 95%;
        margin: 0 auto;
        float: none;
    }
    
    #maincontent2 {
        width: 95%;
        margin: 0 auto;
        float: none;
    }
}
@media only screen and (min-width : 100px) and (max-width : 1024px) {
	#content, #content2, #bildyta, #top, #footer_content {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media only screen and (min-width : 751px) and (max-width : 900px) {
    #menu ul li a {
        padding: 0px 20px;
    }
}
 
@media only screen and (min-width : 100px) and (max-width : 1030px) {   
    #menu {
        display: none;
    }
    
    #mobilemenu, #mobilesubmenu {
        display: initial;
    }
    
    #mobilemenu_header {
        width: 40px;
        height: 32px;
        font-size: 25px;
        font-weight: bold;
        color: #fff;
        padding:0px;
        position: absolute;
		right: 20px;
        top: 65px;
        background: url(/local/site/layout/mobilemenu.png) no-repeat;
    }
    
    #mobilemenu_content ul {
        margin: 0px 0px 8px 0px;
        padding: 0px;
        padding-bottom: 3px;
        width: 100%;
        z-index: 200;
        background-color: #35424c;
        position: relative;
    }
    
    #mobilemenu_content ul li {
    	float: none;
    }
    
    #mobilemenu_content ul li a {
        color: #fff;
        display: block;
        padding: 5px 10px;
        font-size: 20px;
        text-decoration: none;
        background: url(/local/site/layout/mobilemenudivider.jpg) repeat-x bottom;
    }
    
    #mobilemenu_content ul li.active a, #mobilemenu_content ul li.subactive a {
		background-color: #4d627d;
    }
    
    #mobilemenu_content ul li ul {
    	background-color: #4d627d;
		margin: 0px;
		padding: 0px;
    }
    
    #mobilemenu_content ul li.active ul li.active a, #mobilemenu_content ul li.subactive ul li.active a, #mobilemenu_content ul li.active ul li.subactive a, #mobilemenu_content ul li.subactive ul li.subactive a {
		background-color: #35424c;
    }
    
    #mobilemenu_content ul li ul li a {
		font-size: 16px;
		padding: 7px 10px 7px 30px;
    }
}