header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1;
}

#bar {
    width: 100%;
    display: grid;
    grid-template-columns: auto min-content;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
}

#bar div {
    display: flex;
}

#bar a img {
    height: 32px;
    vertical-align: middle;
}

#bar button {
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 3;
}

#bar button span {
    height: 5px;
    width: 100%;
    background-color: #282828;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    transition: width 0.2s, transform 0.2s, background-color 0.2s;
}

#bar button:hover span {
    background-color: #FF2400;
}

#bar button:focus-visible span {
    background-color: #FF2400;
}

#bar button span:nth-child(1) {
    transform: translateY(-9px);
}

#bar button span:nth-child(2) {
    transform: translateY(9px);
}


#bar button[data-clicked="true"] span {
    width: 28px;
}

#bar button[data-clicked="true"] span:nth-child(1) {
    transform: translateX(-2px) rotate(45deg);
}

#bar button[data-clicked="true"] span:nth-child(2) {
    transform: translateX(-2px) rotate(-45deg);
}

#nav-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0px;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    animation-name: fade-in;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    overflow: none;
    z-index: 2;
}

#nav-content {
    width: 400px;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    animation-name: nav-move-in;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    padding-top: 80px;
}

@media screen and (max-width: 1024px) {
    #nav-content {
        width: 100%
    }
}

nav {
    width: 100%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 24px;
}

nav ul li {
    margin: 24px 0;
    text-align: center;
}

nav ul li:nth-child(1) {
    margin-top: 0;
}

nav ul li:last-child {
    margin-bottom: 0;
}

nav ul li a {
    font-weight: 700;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #FF2400;
}

nav ul li a:focus-visible {
    color: #FF2400;
}