/*
Theme Name: Janne Moe
Theme URI: http://www.osberget.no/
Author: Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Janne Moe Wordpress theme
Version: 0.0.1
Tags: jannemoe osberget rasamax
Text Domain: jannemoe
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */
.menu-container {
  position: relative;
}
.menu-container .menu-wrapper {
  z-index: 999;
  width: 340px;
  position: absolute;
  right: 0;
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), visibility 0s 0.5s;
  overflow: hidden;
  background: var(--bs-secondary);
}
.menu-container #menu-close-icon {
  display: none;
}
.menu-container.expanded .menu-wrapper {
  max-height: 1000px;
  visibility: visible;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), visibility 0s;
}
.menu-container.expanded #menu-icon {
  display: none;
}
.menu-container.expanded #menu-close-icon {
  display: inline;
}

.primary-menu li a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bs-dark);
}

.sub-menu-button {
  font-size: 0;
  width: 15px;
  height: 15px;
  position: relative;
}
.sub-menu-button:before, .sub-menu-button:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--bs-primary);
  transition: transform 0.5s;
}

.primary-menu {
  padding: 30px 50px;
}
.primary-menu li {
  width: 100%;
  margin-top: 20px;
}
.primary-menu li.expanded > .sub-menu {
  max-height: 1000px;
  visibility: visible;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), visibility 0s;
}
.primary-menu li.expanded > .sub-menu-button:after {
  transform: rotate(0deg);
}
.primary-menu > li:first-child {
  margin-top: 0;
}
.primary-menu .sub-menu {
  list-style: none;
  position: relative;
  width: auto;
  padding: 0 0 0 20px;
  box-shadow: none;
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), visibility 0s 0.5s;
  overflow: hidden;
}
.primary-menu .sub-menu a {
  text-transform: none;
}

.sub-menu-button:before, .sub-menu-button:after {
  top: 40%;
  left: 0;
}
.sub-menu-button:after {
  transform: rotate(90deg);
}

:root {
  --wp-edit-button-primary: var(--bs-primary);
  --wp-edit-button-secondary: var(--bs-secondary);
}

/* Page commons */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", sans-serif;
  font-size: 26px;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}

.alignright {
  float: right;
  margin: 0 0 10px 20px;
}

.aligncenter {
  margin: 0 auto 10px auto;
  display: block;
}

.post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  margin-top: 50px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-content h2 {
  font-size: 36px;
}
.post-content h3 {
  font-size: 34px;
}
.post-content h4 {
  font-size: 32px;
}
.post-content h5 {
  font-size: 30px;
}
.post-content h6 {
  font-size: 28px;
}

@media (max-width: 991px) {
  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6 {
    margin-top: 30px;
  }
  .post-content h2 {
    font-size: 23px;
  }
  .post-content h3 {
    font-size: 22px;
  }
  .post-content h4 {
    font-size: 21px;
  }
  .post-content h5 {
    font-size: 20px;
  }
  .post-content h6 {
    font-size: 19px;
  }
}
/* Hide Google reCaptcha after 1s */
@keyframes hide_after_1s {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100px);
  }
}
.grecaptcha-badge {
  animation-name: hide_after_1s;
  animation-delay: 3s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.primary-checkbox, #form form input[type=checkbox] {
  width: 45px;
  height: 45px;
  display: inline-block;
  margin-right: 30px;
  flex-shrink: 0;
  border-radius: 0;
  border: 0;
  background: white;
  border-bottom: 2px solid var(--bs-primary);
  appearance: none;
  position: relative;
}

.primary-checkbox:checked:before, #form form input[type=checkbox]:checked:before {
  content: "";
  display: block;
  width: 13px;
  height: 22px;
  position: absolute;
  top: 5px;
  left: 16px;
  border-bottom: 2px solid var(--bs-primary);
  border-right: 2px solid var(--bs-primary);
  transform: rotate(45deg);
}

span.wpcf7-list-item {
  margin-left: 0;
}

span.wpcf7-list-item label {
  display: flex;
}

#footer .footer-logo {
  height: 120px;
}

@media screen and (max-width: 991px) {
  #footer .footer-logo {
    height: 60px;
  }
}
#footer .footer-partners {
  height: 90px;
}

@media screen and (max-width: 991px) {
  #footer .footer-partners {
    height: 55px;
  }
}