/* hamburgerMenu.css */



/* Styling for a hidden checkbox used for a menu toggle */
#menu__toggle {
    opacity: 0;
}

/* Styles for animated menu toggle button and box */
#menu__toggle:checked + .menu__btn > span {
    transform: rotate(45deg);
}

#menu__toggle:checked + .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked + .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked ~ .menu__box {
    left: 0 !important;
}

/* Styles for the menu button */
.menu__btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 1;
}

/* Styles for the lines in the menu button */
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    transition-duration: .25s;
}

.menu__btn > span::before {
    content: '';
    top: -8px;
}

.menu__btn > span::after {
    content: '';
    top: 8px;
}

/* Styles for the menu box */
.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #31313136;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
    transition-duration: .25s;
}

/* Styles for individual items in the menu */
.menu__item {
    display: block;
    padding: 10px 24px;
    color: white;
    font-family: 'Ubuntu', 'Courier New', Courier, monospace;
    text-decoration: none;
    transition-duration: .25s;
}

.menu__item:hover {
    background-color: #31313136;
}
