*{
    padding: 0;
    margin: 0;
}
header{
    display: flex;
    justify-content: space-between;
    padding: 20px;
}
.img-d{
    display: none;
    /* visibility: hidden; */
}
.img-m{
    height: 350px;
    width: 100%;
}
.text{
    margin: 2rem 0 3rem 0;
}
.text h1{
    text-align: center;
    font-size: 3rem;
}
.text p{
    text-align: center;
    line-height: 1.9rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.btn{
    text-align: center;
    margin-bottom: 1.3rem;
}
.button{
    background-color: black;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
}
.ad{
    display: flex;
    justify-content: space-between;
    padding: 20px;

}
.ad img{
    width: 30%;
    margin-left: 1rem;
    height: 3vh;
}
.sub{
    padding: 20px;
    position: absolute;
    background-color: #fff;
    width: 50%;
    left:41.7%;
    height: 100vh;
    display: none;
}
nav ul{
    list-style: none;
    margin-top: 3rem;
}
nav ul li a{
    line-height: 3rem;
    text-decoration: none;
    color: black;
}
.close{
    /* display: none; */
    /* outline: 1px solid red; */
    float: right;
    
}
.login{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
    margin-top: 3rem;
}
.login button{
    /* width: 50%; */
    padding: 10px ;
    border: none;
    background-color: transparent;
}
.login button:hover{
    border: 1px solid black;
    border-radius: 10px;
}
#checkbox{
    display: none;
}
#checkbox:checked ~ .open{
    display: none;
}
#checkbox:checked ~ .close{
    display: block;
}
#checkbox:checked ~ .sub{
    display: block;
}



/* responsive */

/* tablet */

@media (min-width:768px) {
    .ad img{
        width: 60px;
    }
    section{
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-direction: row-reverse;
        align-items: center;
        width: 85%;
        margin: auto;
    }
    .text h1{
        text-align: left;
        line-height: 2.9rem;
        margin-top: 3rem;
    }
    span{
        display: block;
    }
    .text p{
        margin-top: 2rem;
        text-align: left;
        font-size: 0.9rem;
        width: 80%;
        line-height: 1rem;
    }
    .btn{
        text-align: left;
        margin-bottom: 1.3rem;
    }
    .ad{
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 20px 20px 20px 0;
    }
    .ad img{
        width: 15%;
        margin: 2.5rem 2.5rem 2.5rem 0;
    }
    .img-d{
        display: block;
        max-width: 400px;
        height: 80vh;
        /* visibility: hidden; */
    }
    .img-m{
        display: none;
        height: 350px;
        width: 100%;
    }
    .sub{
        padding: 20px;
        position: absolute;
        background-color: transparent;
        width: 50%;
        left:41.7%;
        height: 0vh;
        display: flex;
        align-items: center;
    }
   .open{
    display: none;
   }
    .close{
        display: none;
        /* outline: 1px solid red; */
        float: right;
        
    }
    nav ul{
        list-style: none;
        margin-top: -1rem;
        display: flex;
        position: relative;
        right: 80%;
        /* outline: 1px solid red; */
    }
    nav ul li a{
        line-height: 0rem;
        text-decoration: none;
        color: black;
        margin-left: 1rem;
        /* outline: 1px solid red; */
    }
    .login{
        display: flex;
        flex-direction: row;
        width: 80%;
        margin: auto;
        margin-top: -1.7rem;
        position: relative;
        left: 4%;
    }
    .login button{
        /* width: 50%; */
        padding: 10px ;
        border: none;
        background-color: transparent;
    }
    .li{
        display: inline-flex;
        align-items: center;
    }
    .li img{
        height: 7px;
    }
    
}
@media (min-width:1024px) {
    nav ul{
        list-style: none;
        margin-top: -1rem;
        display: flex;
        position: fixed;
        margin-right: -20%;
        /* outline: 1px solid red; */
    }
    nav ul li a{
        line-height: 0rem;
        text-decoration: none;
        color: black;
        margin-left: 1rem;
        /* outline: 1px solid red; */
    }
    .login{
        display: flex;
        flex-direction: row;
        width: 80%;
        margin: auto;
        margin-top: -1.7rem;
        position: fixed;
        margin-left: 80%;
    }
}