/*
    Color scheme:
        Lightblue: #229AD2
        Darkblue: #2F4591
        Red: #e2151f
        Purple: #b33580
        Orange:#f09200
        Yellow: #ffde02
        Light Green: #95bd12
        Green:#009034
*/
/*Nedanstående är gemensamt för alla html-filer:*/
* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
html {
    width: 100vw;
}
@font-face {
    font-family: Brandon Grotesque BOLD;
    src: url("Font/Brandon_bld.otf");
}
body {
    background: #f1f3f4;
}
h1 {
    display: block;
    font-size: 28px;
    -webkit-margin-before: 0.67em;
    -webkit-margin-after: 0.67em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    margin-bottom: 10px;
    margin-top: 30px;
    opacity: 0.87;
    color: #000000;
}
h2 {
    display: block;
    font-size: 1.5em;
    -webkit-margin-before: 0.83em;
    -webkit-margin-after: 0.83em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}
p {
    display: block;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}
a {
    text-decoration: none !important;
    color: #229AD2;
    cursor: pointer;
}
a:visited {
    color: none;
}
a:hover, .current {
    color: #2F4591;
}
nav {
    position:relative;
    display: block;
    height:100px;
    margin:0;
    width:100%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-bottom: 2px solid #2F4591;
}
#centerer{
    height:100%;
    width:1000px;
    margin-top:0;
    margin-bottom:0;
    margin-left: auto;
    margin-right: auto;
}
#logo_container {
    position:relative;
    display: inline-block;
    height:100px;
    width:200px;
    margin:0;
    line-height: 100px;
}
#buttons_container {
    position:absolute;
    display: inline-block;
    height:100px;
    width:800px;
    top:0;
    margin-left: auto;
    margin-right: auto;
}
#nav_logo{
    position:relative;
    display: block;
    width:auto;
    height:80px;
    margin-top:8px;
    margin-left: auto;
    margin-right: auto;
}
.nav_button{
    position:relative;
    display: inline-block;
    width:20%;
    height:80px;
    margin-top:10px;
    border-left: 2px solid #f1f3f4;
}
#centerer p{
    display: block;
    margin:0;
    line-height: 80px;
    text-align: center;
    color: #229AD2;
    font-size: 1.1em;
}
nav a{
    display: block;
    margin:0;
    height:100%;
    width:100%;
}
nav a:active {
    transition: all cubic-bezier(.62,.28,.23,.99) 0.35s;
    background-color:#f1f3f4;
}
/*Dropdown menu*/
#dropdown_menu_button {
    display: none;
    position: absolute;
    top:25px;
    right:25px;
    background-color:#f1f3f4;
    float:right;
    height:50px;
    width:154px;
    border-radius: 2px;
}
#dropdown_menu_button p{
    height:50px;
    line-height: 50px;
    width: 154px;
    text-align: center;
    margin:0;
}
#dropdown_menu {
    display: none;
    position: absolute;
    background-color:#f1f3f4;
    top:75px;
    right:25px;
    height:260px;
    width:154px;
    border-radius: 2px;
    z-index: 1;
    border-top: 1px solid #2F4591;
}
#dropdown_menu ul {
    line-height: 50px;
    list-style-type: none;
}
#dropdown_menu li {
    height:50px;
    width:154px;
}
#dropdown_menu a{
    text-align: center;
}

footer {
    position:relative;
    display: block;
    height:auto;
    min-height:100px;
    margin:0;
    width:1000px;
    margin-left: auto;
    margin-right: auto;
    padding:20px;
}
footer p {
    opacity: .87;
    color:#000000;
    text-align: center;
}
#footer_mail {
    display: block;
}
.lined {
    text-decoration:line-through !important;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome and Opera */
}

#flow_container {
    position:relative;
    display: block;
    margin-top:0;
    margin-bottom:0;
    margin-left: auto;
    margin-right: auto;
    width: 1000px;
    height:auto;
}
.card {
    position:relative;
    display: block;
    margin-top:0px;
    margin-bottom:0;
    margin-left: auto;
    margin-right: auto;
    padding:30px;
    width: 100%;
    height:auto;
    min-height: 300px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-left: 2px solid#2F4591;
}
.card p, .card h2 {
    margin:0;
    margin-bottom:10px;
}
.card p {
    display: block; 
    opacity: 0; /*Fades in with javascript*/
    width: 100%;
    line-height: 1.5;
    color: #000000;
    opacity: .87;
}
.thick {
    font-weight: bold;
    color:black;
    opacity: 1;
}
/*index.html:*/
.text {
    text-align: justify;
}
#half{
    width: 50%;
    height:auto;
}
#border_top {
    border-top: solid 1px rgba(0,0,0,0.5);
    padding-top:10px;
    text-align: justify;
}
#card_bim_logo{
    position: absolute;
    top:0px;
    right:0px;
    width: auto;
    height: 310px;
    display: inline-block;
}
/*typkod.html:*/
#card_byggdelar_img{
    position: absolute;
    top:30px;
    right:30px;
    display: block;
    width:600px;
    height:auto;
    cursor: pointer;
}
#typkort_text {
    width:300px;
    
}
/*Samarbeten.html:*/
.row{
    display:block;
    position: relative;
    height: 50%;
    width: 100%;
}
#row_centerer1{
    display:block;
    position: relative;
    height: 100%;
    width: 854px;
    margin-left: 20%;
    margin-right: auto;
}
#row_centerer2{
    display:block;
    position: relative;
    height: 100%;
    width: 854px;
    margin-left: auto;
    margin-right: auto;
}
#row_centerer3{
    padding-bottom:15px;
    display:block;
    position: relative;
    height: 100%;
    width: 854px;
    margin-left: 20%;
    margin-right: auto;
}
#row_centerer4{
    padding-top:15px;
    border-top: 1px solid #2F4591;
    display:block;
    position: relative;
    height: 100%;
    width: 854px;
    margin-left: auto;
    margin-right: auto;
}
.corporator {
    display: inline-block;
    vertical-align: middle;
    width:260px;
    height:auto;
    margin-right:20px;
}
.corporator img{
    height: 100%;
    width: 100%;
}
.corporator2 {
    display: inline-block;
    vertical-align: middle;
    width:260px;
    height:auto;
    margin-right:50px;
}
.corporator2 img{
    height: 100%;
    width: 100%;
}
.corporatorcollab {
    display: inline-block;
    vertical-align: middle;
    width:100px;
    height:100%;
    margin-left:377px;
}
.corporatorcollab img{
    height: 100%;
    width: 100%;
}
/*Responsiveness:*/
@media screen and (max-width: 1000px) {
    #flow_container, footer, #centerer {
      width: 100%;
    }
    #buttons_container {
        display: none;
    }
    #half {
        width: 100%;
    }
    #dropdown_menu_button {
        display: block;
    }
    h1{
        margin-left: 46px;
    }
    #card_bim_logo {
        position: relative;
        display: block;
        width:auto;
        float: none;
        margin:auto;
        padding:20px;
    }
    #card_byggdelar_img {
        position: relative;
        display: block;
        width:100%;
        float: none;
        top: 0;
        right: 0;
    }
    #typkort_text {
        width:100%;
    }
    #row_centerer1, #row_centerer2, #row_centerer3 {
        width:100%;
        height:auto;
    }
    .corporator {
        margin:20px;
    }
}
