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

.loading {
  background: url("../../img/loadingSpinner.gif") no-repeat scroll 50% 50% transparent;
  min-height: 50px;
}

.kehys {
  border: 4px solid #FFFFFF;
  box-shadow: 1px 1px 5px #888888;
}

span.required {
  color: #FF0000;
}

.pageError {
  background-color: #FFEEEE;
  background-image: url("../../img/icon_error.png");
  background-position: 10px 4px;
  background-repeat: no-repeat;
  border: 1px solid #C66F6F;
  border-radius: 7px 7px 7px 7px;
  color: #660000;
  margin-bottom: 10px;
  padding: 7px 0 7px 50px;
  text-align: center;
  width: 945px;
  overflow: hidden;
}
.pageError .pageErrorViesti {
  display: block;
  float: left;
  width: 920px;
}
.pageError .pageErrorSulje {
  color: #777777;
  cursor: pointer;
  float: right;
  font-size: 1.4em;
  margin: -11px 6px 0 0;
  padding: 2px;
}
.pageError .pageErrorSulje:hover {
  color: #000000;
}

#footer #footerSlogan {
  margin: 10px 0 5px 0;
}
#footer #footerSlogan a {
  color: #999999;
  font-size: 0.9em;
  text-decoration: none;
}

/* Validaatio-pluginin virheet */
label.error {
  background: url("../../img/bg_error_label.png") repeat-x scroll top left #C81E2B;
  border-radius: 8px 8px 8px 8px;
  box-shadow: 1px 2px 5px #999999;
  color: #FFFFFF;
  font-size: 0.8em;
  margin-left: 20px;
  margin-top: -1.5em;
  padding: 5px 15px 5px 7px;
  position: absolute;
  white-space: nowrap;
  display: inline;
}
label.error:after {
  border-color: transparent #D22835;
  border-style: solid;
  border-width: 16px 21px 0 0;
  bottom: auto;
  content: "";
  display: block;
  left: -20px;
  position: absolute;
  top: 7px;
  width: 0;
}
textarea.error,
input.error {
  border: 1px solid #DD8888;
}

.validatorErrorClose {
    color: #CCCCCC;
    cursor: pointer;
    margin: -5px 0 0 3px;
    position: absolute;
}
.validatorErrorClose:hover {
    color: #FFFFFF;
}


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

h1.border,
h2.border,
h3.border,
h4.border {
  border-bottom: 1px solid #B1B1B1;
}

#sliderMainContainer {
  background-color: #000000;
  box-shadow: 0 0 5px #888888;
  position: relative;
}
#sliderMain {
  text-align: center;
  position: relative;
}

.flex-control-nav {
  bottom: 10px;
  z-index: 100;
}
.flex-control-paging li a {
  background: url("../../img/slider_img_nonactive.png") no-repeat scroll 0 0 transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  display: block;
  height: 23px;
  text-indent: -9999px;
  width: 23px;
  color: transparent;
}
.flex-control-paging li a:hover {
  background: url("../../img/slider_img_nonactive.png") no-repeat scroll 0 0 transparent;
}
.flex-control-paging li a.flex-active {
  background: none;
  background-image: url("../../img/slider_img_active.png");
}

.flex-control-nav {
  text-align: right;
  padding-right: 20px;
}

#h1Slides {
  color: #FFFFFF;
  font-style: italic;
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 100;
  text-shadow: 2px 2px 1px #000000;
  text-align: left;
}
#h1Slides span {
}

#navigation .navbar-inner {
  background: url("../../img/bg_navi.png") repeat-y scroll 50% 50% #9B9C9F;
  box-shadow: none;
  border-radius: 0;
  border: none;
}
#navigation ul.nav li a {
  background: none;
  box-shadow: none;
  font-weight: bold;
  text-transform: uppercase;
}

#containerMain {
  margin-top: 10px;
}

#footer {
  background-color: #000000;
  height: 75px;
  padding-top: 25px;
  margin-top: 10px;
  color: #FFFFFF;
}
#footer .footerInner {
  margin-top: 13px;
}
#footer .footerInner.twoLines {
  margin-top: 6px;
}

.spanBox {
  background-color: #EBEBEB;
  padding: 10px 15px;
}

table.ajankohtaiset.table tbody th,
table.ajankohtaiset.table tbody td {
  border: none;
}
table.ajankohtaiset.table thead td,
table.ajankohtaiset.table thead th {
  border-bottom: 1px solid #B1B1B1;
}

.noMargin {
  margin: 0 !important;
}

.pikkubanneri {
  background-color: #D5D5D5;
  padding: 10px 20px;
  margin: 0 0 10px 0;
}

#tikkeri {
  position: relative;
  margin-bottom: 10px;
}
#tikkeri .flex-direction-nav .flex-prev:before,
#tikkeri .flex-direction-nav .flex-next:before {
  content: "";
}
#tikkeri .flex-direction-nav .flex-prev,
#tikkeri .flex-direction-nav .flex-next {
  opacity: 1;
  color: transparent;
  height: 65px;
  width: 21px;
}
#tikkeri .flex-direction-nav .flex-prev:active,
#tikkeri .flex-direction-nav .flex-next:active {
  background-position: 1px 1px;
}
#tikkeri .flex-direction-nav .flex-prev {
  background: url("../../img/bg_tikkeri_left.png") no-repeat scroll 0 0 transparent;
}
#tikkeri .flex-direction-nav .flex-next {
  background: url("../../img/bg_tikkeri_right.png") no-repeat scroll 0 0 transparent;
  right: 0;
}
#tikkeri .flex-direction-nav .flex-prev:hover {
  background-image: url("../../img/bg_tikkeri_left_hover.png");
}
#tikkeri .flex-direction-nav .flex-next:hover {
  background-image: url("../../img/bg_tikkeri_right_hover.png");
  right: 0;
}
#tikkeri .imgTikkeri {
  width: 300px;
  float: left;
  box-shadow: 0 0 5px #888888;
  cursor: pointer;
}
#tikkeri .flex-caption {
  float: left;
  margin: 10px 0 0 20px;
  min-width: 200px;
  cursor: pointer;
}
#tikkeri .flex-control-nav {
  bottom: 0;
  left: 325px;
  position: absolute;
  width: auto;
}
#tikkeri .flex-control-nav li {
  width: auto;
}
#tikkeri .flex-control-nav img {
  margin-right: 1px;
  width: 90px;
}
#tikkeri h4 {
  margin-bottom: 20px;
}

img:active {
  border: none;
  background-color: transparent;
}

#frmPikahaku .aTarkempiHaku {
  display: block;
  margin: 5px 0;
  float: left;
}
#frmPikahaku .selectContainer select {
  margin-bottom: 5px;
}


/* Responsive styles */

@media (max-width: 768px) {
  #h1Slides {
    font-size: 28px;
    line-height: 1em;
  }
}
@media (max-width: 500px) {
  #h1Slides {
    top: 0;
    font-size: 20px;
    line-height: 1em;
  }
}
@media (max-width: 250px) {
  #h1Slides {
    font-size: 10px;
    line-height: 1em;
  }
}
