/**
  SECTION: base styles
**/

/* Base for font size */
html {
  font-size: 14px;
  height: 100%;
}
body {
  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  font-family: "Roboto";
  height: 100%;
}
/** Adds shadows around template/container **/
div[class^="container-lg"] {
  -webkit-box-shadow: 0 0 16px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 16px 2px rgba(0, 0, 0, 0.4);
}
.min-100 {
  min-height: 100%;
}
a:link,
a:visited,
a:link {
  color: #098db8;
}
a:hover {
  text-decoration: underline;
}

h2 a:link,
h2 a:hover,
h2 a:visited {
  color: black;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 100;
  font-family: "Franklin Gothic", "Helvetica Neue", Helvetica, Arial;
  color: black;
}
h1 {
  font-size: 1.7rem;
}
h2 {
  font-size: 1.5rem; /*fra 1.42*/
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.4rem; /* fra 1.2rem */
}
h5 {
  font-size: 1.07142857rem;
}
h6 {
  font-size: 1rem;
}
h4 a {
  color: #333333;
}
body {
  background-color: rgb(236, 236, 236);
}
/* Navbar */
.navbar-custom {
  background-color: #2b2929;
  padding: 0.55rem 1rem 0.35rem 1rem;
}
#hamburgerMenu .navbar-nav .nav-item > .nav-link {
  margin-left: 1rem;
}
#hamburgerMenu .navbar-nav .nav-item > .dropdown-toggle[aria-expanded="true"] {
  text-align: start;
}

/** Mobile only **/
@media (min-width: 320px) and (max-width: 480px) {
  html {
    font-size: 12px;
  }
  h2 {
    font-size: 1.8rem;
  }
  .brodtekst {
    overflow: inherit;
    font-size: 1.3rem;
  }

  /* Navbar */
  .navbar-custom {
    background-color: #2b2929;
    /*padding: 0.2rem 1rem 0.1rem 1rem;*/
  }
  .listBox {
    margin-top: 1em;
  }
  .artikkelIngress {
    font-size: 1.4rem;
  }
  .list-group-no-border > .list-group-item {
    font-size: 1.3rem;
  }
  .listBox {
    padding-left: 0;
    border: none;
  }
  .listTitle {
    padding-left: 0 !important;
  }
  div.searchTitle {
    font-size: 1.75rem;
  }

  .scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
  }

  .scroll::-webkit-scrollbar-track {
    background-color: rgba(1,1,1,0.1);
    border-radius: 8px;
}

  .scroll {
    overflow-x: scroll !important;
    width: 100% ;
    
  }
  .scroll::-webkit-scrollbar:horizontal {
    height: 11px ;
  }
  
  .scroll::-webkit-scrollbar-thumb {
    border-radius: 8px ;
    background-color: rgba(0, 0, 0, .3);
  }
  

}
/** Defines the padding in-between columns**/
.inner {
  padding: 0rem 0.5rem 0rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) {
  .inner {
    padding: 0rem 0.5rem 0rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
  }
  #hamburgerMenu .navbar-nav .nav-item .dropdown-item {
    font-size: 85%;
  }
  /* Navbar */
  .navbar-custom {
    background-color: #2b2929;
    padding: 0.55rem 1rem 0.35rem 1rem;
  }
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
  .inner {
    padding: 0rem 1.5rem 0rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
  }
  .lesmer {
    font-size: 0.95rem;
  }
  /* Removes padding from nav menu  */
  #hamburgerMenu > ul > li.nav-item > a.nav-link {
    padding: 0;
  }
  #hamburgerMenu .navbar-nav .nav-item .dropdown-item {
    font-size: 85%;
  }
  /**
    Vertikal skillelinje mellom menypunkt
    **/
  .navbar-custom .nav-item {
    border-right: 1px solid transparent;
    border-image: linear-gradient(to right, #404040, #ffffff, #404040);
    border-image-slice: 1;
  }
  .nav-item:first-child {
    border-left: 1px solid transparent;
  }
  #hamburgerMenu .navbar-nav .nav-item > .nav-link {
    margin-left: 0rem;
  }
  #hamburgerMenu
    .navbar-nav
    .nav-item
    > .dropdown-toggle[aria-expanded="true"] {
    text-align: center;
  }
  #articles {
    padding-right: 2rem !important;
  }
  .text-left.visualisert {
    padding-right: 1.5rem !important;
  }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width: 1200px) {
  .inner {
    padding: 0rem 1.5rem 0rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
  }
  /** Dropdown elements **/
  .dropdown-item {
    padding: 0.25rem 1.5rem;
  }
  /* Navbar */
  .navbar-custom {
    background-color: #2b2929;
    padding: 0.55rem 1rem 0.35rem 1rem;
  }
}
/* 
* Tablets in portrait mode
*/
@media (min-width: 768px) and (max-width: 1024px) {
  /* Navbar */
  .navbar-custom {
    background-color: #2b2929;
    padding: 0.55rem 1rem 0.35rem 1rem;
  }
}

/* 
  * Tablets in lanscape mode
  */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  /* Navbar */
  .navbar-custom {
    background-color: #2b2929;
    padding: 0.55rem 1rem 0.5rem 1rem;
  }
}

/**
Overwrites background colors
Note: bg-beige is not part of bootstrap
**/
.bg-dark {
  background-color: #2b2929 !important;
}
.bg-light {
  background-color: #dde6eb !important;
}
.bg-beige {
  background-color: #f1f1ea;
}
/**
Overwrites the primary button styling
**/
.btn-primary {
  background-color: #098db8;
  border-color: #098db8;
  color: white;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #087ea5;
  border-color: #087ea5;
  color: white;
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  color: white;
  background-color: #00749f;
  border-color: #005a85;
}
/**
  SECTION: navbar
**/
/*Sets the dark contrast bg color for expandable menu elements*/
#hamburgerMenu > ul > li.nav-item.dropdown.show > div {
  background-color: #201f1f;
  color: #ffffff;
}
#hamburgerMenu > ul > li.nav-item.dropdown.show > div > a {
  color: #ffffff;
}
#hamburgerMenu > ul > li.nav-item.dropdown.show > div > h6 ~ a {
  margin-left: 0.9rem;
}
/*#left-menu > .dropdown > .dropdown-menu > a {
  margin-left: 0.9rem;
}*/
.dropdown-menu {
  overflow: auto;
}
.dropdown-menu.show {
  overflow: hidden;
}
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: #666666;
}
/* Brand og tekstfarge */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
  /*color: rgba(255,255,255,.8);*/
  color: #ffffff;
}
/* hyperlinks */
.navbar-custom .navbar-nav .nav-link {
  /*color: rgba(255,255,255,.5);*/
  color: #ffffff;
}
/* change the color of active or hovered links */
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:focus .nav-link,
.navbar-custom .nav-item:hover .nav-link {
  color: #ffffff;
}
#hamburgerMenu > ul > li > a {
  font-weight: 600;
}
#hamburgerMenu > ul > li.nav-item.dropdown.show {
  background-color: #201f1f;
}
/* Hamburger menu == open */
.navbar-custom > .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-image: url("/assets//images/cross.svg");
}
/* Hamburger menu == closed */
.navbar-custom > .navbar-toggler.collapsed .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255,255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-left {
  flex-direction: row;
}

/* Menu visible on tablets/smaller screeens */
#left-menu .dropdown > a {
  color: white;
}
#left-menu > .dropdown > .dropdown-menu.show {
  background-color: #201f1f;
}
#left-menu > .dropdown > .dropdown-menu > * {
  color: white;
}
#left-menu > a {
  color: white;
}
/* Remove borders around hamburger icon */
#menuButton {
  border: none;
}
/***
BOOTSTRAP OVERRIDE ENDS HERE
***/
/** Collapse animation. Used for the smooth transitioning between collapsed 
and non-collapsed state of the drawer module on the front page (snarvei til statistikkene **/
.collapse.show {
  visibility: visible;
  display: block;
  padding-bottom: 0.5rem;
}
.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-property: height, visibility;
  transition-property: height, visibility;
  -webkit-transition-duration: 0.35s;
  transition-duration: 0.35s;
  -webkit-transition-timing-function: ease;
  transition-timing-function: ease;
}
.collapsing.width {
  -webkit-transition-property: width, visibility;
  transition-property: width, visibility;
  width: 0;
  height: auto;
}
/*#hamburgerMenu ul {
  align-items: baseline;
}*/
/* Setter Franklin Gothic som font for menyoppføringer i navigasjonstripen */
.navbar-nav .nav-item .nav-link {
  font-family: "Franklin Gothic" !important;
  font-weight: normal !important;
  letter-spacing: 0.5px;
}
#left-menu .dropdown .nav-link {
  font-family: "Franklin Gothic" !important;
  font-weight: normal !important;
  letter-spacing: 0.5px;
}
#left-menu .nav-link {
  font-family: "Franklin Gothic" !important;
  font-weight: normal !important;
  letter-spacing: 0.5px;
}
.navbar-custom .navbar-nav {
  align-items: baseline;
}
.list-group-no-border > .list-group-item {
  border-width: 0px;
  padding: 0rem 1.25rem 0rem 0.3rem;
  font-size: 1.2rem;
}
/*Øker størrelsen på de såkalte 'bullets' innenfor hvert menyelement i undermenyen (statistikk/fagpresse osv)*/
.list-group-no-border > .list-group-item > span {
  font-size: 1.3rem;
}
.list-group-no-border > .list-group-item:last-child {
  margin-bottom: 15px;
}
.listBox > .list-group > .list-group-item {
  display: list-item !important;
}
.listBox > .subTitle {
  margin-top: 0.25rem;
}
.bold-text {
  font-family: "Roboto-Medium";
}
.mark,
mark {
  background-color: yellow !important;
}
.list-group-item-action {
  color: black;
}
.list-group-item-action:hover {
  color: black;
}
