*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

section{
    height: 100vh;
    width: 100%;
    transition: all 0.5s ease-in-out;
    transition-delay: 0;
}

.splsh-pg{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: grid;
    background-color: #000;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.text{
    animation: fade linear 1.2s;
}

.text h1{
    color: #fff;
    font-size: 4rem;
    font-weight: 800;
}

.splsh-pg.display-none{
    display: none;
    z-index: -10px;
}

@keyframes fade{
    0%{ opacity: 1;}
    50%{ opacity: 0.1;}
    100%{ opacity: 1;}
}

header{
    height: 80px;
    width: 100%;
    display: block;
    background: transparent;
    border-bottom: 1px solid #000;
    z-index: 0;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img{
    cursor: pointer;
}

.logo-img a{
    text-decoration: none;
}

.logo-img a span{
    font-size: 30px;
    font-weight: 300;
    padding: 10px;
}

.logo-img a #todo-txt{
    color: #885367;
    background-color: #f4ead0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin: 10px;
} 

.logo-img a #list-txt{
    background-color: #000;
    color: #fff;
}

nav ul{
    padding: 28px 0;
}

nav ul li{
    display: inline-block;
    margin: 0 15px;
}

nav ul li a{
    color: #000;
    padding: 5px 0;
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
}

.btn{
    position: fixed;
    right: 5px;
    bottom: 0;
    z-index: 99;
}

.btn button{
    width: 60px;
    height: 60px;
    border-radius: 0.2rem;
}

.btn button a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-content{
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.hm-left{
    flex: 1;
}

.hm-left h2,
.hm-left h3,
.hm-left h1{
    font-size: 8rem;
    text-align: center;
    color: #8d5964;
}

.hm-right{
    flex: 1;
}

.hm-right .box{
    width: 100%;
    height: 700px;
    background-color: orange;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    position: relative;
}

.hm-right .box .book-img{
    position: absolute;
    width: 1200px;
    margin-left: 150px;
    top: -250px;
    left: -550px;
    transform: rotate(-7deg);
    animation: gravitate 3s infinite;
}


@keyframes gravitate{
    0%{
        top: -60px;

    }

    50%{
        top: 0;
    }

    100%{
        top: -60px;
    }
}

/*-------------------- Content --------------------*/
.content-h1{
    text-align: center;
    font-size: 3.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: .5s ease-in-out;
    color: #8d5964;
}

.content-h1 h1:hover{
    color: #ffff1f;
}

.wrapper{
    float: left;
    padding: 30px;
    margin: 40px;
    width: 500px;
    background-color: orange;
    border-radius: 10px;
}

.list{
    float: right;
    padding: 30px;
    margin: 40px;
    width: 500px;
    background-color: orange;
    border-radius: 10px;
}

.wrapper .inputField{
    display: flex;
    height: 45px;
    width: 100%;
    margin: 20px 0;
}

.inputField input{
    width: 85%;
    height: 100%;
    font-size: 17px;
    border-radius: 1px solid #fff;
    padding-left: 15px;
}

.inputField button{
    width: 60px;
    height: 100%;
    border: none;
    outline: #fff;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 3px;
    opacity: 0.6;
    pointer-events: none;
}

.inputField button.active{
    opacity: 1;
    pointer-events: auto;
}

.wrapper .todoList{
    max-height: 350px;
    overflow-y: auto;
}

.todoList li{
    position: relative;
    list-style: none;
    height: 45px;
    line-height: 45px;
    background-color: #f2f2f2;
    margin-bottom: 8px;
    padding: 0 15px;
    cursor: default;
    overflow: hidden;
}

.todoList li span{
    position: absolute;
    right: -45px;
    color: whitesmoke;
    width: 45px;
    text-align: center;
    background-color: red;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.todoList li:hover span{
    right: 0px;
}

.footer{
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 25px;
    justify-content: space-between;
}

.footer span{
    color: #fff;
}

.footer button{
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    background: gray;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    padding: 6px 10px;
    opacity: 0.6;
    pointer-events: none;
}

.footer button.active{
    opacity: 1;
    pointer-events: auto;
}


@media (max-width: 1024px) {
    section {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    header {
        width: 100%;
    }

    .home-content {
        width: 100%;
    }

    .hm-left h1,
    .hm-left h2,
    .hm-left h3 {
        font-size: 2.8rem;
    }

    .hm-right .box {
        width: 100%;
        height: 500px;
    }

    .hm-right .box .book-img {
        width: 500px;
        height: 400px;
        margin-left: 390px;
    }

    #content {
        display: grid;
    }
}

@media (max-width: 768px){
    section{
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    header{
        width: 100%;
    }

    .home-content{
        width: 100%;
    }

    .hm-left h1,
    .hm-left h2,
    .hm-left h3{
        font-size: 2.8rem;
    }

    .hm-right .box{
        width: 100%;
        height: 500px;
    }

    .hm-right .box .book-img{
        width: 500px;
        height: 400px;
        margin-left: 390px;
    }

    #content{
        display: grid;
    }
}

@media(max-width: 425px){
    .btn{
        display: none;
    }
    header nav ul li{
        display: none;
    }

    header nav .logo-img a span{
        justify-content: center;
        align-items: center;
    }

    .hm-left h1,
    .hm-left h2,
    .hm-left h3{
        font-size: 1.9rem;
    }

    .hm-right .box .book-img{
        width: 300px;
        margin-left: 450px;
    }

    #content .content-h1{
        width: 100%;
        font-size: 1.4rem;
        justify-content: center;
        align-items: center;
    }

    #content .wrapper{
        margin-left: 20px;
        width: 390px;
    }

    #content .wrapper .inputField input{
        font-size: 12px;
    }

    #content .list{
        margin-left: 20px;
        width: 390px;
    }
}

@media(max-width: 425px) {
    header nav ul li {
        display: none;
    }

    header nav .logo-img a span {
        justify-content: center;
        align-items: center;
    }

    .hm-left h1,
    .hm-left h2,
    .hm-left h3 {
        font-size: 1.9rem;
    }

    .hm-right .box .book-img {
        width: 300px;
        margin-left: 450px;
    }

    #content .content-h1 {
        width: 100%;
        font-size: 1.4rem;
        justify-content: center;
        align-items: center;
    }

    #content .wrapper {
        margin-left: 10px;
        width: 350px;
    }

    #content .wrapper .inputField input {
        font-size: 12px;
    }

    #content .list {
        margin-left: 10px;
        width: 350px;
    }
}

@media(max-width: 320px) {
    header nav ul li {
        display: none;
    }

    header nav .logo-img a span {
        justify-content: center;
        align-items: center;
    }

    .hm-left h1,
    .hm-left h2,
    .hm-left h3 {
        font-size: 1.9rem;
    }

    .hm-right .box .book-img {
        width: 300px;
        margin-left: 450px;
    }

    #content .content-h1 {
        width: 100%;
        font-size: 1.4rem;
        justify-content: center;
        align-items: center;
    }

    #content .wrapper {
        margin-left: 10px;
        width: 290px;
    }

    #content .wrapper .inputField input {
        font-size: 12px;
    }

    #content .list {
        margin-left: 10px;
        width: 290px;
    }
}