/* CSS Document */

@import url(fancybox.css);

* { margin: 0; padding: 0;}

body {
  background: #000c13 url("http://www.megalock.fi/megaflex/images/bg_body.gif") center 80px no-repeat;
  color: #fff;
  font: normal 14px Verdana;
  line-height: 16px;
  margin: 0;
}

a {
  color: #009ee0; text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a img { border: 2px solid #009ee0;}
a:hover img { border: 2px solid #00526f;}

/* Lang navi */

.lang_navi {
  position: absolute; top: 5px; right: 5px;
  font-size: 10px; padding: 2px;
}

a.lang {
  background: url("http://www.megalock.fi/roller/images/flag.png") no-repeat;
  width: 16px; height: 11px;
  padding-left: 20px;
}

a.lang.fi {
  background-position: left -13px;
}

a.lang.en {
  background-position: left 1px;
}

/* Layout
--------------------------------------------------------- */

#header {
  left: 0; top: 0; width: 100%;
  overflow: hidden; position: fixed;
  z-index:3;
}

#header_container { background: #000c13; }

#header_container_wrap {
  margin: 0 auto; padding: 10px 0 0 0;
  width: 960px; overflow: hidden;
  position: relative;
}

#header_gradient {
	height: 24px;
	background: url("http://www.megalock.fi/megaflex/images/bg_navi_gradient.png") left bottom repeat-x;
}

#header h1 {
  float: left;
  margin: 0;
}

#header h1 a {
  display: block; outline: none;
  width: 633px; height: 80px;
  background: url("http://www.megalock.fi/megaflex/images/logo.gif") center center no-repeat;
}

#header h1 a:hover, #header h1 a.active {
  background: url("http://www.megalock.fi/megaflex/images/logo_active.gif") center center no-repeat;
}

#header h1 a span {
  margin-left: -9999px;
}

#container {
  width: 960px;
  margin: 0 auto;
}

#section_main {
  padding: 100px 0 0 0; margin: 0 0 0 0;
  overflow: hidden;
}

#section_desc {
  padding: 120px 0 0 0; margin: 0 0 0 0;
  overflow: hidden;
}

#section_qualities {
  padding: 120px 0 0 0; margin: 0 0 0 0;
  overflow: hidden;
}

#footer {
  width: 100%; overflow: hidden;
  padding: 20px 0 100px 0;
	background: #006a94 url("http://www.megalock.fi/megaflex/images/bg_footer.gif") left bottom repeat-x;
}

#section_footer{
  margin: 0 auto; width: 960px; overflow: hidden;
  padding: 120px 0;
}

/* Navi
--------------------------------------------------------- */

#navi, #navi_en {
  list-style-type: none;
  float: right;
}

ul#navi li, ul#navi_en li {
  float: left;
}

ul#navi li a, ul#navi_en li a {
  display: block; color: #fff;
  height: 80px; outline: none;
}

ul#navi li a span, ul#navi_en li a span { margin-left: -9999px; }


ul#navi li a.desc { background: url("http://www.megalock.fi/megaflex/images/bg_navi.gif") 0px 0px no-repeat; width: 100px; }
ul#navi li a:hover.desc { background-position: 0px -80px; }

ul#navi li a.qualities { background: url("http://www.megalock.fi/megaflex/images/bg_navi.gif") -100px 0px no-repeat; width: 95px; }
ul#navi li a:hover.qualities { background-position: -100px -80px; }

ul#navi li a.contact { background: url("http://www.megalock.fi/megaflex/images/bg_navi.gif") -195px 0px no-repeat; width: 132px; }
ul#navi li a:hover.contact { background-position: -195px -80px; }

ul#navi_en li a.desc { background: url("http://www.megalock.fi/megaflex/images/bg_navi_en.gif") 0px 0px no-repeat; width: 148px; }
ul#navi_en li a:hover.desc { background-position: 0px -80px; }

ul#navi_en li a.qualities { background: url("http://www.megalock.fi/megaflex/images/bg_navi_en.gif") -148px 0px no-repeat; width: 95px; }
ul#navi_en li a:hover.qualities { background-position: -148px -80px; }

ul#navi_en li a.contact { background: url("http://www.megalock.fi/megaflex/images/bg_navi_en.gif") -243px 0px no-repeat; width: 84px; }
ul#navi_en li a:hover.contact { background-position: -243px -80px; }

/* Text
--------------------------------------------------------- */

h2 {
  padding: 0; margin: 0 0 20px 0;
  color: #fff;
  font-size: 2.2em; line-height: 1em;

  border-bottom: 1px solid #00384e;
}

h2 span {
  display: block; padding: 6px 0;
  margin-left: -9999px;
}

h2.main { background: url("http://www.megalock.fi/megaflex/images/h2_main.gif") left top no-repeat; }
h2.desc { background: url("http://www.megalock.fi/megaflex/images/h2_desc.gif") left top no-repeat; }
h2.qualities { background: url("http://www.megalock.fi/megaflex/images/h2_qualities.gif") left top no-repeat; }
h2.contact { background: url("http://www.megalock.fi/megaflex/images/h2_contact.gif") left top no-repeat; }
h2.main-en { background: url("http://www.megalock.fi/megaflex/images/h2_main_en.gif") left top no-repeat; }
h2.desc-en { background: url("http://www.megalock.fi/megaflex/images/h2_desc_en.gif") left top no-repeat; }
h2.qualities-en { background: url("http://www.megalock.fi/megaflex/images/h2_qualities_en.gif") left top no-repeat; }
h2.contact-en { background: url("http://www.megalock.fi/megaflex/images/h2_contact_en.gif") left top no-repeat; }

h2.info { clear: both; }

#footer h2 { border-bottom: 1px solid #007eaf; }
#footer h2 span { border-bottom: 1px solid #004f6f; }



h3 {
  font-size: 16px; margin: 30px 0 20px 0; 
}

p {
  margin: 1em 0;
}

.sml {
  font-size: 0.8em;
}

/* Xtra
--------------------------------------------------------- */

.backtop {
  clear: both; text-align: right;
  padding: 20px 10px 0 0;
  margin: 20px 0;
  border-top: 1px solid #00384e;
}

#footer .backtop {
  margin: 30px 0 0 0;
  padding: 0px;
  border-top: 1px solid #004f6f;
}

#footer .backtop span {
  display: block; border-top: 1px solid #007eaf;
  padding: 20px 10px 0 0;
}

div.dots {
  clear: both; height: 6px;
  font-size: 0px;
  background: url("http://www.megalock.fi/megaflex/images/bg_dot.png") left center repeat-x;
}

div.col {
  width: 470px; overflow: hidden;
}

.fl { float: left;}
.fr { float: right;}
.mr10px { margin-right: 10px; }
.ml10px { margin-left: 10px; }

/* Forms
--------------------------------------------------------- */

form { padding: 10px; }

div.row {
  clear: both; overflow: hidden;
  margin-bottom: 6px;
}

div.row span.label {
  float: left; width: 120px;
  text-align: right;
  margin-top: 2px; font-size: 0.8em;
}

div.row span.formw {
  float: right; width: 300px;
  text-align: left;
}

input, textarea {
  padding: 2px; border: 1px solid #4e5e66;
  font-size: 0.9em;
}

input.text, textarea {
  width: 180px; padding: 3px;
}

input.submit {
  width: 80px; padding: 4px;
  font-weight: bold; margin: 4px 0 0 0;
}


.blue_button {
	height: 30px; position: absolute; background: #085e7d; color: #FFF; padding: 15px 15px 0 15px; margin: 10px 0 0 0;
}
