* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Bahnschrift', 'Gidole', 'Helvetica', 'Arial', sans-serif;
  background-image: url(assets/Background.avif);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(255,255,255,0) 0%, white 100%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, white 100%);
  pointer-events: none;
  z-index: -1;
}

.site-content {
  flex-grow: 1;
}

.navbar {
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FF80A2;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(100, 0, 72, 0.1);
}

.navbar a {
  color: #03106B;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  line-height: normal;
  padding: 0.5rem 1rem;
}

.navbar a:hover {
  color: #E12384;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  margin: 0;
}

.nav-links li a {
  color: #03106B;
  text-decoration: none;
  font-weight: bold;
}

.navbar-icons {
  display: flex;
  gap: 1.5rem;
  display: none; 
}

.hamburger {
  display: none; 
  font-size: 2rem;
  color: #03106B;
  cursor: pointer;
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.logo-center img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

.logo-text img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-bottom: 1.2rem;
}

.year {
  font-size: 3.5rem;
  font-weight: 700;
  color: #03106B;
  margin-top: 0.5rem;
}

.location {
  font-size: 2.5rem;
  font-weight: 600;
  color: #03106B;
  margin-top: 0.5rem;
}

.content {
  max-width: 900px;
  margin: 2rem auto 1.5rem auto;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-footer a {
  color: #03106B;
  font-size: 2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-footer a:hover {
  color: #E12384;
  transform: scale(1.2);
}

.info-boks {
  padding: 1rem 1.5rem;
  margin: 2rem auto 1.5rem auto;
  border-radius: 12px;
  box-shadow: none;
  background-color: transparent;
  color: #222;
}

.info-boks h1,
.info-boks h2,
.info-boks h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #03106B;
  text-align: center;
}

.info-boks h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.info-boks h2 {
  font-size: 2.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(225, 35, 132, 0.3);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.info-boks h4 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #E12384;
}

.info-boks p {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.info-boks p:first-of-type {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
}

.info-boks p:nth-of-type(2) {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
}

.info-boks ul,
.info-boks ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style-position: inside;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.info-boks ul li,
.info-boks ol li {
  line-height: 1.8;
  margin-bottom: 0.8rem;
  color: #333;
  text-align: left;
}

.info-boks ul li {
  list-style-type: disc;
}

.info-boks ol li {
  list-style-type: decimal;
}

.info-boks ol li em {
  display: block;
  margin-top: 0.2rem;
}

.info-boks a {
  color: #0a0a5a;
  text-decoration: underline;
  word-break: break-word;
}

.info-boks h4 + p {
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.nb-tekst {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto 0;
  line-height: 1.6;
  color: #333;
}

.button-primary + .nb-tekst {
  margin-top: 2.5rem;
  align-items: center;
}

.button-primary {
  color: white;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin-top: 2.5rem !important;
  margin-bottom: 2.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

#main-footer {
  background-color: #f5f5f5;
  padding: 2rem 0;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

#main-footer p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#main-footer a {
  color: #03106B;
  text-decoration: none;
  transition: color 0.3s ease;
}

#main-footer a:hover {
  color: #E12384;
}

#main-footer .social-icons {
  margin-bottom: 1rem;
}

#main-footer .social-icons p {
  margin-bottom: 0.5rem;
  display: block;
}

#main-footer .social-icons a {
  font-size: 1.8rem;
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease, color 0.3s ease;
}

#main-footer .social-icons a:hover {
  color: #E12384;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 70px; 
    background-color: #FF80A2; 
    padding: 1rem;
    border-radius: 8px;
    z-index: 1000; 
    box-shadow: 0 2px 6px rgba(100, 0, 72, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .logo-center img {
    width: 85%;
    max-width: 350px;
  }

  .logo-text img {
    width: 90%;
    max-width: 400px;
    margin-bottom: -3rem;
  }

  .hamburger {
    display: block; 
    font-size: 2.8rem;
    color: #03106B; 
    cursor: pointer; 
  }

  #main-footer {
    display: none;
  }

  .navbar {
    justify-content: space-between;
    position: relative;
  }

  .navbar-right-elements {
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    margin-left: auto; 
  }

  .navbar-icons {
    display: flex; 
    gap: 1rem; 
  }
}

.bw-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 2rem auto;
}

@media (max-width: 300px) {
  .content {
    margin: 3rem auto 2rem auto;
    padding: 1.5rem 1rem;
  }

  .info-boks {
    padding: 1.5rem 1.2rem;
    border-radius: 1rem;
    margin: 0 auto;
    max-width: none;
    width: auto;
  }

  .logo-center img {
    max-width: 220px;
    margin-bottom: 1rem;
  }
  .logo-text img {
    max-width: 260px;
    margin-bottom: 0.8rem;
  }
  .year {
    font-size: 2.2rem;
    margin-top: 0.4rem;
  }

  .info-boks h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .info-boks h2 {
    font-size: 1.8rem;
    text-underline-offset: 5px;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .info-boks p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: left;
    max-width: 100%;
  }

  .info-boks p:first-of-type,
  .info-boks p:nth-of-type(2),
  .info-boks p:last-of-type {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 100%;
  }

  .info-boks ul,
  .info-boks ol {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding-left: 0;
  }

  .info-boks ul li,
  .info-boks ol li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .button-primary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
}
