* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

header a {
    text-decoration: none;
}

a[href="/illustrationer/"],
a[href="/om-mig/"] {
    display: none;
}

header {
    padding-top: 0.5rem;
    display: grid;
    grid-template-areas:
        "some h1 cross"
        "nav nav nav"
        "nav nav nav";
}

header label {
    grid-area: cross;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0.5rem;
    min-width: 30px;
}

header>a {
    grid-area: h1;
}

header a h1 {
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    color: rgb(178, 8, 32);
    padding: 0.5rem;
    text-align: center;
}

header aside {
    grid-area: some;
    display: flex;
    padding: 0.5rem;
    align-items: center;
    width: 100%;
}

header aside .some {
    height: 20px;
    width: 20px;
    background: rgb(240, 73, 95);
}

#instagram {
    mask-image: url("/images/icons/instagram.svg");
}

header nav {
    grid-area: nav;
    list-style-type: none;
    margin: 0;
    padding: 0;
    z-index: 100;
}

header nav a {
    color: rgb(159, 23, 41);
    border-left: None;
    border-right: None;
    border-top: solid rgb(159, 23, 41) 1px;
    border-bottom: solid rgb(159, 23, 41) 1px;
    font-family: sans-serif;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    margin: 0 1rem;
    display: flex;
    justify-content: center;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}

header nav a.selected {
    opacity: 0.8;
    text-decoration: underline;
    cursor: default;
}

#menu-toggle,
.menu-button {
    display: none;
}

@media (max-width: 550px) {

    .menu-button,
    .menu-button::before,
    .menu-button::after {
        display: block;
        background-color: rgb(178, 8, 32);
        position: absolute;
        height: 4px;
        width: 30px;
        padding: 0;
        transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 2px;
    }

    .menu-button::before {
        content: '';
        margin-top: -8px;
    }

    .menu-button::after {
        content: '';
        margin-top: 8px;
    }

    #menu-toggle:checked+.menu-button-container .menu-button::before {
        margin-top: 0px;
        transform: rotate(45deg);
    }

    #menu-toggle:checked+.menu-button-container .menu-button {
        background: rgba(255, 255, 255, 0);
    }

    #menu-toggle:checked+.menu-button-container .menu-button::after {
        margin-top: 0px;
        transform: rotate(-45deg);
    }

    #menu-toggle:checked~nav {
        border-top: solid rgb(159, 23, 41) 1px;
        border-bottom: solid rgb(159, 23, 41) 1px;
        margin-top: 1rem;

    }

    #menu-toggle:checked~nav a {
        border: 1px solid #991414;
        height: auto;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

}


@media (min-width: 550px) {

    header {
        grid-template-areas:
            "h1 h1"
            "nav some";
    }

    header label {
        grid-area: unset;
    }

    header>a {
        grid-area: h1;
        text-align: center;
        width: 100%;
        margin-top: 1rem;
    }

    header aside {
        grid-area: some;
        width: auto;
        display: flex;
        justify-content: left;
        box-sizing: border-box;
        padding: 0;
        align-items: end;
        margin-left: 2rem;
    }

    header nav {
        grid-area: nav;
        display: flex;
        justify-items: space-around;
        gap: 2rem;
        justify-content: right;
    }

    header nav a {
        height: auto;
        margin-top: 1rem;
        width: auto;
    }
}