header {
    position: relative;
    font-family: 'Abril Fatface', serif;
    letter-spacing: 0.25rem;
    min-height: min-content;
    height: 5.5rem;
    width: 100%;
    background-color: #fab732;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.desktop-nav {
    display: none;
}

.phone-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.kurv {
    padding: 0.25rem;
    margin: 0.5rem 0.5rem;
    height: 80%;
}

.phone-nav > .logo-img {
    position: relative;
    margin-left: auto;
    height: auto;
    width: auto;
    max-height: 100%;
    padding: 0.5rem;
}

/* navbar ikonet */
.burger {
    position: relative;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 1.5rem;
    gap: 0.5rem;
    transition-duration: 0.5s;
}

.bars {
    width: 100%;
    height: 0.5rem;
    background-color: #fff;
    border: 0.1rem solid #000;
    border-radius: 0.375rem;
}

#bar5 {
    transition-duration: .8s;
}

#bar4,#bar6 {
    width: 80%;
}

#checkbox2 {
    display: none;
}
  
#checkbox2:checked + .burger .bars {
    position: absolute;
    transition-duration: .5s;
}
  
    #checkbox2:checked + .burger #bar5 {
        transform: scaleX(0);
        transition-duration: .5s;
    }
    
    #checkbox2:checked + .burger #bar4 {
        width: 100%;
        transform: rotate(45deg);
        transition-duration: .5s;
    }
    
    #checkbox2:checked + .burger #bar6 {
        width: 100%;
        transform: rotate(-45deg);
        transition-duration: .5s;
    }
    
    #checkbox2:checked + .burger {
        transition-duration: .5s;
        transform: rotate(180deg);
    }

.dropdown {
  display: none;
}

#checkbox2:checked ~ .dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50vh;
    background-color: #fab832;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
  
    & > ul {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        width: min-content;
    }

    & > ul > li {
        margin: 1rem 0;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        width: min-content;
    }

    & > ul > li > label {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        align-items: center;
    }
    
    & > ul > li > label > input:checked > label {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        align-items: center;
    }
    
    & > ul > li > label > input {
        display: none;
        grid-area: 1 / 1 / 2 / 2;
    }

    & > ul > li > label > img {
        height: 3rem;
        width: auto;
        margin-right: 0.25rem;
        grid-area: 1 / 1 / 2 / 2;
    }

    & > ul > li > label > h2 {
        grid-area: 1 / 2 / 2 / 3;
        justify-self: start;
    }

    /* Skifter ikonet fra en stående øl til en liggende øl  */
    & > ul > li > label > .beer-open, 
    & > ul > li > label > input:checked ~ .beer-closed {
        display: none;
    }

    & > ul > li > label > .beer-closed, 
    & > ul > li > label > input:checked ~ .beer-open {
        display: block;
    }

    & > ul > li > label > a{
        text-decoration: none;
        color: #012249;
    }
}

.subsections {
    display: none;
    grid-area: 2 / 2 / 3 / 3;
    justify-self: start;
}

/* styrer menuerne og synligheden af deres undermenuer */
#ol-drop:checked ~ .subsections, 
#brygning-drop:checked ~ .subsections, 
#season-drop:checked ~ .subsections, 
#event-drop:checked ~ .subsections {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fab832;
    width: max-content;
    height: 100%;
    font-family: poppins;
    font-weight: bold;

    & > ul {
        list-style-type: none;
    }

    & > ul > li {
        margin: 0 0 0.5rem 0;
    }

    & > ul > li > a{
        text-decoration: none;
        color: #012249;
        margin-left: 1rem;
        letter-spacing: normal;
    }
}

@media only screen and (min-width: 1000px) {
    .phone-nav {
        display: none;
    }

    .kurv {
        position: relative;
        height: auto;
        margin: 0.25rem 0;
        padding: 0.75rem;
        width: auto;
        
        &:hover {
            background-color: #3753be;
            border-radius: 40%;
        }
    }

    .logo-img {
        position: relative;
        height: auto;
        width: auto;
        max-height: 6rem;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
        margin: 0 1rem;
    }

    /* Koden der styler hover funktionen ved submenuerne på en stor skærms navbar */
    .desktop-nav {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-content: center;

        & > ul {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            width: 100%;
            height: 100%;
            align-items: center;
            list-style-type: none;
            padding: 1rem 0;
        }

        & > ul > li {
            position: relative;
            display: flex;
            flex-direction: row;
            font-size: 1.5rem;
            justify-content: center;
            align-items: center;
            height: 100%;
            width: 100%;
            padding: 0 0;
        }

        & > ul > li > a {
            text-decoration: none;
            color: #012249;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        & > ul > li > a > h4 {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        & > ul > li:hover {
            background-color: #3753BE;
            border-radius: 2.5rem 2.5rem 0 0;
            color: #fab832;
            display: block;
            box-shadow: #7d5c19 0px -3px 10px;
            
            & > a {
                color: #fab832;
            }
        }
        
        & > ul > li > .subnav {
            display: none;
            align-self: center;
            position: absolute;
            font-family: poppins;
            letter-spacing: normal;
            background-color: #3752be;
            color: #fab832;
            width: 100%;
            min-width: max-content;
            border-radius: 0 0 2.5rem 2.5rem;
            box-shadow: rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
            
            & > a {
                width: 100%;   
                text-decoration: none;           
                color: #fab832; 
            }

            & > a > h5 {
                display: flex; 
                padding: 1rem;
                justify-content: center;
            }

            & > a > h5:hover {
                background-color: #fab832;
                color: #012249;
                
            }
            
            & > a:last-of-type h5:hover {
                border-radius: 0 0 2.5rem 2.5rem;
            }
        }
        
        & > ul > li:hover > .subnav {
            display: flex;
            flex-direction: column;
        }
    }
}

@media only screen and (min-width: 1440px) {
    .logo-img {
        margin: 0 0 0 1.5rem;
    }

    .desktop-nav > ul {
        width: 80%;
    }
 
}
