
/* Primærknapp (bakgrunn) */
.btn {
  background-color: #fff;
  border-color: #C3C2C2;
  color: #444;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background-color: #54909E;
  border-color: #444;
  color: #fff;
}

.btn:focus,
.btn:active {
  background-color: #54909E;
  border-color: #54909E;
  color: #fff;
  box-shadow: none !important;
  outline: none !important;
}

.btn:focus-visible {
  outline: 2px solid #54909E;
  outline-offset: 2px;
}

.navbar-nav .nav-item.nav-item-custom-active {
  background-color: #e9ecef;  /* ønsket farge */
}

.navbar-nav .nav-item.nav-item-custom-active .nav-link {
  font-weight: bold;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #dee2e6;
}

.csard-header {
  background-color: #F2F1F1 !important;
}

.xcard {
  border-top: 1px solid #66A2B2;
  border-radius: 4px;
  background-color: rgba(176, 202, 224, 0.12);  /* Litt transparent blågrønn bakgrunn */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.xcard:hover {
  box-shadow: 0 8px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.minside-header {
  background-color: #969696; /* mørk grå */
  color: white;
}

/* -------------------------------------------
 * 1. Basic Text Styling
 * -------------------------------------------
 */
body, div, span, td, th, li, blockquote {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Juster farge på nav-tabs slik at linker ikke er blå */
.nav-tabs {
    flex-wrap: wrap; /* gjør at fanene brytes til ny linje */
    margin-bottom: 1rem;
}

.nav-tabs .nav-item {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-tabs .nav-link {
    color: #6a6a6a; /* Standard linkfarge: mørkegrå */
    font-weight: 600; /* Litt tykkere for bedre lesbarhet */
    background-color: transparent; /* Ingen bakgrunn */
    border: 1px solid transparent; /* Fjerner Bootstrap-rammer */
    border-radius: 0.25rem 0.25rem 0 0; /* Mykere kanter */
    padding: 8px 12px;
}

.nav-tabs .nav-link:hover {
    color: #000; /* Mørkere ved hover */
    background-color: #f8f9fa; /* Lett grå bakgrunn ved hover */
    border-color: #dee2e6 #dee2e6 #fff; /* Top/border style */
    text-decoration: none; /* Fjern understreking */
}

.nav-tabs .nav-link.active {
    color: #6c6b6b; /* Sort tekst på aktiv fane */
    background-color: #e1e4e7; /* Lys grå bakgrunn på aktiv fane */
    border-color: #dee2e6 #dee2e6 #fff; /* Skillefarge */
    font-weight: 700; /* Tydeligere vekt på aktiv */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* diskret skygge */
    border-radius: 0.3rem 0.3rem 0 0; /* litt mer avrundet */
}


/* -------------------------------------------
 * 2. Headings (from fil 1)
 * -------------------------------------------
 */
h1 {
    color: #5F615F;
    font-size: 2rem;
    margin-top: 1rem;
}

h2 {
    color: #333;
    font-size: 22px;
    margin-top: 35px;
    font-weight: bold;
}

h3 {
    color: #333;
    font-size: 18px;
    margin-top: 30px;
}

h4 {
    color: #5F615F;
    font-size: 18px;
    margin-top: 10px;
}

h5 {
    color: #4f4f4f;
    font-size: 16px;
    margin-top: 0px;
}


/* Light theme */
:root {
  --bs-secondary-color: rgba(var(--bs-body-color-rgb), .65); /* var .75 → .65 */
}

/* -------------------------------------------
 * 3. Links and Ordbok (from fil 2)
 * -------------------------------------------
 */
/* Links */
a {
    color: #1a2d43;  /* Mørk blå */
    text-decoration: none;
}

a:hover,
a:focus {
    color: #222;  /* Enda mørkere grå på hover */
    text-decoration: underline;
}

.link-ordbok {
    border-bottom: 1px dotted black;
    text-decoration: none;
    cursor: help;
}

.link-ordbok:hover {
    text-decoration: none;
}

.figure.float-end {
  max-width: 250px;   /* Default for mobil */
  margin-left: 15px;
  margin-bottom: 15px;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 4px;
}

.figure-caption img.icon-ordbok {
    display: inline;
    width: 15px;
    height: auto;
    margin-left: 4px;
    vertical-align: middle;
    border: none;
    padding: 0;
}

/* Øk bredden på større skjermer */
@media (min-width: 768px) {
  .figure.float-end {
    max-width: 350px;
  }
}

.figure-caption {
  color: #999;
  font-style: italic;
  font-size: 0.9em;
  margin-top: 4px;
}


blockquote {
  border-left: 4px solid #ccc;
  padding: 1rem 1.5rem 0.3rem 1.5rem;
  margin: 2rem 0 0 0;  /* Top: 2rem, Right: 0, Bottom: 1rem, Left: 0 */
  background-color: rgba(240, 240, 240, 0.4);
  font-style: italic;
  line-height: 1.6;
}
blockquote footer {
  font-size: 0.9em;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* -------------------------------------------
 * 4. Tables and Borderless Tables (from fil 1)
 * -------------------------------------------
 */
.borderless tbody tr td,
.borderless tbody tr th,
.borderless thead tr th,
.table-borderless td,
.borderless th {
    border: none !important;
}

.thumbnail {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 4px;
    background-color: #fff;
}


.table-nonfluid {
    width: auto;
}

/* -------------------------------------------
 * 5. Containers
 * -------------------------------------------
 */
.container-full {
    margin: 0 auto;
    width: 95%;
}

/* -------------------------------------------
 * 6. Embed Containers (from fil 1)
 * -------------------------------------------
 */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.faktaboks_liten_midt,
.faktaboks_hoyre,
.faktaboks_stor,
.faktaboks_red {
    display: block;
    clear: both;
    padding: 1.25rem; /* 20px */
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1); /* Lys grå kantlinje */
}

/* Blå bakgrunn (alle unntatt rød) */
.faktaboks_liten_midt,
.faktaboks_hoyre,
.faktaboks_stor {
    background-color: rgba(176, 202, 224, 0.42);
}

/* Rød bakgrunn */
.faktaboks_red {
    background-color: rgba(250, 179, 204, 0.42);
}

/* Midtjustert liten boks */
.faktaboks_liten_midt {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Høyreplassert boks */
.faktaboks_hoyre {
    float: right;
    width: 300px;
    margin-left: 1rem;
}

/* -------------------------------------------
 * 8. Other Styling (from fil 1)
 * -------------------------------------------
 */
.tooltip-wide .tooltip {
    min-width: 200px;
}

@-moz-document url-prefix() {
    fieldset {
        display: table-cell;
    }
}

.bilde-video-thumb {
    top: 0;
    left: 0;
    margin: 7px;
    position: absolute;
    background: #CCC;
    opacity: 0.8;
    width: 70%;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.thumbnail {
    position: relative;
}

.caption_bilde {
    position: relative;
    bottom: 20px;
    width: 100%;
    padding: 0px !important;
    color: #999;
    font-style: italic;
    font-size: smaller;
    margin: 6px;
}

.top {
    background-color: #ffffff;
    height: 70px;
    overflow: hidden;
    margin-top: 5px;
}

.sok_form {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 26px;
}
input.form-control,
  select.form-select,
  textarea.form-control {
    border: 1px solid #666 !important;
  }


ingress {
    margin: .67em 0;
    font-size: 2em;
    font-style: italic;
}

.stort_bilde {
    width: 100%;
    margin-bottom: 15px;
}
