header.menuVisable #headerMenuBtn {
    background-image: url('/media/icons/icon-menu-open.svg');
    background-size: 70% 70%;
}

header {
    background-color: var(--theme-color-menu);
    box-shadow: 0 0 15px grey;
    box-sizing: border-box;
    display: flex;
    position: sticky;
    top: 0;
    width: 100%;

    height: 60px;
    justify-content: space-between;
    max-width: 100%;
    padding: 5px;
    z-index: 20;
}

header .headerBranding {
    display: flex;
}

header a {
    color: inherit;
    text-decoration: none;
}

header h1,
header p {
    line-height: 1;
    margin: 0;
    padding: 0;
}

header p {
    min-width: 100px;
}

#headerLogo {
    height: 70px;
    margin: 0;
    padding: 0;
    width: auto;
    margin-top: -10px;
}

.headerTitle img {
    height: 50px;
    margin-left: 5px;
}

#headerMenu {
    display: block;
    height: calc(100% - 60px);
    margin: 0;
    max-width: min(365px, 100%);
    min-width: min(265px, 100%);
    overflow-x: hidden;
    padding: 0;
    position: fixed;
    right: 0;
    top: 60px;
    width: 20%;
    z-index: 1001;
}

#headerMenu nav {
    box-shadow: 0 0 15px grey;
    float: right;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s;
    width: calc(100% - 15px);
    z-index: 1001;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
    background: linear-gradient(#c3dffff0, #ffef8ff0);
}
@supports (backdrop-filter: blur(10px)) {
    #headerMenu nav {
        backdrop-filter: blur(10px);
        background: linear-gradient(#c3dfff70, #ffef8f70);
    }
    header {
        background-color: #c3dfff70;
        backdrop-filter: blur(10px);
    }
}
#headerMenu ul {
    margin: 0;
    padding: 0;
}

#headerMenu ul li {
    border-radius: 5px;
    box-sizing: border-box;
    height: 50px;
    list-style: none;
    padding: 0px;
    max-width: 100%;
}

#headerMenu ul li a,
#headerMenu ul li p {
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
    width: 100%;
}

#headerMenu ul li p {
    padding: 0;
    padding-left: 20px !important;
    font-size: 18px;
    font-weight: 600;
}

#headerMenu ul li:hover {
    box-shadow: 0 0 5px grey;
    background-color: #ffffff50;
}

#headerMenuBtn {
    align-self: center;
    background: url('/media/icons/icon-menu.svg') no-repeat center;
    background-color: transparent;
    background-size: 60% 70%;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
    height: 50px;
    margin: 0;
    padding: 0;
    width: 50px;
}

#headerMenuBtn:hover {
    transform: scale(1.2);
}

#headerMenu.hidden {
    display: none;
}

#headerMenu.visable {
    right: 0;
}

#headerMenu.visable nav {
    transform: translateX(0);
}

#headerMenu ul {
    padding-top: 5px;
}

#headerMenu ul li.space {
    margin-bottom: 30px;
}

#headerMenu ul li.line,
#headerMenu ul li.lineTop {
    position: relative;
}

#headerMenu ul li.line::after {
    position: absolute;
    top: 100%;
    left: 0;
    content: '';
    border-bottom: thin solid black;
    width: 100%;
    height: 1px;
    display: block;
}

#headerMenu ul li.lineTop::after {
    position: absolute;
    top: -1px;
    left: 0;
    content: '';
    border-top: thin solid black;
    width: 100%;
    height: 1px;
    display: block;
}

#headerMenu ul li {
    padding: 0;
}

#headerMenu ul li a {
    height: 100%;
    width: 100%;
}

#headerMenu ul li p {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-sizing: border-box;
}

@media screen and (min-width: 1000px) {
    main,
    footer {
        padding-right: 75px !important;
    }
    #headerMenu,
    #headerMenu.hidden {
        width: 70px;
        min-width: 70px;
        display: block;
        transition: width 0.5s;
    }

    #headerMenu .text {
        display: none;
    }

    #headerMenu .icon {
    }
    #headerMenu ul li p {
        transition: padding-left 0.5s;
    }
    #headerMenu ul li p {
        padding-left: 10px !important;
    }
    #headerMenu {
        transition: width 0.5s, min-width 0.5s;
    }
    #headerMenu nav {
        transform: translateX(0);
    }
    #headerMenu.visable nav {
    }
    #headerMenu.hidden:hover nav {
    }
    #headerMenu.hidden:hover,
    #headerMenu.visable {
        width: max(20%, 265px);
    }
    #headerMenu.hidden:hover ul li p,
    #headerMenu.visable ul li p {
        padding-left: 20px !important;
    }
    #headerMenu.hidden:hover .text,
    #headerMenu.visable .text {
        display: block;
    }
}
