/*Breakpoint mellom menyer*/

.header-menu-mobile {display: flex;}
.header-menu-prim { display: none;}

@media screen and (min-width: 992px) {
    .header-menu-mobile {
        display: none;
    }
    .header-menu-prim {
        display: flex;
    }
}


/*THB - mobile menu*/

/*Farger fra Oxygen*/
:root {
    --thbs-menu-body-backdrop: rgba(0, 0, 0, 0.6);
}


.thbs-menu-wrapper {
  position: relative;
  z-index: 1000;
}

/* Menu bars, can be customized by changing the spans */

.thbs-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 40px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.thbs-menu-toggle span {
  display: block;
  /* Change thicknes of menu bars */
  height: 3px;
  background-color: #000;
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
  margin-left: auto;
}

.thbs-menu-toggle span:nth-child(1) {
  width: 100%;
}
.thbs-menu-toggle span:nth-child(2) {
  width: 70%;
}
.thbs-menu-toggle span:nth-child(3) {
  width: 50%;
}
.thbs-menu-toggle span:nth-child(4) {
  width: 70%;
}

.thbs-menu-toggle:hover span:nth-child(1) {
  width: 70%;
}
.thbs-menu-toggle:hover span:nth-child(2) {
  width: 50%;
}
.thbs-menu-toggle:hover span:nth-child(3) {
  width: 70%;
}
.thbs-menu-toggle:hover span:nth-child(4) {
  width: 100%;
}

/* Close button */

.thbs-close-btn {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.thbs-close-btn span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #262626;
  border-radius: 2px;
  transform-origin: center;
}

/* Make the X */
.thbs-close-btn span:first-child {
  transform: translateY(-50%) rotate(45deg);
}
.thbs-close-btn span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.thbs-close-btn:hover,
.thbs-close-btn:focus {
  transform: scale(1.15);
  /* scales 15% larger on hover */
  outline: none;
}

/* Default to off screen */
.thbs-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  /* Width up to 992px */
  width: 80%;
  height: 100vh;
  background: #ddd;
  color: #262626;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: start;
  padding-left: 5%;
}

/* Visible when toggled */
.thbs-mobile-nav.open {
  transform: translateX(0);
}

.thbs-hamburger-menu-list {
  list-style: none;
  padding: 2rem;
  margin: 0;
}


.thbs-hamburger-menu-list .menu-item {
    margin-top: 1em;
    font-size: 1.4rem;
    text-decoration: none; 
}

.thbs-hamburger-menu-list li a {
    color: #262626;
    text-decoration: none; 
    position: relative;
    padding: 5px 0px;
}


.thbs-hamburger-menu-list a:hover, .thbs-hamburger-menu-list li.current-menu-item a {
  color: #3470a8;
}

.thbs-hamburger-menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.thbs-hamburger-menu-list li.current-menu-item a::after {
  content: none;
}

.thbs-hamburger-menu-list a:hover::after {
  width: 100%;
}

/* Backdrop */

.thbs-menu-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.63);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.thbs-mobile-nav.open + .thbs-menu-backdrop,
.thbs-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}




/*Styling av meny stor skjerm*/

.prim-menu-list .menu-item {
    font-size: 1.2rem;
}

.prim-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* Gjør listen horisontal */
  gap: 20px; /* Avstand mellom menypunktene, juster etter behov */
}

.prim-menu-list a {
  color: #000;
  text-decoration: none;
    position: relative;
    padding: 5px 0px;
}

.prim-menu-list a:hover, .prim-menu-list li.current-menu-item a {
  color: #f3d25c;
}

.prim-menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #f3d25c;
  transition: width 0.3s ease;
}

.prim-menu-list li.current-menu-item a::after {
  content: none;
}

.prim-menu-list a:hover::after {
  width: 100%;
}

/*
.prim-menu-list ul.menu li a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}*/