/*
=========================================================
LAYOUT CSS
=========================================================
 * Innehåller styling för webbplatsens layout
 * 
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


/*
---------------------------------------------------------
HOPPA TILL INNEHÅLL OCH MENY - Visas vid tabbning
--------------------------------------------------------- */

.lp-skip-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-skip-links li a {
  background: #000;
  color: #fff;
  display: block;
  font-size: 1.6rem;
  height: 1px;
  overflow: hidden;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  width: 1px;
}

.lp-skip-links li a:focus {
  height: auto;
  overflow: visible;
  padding: 1rem 0;
  text-align: center;
  transform: translateY(0);
  width: 100%;
  z-index: 30000;
}

.lp-skip-links li a.lp-skip-to-menu-smartphone {
  display: none;
}


/*
---------------------------------------------------------
GRUNDLAYOUT
--------------------------------------------------------- */

button {
  cursor: pointer;
}

body {
  background-color: #fff;
}

.lp-content,
.lp-secondary-content,
.lp-submenu {
  margin: 2rem 0 0;
}

/*
---------------------------------------------------------
BILDER
--------------------------------------------------------- */

.pagecontent > .sv-image-portlet {
  margin-left: -14%;
}

/*
---------------------------------------------------------
MARKERING AV AKTIVT ANKARE
--------------------------------------------------------- */

.lp-content h2.subheading:target {
  position: relative;
}

.lp-content h2.subheading:target:before {
  -webkit-animation: bounce-in-top 1.1s both;
  animation: bounce-in-top 1.1s both;
  border-color: transparent transparent transparent #888;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  content: '';
  display: block;
  height: 0;
  left: -15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}


@-webkit-keyframes bounce-in-top {
  0% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translateY(-500px);
  }

  38% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translateY(0);
  }

  55% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    transform: translateY(-65px);
  }

  72% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(0);
  }

  81% {
    -webkit-animation-timing-function: ease-in;
    transform: translateY(-28px);
  }

  90% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(-50%);
  }

  95% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    transform: translateY(-8px);
  }

  100% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(-50%);
  }
}

@keyframes bounce-in-top {
  0% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translateY(-500px);
  }

  38% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translateY(0);
  }

  55% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    transform: translateY(-65px);
  }

  72% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(0);
  }

  81% {
    -webkit-animation-timing-function: ease-in;
    transform: translateY(-28px);
  }

  90% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(-50%);
  }

  95% {
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    transform: translateY(-8px);
  }

  100% {
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    transform: translateY(-50%);
  }
}

/*
---------------------------------------------------------
INLOGGNING / 404
--------------------------------------------------------- */

.lp-login-404 {
  border: 1px solid #eee;
  box-shadow: 0 0 20px 0 #eee;
  margin: 10rem auto 0;
  max-width: 640px;
  padding: 3rem;
}

/*
---------------------------------------------------------
FLEX
--------------------------------------------------------- */

.lp-flex-spacebetween {
  display: flex;

  justify-content: space-between;
}

/*
---------------------------------------------------------
HERO
--------------------------------------------------------- */

.lp-hero {
  align-items: flex-end;
  background: #eee;
  display: flex;
  height: 55rem;
}

.lp-hero > .sv-layout {
  background: rgba(3,82,157,0.9);
  box-sizing: border-box;
  padding: 4rem;
  width: 50%;
}

.lp-hero > .sv-layout h1.heading {
  color: #fff;
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 7.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.lp-hero > .sv-layout p.normal {
  color: #fff;
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

.lp-hero > .sv-layout .normal a {
  color: #fff;
}

.lp-hero > .sv-layout .sv-button-portlet {
  margin-bottom: 0;
}

.lp-hero > .sv-layout .sv-button-portlet a {
  font-family: 'pt sans narrow', 'open sans', arial, helvetica, sans-serif;
  font-size: 2rem;
}

.lp-hero > .sv-layout .sv-button-portlet a:before {
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=\'http://www.w3.org/2000/svg\'%20fill=\'%233c3c3c\'%20viewBox=\'0%200%2018%2018\'%3E%3Cg%20id=\'Design\'%3E%3Cg%20id=\'Startsida\'%20transform=\'translate(-205%20-620)\'%3E%3Cg%20id=\'Knapp\'%20transform=\'translate(180%20606)\'%3E%3Cg%20id=\'icons8-cottage\'%20transform=\'translate(25%2014)\'%3E%3Cpath%20d=\'M0%200v9h.75v9h7.5v-5.25h1.5V18h7.5V9H18V0H0zm1.5%201.5h15v6h-3.422L9.54%203.96%209%203.446l-.54.516L4.923%207.5H1.5v-6zM9%205.578l3.21%203.211.235.211h3.305v7.5h-4.5v-5.25h-4.5v5.25h-4.5V9h3.305l.234-.21L9%205.577zM3.75%2011.25v3h1.5v-3h-1.5zm9%200v3h1.5v-3h-1.5z\'%20id=\'Shape\'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-position: center;
  background-size: 100% 100%;
  content: '';
  display: inline-block;
  height: 1.8rem;
  margin-right: 8px;
  width: 1.8rem;
}
