html,
body {
  height: 100%;
  overflow: hidden;
}

#content {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Lucida Sans", sans-serif;
  margin: 0;
  /* min-height: 100vh; */
  overflow-y: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background: url("/gfx/target_original.png");
  background-size: 100%;
  background-attachment: fixed;
}

body::after {
  background: url("/gfx/target_original.png");
  background-size: 100%;
  content: "";
  opacity: 0.2;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
}

#lenke_hjem {
  z-index: 1001 !important;
}

article {
  width: 100%;
  font-size: 1.5em;
}

div.innhold {
  padding: 1.5em;
}

header {
  position: fixed;
  width: 100%;
  height: 5em;
}

#logo_hjem {
  margin-top: 0.5em;
  width: 10vw;
  text-align: left;
}

#signInContainer {
  min-width: 20vw;
  /* background-color: salmon; */
}

#googleSignInButton,
#innlogget {
  /* background-color: seagreen; */
  height: 2em;
  cursor: pointer;
  margin-right: 2.5em;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.smaller {
  font-size: 0.8em;
}

main {
  display: flex;
  height: 97vh;
  background: url("/gfx/target_original.png");
  background-size: 100%;
  background-attachment: local;
}

div#filter {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */


}

div#content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  height: 100%;
  width: 50vw;
  background-color: rgba(255, 255, 255, 0.85);
  /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */
  overflow-y: auto;
  /* Endret fra overflow-x: scroll til overflow-y: auto */
  overflow-x: hidden;
  /* Hindrer vannrett scrolling */
  padding: 2em;
  resize: both;
}

h1 {
  width: 100%;
}

div.pageelement {
  margin: 0em;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 1em;
  width: 100%;
}

.container {
  display: flex;
  justify-content: center;
  /* Sentrer boksene */
  gap: 20px;
}

.box {
  flex: 1;
  /* Alle boksene får lik andel */
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.box.middle {
  flex: 0 0 50%;
  /* Boksen i midten tar opp 50% av skjermvidden */
}

aside {
  background-color: rgba(255, 255, 255, 0.55);
  /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */
  margin-top: 20vh;

  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

div#content {
  /* width: 75vw; */
  max-width: 50em;
}

@media (max-width: 1700px) {
  div#content {
    width: 70vw;
    max-width: 45em;
  }
}

@media (max-width: 1400px) {
  div#content {
    max-width: 45em;
  }

}

@media (max-width: 1100px) {
  div#content {
    max-width: 42em;
  }

}

@media (max-width: 800px) {
  main>div#filter>div#content {
    width: 100vw;
    padding: 0.5em;
    margin: 0;
  }

  #publiseringsdato {
    display: none;
  }

  h1 {
    width: 95vw;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  .publiseringsdato {
    /* z-index: 1;
      opacity: .3;
      border-radius: 5px; */
    transform: rotate(0deg);
    /* transition: opacity .5s ease;
      top:1em;
      border-radius: 15px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    font-size: 14px;
    bottom: 0px
      /* Apply transition for both hover in and out */
  }

  #publiseringsdato:hover {
    opacity: 1;
  }

  article>h1 {
    /* background-color: rgba(255, 255, 255, 0.85); /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */
    /*margin-top: .5em;
      padding: 1.5em;
      padding-right: 5em;
      padding-top:1em;
      border-radius: 15px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    font-size: 24px;
    padding: 0.75em;
  }



}