* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
     --bg-color: #000430;
     --secondary-bg-color: #112e42;
     --main-color: #00abf0;
     --sub-main-color: rgb(192, 64, 85);
     --purple-color: #828dff;
     --teal-color: #24feee;
     --ordinary-color: #ffff;
     --normal-color: black;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-color);
    color: var(--main-color);
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}


/* CONTAINER LAYOUT */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 120px auto 0 auto;
    background: transparent;
}

.stats-container {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--teal-color);
    display: flex;
    justify-content: space-between; 
    gap: 20px;
    width: 100%;
}

.details {
    width: 100%;
}

#progressBar {
    width: 100%;
    height: 10%;
    background: var(--secondary-bg-color);
    margin-top: 20px;
    border-radius: 5px;
}

#progress {
    /* width: 50%; */
    height: 10px;
    border-radius: 5px;
    background: var(--teal-color); 
    transition: all 0.3s ease;
}

#numbers {
    width: 100px;
    height: 100px;
    background: var(--purple-color); 
    display: flex; 
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    color: var(--ordinary-color);
}


/* FORM LAYOUT */
form {
    margin-top: 60px;
    width: 100%;
    display: flex;
}

input {
    padding: 16px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--teal-color);
    border-radius: 10px;
    flex: 1;
    outline: none;
    color: var(--main-color); 
    font-size: 17px;
}

input::placeholder {
    color: var(--main-color);
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    margin-left: 10px;
    align-items: center;
    justify-content: center;
    background: var(--teal-color);
    color: var(--normal-color);
    font-size: 30px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
}

button:hover {
    box-shadow: 0 0 25px var(--teal-color),
                0 0 50px var(--main-color);
}


/* LISTING LAYOUT */
#task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    list-style: none;
}

.taskItem {
    width: 100%;
    display: flex;
    background: var(--secondary-bg-color);
    padding: 10px;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.task {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task input {
    width: 20px;
    height: 20px;
}

.completed p {
    text-decoration: line-through;
    color: var(--teal-color);
}


.icons {
    /* display: block; */
    font-size: 25px;
    cursor: pointer;

}

.icons i {
    color: var(--main-color);
    transition: 0.5s;
}

.icons i:hover {
    color: var(--sub-main-color);
    transform: scale(1.2);
}

.icon i, span {
    margin: 0 10px;
}

/* FOOTER LAYOUT */
.footer{
    position: absolute;
    top: 500%;
    width: 100%;
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: var(--secondary-bg-color);
    padding: 2rem 9%;
    text-align: center;
    gap: 1rem;
}

.footer-text p{
    font-size: 16px;
    color: var(--main-color);
}

.footer span {
    color: var(--main-color);
    font-size: 16px;
    margin: 0 0;
    cursor: pointer;
}

.footer span:hover {
    color: var(--sub-main-color);
}



/* BREAKPOINT LAYOUT */
/* Tablet & below */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 0 15px;
        margin-top: 80px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #numbers {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }

    #progressBar {
        height: 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    form {
        flex-direction: column;
        gap: 15px;
    }

    button {
        width: 100%;
        height: 50px;
        border-radius: 10px;
        margin-left: 0;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .taskItem {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .icons {
        align-self: flex-end;
    }
}
