@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&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif
}
/*header section for logo*/
header{
    position: sticky;
    top: 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    height: 10vh;
}
/*image of logo*/
img{
    width: 130px;
    margin-left: 30px;
}
/*Toggle button*/
nav{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 15px 0;
}
#slide{
    display: none;
}
/*For Slider*/
.slider {
    height: 42px;
    width: 50%;
    border-radius: 50px;
    background-image: linear-gradient(to right,
            rgba(35, 53, 255, 0.896),
            rgb(0, 10, 196));
    opacity: 1;
    box-shadow: 0 0 10px rgb(0, 0, 0);
    position: absolute;
    left: 0px;
    transition: all 0.2s ease-in-out;
}
#slide:checked~.btn-box .slider{
    left: 50%;
}
.btn-box{
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 40%;
    height: 45px;
    border: 2px solid rgb(0, 7, 106);
    background-color: rgba(0, 0, 0, 0.751);
    border-radius: 21px;
}
.btn-box button{
    position: inherit;
    border: none;
    background-color: transparent;
    font-size: 20px;
    cursor: pointer;
    width: 50%;
    height: 100%;
    opacity: 2;
    color: rgb(243, 243, 243);
}
label{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}
/*Main section belong the navbar*/
main{
    height: 75vh;
    display: flex;
    justify-content: center;  
}
/*Container for To-do and Notes section*/
.card{
    width: 40%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.518);
    box-shadow: 0 7px 10px rgb(75, 75, 75);
    border-radius: 15px;
    overflow: hidden;
    transition: 2s linear;
   
}
/*Input bar including button*/
.form{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.form-box{
    display: flex;
    border-radius: 15px;
    width: 90%;
    box-shadow: 0 0 8px;
}
.form-box input{
    font-weight: 500;
    padding: 8px;
    outline: none;
    margin: none;
    width: 82%;
    height: 40px;
    border-radius: 15px 0 0 15px;
    border: 2px solid blue;
    font-size: 15px;
    letter-spacing: 0.7px;
}
.form-box button{
    font-size: 18px;
    font-weight: 600;
    color: white;
    border:none;
    outline: none;
    margin: none;
    width: 18%;
    height: 40px;
    border-radius: 0 15px 15px 0;
    background-color: blue;
    cursor: pointer;
}
/*Design for to-do list*/
.todo-list{
    position:relative;
    padding: 10px;
    height: 85%;
    width: 100%;
    border: none;
    text-align: center;
    overflow: auto;
    transition: 0.2s linear;
}
.item{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0px;
}
#add-todo{
    transition: 0.3s linear;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    width: 60%;
    height: 35px;
    padding: 10px;
    margin: 10px;
    border: 2px solid rgb(72, 72, 72);
}
#add-todo:focus{
    outline: none;
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 0 10px rgb(50, 132, 255);
}
/*Design for Icon*/
i{
    padding: 5px;
    margin: 7px;
    font-size: 1.3rem;
    transition: 0.2s linear ;
    cursor: pointer;
}
.fa-trash:hover{
    color: red;
}
.fa-rectangle-xmark:hover{
    color: rgb(162, 162, 0);
}
.fa-pen-to-square:hover{
    color: blue;
}
.fa-circle-check:hover{
    color: rgb(0, 215, 0);
}

/*design for notes list*/
.notes-list{
    position:relative;
    top: -85%;
    right: -100%;
    width: 100%;
    height: 100%;
    padding: 10px;
    border: none;
    text-align: center;
    overflow: auto;   
    transition: 0.2s linear;
}
#add-note{
    transition: 0.3s linear;
    resize: none;
    font-size: 15px;
    font-weight: 500;
    text-wrap: wrap;
    border-radius: 8px;
    width: 60%;
    height: 100px;
    padding: 10px;
    margin: 10px;
    border: 2px solid  rgb(72, 72, 72);
}
#add-note:focus{
    outline: none;
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 0 8px rgb(50, 132, 255);
}

.notes-section{
    margin: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.notes-container{
    z-index: 1;
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 5px;
    overflow-y: scroll;
}
.notes-container::-webkit-scrollbar{
    display: none;
}
.note-box{
    margin: 17px;
    padding: 6px;
    width: 150px;
    height: 140px;
    border: 2px solid rgb(0, 196, 250);
    border-radius: 15px;
    background-color: rgb(218, 218, 218);
    font-size: 16px;
    overflow-y: hidden;
    transition: all 0.3s linear;
    cursor: pointer;
}
.main-block{
    height: 100%;
    width: 100%;
}
.note-box h4{
    margin: 3px;
    padding: 0%;
    letter-spacing: 1px;
    color: blue;
}
.note-box p{
    margin: 3px;
    padding: 2px;
}
.add-note{
    margin: 17px;
    padding: 6px;
    width: 150px;
    height: 140px;
    border: 2px solid rgb(0, 242, 255);
    border-radius: 15px;
    font-weight: 700;
    background-color: rgb(0, 157, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.add-note i{
    font-size: 30px;
}
.note-slide{
    display: none;
}
.visi-slide{
    padding: 15px;
    position:fixed;
    top: 21%;
    left: 12%;
    width: 75%;
    height: 75%;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(0, 119, 255);
    border-radius: 5px;
    box-shadow: 0 0 8px rgb(0, 204, 255);
    opacity: 1;
    z-index: 10;
    transition: all 0.7s linear;
}
.slide-title{
    display: flex;
    justify-content: space-between;
}
#note-title{
    appearance: none;
    width: 80%;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 22px;
    font-weight: 550;
    margin: 0%;
}
#note{
    resize: none;
    width: 100%;
    height: 65vh;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 18px;
    overflow-y: scroll;
}
/*Designing for diffrent devices*/
@media(max-width:900px) {
    .btn-box{
        width: 50%;
    }
    .card{
        width: 70%;
        height: 80%;
        border-radius: 15px;
    }
}
@media(max-width:1200px) {
    .notes-container{
        z-index: 1;
        padding: 6px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        height: 100%;
        width: 100%;
        border: none;
        border-radius: 5px;
        overflow-y: scroll;
    }
    .note-box{
        margin: 12px;
        padding: 6px;
        width: 150px;
        height: 140px;
        font-size: 15px;
    }
    .note-box h4{
        margin: 2px;
        padding: 0%;
        letter-spacing: 1px;
        color: blue;
    }
    .note-box p{
        margin: 3px;
        padding: 2px;
    }
    .add-note{
        margin: 12px;
        padding: 6px;
        width: 150px;
        height: 140px;
    }
    .visi-slide{
        padding: 15px;
        top: 18%;
        left: 8%;
        width: 85%;
        height: 75%;
    }
    #note-title{
        width: 75%;
        font-size: 24px;
        font-weight: 550;
        margin: 0%;
    }
    #note{
        width: 100%;
        height: 65vh;
        font-size: 18px;
    }
}
@media(max-width:450px) {
    .btn-box{
        width: 70%;
    }
    .card{
        width: 90%;
        height: 80%;
        border-radius: 15px;
    }
    i{
        padding: 2px;
        margin: 3px;
        font-size: 1.3rem;
        transition: 0.2s linear ;
    }
    .fa-trash{
        color: red;
    }
    .fa-rectangle-xmark{
        color: rgb(162, 162, 0);
    }
    .fa-pen-to-square{
        color: blue;
    }
    .fa-circle-check{
        color: rgb(0, 215, 0);
    }
}

@media(max-width:450px) {
    .notes-container{
        z-index: 1;
        padding: 0px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        height: 100%;
        width: 100%;
        border: none;
        border-radius: 5px;
        overflow-y: scroll;
    }
    .note-box{
        margin: 8px;
        padding: 4px;
        width: 120px;
        height: 110px;
        font-size: 11px;
    }
    .note-box h4{
        margin: 1px;
        padding: 0%;
        letter-spacing: 1px;
        color: blue;
    }
    .note-box p{
        margin: 2px;
        padding: 1px;
    }
    .add-note{
        margin: 8px;
        padding: 4px;
        width: 120px;
        height: 110px;
    }
    .visi-slide{
        padding: 10px;
        top: 18%;
        left: 5%;
        width: 90%;
        height: 80%;
    }
    #note-title{
        width: 70%;
        font-size: 20px;
        font-weight: 550;
        margin: 0%;
    }
    #note{
        width: 100%;
        height: 75vh;
        font-size: 15px;
    }
}
