/* Theming */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

:root{
    --white: #ffffff;
    --dark_blue: #22223B;
    --grey: #666A83;
}

/* Reset */

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

body{
    background-color: var(--white);
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* GODTERI */

h1{
text-align: center;
padding: 0px;
font-size: 30px;
}

h2{
padding: 10px;
}


/* GODTERI */


a{
    text-decoration: none;
}

ul{
    list-style: none;
}

/* Header */

.header{
    background-color: var(--dark_blue);
    box-shadow: 1px 1px 5px 0px var(--grey);
    position: sticky;
    top: 0;
    width: 100%;
}

.footer{
    background-color: var(--dark_blue);
    box-shadow: 1px 1px 5px 0px var(--grey);
    bottom: 0;
    width: 100%;
    min-height: 112px;
}


/* Logo */

.logo{
    display: inline-block;
    color: var(--white);
    font-size: 45px;
    padding-left: 10px;
}

/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--dark_blue);
    overflow: hidden;
}

.menu a{
    display: block;
    padding: 25px;
    padding-top: 40px;
    color: var(--white);
    font-size: 18px;
}

.menu a:hover{
    background-color: var(--grey);
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */

.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}


.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    
}

.hamb-line::before,
.hamb-line::after{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before{
    top: 5px;
}

.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
}

/* Toggle menu icon */

.side-menu:checked ~ nav{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;

}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}


/* Responsiveness */

@media (min-width: 860px) {
    
.nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
}

.menu li{
        float: left;
}

.menu a:hover{
        background-color: transparent;
        color: var(--grey);
}
  
.hamb{
        display: none;
}
}
/* Søke ting */
.topnav {
    position: static;
    text-align: center;
  }
  
  .topnav input[type=text] {
    padding: 6px;
    margin-top: 8px;
    font-size: 35px;
    background: #e4e4e4;
    border: none;
  }
  
  .topnav .search-container button {
    float: center;
    padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;
    background: #c0c0c0;
    font-size: 35px;
    border: 10px;
    cursor: pointer;
  }
  
  .topnav .search-container button:hover {
    background: #868686;
  }
  th {
    font-size: 25px;
    text-align: left;
      }

/* diverse */
  table {
    width: 50%;
  }
  table.center {
    margin-left: auto; 
    margin-right: auto;
  }
  .center1 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 80px;
    width: auto;
  }
  form {
    text-align: center;
  }
  #center2 {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    text-align: center;
  }
  #center2 img { 
    max-width: 100%;
    height: auto;
  }
  * {box-sizing: border-box;}
  table {
      width:100%;
  }