/* Fælles header: tilbage-pil og animeret hamburgermenu.
   Ligger i egen fil og bruges af både index.html og poiPage.html,
   så ikonerne ser ens ud overalt i appen. */

div#header {
    width: 100%;
    height: 50px;
    z-index: 100;
    position: fixed;
    background-color: #6CBE9D;
}

div#header #back {
    position: fixed;
    top: 0;
    left: 0;
}

button#go_back {
    height: 50px;
    width: 50px;
    border: none;
    background: none;
    font-size: 30px;
    padding: 0;
}

button#go_back svg {
    height: 20px;
    width: 35px;
    display: block;
}

div#header #navigation {
    position: fixed;
    top: 0;
    right: 0;
}

div#header div#navigation input#toggle {
    display: none;
}

label#toggleicon {
    width: 50px;
    height: 50px;
    display: block;
}

label#toggleicon>span,
label#toggleicon>span::before,
label#toggleicon>span::after {
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #004036;
    transition-duration: .25s;
    position: fixed;
    top: 25px;
    right: 15px;
}

label#toggleicon>span::before {
    content: '';
    top: 18px;
}

label#toggleicon>span::after {
    content: '';
    top: 32px;
}

#toggle:checked~nav {
    right: 0;
    transition: 0.5s;
}

#toggle:checked~.menu__btn>span {
    right: -100px;
}

#toggle:checked+.menu__btn>span::before {
    transform: rotate(45deg);
    top: 25px;
}

#toggle:checked+.menu__btn>span::after {
    transform: rotate(315deg);
    top: 25px;
}

nav {
    width: 250px;
    height: 100%;
    position: fixed;
    top: 50px;
    right: -260px;
    background-color: #f1f1f1;
    z-index: 50;
    transition: 0.5s;
}

nav ul li {
    padding: 8px 8px 8px 0px;
    font-size: 1.3em;
    list-style-type: none;
}

nav ul li a {
    text-decoration: none;
    color: #004036;
    display: block;
}

nav ul li a:hover {
    color: #6CBE9D;
}

nav label:hover {
    cursor: pointer;
}
