/* Reset styles for consistency across browsers */
* {
  margin: 0;
  
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  /*margin-top:-5%; /* Adjust so that koblr comes further up */
  /*padding-top: 5px;*/
  background: radial-gradient(circle, #2a5d8b 0%, #000000 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Base styles for both logo and hero header logo */
.logo,
.hero-header .logo {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  /* Ensure the fallback text is selectable and readable */
  user-select: text;
}

/* Default .logo styling */
.logo {
  font-size: 1.5rem;
  letter-spacing: 0;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  height: 100px;
}

/* Hero header variant, larger text */
.hero-header .logo {
  font-size: 6rem;
  letter-spacing: 4px;
  text-shadow:
    0 0 3px rgba(255, 122, 0, 0.4),
    0 0 6px rgba(255, 122, 0, 0.3);
  margin-bottom: 40px;
  height: auto; /* Let the container size adapt */
}

/* Image styles inside logo containers */
.logo img,
.hero-header .logo img {
  max-height: 100%;
  max-width: 1000px;
  width: auto;
  height: auto;
  display: block;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
  .logo {
    height: 70px;
    font-size: 1.3rem;
    padding: 8px 0;
  }
  .logo img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    margin-left: 0%;
  }

  .hero-header .logo {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  .hero-header .logo img {
  /*  max-width: 450px; */
      width: 100%; 
  /*  height: auto; */
  }
  body {
/* margin-top:-40%; /* Adjust so that koblr comes further up */
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-for-bedrifter {
  background-color: #ff7a00;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-for-bedrifter:hover {
  background-color: #e96c00;
}

/* Hero section (fullscreen intro) */
.hero-header {
  /*padding-top: 100px; */ 
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}
.cta-knapp {
  background: #ffffff;
  color: #000;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
   margin-top: 0.5em;  /* <- legger til ekstra luft over knappen */
}
.cta-knapp:hover {
  background: #f2f2f2;
  transform: scale(1.05);
}

/* Signup container (for registration pages) */
.signup-container {
  position: relative;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 100%;
  margin: 0 auto 60px;
  animation: fadeInUp 0.8s ease-out;
}

/* Filter/header container for onthelist.php */
.filter-container {
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  max-width: 540px;
  width: 100%;
  margin: 2rem auto 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.filter-container h1,
.filter-container label,
.filter-container .counter {
  color: #222;
}
.filter-container .counter.white-text {
  color: #222 !important;
}
.filter-container a {
  color: #0052cc;
}
.filter-container a:hover {
  color: #E4572E;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info-box (glass-stil) */
.info-box {
  background: rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 20px;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  margin: 20px auto;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.info-box h2,
.info-box h3,
.info-box p,
.info-box ul,
.info-box li {
  color: #ffffff;
}
.info-box ul {
  padding-left: 1.5em;
  margin: 0.5em 0;
}
.info-box li {
  margin-bottom: 0.4em;
}

/* Typografi */
h1, label, .radio-group label, .checkbox-group label {
  color: #E4572E;
}
h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
h1 i {
  font-style: italic;
}
h2 {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
  color: #E4572E;
}
label {
  display: block;
  margin: 10px 0 5px;
  font-size: 1rem;
}

/* Skjema-elementer */
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #E4572E;
  border-radius: 4px;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
input:hover, select:hover, textarea:hover,
input:focus, select:focus, textarea:focus {
  border-color: #e65e17;
  box-shadow: 0 0 5px #e65e17;
}

/* Date picker fix */
input[type="date"] {
  appearance: auto;
  -webkit-appearance: auto;
  background-color: #fff;
  color: #000;
  border: 1px solid #E4572E;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  width: 100%;
}
input[type="date"]:hover, input[type="date"]:focus {
  border-color: #e65e17;
  box-shadow: 0 0 5px #e65e17;
}

/* Egendefinert dropdown-pil */
select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f38e21"%3e%3cpath d="M7 10l5 5 5-5z"/%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Radioknapper og checkbox */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input[type="radio"], input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: #E4572E;
  width: 20px;
  height: 20px;
}

/* Submit-knapp */
button {
  background-color: #E4572E;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
button:hover {
  background-color: #e65e17;
  transform: scale(1.02);
  box-shadow: 0 0 8px #e65e17;
}

/* Lenker */
a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: #E4572E;
}

/* Footer & sosiale ikoner */
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #E4572E;
}
.social-section {
  margin-top: 20px;
  text-align: center;
}
.instagram-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  padding: 8px 14px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instagram-button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 8px rgba(220, 39, 67, 0.7);
}
.instagram-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Responsivt for mindre skjermer */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .signup-container, .filter-container { padding: 15px; }
  input, select, textarea, button { font-size: 16px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .signup-container, .filter-container { padding: 10px; }
  button { font-size: 14px; }
  .instagram-button { padding: 7px 12px; font-size: 0.85rem; gap: 4px; }
  .instagram-icon { width: 14px; height: 14px; }
}
.signup-container p,
.signup-container ul,
.signup-container li {
  color: #fff;
}

/* White text utility */
.white-text { color: #fff !important; }

/* Table spacing and left alignment */
.table-container table th,
.table-container table td,
table th,
table td {
  text-align: left;
  padding: 0.6rem 1rem;
}


.flex-row {
  display: flex;
  align-items: flex-end; /* eller center hvis du vil ha midtstilt */
  gap: 0.5em;
  margin-bottom: 0.5em;
}
#registration_code {
  width: 220px;
  font-size: 1.1em;
  padding: 0.5em 0.7em;
  border-radius: 0.3em;
  border: 1px solid #ccc;
  box-sizing: border-box;
  height: 2.4em;
}
#check-code-btn {
  background: #E4572E;
  color: #fff;
  border: none;
  border-radius: 0.3em;
  font-weight: 600;
  font-family: 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 0.98em;
  padding: 0.45em 1em;
  height: 2.4em;
  line-height: 1;
  margin: 0;
  box-sizing: border-box;
  display: inline-block;
}
#check-code-btn:hover {
  background: #d17a00;
}
/* --- Logo-slider med heading --- */
.slider-section {
  width: 100vw;
  background: transparent;
  padding-bottom: 0;
  margin: 0 auto 0 auto;
}
.slider-heading {
  text-align: center;
  font-size: 2.6rem;   /* Stor p책 PC */
  color: #E4572E;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 28px;
  font-family: 'Montserrat', 'Nunito Sans', sans-serif;
}

@media (max-width: 700px) {
  .slider-heading {
    font-size: 1.3rem;   /* Mindre p책 mobil/tablet */
    margin-bottom: 7px;
    margin-top: 16px;
  }
}

.slider-container {
  width: 100vw;
  overflow: hidden;
  background: radial-gradient(circle, #2a5d8b 0%, #000000 100%);
  padding: 28px 0 18px 0;
  border-top: 2px solid #E4572E;
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 20px 0 rgba(0,0,0,0.23);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollLeft 28s linear infinite;
  will-change: transform;
  gap: 0;
}

.slider-track img {
  height: 110px;
  margin: 0 60px; /* Juster mellomrom her! */
  object-fit: contain;
  filter: grayscale(0.07) brightness(1.08) contrast(1.12);
  opacity: 0.98;
  border-radius: 12px;
  background: none;
  transition: filter 0.2s, opacity 0.2s, transform 0.17s;
}

.slider-track img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.09);
  box-shadow: 0 2px 16px #0008;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .slider-track img { height: 64px; margin: 0 20px; }
  .slider-container { padding: 10px 0 8px 0;}
}
@media (max-width: 500px) {
  .slider-track img { height: 34px; margin: 0 6px;}
  .slider-container { padding: 6px 0 5px 0;}
}
.copyright-footer {
  text-align: center;
  color: #E4572E;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  opacity: 0.80;
  background: transparent;
  padding: 8px 0 0 0;
  font-family: 'Montserrat', 'Nunito Sans', sans-serif;
  user-select: none;
}





/* LOGO SLIDER  */ 



.container {
  --s: 150px; /* size of the logo */
  --d: 16s;    /* animation duration */
  --n: 4;     /* number of visible logos */
  display: flex;
  overflow: hidden;

  /* Mask for fading edges */
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.container img {
  width: var(--s);
  max-height: var(--s);
  filter: brightness(200%);
  object-fit: contain;

  /* Simple horizontal marquee animation */
  animation: marqueeX var(--d) linear infinite;

  /* Prevent flicker on iOS Safari */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* Inline block to work well in flex */
  display: inline-block;
  margin-right: 10px; /* add some spacing between images */
}

/* Keyframes for smooth infinite horizontal scroll */
@keyframes marqueeX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--s) * var(--n)));
  }
}

/* Pause animation on hover as in your original */
.container:hover img {
  animation-play-state: paused;
}

/* Extra container styles from original, unchanged */
.container {
  border: 0;
  padding-block: 5px;
  margin: 20px auto;
}
