html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "content"
    "footer";
  font: 87.5%/1.5em "Helvetica Neue",Helvetica,Arial,sans-serif;
}

#header {
  grid-area: header;
  height: 50px;
  margin-bottom: 5em;
  padding: 1em 1em;
  background-color: #f3D100;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #bba200;
}

#content {
  grid-area: content;
  margin: 0 auto;
  padding: 1em 0.5em;
}

#footer {
  grid-area: footer;
  height: 50px;
  margin-top: 1em;
  padding: 1em 1em;
  border-top: 1px solid #bba200;
  background-color: #f3D100;
}

@media (min-width: 1200px) {
  #header {
    padding: 1em 3em;
  }

  #content {
    margin: 1em 4em;
    padding: 1em 4em;
  }

  #footer {
    padding: 1em 3em;
  }

  .link_box_width {
    width: 33%;
  }
}

.logo {
      width: 120px;
}

.sidrubrik {
  line-height: 1.2em;
}

.fritext {
      margin-top: 2em;
      padding: 0.5em 1em;
      background-color: rgb(252, 247, 208);
}

.link_box {
  margin-top: 1.5em;
  background: #f8f8f8;
  border: 1px solid #ff9900;
  padding: 8px;
}

.lang-toggle {
  background: none!important;
  border: none;
  padding: 0!important;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
}

.search-result-title {
  clear: left;
  float: left;
  margin-top: 2.5em;
}

.search-result {
  clear: left;
  margin-top: 0.5em;
}

tr.odd { background: #eee; border-bottom: 1px solid #aaa; }
tr.even { background: #fff; border-bottom: 1px solid #aaa; }

.amnes-lista-odd, .lista-odd { background: #fff; }
.amnes-lista-even, .lista-even { background: #f0f0f0; }

.highlight-row:hover { background: #fcfbac; }

.amnes-lista-odd:hover, .amnes-lista-even:hover, .lista-odd:hover, .lista-even:hover {
	background: #fcfbac;
}

.vcenter { vertical-align: middle; }
.tcenter { text-align: center; }
.tright { text-align: right; }
.tleft { text-align: left; }
.fright { float: right; }
.fleft { float: left; }
.cleft { clear: left; }
.cboth { clear: both; }
.cright { clear: right; }

legend, .legend_font {
  font-weight: bold;
  color: #333;
  font-size: 15px;
  font-family: 'Titillium Web', Arial, sans-serif;
}

button { padding: 0.3em 0.5em; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }
a[target="_blank"]:after {
      content: '';
      display: inline-block;
      background-size: 1em;
      width: 1.3em;
      height: 1em;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
}

th { background-color: #eee; }

#searchInput {
  font-size: larger;
  width: 70%;
  text-overflow: ellipsis;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 20em;
}

@media screen and (max-width: 600px) {
  table {
    border: 0;
    border-collapse: collapse;
  }

  /*
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  */

  table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-bottom: 3px solid #ddd;
    padding: 0.15em;
    margin-bottom: .625em;
  }

  table td {
    padding: 0.625em;
    border-bottom: 1px solid #ddd;
    font-size: .8em;
    text-align: center;
  }

  table td:not([data-label]) {
    font-weight: bold;
    text-align: left;
  }

  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
  }

  table td:last-child {
    border-bottom: 0px;
  }
  
  #searchInput {
    width: 90%;
  }
}
