@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&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;
    list-style: none;
    border: none;
}

html {
    font-size: 62.5%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #F5F7F8;
    overflow: hidden;
}

main {
    max-width: 480px;
    min-height: 100vh;
    padding: 0 2%;
    display: flex;
    flex-direction: column;
}

ul {
    padding-right: 12px;
    overflow-y: auto;
    height: 55vh;

    &::-webkit-scrollbar {
        width: 3px;      
    }

    &::-webkit-scrollbar-track {
        background: #F5F7F8;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 1px;
        border: 1px solid #A6AEBF;
    }
}

ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px dashed #A6AEBF;
    transition: all .3s ease;
    position: relative;
}

ul li:hover {
    border-color: #323643;
    transform: translateX(4px);
}

form {
    padding-right: 12px;
}

input {
    width: 100%;
    border: 1px solid #A6AEBF;
    background-color: none;

    &:focus::placeholder {
        opacity: .2;
        transition: all .4s ease;
    }

    &:focus {
        border-color: #323643;
    }
}

input, button {
    padding: 8px 16px;
    outline: none;
    border-radius: 8px;
    font-size: 1.4rem;
    white-space:nowrap;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #FFF;
    cursor: pointer;
    transition: all .5s ease;

    & span{
        font-size: 1.2rem;
    }

    &:hover {
       transform: scale(1.03);
    }
    
    &.add-button {
    background-color: #50D890; }

    &.clear-button {
    background-color: #FF1E00; }

    &.sort-alpha-button,
    &.filter-completed-button {
    background-color: #323643; }

    &.remove-item-button {
    color: #A6AEBF;
    background: none;

        &:hover {
            background-color: #FF1E00;
            color: #FFF;
        }
    }

    &.completed-item-button {
        background-color: #50D890;
    }
}

.btnRepository {
        padding: 4px 32px 4px 16px;
        border-radius: 8px;
        position: fixed;
        right: -100px;
        bottom: 10px;
        background-color: #000;
        font-size: 12px;
        color: #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        transition: all .5s ease;
        cursor: pointer;

        &:hover {
            right: -20px;
        }
}
