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

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

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

body {
	overflow: -moz-scrollbars-vertical;
	font-family: 'OpenSans', Arial, sans-serif;
	font-size: 12px;
    color:#333;
}

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

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

ul {
	margin-left: 30px;
	margin-top: 0px;
	padding: 0px;
}

img {
	border: 0;
}

a {
	text-decoration: underline;
    color:#1b3e93;
}

h6, h5, h4, h3, h2, h1 { 
     line-height: 120%;
     color: #1b3e93;
     margin: 0; 
     font-weight: normal;
     font-family: 'open_sansbold', Arial, sans-serif;
} 
 
p { 
     font-size: 12px;
     margin: 0; 
     padding: 0 0 1em 0; 
} 

h1 { 
     font-size: 30px; 
     padding: 0 0 .4em 0; 
} 
 
h2 { 
     font-size: 25px; 
     padding: 0 0 .4em 0; 
} 
 
h3 {      
     font-size: 20px; 
     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%;
    min-height:120px;
    background:#f1f1f1 url(/local/site/layout/top_bg.png) no-repeat;
    background-size:cover;
}

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

#logga{
    float:left;
    width:167px;
    padding-top:47px;
    margin-right:15px;
}

#logga img{
    max-width:100%;
}

#language{
    float:right;
    width:15%;
    margin-top:50px;
}

#menu {}

#mobilemenu{
    display: none;
}

#menu ul{
    margin:0;
    padding:0;
}

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

#menu ul li a {
    display: block;
    color: #666;
    margin-top:25px;
    padding: 25px 15px 25px 12px;
    font-family: 'open_sansbold', Arial, sans-serif;
    font-size:14px;
    text-transform: uppercase;
    text-decoration: none;
    border-left:1px solid #fff;
}

#menu ul li:last-child a{
    border-right:1px solid #fff;
}

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

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

#menu ul li ul {
    position: absolute;
    z-index: 100;
    height: auto;
    list-style-type: none;
    margin: 0;
    padding:10px 20px;
    min-width: 200px;
    background-color: #f8f8fc;
}

#menu ul li ul li {
    float: none; 
}

#menu ul li ul li a {
    font-size: 14px;
    padding:5px 0;
    margin-top:0;
    border-left: none;
    color: #666;
    text-transform:none;
}

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

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

#content{
    padding-bottom:70px;
}

#content img{
    max-width:100%;
}

.maincontainer{
    max-width: 1060px;
    margin: 20px auto;
}

#maincontent{
    float:left;
    width:22%;
}

#maincontent h1{
    font-size:20px;
}

#main{}

.bild_content{
    float:right;
    width: 75%;
}

#bildyta{
    float:left;
    width:65%;
}

#kontakt{
    float:right;
    width:32%;
}

.kontakt h1{
    font-size:14px;
    background-color:#e9e9e9;
    display: block;
    padding:10px;
    margin-bottom:15px;
}

.border{
    float:left;
    width:40%;
    height:3px;
    background-color: #f1f1f1;
}

.border_title{
    float:left;
    width:20%;
    margin-top:-10px;
}

.tjanster_container .border_title h1{
    text-transform: uppercase;
    text-align: center;
    font-size:20px;
}

.tjanster_container{
    max-width: 1060px;
    margin: 30px auto 0;
}

.top{
    margin:15px 0 0;
}


.puff{
    background-color:#dedede;
    float:left;
    width:24%;
    height:153px;
}

.puff_content{
    padding:20% 18% 0;
}

.puff p {
    color:#666;
    text-align: center;
    font-family: 'open_sansbold', Arial, sans-serif;
    font-size:14px;
    text-decoration: underline;
}

.puff_padding {
    margin-right:1.3%;
}

.tjanst_puff{
    float:left;
    width:24%;
    position: relative;
    margin-bottom:20px;
}

.tjanst_puff img{
    width:100%;
}

.tjanst_title{
    background-color:#999;
    opacity:0.9;
    padding:15px 0 10px;
    position: absolute;
    bottom:0;
    width:100%;
}

.tjanst_title h1{
    font-size:13px;
    color:#fff;
    text-decoration: none;
    text-align: center;
}

.tjanst_puff:hover img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);  /* For Webkit browsers */
    filter: gray;  /* For IE 6 - 9 */
    -webkit-transition: all .6s ease;  /* Transition for Webkit browsers */
}

.tjanst_puff:hover .tjanst_title {
    background-color:#1b3e93;
}

#maincontent2{
    float:left;
    width:73%;
}

#bildyta2 p{
    padding:0;
}

#header{
    background-color: #e9e9e9;
    padding:10px 15px 2px;
    margin-bottom:20px;
}

#rightcontent{
    float:right;
    width:24%;
}

#right{}

#footer_container{
    margin:0 auto 0;
    width:100%;
    position:absolute;
    bottom:0; /* stick to bottom */
}

#footer_content{
    width: 1100px;
    margin: 0 auto;
    border-top:2px solid #1c3f94;
    padding:10px 0;
}

#footer{
    float:left;
    width:30%;
}

#footer p{
    color:#1c3f94;
}

#footer img{
    padding-left:10px;
}

#footer a{
    text-decoration: none;
}

#footer_menu{
    float:left;
    width:45%;
    margin-top:7px;
}

#footer_menu ul{
    margin:0;
    padding:0;
}

#footer_menu ul li{
    float:left;
    list-style: none;
    position: relative;
}

#footer_menu ul li a{
    padding:0 7px;
    color:#666;
    text-decoration: none;
}

#forss{
    float:right;
    margin-top:7px;
}

#forss a{
    color:#666;
    text-decoration: none;
}

@media only screen and (min-width : 100px) and (max-width : 1120px) {
    #top{
        width:95%;
    }
    
    #menu ul li a{
        font-size:13px;
        padding:25px 12px;
    }
    
    #language{
        width:13%;
    }
    
    .maincontainer{
        width:95%;
    }
    
    .tjanster_container{
        width:95%;
    } 
    
    #footer_content{
        width:95%;
    }
}

@media only screen and (min-width : 100px) and (max-width : 1090px) {
	#footer_menu{
        display: none;
    }
    
    #footer{
        width:50%;
    }
}

@media only screen and (min-width : 100px) and (max-width : 1070px) {
    #language{
        width:115px;
    }
    
    #google_translate_element{
        right:0;
    }
    
    .tjanst_puff{
        width:31%;
    }
    
    .puff{
        width:31%;
        max-height:185px;
    }
    
    .puff p{
        font-size:17px;
    }
    
    .puff_padding2{
        margin-right:1.3%;
    }
    
    .tjanst_title h1{
        font-size:15px;
    }
}

@media only screen and (min-width : 100px) and (max-width : 900px) {
    #maincontent {
        float:none;
        width:100%;
    }
    
    .bild_content{
        float:none;
        width:100%;
    }
}

@media only screen and (min-width : 100px) and (max-width : 780px) {
    .border{
        width:35%;
    }
    
    .border_title{
        width:30%;
    }
    
    .puff{
       height:130px;
    }
    
    .puff p{
        font-size:14px;
    }
    
    .tjanst_title h1{
        font-size:13px;
    }
    
    #bildyta{
        width:50%;
        margin-bottom:20px;
    }
    
    #kontakt{
        width:45%;
    }
    
    #maincontent2{
        float:none;
        width:100%;
        margin-bottom:20px;
    }
    
    #rightcontent{
        float:none;
        width:100%;
    }
}

@media only screen and (min-width : 100px) and (max-width : 690px) {
    
    #content{
        padding-bottom:120px;
    }
    
    .tjanst_puff{
        width:45%;
    }
    
    .puff{
        width:45%;
        height:169px;
    }
}

@media only screen and (min-width : 100px) and (max-width : 600px) {
    #footer{
        float:none;
        width:100%;
        text-align: center;
    }
    
    #forss{
        float:none;
        width:100%;
        margin-top:15px;
        text-align: center;
    }
}

@media only screen and (min-width : 100px) and (max-width : 570px) {
    #bildyta{
        float:none;
        width:100%;
    }
    
    #kontakt{
        float:none;
        width:100%;
    }
}

@media only screen and (min-width : 100px) and (max-width : 550px) {
     h1{
         font-size: 25px;
     }
    
     .border{
         display: none;
     }
     
     .border_title {
         float:none;
         width:100%;
         text-align: center;
     }
     
     .puff{
         float:none;
         width:100%;
         height: auto;
     }
     
     .puff_content{
         padding:5%;
     }
     
     .tjanst_puff{
         float:none;
         width:100%;
         height:150px;
     }
     
     .tjanst_puff img{
         height:150px;
     }
     
     .puff_padding{
         margin-right:0;
     }
     
     
}

@media only screen and (min-width : 100px) and (max-width : 1024px) {
	#menu {
        display: none;
    }
    
    #mobilemenu, #mobilesubmenu {
        display: block;
    }
    
    #mobil_content{
        width:100%;
        height: 30px;
        margin-top:15px;
    }
    
    #mobilemenu_header {
        width: 100px;
        
        font-size: 22px;
        font-weight: normal;
        color: #333;
        padding:0px;
        position: absolute;
		right: 20px;
        margin-top: 0px;
        background: url(/local/site/layout/mobilemenu.png) no-repeat right;
    }
    
    #mobilemenu_content ul {
        margin: 0px 0px 8px 0px;
        padding: 0px;
        padding-bottom: 3px;
        width: 100%;
        z-index: 200;
        background-color: #384d68;
        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: #384d68;
    }
    
    #mobilemenu_content ul li ul li a {
		font-size: 16px;
		padding: 7px 10px 7px 30px;
    }
}