body {
    background: url('background.svg') no-repeat fixed;
    background-size: cover;
    font-family: giulia-plain, sans-serif;
    font-style: normal;
    color: rgb(96, 154, 115) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top,
            rgba(255, 255, 255, 0.35),
            rgba(200, 230, 210, 0.25));
    pointer-events: none;
}

h1 {
    font-size: 4em;
    font-family: botanica-script, sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.01em;
    color: #57a07e !important;
}

h5 {
    font-size: 1.5em;
    font-weight: 200;
}

li {
    color: rgb(97, 153, 111) !important;
    font-size: 1.25em;
    font-weight: 180;
}

.container {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 2px solid rgba(244, 255, 238, 0.6);
    border-radius: 32px;
    padding: 26px;

    box-shadow:
        0 20px 50px rgba(30, 110, 50, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    width: 60%;
    margin: 30px auto;
    animation: fadeIn 0.6s ease-out;

}

.empty-state {
    animation: fadeInLowerOpacity 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLowerOpacity {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.scroll-container {
    margin-top: 2vh;
    margin-bottom: 2vh;
    height: 50vh;
    overflow: auto;
    /* Adds scrollbars only when content exceeds size */
    border: none;
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(143, 184, 168, 0.5);
    border-radius: 10px;
}

.form-control {
    font-size: 1.25em;
    font-weight: 150;
    color: #7aad92;
    background: rgba(224, 242, 225, 0.57);
    border: 3px solid #92c2a2;
    border-radius: 30px;
    padding: 10px;
}

.form-control:focus {
    background: rgb(227, 255, 221);
    border-color: #92c2a2;
    color: #7aad92;
    box-shadow: 0 0 8px rgba(82, 217, 114, 0.6);
}

.form-control::placeholder {
    color: #7aad92 !important;
    opacity: 1;
}

#taskList {
    flex: 1;
    overflow-y: auto;
    border-radius: 30px;
    padding: 0;
}

#taskList .list-group-item {
    border-radius: 30px !important;
    margin-bottom: 10px;

    border: 3px solid #93d29fc0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 6px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

/* hover lift */
#taskList .list-group-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* remove the default connected borders */
#taskList .list-group-item+.list-group-item {
    border-top: 3px solid #93d29fc0;
}

.list-group-item.completed {
    opacity: 0.65;
    background: rgba(117, 175, 130, 0.529);
}

.list-group-item.completed span {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #7aa897;
}

.list-group-item {
    transition: all 0.25s ease;
}

.list-group-item span {
    transition: all 0.25s ease;
    font-size: 1em;
}

.progress {
    height: 15px;
    border-radius: 999px;
    border: 2px solid #ffffffbc;
    background-color: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #92d6b1, #6daf83);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(149, 213, 178, 0.4);
}

button {
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97);
}

.btn {
    padding: 10px 18px;
    border: 3px solid;
    border-radius: 30px;
    font-size: 1.3em;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.addTaskBtn {
    padding: 10px;
    font-weight: 180;
    background-color: #97c5a0 !important;
    border-color: #7aa897;
}

.btn-primary {
    background-color: #8fb897;
    border-color: #7aa897;
    color: #fff;
}

.btn-primary:hover {
    background-color: #8fb897;
    border-color: #6f9a7f;
}

.btn-primary:active {
    background-color: #7aa88d !important;
    border-color: #6f9a7f !important;
}


.btn-danger {
    background-color: #e89aa6;
    border-color: #d98693;
    color: #fff;
}

.btn-danger:hover {
    background-color: #e89aa6;
    border-color: #c77482;
}

.btn-danger:active {
    background-color: #d98693 !important;
    border-color: #c77482 !important;
}

ul .btn-danger {
    border-radius: 50px;
    font-size: 0.9em;
}

.btn-success {
    border-radius: 50px;
    background-color: #a8d5b0;
    border-color: #93c6a7;
    color: #fff;
}

.btn-success:hover {
    background-color: #93c697;
    border-color: #82b790;
}

ul .btn-success {
    font-size: 0.9em;
}

.clearTaskBtn,
.undoBtn {
    margin-top: auto;
    font-weight: 180;
}

ul .btn-success,
ul .btn-danger {
    transition: all 0.2s ease;
}

ul .btn-success:active,
ul .btn-danger:active {
    transform: scale(0.92);
}

.empty-state {
    font-size: 1.25em;
    color: rgb(121, 134, 122) !important;
    opacity: 0.8;
    font-weight: 150;
    margin-top: 22%;
    transition: all 0.25s ease;
}

.list-group-item.removing {
    opacity: 0;
    transform: scale(0.80) translateY(-10px) !important;
    transition: all 0.25s ease;
}

/* responsive design */

@media (max-width: 1200px) {
    .container {
        width: 90%;
        height: auto;
        margin: 10px auto;
    }

    .scroll-container {
        height: 60vh;
    }

    .btn .form-control {
        font-size: 1.5em;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        height: auto;
        margin: 10px auto;
    }

    /* make all the font sizes smaller */
    h1 {
        font-size: 2.5em;
    }

    h5 {
        font-size: 1.25em;
    }

    li,
    .empty-state,
    .btn,
    .form-control {
        font-size: 1em;
    }

    .btn {
        padding: 8px 16px;
    }

    .form-control {
        padding: 8px;
    }

    .scroll-container {
        height: 50vh;
    }
}