/* Matkalaskuri CSS */

body, form, h1 {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Sans-serif;
  font-size: 12px;
}

html { 
  background: #F1F1F1 url(../img/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100%;
}

header {
  margin: 15px auto;
}

section {
  margin: auto;
  max-width: 840px;
}

.matka-container {
  padding: 4px;
  background: #F9F9F9 url('../img/loader.gif') center center no-repeat;
  margin-bottom: 15px;
  min-height: 50px;
}

.matka {
  position: relative;
}

.matka .tyyppi {
  position: absolute;
  top: 4px;
  left: 4px;
  height: 32px;
  z-index: 1;
}

.matka .tyyppi, .matka .tiedot {
  pointer-events: none;
}

.matka .tiedot {
  color: #FFF;
  text-align: center;
  font-size: 22px;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  background: hsla(0, 0%, 0%, 0.3);
  padding: 4px;
  border-radius: 4px;
}

.matka.saa .tiedot {
  right: 120px;
}

.matka .tiedot h1 {
  font-size: 22px;
  margin: 0;
  color: #FFF;
}

.matka .tiedot h2 {
  font-size: 20px;
  font-weight: normal;
  margin: 0;
  color: #FFF;
}

.matka .tiedot h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.matka .laskuri > div {
  padding: 4px 6px;
  display: inline-block;
}

.matka .laskuri div > span {
  padding: 0;
  display: inline-block;
}

.small {
  font-size: 16px;
}

.smaller {
  font-size: 18px;
}

.eimatkoja {
  text-align: center;
  margin: 30px 0;
  padding: 50px;
  background: #FFF;
}

.eimatkoja h1 {
  color: #626262;
}

footer {
  text-align: center;
  color: #BBB;
  margin: 20px 0;
}

/* Hallinta */

#hallinta {
  background: #F9F9F9;
  border: 1px solid #CCC;
  padding: 10px;
}

#hallinta label:not(.inline) {
  width: 140px;
  display: inline-block;
  text-align: right;
}

#hallinta label {
  vertical-align: middle;
}

#hallinta input[type=checkbox] {
  vertical-align: middle;
}

#hallinta input[type=text] {
  width: 100%;
  max-width: 300px;
}

#hallinta #matkalista ul {
  list-style-type: none;
  padding: 0;
}

#hallinta #matkalista ul li {
  padding: 2px;
}

#hallinta a {
  color: #2ba6cb;
  text-decoration: none;
}

#hallinta a:hover {
  color: #2285a2;
  text-decoration: underline;
}

#hallinta a.gray {
  color: #999;
  text-decoration: none;
}

#hallinta span.gray {
  color: #999;
}

#hallinta a.gray:hover {
  color: #000;
}

#hallinta .virhe {
  background: red;
  color: #FFF;
  padding: 10px 5px;
}

#hallinta .virhe ul {
  list-style-type: square;
  padding-left: 20px;
  margin: 0;
}

#hallinta .success {
  background: green;
  color: #FFF;
  padding: 10px 5px;
}

#hallinta .success a {
  color: #FFF;
}

#hallinta .success a:hover {
  color: #CCC;
}

#hallinta .painikkeet {
  margin-top: 15px;
}

#hallinta #kuvat .kuva {
  position: relative;
  margin: 2px;
  display: inline-block;
  border: 1px solid transparent;
}

#hallinta #kuvat .kuva.valittu {
  border-color: red;
}

#hallinta #kuvat .kuva img {
  vertical-align: middle;
  width: 119px;
}

#hallinta #kuvat .kuva a.poista {
  position: absolute;
  top: 0px;
  right: 0px;
  color: red;
  background: #FFF;
  font-weight: bold;
  padding: 1px 3px;
  text-decoration: none;
}

/* Valikko (nav) */

nav {
  text-align: center;
  margin-bottom: 15px;
}

nav ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: inline-block;
}

nav ul li {
  display: inline;
  margin: 0 4px;
}

nav ul li a {
  padding: 8px;
  background: #626262;
  color: #FFF;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}

nav ul li a.notlogged {
  background: #CCC;
}

nav ul li a:hover {
  background: #333;
}

nav ul li a.selected {
  background: #2BA6CB;
}

a.selected:after {
  top: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-top-color: #2BA6CB;
  border-width: 8px;
  margin-left: -8px;
}

/* Owl Carousel */

.matka.saa .owl-carousel {
  width: calc(100% - 117px);
}

.matka .owl-carousel .slide-item {
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

/* Sääwidget yleiset */

.saawidget {
  position: absolute;
  right: 0;
  width: 115px;
  height: 100%;
  z-index: 10;
  background: url('../img/loader.gif') center center no-repeat;
  overflow: hidden;
}

.saawidget div {
  height: 100%;
}

.saawidget .message {
  display: none !important;
}

/* Accuweather widget */

.matka div.aw-widget-current-inner div.aw-widget-content {
  border-style: none !important;
}

#link_get_widget {
  display: none !important;
}

/* Login */

#login-button {
  position: absolute;
  top: 5px;
  right: 5px;
}

#login-bar, #logged-bar {
  text-align: center;
  margin: auto;
  padding: 3px;
  background: #F9F9F9;
  border-bottom: 2px solid #CCC;
  color: #B0AEAC;
}

#login-bar input, #login-bar button {
  margin: 0 2px;
}

#login-bar input[type=submit], #login-bar button {
  padding: 4px 6px;
}

#logged-bar a:link, #logged-bar a:visited, #logged-bar a:active {
  color: #8BB9E0;
}

#login-bar {
  display: none;
  color: #FFF;
}

#login-bar div {
  display: inline;
}

/* Input */

input, select, textarea {
  padding: 2px 4px;
  margin: 2px;
  vertical-align: middle;
  box-sizing: border-box;
  font-family: Arial, Sans-serif;
  font-size: 12px;
  border: 1px solid #A9A9A9;
}

input[type=submit], input[type=button], button {
  margin: 2px;
  padding: 8px 12px;
  background-color: #2ba6cb;
  border-color: #2285a2;
  color: #FFF;
  transition: background-color 300ms ease-out;
  border-style: none;
  cursor: pointer;
}

input.inline {
  padding: 3px 12px;
}

input[type=submit]:hover, input[type=button]:hover {
  background-color: #2285a2;
}

input[type=submit]:focus, input[type=button]:focus {
  background-color: #2285a2;
}

/* Mobiili */

@media screen and (max-width: 39.9375em) {
  .matka .owl-carousel .slide-item {
    min-height: 230px;
    background-position: center;
    background-size: cover;
  }
}

@media only screen and (max-width: 30em) {
  .matka .saawidget {
    display: none !important;
  }
  .matka.saa .owl-carousel {
    width: 100%;
  }
  .matka.saa .tiedot {
    right: 4px !important;
  }
  nav ul li a {
    display: inline-block;
    margin: 2px;
  }
  #hallinta label:not(.inline) {
    width: auto;
  }
}

@media screen and (min-width: 40em) {
  .matka .owl-carousel .slide-item {
    height: 400px;
    min-height: 400px;
  }
}
