@font-face {
  font-family: 'Century Gothic';
  src: url('/static/fonts/centurygothic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.hagelandit-font {
  font-family: 'Century Gothic', sans-serif;
}

body a {
  color: #ddd;
  text-decoration: underline;         /* Understrek alltid gir klikkbar følelse */
  font-weight: 500;                   /* Litt fetere enn vanlig, men ikke for mye */
  transition: color 0.2s ease;
}

body a:hover,
body a:focus {
  color: #fff;
  text-decoration: none;              /* Fjern understrek ved hover/focus */
  font-weight: 600;
}

.hoverunderstrek {
  text-decoration: none !important;              /* Ingen understrek som standard */
}

.hoverunderstrek:hover,
.hoverunderstrek:focus {
  text-decoration: underline !important;         /* Understrek ved hover/focus */
}

table, th, td {
  border: 1px solid;
  text-align: center;
  padding: 5px;
}

table.kolonnevalg {
  border-collapse: collapse;
  display: table;
  margin-top: 7px;
}

th.kolonnevalg, td.kolonnevalg {
  display: none;
}

th.viskolonne, td.viskolonne {
  display: table-cell;
}

form.kolonnevalg {
  max-width: 95%;
  font-size: 70%;
}

form.kolonnevalg input[type="checkbox"] {
  margin-right: 1em;
  vertical-align: bottom;
}

div.rollegardinmndlader {
  justify-content: flex-end;
}

p.margtop {
  margin-top: 2em;
}

p.roedtekst {
  color: red;
}

div.forklaring {
  padding: 0 0 2em 0;
}

td.left {
  text-align: left;
}

td.right {
  text-align: right;
}

th.center {
  text-align: center;
}

marginleft {
  margin-left: 1em;
}

div.a4ark {
  padding-left: 2em;
  padding-bottom: 2em;
  padding-right: 2em;
  border-style: double;
}

u.summering {
  text-decoration: double underline;
}

footer {
  text-align: center;
  margin-top: 5em;
}

hvit {
  color: white;
}

img.toplogo {
  max-height: 49px;
  float: left;
}

th.rotate {
  height: 30px;
  white-space: nowrap;
  border: none;
  padding-top: 40px;
}

th.rotate > div {
  transform: rotate(315deg);
  width: 30px;
}

th.rotate > div > span {
  border-bottom: 1px solid #ccc;
  padding-left: 10px;
  margin-left: 0px;
  padding-bottom: -40px;
}

table.rotate {
  border: none;
}

span.kolonnevalg {
  white-space: nowrap;
}

input[readonly] {
  background-color: lightgray;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: orange;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner .btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-left: 10px;
}

.cookie-banner .btn:hover {
  background-color: #0056b3;
}

.button-wrapper {
  display: flex;
}

.button-wrapper .btn {
  margin-left: 10px;
}

@media (max-width: 599px) {
  .cookie-banner {
      flex-direction: column;
      align-items: flex-start;
  }

  .cookie-banner p {
      margin-bottom: 10px;
  }

  .button-wrapper {
      width: 100%;
      display: flex;
      justify-content: space-between;
  }

  .button-wrapper .btn {
      margin-left: 0;
  }
}

body {
  text-align: center;
  margin: 0 60 0 20;
}

img.prisutvikling {
  max-width: 98%;
  max-height: 98%;
}

.prisutvikling.link-container {
  margin-top: 20px;
}

/* Andre stiler */
.card-custom {
  text-align: center;
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 185px;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-custom .card-body {
  background-color: white;
  color: #333;
}

.card-custom .card-title {
  font-size: 1.2rem;
  color: #ff6600; /* Oransje farge */
}

.card-custom .card-text {
  font-size: 1rem;
  color: #666;
}

.card-custom .btn-primary {
  background-color: #ff6600; /* Oransje farge */
  border-color: #ff6600;
}

.card-custom .btn-primary:hover {
  background-color: #e65c00;
  border-color: #e65c00;
}

.card-logo {
  max-width: 50px;
  margin-bottom: 15px;
}

table {
  margin: 0 auto;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  color: black;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content span {
  display: block;
  padding: 5px;
}

.dropdown-content span:hover {
  background-color: #f1f1f1;
}

.col-md-4 {
  padding: 8px;
}

.card-custom {
  position: relative;
  overflow: hidden;
}

.card-custom .tekst-badge {
  position: absolute;
  left: 20px;
  margin-left: 35px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

button.spinner {
  display: none;
}

.card-custom {
  position: relative;
  overflow: hidden;
  margin: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card-custom:hover {
  transform: scale(1.05);
}

.tekst-badge {
  text-align: center;
  position: absolute;
  transform: translateX(-50%) rotate(-45deg);
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-custom .tekst-badge[data-status="Betalt"] {
  background-color: #ff6600; /* Oransje bakgrunn for "Betalt" status */
}

.card-custom .tekst-badge {
  background-color: rgba(255, 0, 0, 0.7); /* Rød bakgrunn som standard */
}

.popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
}

.popup-buttons a {
  display: flex;
  align-items: center;
  margin: 10px 0;
  text-decoration: none;
  color: inherit;
}

.popup-icon {
  width: 24px; /* Sett ønsket størrelse på ikonene */
  height: 24px; /* Sett ønsket størrelse på ikonene */
  margin-right: 10px; /* Avstand mellom ikon og tekst */
}

.mt-5 {
  margin-top: 1px !important;
}

.midtstill {
  margin: 0 auto;
}

.col-6 {
  padding-right: 1px;
  padding-left: 1px;
}

.no-hover:hover {
  transform: none !important;
  transition: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: initial;
}

.input-with-icon {
  display: flex;
  align-items: center;
}

.help-icon {
  cursor: pointer;
  color: orange;
  margin-left: 5px;
  font-size: 0.9em;
}

.help-text {
  display: none;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 300px; /* Adjust this value if needed */
}

.kontakt-container {
  margin: 0 auto;
  margin-bottom: 40px;
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 350px;
  text-align: center;
}

.kontakt-container h2 {
  margin-bottom: 20px;
  color: #333;
}

.kontakt-container input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.kontakt-container button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.kontakt-container label {
  margin-top: 10px;
}

.kontakt-container button:hover {
  background-color: #0056b3;
}

.kontakt-container textarea {
  height: 100px;
}

.mindreskrift {
  font-size: 0.875rem;
}

.card-min-height {
  height: auto; /* Ensure the card takes minimal height */
}

.card-min-height .card-body {
  padding: 10px; /* Adjust padding to reduce the overall height */
}

.card-logo {
  max-height: 50px; /* Adjust as needed */
  width: auto;
}

.custom-list {
  list-style-type: none;
  padding: 0;
  font-size: 1rem;
  color: #666;
}

.custom-list li {
  margin-bottom: 10px; /* Adjust the spacing as needed */
}

.custom-list li a {
  text-decoration: none;
}

.navbar-custom .navbar-nav .nav-link {
  text-align: left;
}

.navbar-nav .dropdown-menu {
  float: left;
  background-color: #343a40;
  border: none;
}


.dropdown-item {
  color: #fff;
}

.rounded-bottom-only {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0.5rem !important; /* Juster radius etter behov */
  border-bottom-right-radius: 0.5rem !important; /* Juster radius etter behov */
}

.kortpil {
  color: #ff6600;
  opacity: 0.5;
  transition: opacity 0.3s ease; /* Legger til en overgangseffekt */
}
.card:hover .kortpil {
  opacity: 1; /* Setter opacity til 1 når card blir hovret over */
}

.fs-breadcrumb {
  font-size: 0.75rem;
}



  /* styles for validation helpers */
  .field-validation-error {
      color: #b94a48;
  }

.field-validation-valid {
  display: none;
}

input.input-validation-error {
  border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
  border: 0 none;
}

.validation-summary-errors {
  color: #b94a48;
}

.validation-summary-valid {
  display: none;
}




table {
  max-width: 100%; /* Full-width */
  border: 1px solid #ededed; /* Add a grey border */
}

  table th, table td {
      text-align: left; /* Left-align text */
      padding: 5px; /* Add padding */
  }

  table tr {
      /* Add a bottom border to all table rows */
      border-bottom: 1px solid #ededed;
  }

      table tr.header, table tr:hover {
          /* Add a grey background color to the table header and on hover */
          background-color: #555555;
      }


/* Set width on the form input elements since they're 100% wide by default */
input, select, textarea {
  max-width: 700px;
}
textarea {
  width: 280px;
}

  /* styles for validation helpers */
  .field-validation-error {
      color: #b94a48;
  }

.field-validation-valid {
  display: none;
}

input.input-validation-error {
  border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
  border: 0 none;
}

.validation-summary-errors {
  color: #b94a48;
}

.validation-summary-valid {
  display: none;
}

.d-none {
  display: none;
}