* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Lato", sans-serif;
  position: relative;
  min-height: 100vh;
  padding-bottom: 150px;
}
body.noscroll {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}
.container {
  margin: 0 auto;
  position: relative;
}
.main-menu {
  margin: 0 -4rem;
  padding: 0 4rem;
}
img {
  max-width: 100%;
  display: block;
}
.logo {
  max-width: 300px;
  position: absolute;
  left: 4rem;
  top: 0.5rem;
}
ul {
  list-style-type: none;
}
ul > li > a {
  color: black;
  text-decoration: none;
}

h1,h2,h3 {
  margin: .3rem 0 1.3rem 0;
}
p {
  line-height: 1.5;
}
.main-menu a {
  color: white;
}
.sub-menu {
  position: absolute;
  text-align: right;
  left: 0;
  top: 10rem;
  width: 100vw;
  background: black;
  padding: 0 4rem;
  max-height: 0;
  overflow: hidden;
  transition: all .2s;
  transition-delay: .2s;
  z-index: 9999;
  max-width: 100%;
}
#hero {
  background: linear-gradient(to bottom right, rgba(176, 97, 164, 0.686), rgba(0, 0, 0, 0.906)), url(../img/rullskidor.jpg) no-repeat top/cover;
  height: 600px;
  display: flex;
  overflow: hidden;
}
#hero .container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#hero .circle {
  width: 100vw;
  height: 100vw;
  background: rgba(68, 68, 68, 0.60);
  position: absolute;
  right: -70vw;
  top: -35vw;
  border-radius: 50%;
}
#hero .small-circle-container {
  position: absolute;
  right: 16rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 0;
}
#hero .small-circle {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  border: 10px solid #444;
  z-index: 9;
  position: relative;
}
#hero .small-circle.running {
  background: url(../img/box1.jpg) no-repeat center/cover;
}
#hero .small-circle.skiing {
  background: url(../img/box2.jpg) no-repeat center/cover;
}
#hero .small-circle.inlines {
  background: url(../img/box3.jpg) no-repeat center/cover;
}
.small-circle.skiing::after {
  content: 'Rullskidor';
  position: absolute;
  left: 100px;
  top: 16px;
  display: block;
  font-size: 2rem;
  font-family: Nunito;
  color: white;
}
.small-circle.running::after {
  content: 'Löpning';
  position: absolute;
  left: 100px;
  top: 16px;
  display: block;
  font-size: 2rem;
  font-family: Nunito;
  color: white;
}
.small-circle.inlines::after {
  content: 'Inlines';
  position: absolute;
  left: 100px;
  top: 16px;
  display: block;
  font-size: 2rem;
  font-family: Nunito;
  color: white;
}
#hero h1 {
  font-family: Nunito;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 8rem;
  line-height: 0.9;
  z-index: 9;
}
#hero h1 small {
  font-size: 1.3rem;
  text-transform: uppercase;
}
#hero h1 xsmall {
  font-size: 1.0rem;
  text-transform: uppercase;
}
#hero h1 span {
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 1.5;
}
#hero h1 span:nth-of-type(2) {
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 0.4;
}
#boxes .container {
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-row-gap: 4rem;
  grid-column-gap: 20px;
  grid-template-columns: repeat(6, 1fr);
}
.box {
  margin: .5rem;
  flex: 1 1 32%;
  min-height: 200px;
  background: #ccc;
  grid-column: span 2;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
}
.box a {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  perspective: 1000px;
}
.box.running {
  background: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)), url(../img/box1.jpg) no-repeat center/cover;
}
.box.skiing {
  background: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)), url(../img/box2.jpg) no-repeat center/cover;
}
.box.inlines {
  background: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)), url(../img/box3.jpg) no-repeat center/cover;
}
.signup, .map {
  flex: 1 1 calc(50% - 1rem);
  grid-column: span 3;
}
.signup {
  background: #b061a4;
}
.map {
  background: #000000;
}
.box a p {
  color: white;
  border: 1px solid white;
  padding: .5rem 1rem;
  text-transform: uppercase;
}
.box a:hover p {
  background: white;
  color: black;
}
nav button {
  -moz-appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 9999;
}
button:focus {
  outline: none;
}
nav button > span {
  transition: transform .5s;
}
button[aria-expanded="true"] > span {
  background: white;
}
button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px);
}
button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px);
}
.page-submenu .submenu {
  margin-right: 2rem;
  flex: 0 0 20%;
  border-right: 1px dotted #444;
}
.page-submenu {
  display: flex;
  margin-top: 6rem;
  margin-bottom: 2rem;
  flex: 0 0 80%;
  max-width: 1200px;
}
.page-no-submenu {
  margin-top: 6rem;
  margin-bottom: 2rem;
  flex: 0 0 80%;
  max-width: 1200px;
}
.page-submenu .submenu ul {
  list-style-type: none;
}
.page-submenu .submenu ul li a {
  padding: 1rem .5rem;
  color: black;
  text-decoration: none;
  display: block;
}
.page-submenu .submenu ul li:nth-child(1) a {
  padding: 0 .5rem 1rem .5rem;
}
.page-submenu .submenu ul li a:hover {
  text-decoration: underline;
}
#cff {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(auto-fit, calc(33% - 2rem));
  grid-gap: 2rem;
}
#cff .cff-item,
#cff .cff-item:first-child {
  flex: 0 0 20%;
  margin: 20px;
  float: none;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  background: white;
}
#facebook {
  background: #3b5998;
  padding: 4rem 0;
}
#facebook h2 {
  color: white;
  text-align: center;
}
#facebook a {
  color: black;
}
#sponsorer {
  padding: 4rem 0;
}
#sponsorer .container {
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 2rem;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
}
#sponsorer img {
  margin: 20px;
  width: 100px;
}
#sponsorer h2 {
  flex-basis: 100%;
  text-align: center;
  grid-column: 1 / -1;
}
footer {
  padding: 4rem 0;
  background: #444;
  color: white;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
}
footer .container {
  max-width: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .container a {
  color: white;
}
footer .container a:hover {
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 1000px) {
  .box {
    min-height: 300px;
  }

  .main-menu a:hover {
    background: #000000;
    color: white;
  }
  .sub-menu li a {
    color: white;
  }
  .sub-menu li a:hover {
    color: black;
    background: white;
  }
  /* Visa submenyn endast när vi inte är på mobil */
  .main-menu li a:hover ~ .sub-menu {
    max-height: 500px;
    transition-delay: 0s;
  }
  .sub-menu:hover {
    max-height: 500px;
    transition-delay: 0s;
  }
  .container {
    padding: 0 4rem;
  }
  .secondary-menu ul li {
    display: inline-block;
    padding: 0 1rem;
  }
  .secondary-menu ul li:not(:first-child) {
    padding-left: 0;
  }
  .secondary-menu ul li:not(:first-child)::before {
    content: "|";
    display: inline-block;
    margin-right: 1rem;
  }
  .main-menu ul li {
    display: inline-block;
  }
  .main-menu ul li a {
    padding: 1rem;
    display: block;
  }
  .secondary-menu ul {
    height: 100px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
  }
  .secondary-menu ul li a:hover {
    text-decoration: underline;
  }
  .main-menu {
    background: #444;
  }
  .main-menu #menu-huvudmeny {
    font-size: 1.5rem;
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: white;
  }
  #boxes .container {
    padding: 4rem;
  }
}

@media (max-width: 1100px) and (min-width: 1000px) {
  #hero .container {
    justify-content: flex-start;
  }
}
@media (max-width: 1000px) {
  .page-submenu {
    margin-top: 2rem;
  }
  #hero .small-circle-container {
    display: none;
  }
  #sponsorer {
    padding: 1rem;
  }
  #sponsorer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  }
  #sponsorer img {
    max-width: 30px;
  }
  #cff {
    grid-template-columns: 1fr;
  }
  #boxes .container {
    grid-gap: .5rem;
  }
  .box {
    flex: 1 1 calc(100% - 1rem);
    grid-column: 1 / -1;
  }
  .collapse {
    display: none;
  }
  button[aria-expanded="true"] ~ .collapse {
    display: flex;
    flex-direction: column-reverse;
    position: fixed;
    width: 100%;
    background: #444;
    color: white;
    top: 0;
    left: 0;
    z-index: 999;
    height: 100vh;
    padding-top: 4rem;
  }
  button[aria-expanded="true"] ~ .collapse ul li {
    text-align: center;
    width: 100%;
    padding: .6rem;
    text-transform: uppercase;
    font-size: 1.5rem;
  }
  button[aria-expanded="true"] ~ .collapse .secondary-menu {
    flex: 1;
    margin-top: 2rem;
  }
  button[aria-expanded="true"] ~ .collapse .secondary-menu li {
    font-size: .8rem;
  }
  .logo {
    max-width: 160px;
    position: absolute;
    left: 0;
    top: -14px;
  }
  .main .container > *:not(.collapse) {
    margin: 1rem;
  }
  .main > .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  nav button {
    width: 24px;
    height: 24px;
    display: block;
  }
  nav button span {
    margin: 5px 0;
    width: 100%;
    background: #444;
    height: 3px;
    width: 100%;
    display: block;
  }
  .secondary-menu ul li a {
    color: white;
  }
  .page-submenu {
    flex-wrap: wrap;
    padding: 0 2rem;
  }
  .page-submenu .submenu {
    flex-basis: 100%;
    border: none;
    margin: 2rem 0;
  }
}