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

:root {
    --blackish: #1e1e1e;
    --whiteish: #f5f5f5;
    --placeholder: #b3b3b3;
}

@font-face {
    src: url("src/fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
    font-family: "Open Sans";
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 222px 0 0;
    font-size: 12pt;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    color: var(--blackish);
    background-color: var(--blackish);
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.logo {
    width: 75px;
    pointer-events: none;
    user-select: none;
}

.logo-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

h1 {
    font-size: 3rem;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: bold;
    color: var(--blackish);
    user-select: none;
}

#letter {
    color: var(--placeholder);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 500px;
    height: max-content;
    margin: 0 0 200px 0;
    padding: 30px;
    text-align: center;
    background-color: var(--whiteish);
    border-radius: 10px;
    box-shadow: 0px 8px 20px rgba(255, 255, 255, 0.245);
}

hr {
    width: 25%;
    height: 3px;
    background-color: var(--placeholder);
    border: none;
    border-radius: 2px;
}

.adding-task {
    width: 100%;
}

.tasks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-height: 300px;
}

.task-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.task {
    height: fit-content;
    text-align: left;
    word-break: break-word;
    cursor: pointer;
}

.task:active {
    transform: scale(.95);
}

.task-input {
    outline: none;
    display: flex;
    flex-grow: 1;
    align-items: center;
    gap: 10px;
    width: min-content;
    height: auto;
    padding: 10px;
    font-size: 1rem;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    background-color: #fff;
    border-radius: 10px;
    transition: .3s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0px 9px 12px 0px rgba(0, 0, 0, 0.187);
}

.task-input:focus {
    transform: scale(1.05);
    box-shadow: 0px 14px 20px 0px rgba(0, 0, 0, 0.118);
}


.action_button {
    width: 50px;
    min-height: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--blackish);
    border-radius: 10px;
    transition: .2s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0px 9px 12px 0px rgba(0, 0, 0, 0.187);
    cursor: pointer;
}

.action_button:hover {
    color: var(--blackish);
    transform: scale(1.05);
}

.action_button:active {
    transform: scale(.95);
}

.task-close:hover {
    background-color: #ffadad;
}

.task-add:hover {
    background-color: #c7ffcd;
}

.empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
    font: inherit;
    font-weight: 700;
    color: var(--placeholder);
    user-select: none;
}

.svg {
    width: 100px;
    color: var(--placeholder);
    user-select: none;
    pointer-events: none;
}

@media (max-width: 991px) {
    body {
        background-position: center !important;
        background-size: contain !important;
    }

    main {
        width: 70%;
        margin: 0 0 100px 0;
    }

    .task-input {
        font-size: .8rem;
    }
}

@media (max-width: 767px) {
    main {
        width: 90%;
    }

    .logo {
        width: 50px
    }

    .logo-box {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .task-input {
        font-size: .7rem;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px 0;
    }

    main {
        margin: 0;
        padding: 30px 15px;
    }

    .logo {
        width: 50px
    }

    .logo-box {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .task-input {
        min-width: 220px;
        height: auto;
    }

    .task-box {
        gap: 10px;
    }

    .action_button {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: .8rem;
    }

    .empty {
        font-size: .8rem;
    }

    .svg {
        width: 75px;
    }
}

@media (max-width: 340px) {
    .adding-task .task-box {
        flex-wrap: wrap;
    }

    .adding-task .task-box .action_button {
        width: 100%;
    }
}