@charset "UTF-8";

@import "colors";
@import "fonts";
@import "icons";
@import "vars";

html {
  scroll-behavior: smooth;
}

.content-container {
  overflow-x: hidden;
  overflow: hidden;
  width: 100%;
}

.search-results {
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 5px;
  border-radius: 5px;
  
  .no-results {
    font-size: 14px;
  }
  
  h3 {
    font-size: 16px;
    background: rgba(0, 0, 0, 0.01);
    padding: 5px;
    margin-left: -5px;
    margin-right: -5px;
    font-weight: bold;
    margin-top: 10px;
    
    &:first-of-type {
      margin-top: 0;
    }
  }
  .search-header {
    font-size: 16px;
    background: rgba(0, 0, 0, 0.01);
    padding: 5px;
    margin-left: -5px;
    margin-right: -5px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
    
    &:first-of-type {
      margin-top: 0;
    }
  }

  ul {
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-bottom: 0;
    
    li {
      list-style: none;
      
      .fa {
        margin-top: 4px;
      }
      
      a {
        vertical-align: middle;
        font-size: 14px;
        color: $musta;
        margin-left: 5px;
        max-width: calc(100% - 40px);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: inline-block;
      }
      
      .file-page-link {
        margin-left: 5px;
 
        .fa {
          margin-top: 6px;
        }
      
      }
      
    }
  }
}


*[data-lazy-bg-image] {
  background-image: url('/gfx/load.svg') !important;
  background-size: 48px auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #eee !important;
}

.map-link {
  display: inline-block;
  height: 28px;
  vertical-align: top;
}

.locale-menu {
  display: inline-block;
  position: relative;
  height: 28px;
  vertical-align: top;
  
  .current-locale {
    display: block;
    border: 0;

    &::after {
      content: '⌄';
      position: absolute;
      bottom: 0px;
      background: #304ea2;
      width: 100%;
      height: 9px;
      padding: 0;
      margin: 0;
      color: #fff;
      left: 0;
      font-size: 18px;
      line-height: 0px;
    }
  }

  a {
    display: none;
  }

  .current-locale,
  a {     
    z-index: 999999;
    background: #304ea2;
    color: $valkoinen;
    font-size: 12px;
    padding: 4px;
    text-align: center;
    margin-left: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    position: relative;
  }

  &.locale-menu-open {
    
    a {
      display: block;
    }

    .current-locale::after {
      content: ' ';
    }
  }
  
}

.logo-container {

  @media (min-width: $break-large) {
     padding-top: 54px;
  }
  
  @media (max-width: $break-small) {
     margin-bottom: 26px;
  }
}

nav.navbar {
  padding-top: 36px;
  padding-bottom: 18px;
  padding-right: 20px;
}

.navbar-toggler {
  padding-top: 4px;
  padding-left: 0;
  
  .fa-bars {
    color: #5f626a;
    font-size: 30px;
  }

  &:focus {
    box-shadow: none;
    outline-style: none;
    border-color: transparent;
  }

}

.header-banner {
  margin-bottom: 30px;
}


.to-content {
  opacity: 0;
  position: absolute;
}

.nav-search-container {
  padding-bottom: 15px;

  .search-label {
    opacity: 0;
    position: absolute;
  }
  
  input {
    border: 0;
    border-radius: 0;
    font-size: 12px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-top: 4px;
    width: 100%;
    background: $menu-sarch-background-color;
    color: $musta;
    height: 30px;

    &:focus {
      border-color: $meri;
    }

    @media (min-width: $break-small) {
      max-width: 190px;
    }
  }

  .fa-search,
  .fa-circle-o-notch {
    margin-left: -35px;
    color: $valkoinen;
    font-size: 20px;
    margin-top: 4px;
    position: absolute;
    border: 0;
    background-color: transparent;
    
    &:hover {
      text-decoration: none;
    }
  }
  
  .fa-circle-o-notch {
    display: none;
    font-size: 20px;
    margin-top: 5px;
    margin-left: -27px;
  }
  
  &.searching {
    .fa-search {
      visibility: hidden;
    }
    
    .fa-circle-o-notch {
      display: inline-block;
    }
  }    
}

.nav-some-icons {
  
 .fa {
    color: #999;
    font-size: 28px;
    padding-left: 12px;
  } 
}

.nav-quick-icons {
  
  text-align: right;
  
  .fa {
    color: $valkoinen;
    font-size: 16px;
    background: #304ea2;
    width: 28px;
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

.navbar-light .navbar-nav {
  .nav-item {
    margin-left: 20px;
    
    @media (max-width: $break-medium) {
      margin-left: 0;
      margin-right: 20px;
    }

    @media (max-width: $break-x-small) {
      margin-right: 0;
    }
  }
}

.navbar-light .navbar-nav.nav-bar-primary,
.navbar-light .navbar-nav.nav-bar-secondary {
  .nav-link {
    @include font-h9;
    color: $meri;
    text-transform: uppercase;
  }

  .nav-item:first-child {
    margin-left: 0;
  }
}

.horizontal-line {
  height: 8px;
  background-repeat: repeat-x;
  background-image: url("/gfx/layout/mikkeli-banner-border.png");
  width: 100%;
}

footer {
  color: $valkoinen;
  margin-top: 59px;
  min-height: 280px;
  background-color: $meri;
  
  .footer-container {
    padding-bottom: 25px; 
  }
  
  a,
  a:hover,
  a:visited {
    color: $valkoinen;
  }

  img {
    margin-top: 55px;
    margin-bottom: 10px;
  }

  .footer-logo-container {
    margin-top: 64px;
  }

  .footer-address-container {
    margin-top: 26px;
  }

  .footer-row {
    margin-top: 50px;

    a:focus {
      color: $sitruuna;
    }

  }

  p {
    @include font-h9;
  }

  h4 {
    @include font-h9;
    text-transform: uppercase;
  }
}
.read-speaker-wrapper {

  margin-top: 20px;
  margin-bottom: 75px;
  font-size: 14px;
  
  @media (max-width: $break-medium) {
    margin-bottom: 30px;
  }
}

.skip-link {
  background-color: #fff;
  padding: 15px 20px;
  font-size: 16px;
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 5;
  transition: all,.5s;
  border-radius: 0 0 10px;
}

.skip-link:focus {
  left: 0;
}

.skip-link:hover {
  background: rgb(121, 121, 121);
  text-decoration: none;
}
  
