html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  background-attachment: fixed;
  background-size: cover;
}

main {
  flex: 1;
}

.flag {
  position: absolute;
  right: -5rem;
  border: none;
  background: none;
  cursor: pointer;
  width: 22px;
  height: 16.5px;
  padding-right: 5px;
  margin: 0;
}

.background-image {
  position: relative;
  width: 100%;
  height: 45rem;
  background-image: url("../assets/images/scannerbackground.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 0.1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  z-index: 0;
}

.fontstylemiddle {
  margin-top: 48px;
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 22pt;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  letter-spacing: 5px;
}

.singlelogo img {
  height: 1.5rem;
}

.inversetext {
  display: inline-flex;
  font-size: 22pt;
  width: 10ch;
  white-space: nowrap;
  overflow: hidden;
  font-weight: bold;

  transition: background-color 0.3s ease;
}

.nav-bar-hjem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 50px;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border-bottom: 0.1px solid white;
  z-index: 10;
}

.nav-bar {
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border-bottom: 0.1px solid white;

  z-index: 10;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  position: static;
  transform: none;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.nav-links2 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links2 a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16pt;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16pt;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.nav-links a:hover {
  background-color: var(--color-container);
  border-radius: 4px;
}

.nav-links2 a:hover {
  background-color: var(--color-container);
  border-radius: 4px;
}

#languageToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 11pt;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.squarebackground {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  margin-left: 50px;
  margin-right: 50px;
  margin-bottom: 15px;
}

.squareprofil {
  justify-content: center;
  display: flex;
  gap: 20px;
  margin-top: 15px;
  margin-left: 50px;
  margin-right: 50px;
  margin-bottom: 15px;
}

.squarescanner {
  width: 100%;
  height: auto;
  flex-grow: 1;
  display: block;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-radius: 10px;
}

.squarescanner h1 {
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
}

.squarecontainer {
  align-items: stretch;
  justify-content: center;
  display: flex;
  gap: 20px;
  margin-top: 15px;
  margin-left: 50px;
  margin-right: 50px;
  margin-bottom: 15px;
}

.squarecontainer h1 {
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
}

.imgsquare {
  display: flex;
  border-radius: 0.5rem;
  align-items: center;
}

.imgsquare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid white;
  border-radius: 10px;
}

.imglogoparaplycontainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 40px;
}

.imglogoparaply img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border: 1px solid white;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.squarehjem {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-radius: 10px;
}

.squareyoutube {
  flex: 1;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-radius: 10px;
  overflow: hidden;
}

.fontsquare {
  width: 100%;
  color: white;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.fontsquare h1 {
  margin: 5px;
  padding: 10px;
  border-bottom: 1px solid white;
  font-size: 18pt;
  word-break: break-word;
}

.fontsquare p {
  margin: 15px;
  font-size: 14pt;
  word-break: break-word;
}

.squarepicture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0px 0px 20px 50px;
  box-sizing: border-box;
  margin-top: 50px;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border-top: 0.1px solid white;
}

.footer {
  width: 100%;
  height: auto;
  color: white;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-heading {
  display: flex;
  flex-direction: column;
}

.footer-heading img {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-bottom: 0.1rem;
}

.footer-heading h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.footer-heading a {
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-heading p {
  margin-top: 0%;
  margin-bottom: 9.25px;
}

.text-hover:hover {
  background-color: var(--color-container);
  transition: 0.3s ease-in-out;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  font-weight: bold;
}

.titletext {
  text-align: center;
  color: white;
  display: absolute;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 0.1px solid white;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
}

.teamtekst {
  margin-top: 25 px;
  color: white;
  display: inline-block;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
  border-bottom: 0.1px solid white;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 40px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  /* width: 40%; */

}

.square {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}

.square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.squaretittel {
  min-height: 100px;
  width: 100%;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.squaretittel h1 {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 3px 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  word-break: break-word;
}

.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.links img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.links img:hover {
  transform: scale(1.1);
}

.timeline {
  margin: 0 auto;
  max-width: 1200px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  color: #ffffff;
}

.timeline__component {
  margin: 0 20px 20px 20px;
}

.timeline__component--bottom {
  margin-bottom: 0;
}

.timeline__middle {
  position: relative;
  background: white;
}

.timeline__point {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
}

.timeline__point--bottom {
  top: initial;
  bottom: 0;
}

.timeline__date--right {
  text-align: right;
}

.timeline__title {
  margin: 0;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgb(0, 0, 0, 0.7);
}

.timeline__paragraph {
  line-height: 1.5;
}

.timeline__component--bg {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  border: 1px solid white;
  border-radius: 10px;
}

.timeline__component--bg.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__component--bg,
.timeline__date {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline__component--bg.visible,
.timeline__date.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__component--bg.visible,
.timeline__date.visible {
  transition-delay: 0.1s;
}

:root {
  --color-bg-dark: #111721;
  --color-bg-medium: #1f2e3d;
  --color-bg-light: #2a445e;
  --color-lapis: #2e5774;
  --color-button: #4fadd6;
  --color-line: #2c5470;
  --color-text: #8c8f93;
  --color-title: #babfc4;
  --color-container: #1b2a32;
  --color-containertext: #e9ecef;
  --color-placeholder: #747d81;
  --color-icon: #e0e3e5;
  --font-roboto: "Roboto", sans-serif;
  --background-size: 100%;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial;
  overscroll-behavior: none;
  background: linear-gradient(to right,
      var(--color-bg-dark),
      var(--color-bg-medium),
      var(--color-bg-light));
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

main {
  flex: 1;
}

@media (max-width: 768px) {
  .background-image {
    height: 25rem;
  }

  .profile-card {
    width: 40%;
  }


  .squarebackground,
  .squarecontainer,
  .squareprofil {
    flex-direction: column;
    margin: 20px;
    gap: 15px;
  }

  .fontsquare p {
    font-size: 1.1rem;
  }

  .imglogoparaplycontainer {
    justify-content: center;
    gap: 15px;
    margin: 15px 20px;
  }

  .imglogoparaply img {
    max-width: 120px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-container {
    padding: 20px;
  }

  .profiles {
    padding: 10px 20px;
  }



  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline__middle {
    display: none;
  }

  .timeline__component {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  body {
    background: var(--color-bg-medium);
    padding: 0;
    font-size: 0.9rem;
  }

  .imglogoparaplycontainer {
    justify-content: center;
    gap: 10px;
    margin: 10px;
  }

  .imglogoparaply img {
    max-width: 90px;
  }



  .singlelogo {
    img {
      height: 1rem;
    }
  }

  .inversetext {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  .fontsquare p {
    font-size: 1rem;
    margin: 10px;
  }

  .fontsquare h1 {
    font-size: 1.2rem;
  }

  .squarehjem,
  .squarescanner,
  .squareyoutube {
    border-width: 0.5px;
  }

  .imgsquare img {
    border-width: 0.5px;
  }

  .footer-heading h2 {
    font-size: 1.4rem;
  }

  .footer-heading img {
    width: 0.8rem;
    height: 0.8rem;
  }

  .titletext {
    font-size: 1.8rem;
  }

  .links img {
    width: 18px;
    height: 18px;
  }
}

.menu-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

@media (max-width: 1140px) {
  .menu-toggle {
    display: flex;
  }

  /* both groups hidden by default */
  .nav-links,
  .nav-links2 {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 10rem;
    background: linear-gradient(to right,
        var(--color-bg-dark),
        var(--color-bg-medium));
    padding: 15px 20px;
    border: 1px solid white;
    border-top: none;
    z-index: 5;
  }

  /* dropdown positioning */
  .nav-links {
    position: absolute;
    top: 101%;
    /* directly below navbar */
    left: 0;
  }

  .nav-links2 {
    position: absolute;
    top: 15.2rem;
    /* stack below the first group */
    left: 0;
  }

  /* show when active */
  .nav-links.active,
  .nav-links2.active {
    display: flex;
  }

  .nav-links a,
  .nav-links2 a {
    width: 100%;
    text-align: left;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 11pt;
  }

  /* Hamburger animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(9px, 6px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -6px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .flag {
    right: -45px;
  }
}

@media (max-width: 480px) {
  .flag {
    right: -35px;
  }
}