/**
 * Copyright SwedishWebMaker 2013
 * stefan@swedishwebmaker.se
 * 2013-06-22
 */

/* NOTE! Customer specific customizations should go into css/customize.css. Leave this file unchanged. */

* { /*  sticky footer */
  margin: 0;
}

html {
  overflow-y: scroll; /* prevent "jumping" by setting scrollbar always on */
}

html, body { /*  sticky footer */
  height: 100%;
}

div#swmwrapper { /* sticky footer */
  position: relative;
  min-height: 100%;
  height: auto !important;
  height: 100%;
}

div#swmfooterwrapper { /* sticky footer */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* full width template */
}

/* common */
iframe {
  width: 100%;
}

h1 {
  font-size: 18px;
  font-weight: normal;
  line-height: 20px;
}

h2 {
  font-size: 16px;
  font-weight: normal;
  line-height: 18px;
}

h3 {
  font-size: 14px;
  font-weight: normal;
  line-height: 16px;
}

h4 {
  font-size: 13px;
  font-weight: normal;
  line-height: 15px;
}

h5 {
  font-size: 12px;
  font-weight: normal;
  line-height: 14px;
}

h6 {
  font-size: 11px;
  font-weight: normal;
  line-height: 13px;
}

iframe {
  width: 100%;
}

div.swmwidth:first-child { /* page width */
  width: 800px;
  margin-left: auto;
  margin-right: auto;
}

div#swmwrapper {
  padding-left: 0;
  padding-right: 0;
}

table#centercenter { /* centering table */
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0; 
  margin: 0 auto 0 auto;
}

table#centercenter td {
  vertical-align: middle;
  text-align: center;
}

div.swmcollapsed { /* hidden */
  visibility: hidden; 
  display: none;
}

div.moduletable {
  padding: 10px;
}

.row-fluid [class*="span"]:first-child div.item-page { /* when content is first container, i.e. left is not visible */
  padding-left: 10px;
}

.row-fluid [class*="span"]:last-child div.item-page { /* when content is last container, i.e. right is not visible */
  padding-right: 10px;
}

div.container { /* when inside a wrapper */
  height: 100%;
}


/* header */
div#swmheaderwrapper {
  height: 125px;
  background-color: lightblue;
  /* background-image: url(' '); 
  background-repeat: no-repeat;
  background-position: left center; */
  width: 100%; /* template is "full" */
}

div#swmheader, div#swmheader > a > div  { /* only the div containing logo + title + desc */
  height: 100%;
  text-align: center;
}

div#swmheader h4 {
  font-size: 18px;
}

div#swmheader p {
  font-size: 14px;
  font-weight: bold;
}

/* headermenu */ 
div#swmheadermenu ul li {
  border-right: 1px solid; /* set the color same as menu text in customize.css */
  padding-left: 15px;
  padding-right: 15px; 
}

div#swmheadermenu ul li:last-child {
  border-right: none;
}

div#swmheadermenu ul li span, div#swmheadermenu ul li a {
 margin-left: 0;
} 

/* menu */
div#swmmenuwrapper, div#swmmenuwrapper ul {
  background-color: darkgrey;
}

div#swmmenu {
}

div#swmmenuleft ul, div#swmmenuright ul {
  margin-left: 0;
  margin-right: 0;
}

div#swmmenuleft ul li, div#swmmenuright ul li {
  display: inline;
  list-style: none;
}

div#swmmenuright ul {
  text-align: right;
}

div#swmmenuleft {
}

div#swmmenuright {
}

ul.menu {
  margin-top: 5px;
  margin-bottom: 5px;
}

ul.menu li span.separator, ul.menu li a {
  margin-left: 20px;
}

ul.menu li:first-child span.separator, ul.menu li:first-child a {
  margin-left: 0;
}

/* banner1 */

div#swmbannerwrapper {
  margin-top: 20px;
}

div#swmbanner div.moduletable {
  padding: 0;
}

div#swmbanner h1:first-child, div#swmbanner h2:first-child, div#swmbanner h3:first-child, div#swmbanner h4:first-child { /* first h1-h4 aligned with top */ 
 margin-top: 0;
} 

/* left, content, right */

div#swmleft > div.moduletable, div#swmright > div.moduletable {
  padding-top: 0;
}

div#swmleft > div.moduletable img, div#swmright > div.moduletable img {
  width: 100%;
  height: auto;
}
div#swmcontentwrapper {
  margin-top: 20px;
}

div#swmcontent {
}

/* subbox */

div#swmsubboxwrapper {
  margin-top: 20px;
  min-height: 0;
}

div#swmsubbox div {
  min-height: 0;
}

/* footer = bottom1, bottom2, bottom3 */
div#swmfooterwrapper {
  /* margin-top: 20px; */
  background-color: darkblue;
}

div#swmfooter {
  display: table;
  padding-bottom: 10px;
}

/* swmlink */
div#swmlinkwrapper {
  position: absolute; 
  bottom: 0;
  width: 100%;
}

div#swmlink {
  padding-right: 20px;
  text-align: right;
}

div#swmlink p, div#swmlink a {
  font-family: Arial;
  font-size: 10px;
  letter-spacing: normal;
  word-spacing: normal;
  font-style: normal;
  font-weight: normal;
  color: #647587;
  opacity: 0.8;
  margin-bottom: 0px;
}

div#swmlink > div.span12 {
  min-height: 20px;
}

/* rsform */

div.formBody input, div.formBody textarea { /* form fluid */ 
  width: 100%; 
}

div.formBody img { /* captcha image should not resize */
  width: 70px ! important;
}

div.formBody input[type=text] {
  height: 30px;
}

/* div.formBody input#Send { /* send button */ 
  /* width: 100%; 
} */

strong.formRequired {
  color: #999;
}

/* rounded corners */

.rounded {
  border-radius: 10px;
  -moz-border-radius: 10px;
}

/* left justified */

.left {
  text-align: left;
  float: left;
  left: 0;
  padding-left: 15px;
  margin-left: 10px;
}

/* right justified */

.right {
  text-align: right;
  float: right;
  right: 0;
  padding-right: 10px;
  margin-right: 10px;
}

/* glue an object to the bottom of the container (which should be position: relative) */

.gluebottom {
  position: absolute; 
  bottom: 0;
}


/* rsform html5 responsive */
/* must use important because the order of loading css files seems to be random */

.formResponsive .formHorizontal .formControlLabel { /* always labels above field */ 
  float: none ! important;
  width: auto ! important;
  padding-top: 0 ! important;
  text-align: left ! important;
}

.formResponsive .formHorizontal .formControls {
  margin-left: 0 ! important;
}

.formResponsive .formHorizontal .rsform-block { 
  margin-bottom: 0 ! important;
}


/* responsive */
/* Large desktop */
@media (min-width: 1200px) { 
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) { 
  body {
    padding-left: 0;
    padding-right: 0;
  }

  div.swmwidth:first-child {
    width: auto ! important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0;
  }

  div.swmequal { /* no equal heights on tablet/phone */
    height: auto ! important;
  }

  .gluebottom { /* no glueing on tablet/phone */
    position: inherit; 
  }

  .left {
    float: none;
    padding-left: 0;
    margin-left: 0;
  }

  .left {
    float: none;
    padding-right: 0;
    margin-right: 0;
  }


  div#swmheader {
    padding: 0;
  }

  /* div#swmfooterwrapper { /* remove footer stickyness on smaller devices */
    /* position: absolute;
    left: inherit ! important;
    bottom: inherit ! important;
  } */

  div#swmheader { /* was wrapper in bs 2.x */
    background-position: center center ! important; 
    background-size: 90% auto;
  }

  div.moduletable {
    padding: 0;
  }
} 

/* Landscape phone to portrait tablet */
@media (max-width: 767px) { 
  body {
    padding-left: 0;
    padding-right: 0;
  }

  .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  div.swmwidth:first-child {
    width: auto ! important; 
    padding-left: 15px;
    padding-right: 15px;
    margin: 0;
  }

  div.moduletable {
    padding: 0;
  }

  div.swmequal { /* no equal heights on tablet/phone */
    height: auto ! important;
  }

  .gluebottom { /* no glueing on tablet/phone */
    position: inherit; 
  }

  .left {
    float: none;
    padding-left: 0;
    margin-left: 0;
  }

  .left {
    float: none;
    padding-right: 0;
    margin-right: 0;
  }

  div#swmheader {
    padding: 0;
  }

  /* phone menu */
  div#swmmenu {
    padding-left: 0px;
    padding-right: 0px;
    display: block ! important;
  }

  ul.menu li span.separator, ul.menu li a {
    margin-left: 0;
  }

  div.swmphonemenuwrapper {
    margin: 0px auto 0px auto;
    width: 100%; 
    text-align: left;
    border: 1px 0px 1px 0px solid black;
    padding: 10px 0 10px 0;
    display: inherit ! important; 
  }

  div.swmphonemenuwrapper a {
    box-shadow: none ! important;
    font-size: 14px;
    text-transform: uppercase; 
    text-decoration: none;
  } 

  span.caret.swmmenuleft {
    margin-top: 0px;
    border: none;
    height: 36px;
    width: 40px;
    background-image: url('../images/meny-ikon-32x28.png');
    background-position: center center;
    background-repeat: no-repeat;
  }

  ul.swmmenuleft {
    width: 100%;
    padding: 0;
    /* margin: 0; */
    margin: 40px 0 0 0;
    border: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
  }

  ul.swmmenuleft li {
    display: block;
    margin-right: 0px;
    padding: 10px 0 10px 0; 
    border-style: solid;
    border-color: black;
    border-width: 0 0 1px 0;
  }

  ul.swmmenuleft li:first-child {
    border-top-width: 1px;
  } 

  ul.swmmenuleft li a {
    background-color: inherit ! important;
    background-image: none ! important;
  }

  ul.swmmenuleft li a:hover, ul.swmmenuleft li a:focus {
    color: black ! important;
    text-decoration: none ! important;
  }

  div#swmsubboxwrapper {
    padding-bottom: 0 ! important; /* stickyness is removed on phone, no need for padding */
  }

  /* footer */
  div#swmfooterwrapper { /* remove footer stickyness on smaller devices */
    position: absolute;
    left: inherit ! important;
    bottom: inherit ! important;
  }

}
 
/* Landscape phones and down */
@media (max-width: 480px) { 
}

/* autoonpageload */
.autopopup img {
  width: 100%; 
  height: auto; 
  max-width: 100%;
}