.offcanvas {
    position: fixed;
    z-index: 1000;
    right: 40px;
    top: 50px;
    background-color: white;
    height: 90%;
    width:  530px;
    border-radius: 10px;
    box-shadow: 0 0 5px grey;
    transition: display 0.1s ease-in-out;
    display: none;
    animation: slideLeft 0.8s forwards;
    overflow-y: auto;
}
.offcanvas_header {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    border-bottom: 1px solid rgb(172, 170, 170);
}
.offcanvas_title {
    font-weight: bold;
    font-size: 18px;
}
.offcanvas_body {
    padding: 20px 10px;
    overflow-x: auto;
}
@media only screen and (max-width: 400px) {
    .offcanvas {
        width: 90%;
    }
}
@media only screen and (max-width: 330px) {
    .offcanvas {
        width: 90%;
    }
}
@media only screen and (max-width: 1000px) {
    .offcanvas {
        width: 90%;
        right:10px;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(200%);
    }
}
@keyframes slideLeft {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(0%);
    }
}
