* {
  margin: 0%;
  padding: 0%;
}
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: sans-serif;

  display: flex;
  flex-direction: column; /* Allows the body to stack elements vertically */
  justify-content: space-between; /* Ensures footer stays at the bottom */
  /*background-image: url(img/homepage/wif_day_pres_abg.png);**/
}

.main_container {
  position: absolute;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(1000px);
}

/*menu styles*/

nav {
  position: fixed;
  top: 0;
  background-color: rgba(1, 20, 20, 0.832);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 999; /* ensures it stays above other content */
  width: 100%;
  backdrop-filter: blur(
    10px
  ); /* Applies a blur effect to the background of the navigation bar */
}

nav ul {
  width: 100%; /* Sets the width of the navigation bar to 100% */
  display: flex; /* Uses flexbox to align items in the navigation bar */
  justify-content: flex-end; /* Centers the items in the navigation bar */
  list-style: none; /* Removes the default list style */
  align-items: center;
}
nav li {
  height: 60px;
}

nav a {
  height: 100%; /* Sets the height of the links to 100% of the navigation bar */
  padding: 0 30px; /* Adds padding to the left and right of the links */
  text-decoration: none; /* Removes the underline from the links */
  display: flex; /* Uses flexbox to align the links */
  align-items: center; /* Centers the text vertically */
  color: rgb(222, 222, 222); /* Sets the text color of the links */
}

nav a:hover {
  color: white; /* Changes the background color of the links on hover */
}

.main-nav-bar li:first-child {
  margin-right: auto; /* Pushes the first item to the left */
}

.sidebar {
  bottom: 0;
  position: fixed; /* Fixes the sidebar to the left side of the viewport */
  width: 250px; /* Sets the width of the sidebar */
  z-index: 999; /* Ensures the sidebar is above other elements */
  background-color: rgba(
    7,
    49,
    49,
    0.391
  ); /* Sets the background color of the sidebar */
  backdrop-filter: blur(
    10px
  ); /* Applies a blur effect to the background of the sidebar */
  display: none; /* Hides the sidebar by default */
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  max-height: fit-content;
  backdrop-filter: blur;
}
/*.sidebar li:first-child {
  margin-right: auto; 
}*/

.social-icons-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Space between social icons */
  margin-top: 10px; /* Adds some space above the social icons */
}

.sidebar li {
  height: 50px;
  list-style: none;
  text-decoration: none;
}

.sidebar a {
  display: block;
  padding: 12px 20px;
  margin: 0 auto;
  text-align: right;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  font-size: 1.05rem;
}
.sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Space between rows */
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar button {
  width: 100%;
  height: 100%; /* Sets the height of the links to 100% of the navigation bar */
  padding: 0 30px; /* Adds padding to the left and right of the links */
  text-decoration: none; /* Removes the underline from the links */
  display: flex; /* Uses flexbox to align the links */
  align-items: center; /* Centers the text vertically */
  background-color: rgba(0, 0, 0, 0.337);
}

.menu-button {
  display: none; /* Hides the menu button by default */
}
/*mobile menu bar below*/
.mobile-nav-bar {
  position: fixed;
  display: none;
  height: 60px;

  justify-content: space-evenly;
  flex-direction: row;
  bottom: 0;
  background-color: rgba(7, 49, 49, 0.391);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 999; /* ensures it stays above other content */
  width: 100%;
  backdrop-filter: blur(
    10px
  ); /* Applies a blur effect to the background of the navigation bar */
  list-style: none;
}

.mobile-nav-bar ul {
  width: 100%; /* Sets the width of the navigation bar to 100% */
  display: flex; /* Uses flexbox to align items in the navigation bar */
  list-style: none; /* Removes the default list style */
  align-items: center;
  text-decoration: none;
  list-style: none;
}
.mobile-nav-bar li {
  height: 50px;
  text-decoration: none;
}

.mobile-nav-bar a {
  height: 100%; /* Sets the height of the links to 100% of the navigation bar */
  text-decoration: none; /* Removes the underline from the links */
  display: flex; /* Uses flexbox to align the links */
  align-items: center; /* Centers the text vertically */
  color: white; /* Sets the text color of the links */
  text-decoration: none;
}

.mobile-nav-bar a:hover {
  color: white; /* Changes the background color of the links on hover */
}

/*sideinnhoold styles*/

.backdrop_hjem {
  /*min-height: 100vh;*/
  background-size: cover;
  height: 600px;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  /*backdrop-filter: blur(4px);*/
  width: 100%;
}

.backdrop_hjem img {
  width: 100%;
  background-position: center;
  max-height: 500px;
  object-fit: cover;
}

.over-img-text {
  line-height: 1.6;
  font-size: 18px;
  max-height: fit-content;
  color: #f3f4f6;
  text-align: center;
  max-width: 100%;
  padding: 10px;
}

.text-over-img-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.455);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px); /* Add this for Safari */
  white-space: pre-line;
}

.custom-link {
  text-decoration: none; /* Fjerner understrek */
  color: inherit; /* Arver fargen fra forelderen (f.eks. svart) */
  font-weight: normal; /* Valgfritt: gjør det ikke-bold hvis ønsket */
  cursor: pointer; /* Sørger for at det fortsatt er klikkbart */
}

.custom-link:hover {
  text-decoration: underline; /* Valgfritt: legg til litt feedback ved hover */
}

.img-text-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 5px;
  /*overflow: hidden;*/
}

.content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 0;

  /*padding: 50px;*/
}

/* Text side */
.text-content {
  flex: 1;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  background-color: white; /* Optional: match site theme */
  padding-left: 50px;
  padding-right: 50px;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #004b4b;
  margin-bottom: 15px;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;

  padding: 10px 0;
}

/*dark section*/
/*dark section*/
.img-text-section-dark {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

.content-dark {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 0;
  background-color: #004b4b; /* Optional: match site theme */
  width: 100%;
}

/* Text side */
.text-content-dark {
  flex: 1;
  padding: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #004b4b; /* Optional: match site theme */
  min-width: 200px;
}

.text-content-dark h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
}
.text-content-dark h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 5px;
  margin-top: 20px;
}

.text-content-dark p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  padding: 10px 0;
}

.om-oss-button {
  display: inline-block;
  padding: 10px;
  font-size: 1.2rem;
  color: white;
  background-color: #007b7b;
  border: none;
  border-radius: 80px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}
.om-oss-button:hover {
  background-color: #005f5f;
  text-decoration: none;
  color: white;
}

/* Image side */
.image-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 250px;
  max-width: 600px;
  padding: 50px;
}

.image-content img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  display: block;
  max-height: 650px;
}
.section {
  margin-top: 20px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  background-color: white;

  /*margin-bottom: 30px;*/
}
.section h2 {
  text-align: center;
  color: #004b4b;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#text-section {
  display: flex;
  padding: 50px;
  padding-top: 100px;
  background-color: #ffffffa7;
  color: #004b4b;
}

.section h3 {
  text-align: center;
}

.cards {
  position: relative;
  border-radius: 25px;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 250px;
}

.card {
  border-radius: 25px;
  background-color: #ffffff76;
  height: 100px;

  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  min-width: 300px;
  color: #004b4b;
}

.card h3 {
  margin-bottom: 1rem;
}
.card p {
  font-size: 0.9rem;
  color: #333;
}

.card:hover {
  transform: scale(1.05);
}

.social-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bilde-container {
  position: relative; /* Needed for pseudo-element positioning */
  display: flex;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  background-color: rgba(44, 43, 43, 0.417);
  background-blend-mode: darken;
  min-height: 10vh;
  max-height: fit-content;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}
.bilde-container img {
  /*filter: blur(3px);*/
  filter: blur(1px);
  width: 100%;
  background-position: center;
  max-height: 500px;
  object-fit: cover;
}

/* Styling for knappen */
.register-btn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: rgb(2, 113, 113);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.register-btn:hover {
  background-color: rgb(0, 82, 82);
  text-decoration: none;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 2rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.gallery p {
  text-align: center;
}

.img-gallery p {
  color: #333;
}
.img-gallery h3 {
  color: rgb(0, 82, 82);
}

/* Footer styles */

footer {
  background-color: rgb(1, 39, 39);
  color: white;

  padding: 2rem 1rem;
  z-index: 1000; /* Ensures footer is above other content */
}

.footer-wrapper {
  padding: 5%;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  text-align: center;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.footer-socials a {
  margin-left: 1rem;
}

.footer-socials img {
  width: 24px;
  height: 24px;
}

/* Mobiltilpasning */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
.little-button {
  display: inline-block;
  padding: 10px;
  font-size: 1rem;
  color: white;
  background-color: #007b7b;
  border: none;
  border-radius: 80px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  width: 150px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.little-button:hover {
  background-color: #005f5f;
  text-decoration: none;
  color: white;
}

.tittel {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004b4b;
  margin-left: 100px;
  max-width: 900px;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 30px;
}

.under-tittel {
  font-size: 2.25rem;
  font-weight: 500;
  color: #006060;
  margin-left: 100px;
  max-width: 900px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.bread {
  max-width: 900px;
  margin-left: 100px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 730px) {
  .hideOnMobile {
    display: none; /* Hides elements with the class hideOnMobile on mobile devices */
  }
  .menu-button {
    display: block; /* Displays the menu button on mobile devices */
  }
  .mobile-nav-bar {
    display: flex; /* Displays the mobile navigation bar on mobile devices */
  }
  .tittel {
    text-align: center;
    margin-left: 0;
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 30px;
  }
  .under-tittel,
  .bread {
    text-align: center;
    margin-left: 0;
    margin-bottom: 20px;
    margin-top: 30px;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 100%; /* Sets the width of the sidebar to 100% on mobile devices */
  }

  @media (max-width: 600px) {
    .img-text-section,
    .img-text-section-dark,
    .content,
    .content-dark {
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      height: auto;
    }
    .image-content,
    .text-content {
      width: 100%;
      min-width: 0;
      padding: 20px 0;
      height: auto;
    }
    .text-content-dark,
    .text-content {
      padding: 40px;
    }

    .image-content {
      padding: 10px;
      margin-bottom: 40px;
    }
    .image-content img {
      width: 100%;
      max-height: 300px;
      object-fit: contain;
      display: block;
    }
    .over-img-text {
      font-size: 16px;
      padding: 20px;
    }
  }
}
