:root {
  --night: #07121c;
  --fjord: #0f3d5c;
  --glacier: #7fd8ff;
  --snow: #f6fbff;
  --ice: #b7d1e2;
  --accent: #00c0a3;
  --trip: #ffb74d; /* Tur-tag*/
  --forskertekno: #00a8d8; /* Blanding av glacier og accent */

  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Space Grotesk", sans-serif;
}
body {
  margin: 0;
  background: radial-gradient(circle at top, var(--fjord) 0%, var(--night) 60%);
  min-height: 100vh;
  background-repeat: no-repeat;
  font-family: "Montserrat", sans-serif;
  padding-top: 20vh;
  padding-bottom: 0px !important;
  color: var(--snow);
}

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

.navbar {
  width: 100%;
  height: 16vh;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: left;
  align-items: center;
  background-color: var(--night);
  position: fixed;
  top: 0;
  
}

#logo {
  height: 15vh;
  margin-left: 5%;
}

.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
  width: 50%;
  margin-right: 20px;
  margin-left: 1%;
}
#title-over {
  font-size: 1.3vw;
  color: var(--glacier);
}
#title-under {
  font-size: 2vw;
  color: var(--snow);
}

.menu-collapsed {
  display: none;
  font-weight: bold;
  cursor: pointer;
  margin-left: 80px;
}

.menu-collapsed p {
  display: flex;
  align-items: center;
  color: var(--snow);
  padding-right: 60px;
}

.menu {
  display: flex;
  gap: 45px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.menu a {
  text-decoration: none;
  color: var(--snow);
  font-weight: bold;
}

.menu a:last-child {
  color: var(--accent);
  min-width: 15%;
}

/*animation for menu*/
.menu.show-menu {
  display: flex;
}

nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
a:hover::after {
  transform: scaleX(1);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--snow);
  height: auto;
  padding: 1.5rem 1rem;
  background: linear-gradient(
    180deg,
    rgba(11, 27, 42, 0.9),
    rgba(15, 61, 92, 0.95)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-text {
  max-width: 900px;
  margin: 0;
  line-height: 1.6;
  color: var(--snow);
  font-size: 0.95rem;
}

footer .social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

footer .social-links a {
  color: var(--snow);
  background: rgba(0, 192, 163, 0.2);
  border: 1px solid rgba(0, 192, 163, 0.7);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  min-width: 140px;
  text-align: center;
}

footer .social-links a:hover {
  background: rgba(0, 192, 163, 0.4);
  transform: translateY(-2px);
}

/* scroll shrink navbar */

#logo,
#title-over,
#title-under {
  transition: all 0.25s ease;
}

.navbar {
  height: 16vh;
  transition:
    padding 0.25s ease,
    background-color 0.25s ease;
}

.navbar.shrink {
  height: 10vh;
}

.navbar.shrink #logo {
  height: 10vh;
}

.navbar.shrink #title-over {
  font-size: 1vw;
}

.navbar.shrink #title-under {
  font-size: 1.6vw;
}

.menu {
  transition: top 0.25s ease-in-out;
}
.redirect{
  color: var(--accent);
}
@media (max-width: 800px) {
  .menu {
    flex-direction: column;
    gap: 10px;
    display: none;
    position: absolute;
    top: 107px;
    right: 10px;
    background-color: var(--night);
    align-items: center;
  }

  .menu.shrink {
    top: 67px;
  }

  .menu-collapsed {
    display: block;
    height: fit-content;
    width: fit-content;
  }
  .menu-collapsed p {
    margin-right: 40px;
  }

  .menu a {
    padding: 0.5rem 2rem;
  }

  #title-over {
    font-size: 2.2vw;
    color: var(--glacier);
  }
  #title-under {
    font-size: 2.7vw;
    color: white;
  }

  .navbar.shrink #title-over {
    font-size: 3vw;
  }

  .navbar.shrink #title-under {
    font-size: 2.8vw;
  }
}

@media (max-width: 600px) {
  #title-over {
    font-size: 2.7vw;
    color: var(--glacier);
  }
  #title-under {
    font-size: 3.4vw;
    color: white;
  }

  .navbar.shrink #title-over {
    font-size: 3.2vw;
  }

  .navbar.shrink #title-under {
    font-size: 3vw;
  }
  .menu-collapsed {
    width: fit-content;
  }

  .menu-collapsed p {
    text-align: center;
    margin-left: -60px;
  }

  /* Footer*/

  footer .footer-text {
    max-width: 900px;
    margin: 0;
    line-height: 1.6;
    color: var(--snow);
    font-size: 2vw;
  }

  footer .social-links a {
    color: var(--snow);
    background: rgba(0, 192, 163, 0.2);
    border: 1px solid rgba(0, 192, 163, 0.7);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 3vw;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      background 0.2s ease;
    min-width: 3vw;
    text-align: center;
  }
}
/*Ekstra stuuf*/
.info {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  background: var(--fjord);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: var(--font-primary);
  color: var(--snow);
  border-top: 3px solid var(--accent);
}
.info h2 {
  font-family: var(--font-secondary);
  color: var(--glacier);
  margin-bottom: 0.5rem;
}
.fix{
  color: var(--snow);
  text-decoration: none;
}