I'm trying to open a menu if my checkbox is checked. And when I check it, It doesn't make any change, my menu is still closed. I recently started in "programming web pages" (I don't even know if that's the correct term). I used the #Menu because my checkbox Id is Menu. It's inside an input element.
.List{
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 51, 51, 0.9);
    font-size: 25px;
    transition: all 0.5s;
    transform: translateX(-100%);
}
.List a{
    font-weight: bolder;
    display: block;
    color: white;
    height: 50px;
    text-decoration: none;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3)
}
.List a:hover{
    background: rgba(255, 255, 255, 0.3);
}
#Menu:checked ~ .List{
    transform: translateX(0%);
}
 
     
    