.pagewrapper {
    width: 100vw;
    min-height: 100vh;
    background-color: blue;
    overflow: hidden;
}

.menu {
    background-color: #333;
    position: relative;
    height: 3rem;
}
#menu-state1 {
    display: none;
}
.menu-items1 {
    display: flex;
    flex-direction: column;
    width: 250px;
    background-color: #444;
    position: absolute;
    right: 0;
    top: 3rem;
    transform: translateX(100%);
    transition: transform .3s;
}
.menu #menu-state1:checked ~ .menu-items1 {
    transform: translate(0);
}
.menu a {
    display: block;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
}
.menu-button1 {
    position: absolute;
    right: 0;
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background: url(../img/hamburger-menu-svgrepo-com.svg) center / cover no-repeat;
    /* background-color: red; */
    cursor: pointer;
}

#menu-state2 {
    display: none;
}
.menu-items2 {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    background-color: #444;
    position: absolute;
    right: 0;
    top: 3rem;
    transform: translateY(100%);
    transition: transform .3s;
}
.menu #menu-state2:checked ~ .menu-items2 {
    transform: translate(0);
}
.menu-button2 {
    position: absolute;
    right: 3rem;
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background: url(../img/hamburger-menu-svgrepo-com.svg) center / cover no-repeat;
    cursor: pointer;
}

@media (min-width: 768px) {
    .pagewrapper {
        background-color: green;
    }
    .menu-button1,
    .menu-button2,
    .menu-items2 {
        display: none;
    }
    .menu {
        display: flex;
        justify-content: center;
    }
    .menu-items1 {
        transform: translate(0);
        flex-direction: row;
        position: initial;
    }
}