@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color:rgb(238, 238, 238);
  

}

.slidebar{
    height: 100%;
    width: 180px;
    background-color: #252525;
    position: absolute;
    transition: 0.5s ease;
    transform: translateX(-180px);

}
h1{
    color: white;
    text-align: right;
    font-weight: 800;
    padding: 10px 0;
    padding-right:30px ;
    pointer-events: none;

}
ul li{
    list-style: none;
}
ul li a{
    color:  white;
    text-decoration: none;
    line-height: 50px;
    padding :5px 0;
    display: block;
    text-transform: capitalize;
    transition: 0.2s ease-out;
}
ul li:hover a{
color: #252525;
background-color: white;
border-radius: 50px 0 0 50px;
}

ul li a i {
    width:  30px;
    margin-left: 15px;
    text-align:center;
}
input{
    display: none;
    visibility: hidden;
    /* -webkit-appearance: none; */
}

.toggle{
    position: absolute;
    height: 30px;
    width: 30px;
    top: 20px;
    left: 20px;
    left: 15px;
    z-index: 1;
    cursor: pointer;
    border-radius: 2px;
    background-color:#252525 ;
}
.toggle .common{
    position: absolute;
    height:3px;
    width: 22px;
    background-color: white;
    border-radius: 50px;
    transition: 0.3s ease;
}
.toggle .top_line{
    top: 30%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.toggle .middle_line{
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
}
.toggle .bottom_line{
    top: 70%;
    left: 50%;
    transform: translate(-50%,-50%);

}

input:checked~.toggle .top_line{
    left: 2px;
    top: 14px;
    width: 25px;
    transform: rotate(45deg);
}
input:checked~.toggle .bottom_line{
    left: 2px;
    top: 14px;
    width: 25px;
    transform:rotate(-45deg);
}
input:checked~.toggle .middle_line{
    opacity: 0;
    transform: translateX(20px);
}

input:checked ~.slidebar{
transform: translateX(0);
box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

