body {
    line-height: 1.6;
    color: #333;
    background-color: #F4f4f4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Rubik";
  }
 
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top:0%;
    background-color:#D34F4F;
    color:#F4F4F4;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: none;
    padding: 0% 1%;  
  }

  a:hover {
    cursor: pointer;
  }

.footer {
    text-align: center;
    background: #D34F4F;
    color: #F4F4F4;
    padding: 5px;
    margin-top: 10px;
  }
 
.hamburgermeny {
    position: relative;
    justify-self: end;
    margin-right: 50px;
  }
 
.meny-ikon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 2;
    padding: 20px;
  }
 
.meny-ikon span {
    display: block;
    height: 4px;
    background-color: #f4f4f4;
    border-radius: 2px;
    transition: transform 0.3s ease;
  }
 
.meny-innhold {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
  }
 
.meny-innhold a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 5px;
  }
 
.meny-innhold a:hover {
    background-color: #D34F4F;
    color: #F4F4F4;
    border-radius: 5px;
  }
 
#meny-toggle:checked ~ .meny-innhold {
    display: block;
  }
 
#meny-toggle {
    display: none;
  }

h2{
  color: #D34F4F;
  text-align: center;
  font-size: 300%;
}

.footer {
  text-align: center;
  background: #D34F4F;
  color: #F4F4F4;
  padding: 5px;
  margin-top: 10px;
  width: 100%;
}
 
.footer_innhold {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 1%;
  padding-bottom: 0;
  align-items: start;
  justify-content: center;
}
 
.footer_lenker {
  display: grid;
  grid-template-rows: repeat(1fr,4);
  row-gap: 5px;
  justify-items: center;
}
 
a {
  color: #333;
}
 
a:hover {
  color:#f4f4f4;
}
 
#facebook {
  background: url("bilder/facebook_grå.png");
 
  width: 50px;
  height: 50px;
 
  background-size: cover;
  background-position: center;
}
 
#facebook:hover {
  background: url("bilder/facebook.png");
 
  width: 50px;
  height: 50px;
 
  background-size: cover;
  background-position: center;
}
 
#gmail {
  background: url("bilder/gmail_grå.png");
 
  width: 39px;
  height: 30px;
 
  background-size: cover;
  background-position: center;
}
 
#gmail:hover {
  background: url("bilder/gmail.png");
 
  width: 39px;
  height: 30px;
 
  background-size: cover;
  background-position: center;
}

.infogrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  padding: 2%;
  font-size: 100%;
}

@media (max-width: 992px) {
  .infogrid {
    grid-template-columns: 1fr;
  }
}

.infotxt{
  padding: 2%;
  border-radius: 5px;
}
.infobilde{
  text-align: center;
  padding: 2%;
  border-radius: 5px;
  place-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.infobilde img {
  width: 100%;
  height: auto;
}

.demensinfo{
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  text-align: center;
  padding: 2%;
}

.problemflex {
  display: flex;
  gap: 2%;
  width: 100%;
  margin-top: 0;
}
@media (max-width: 992px) {
  .problemflex {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 3%;
      row-gap: 5%;
      padding: 3%;
  }
}
.box {
  text-align: center;
  background-color: #D34F4F;
  color: white;
  border-radius: 5px;
  padding: 2%;
}
.tekst {
  place-self: center;
  width: 70%;
}