:root {
    --interface: #3f88c5;
    --compl-color: #3fa34d;
    --trash-color: #ef233c;
    --input: #f2f5ff;
    --body-text: #000000;
    --todo-text: #000000;
    --background: #c0d6df;
    --select-hover: #00000025;
    --select-active: #00000040;
}

:root[theme='dark'] {
    --interface: #778da9;
    --compl-color: #3fa34d;
    --trash-color: #ef233c;
    --input: #0d1b2a;
    --body-text: #e0e1dd;
    --todo-text: #e0e1dd;
    --background: #1b263b;
    --select-hover: #ffffff10;
    --select-active: #ffffff40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--body-text);
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: right;
    padding: 30px;
    font-size: 1.5rem;
}

header {
    font-size: 1.5rem;
    min-height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

form {
    min-height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

form input,
form button {
    padding: 0.5rem;
    padding-left: 1rem;
    font-size: 1.8rem;
    border: none;
    background: var(--input);
    color: var(--body-text);
    border-radius: 2rem;
}

input:focus {
    height: 7vh;
}

form button {
    color: var(--interface);
    background: var(--input);
    cursor: pointer;
    transition: all 0.3 ease;
    margin-left: 0.5rem;
}

form button:hover {
    color: var(--input);
    background: var(--interface);
}

.fa-plus-circle {
    margin-top: 16px;
    margin-left: -8px;
}

.todo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.todo-list {
    min-width: 30%;
    list-style: none;
}

.todo {
    margin: 0.5rem;
    padding-left: 0.5rem;
    background: var(--input);
    color: var(--todo-text);
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    border-radius: 1rem;
}

.todo li {
    flex: 1;
}

.trash-btn,
.complete-btn {
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    background: var(--input);
}

.complete-btn {
    color: var(--compl-color);
    transition: color 0.3s ease;
}

.complete-btn:hover {
    background: var(--compl-color);
    color: var(--input);
}

.complete-btn:active,
.trash-btn:active,
form button:active {
    -webkit-box-shadow: 5px 5px 30px 0px rgba(0, 0, 0, 0.35) inset;
    -moz-box-shadow: 5px 5px 30px 0px rgba(0, 0, 0, 0.35) inset;
    box-shadow: 5px 5px 30px 0px rgba(0, 0, 0, 0.35) inset;
}

.trash-btn {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    background: var(--input);
    color: var(--trash-color);
}

.trash-btn:hover {
    background: var(--trash-color);
    color: var(--input);
}

.todo-item {
    padding: 0rem 0.5rem;
}

.fa-trash,
.fa-check-circle {
    pointer-events: none;
}

.completed {
    text-decoration: line-through;
    opacity: 0.5;
}

.slide {
    transform: translateX(10rem);
    opacity: 0;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    font-size: 1.2rem;
}

.select {
    margin: 1rem 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

select {
    color: var(--interface);
    background: var(--input);
    width: 11rem;
    height: 3.2rem;
    cursor: pointer;
    padding: 1rem;
}

.select::after {
    content: "\25BC";
    position: absolute;
    background: var(--interface);
    top: 0;
    right: 0;
    padding: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

select:hover {
    box-shadow: 5px 5px 30px 5px var(--select-hover) inset;
}

select:active {
    box-shadow: 5px 5px 30px 5px var(--select-active) inset;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 10px;
}

/* Hide default HTML checkbox */
.switch input {
    display: none;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1b263b;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #778da9;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #c0d6df;
}

input:focus+.slider {
    box-shadow: 0 0 1px #c0d6df;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Error message */

.error-message {
    display: flex;
    justify-content: center;
}

.pop-up {
    background-color: #778da970;
    color: var(--todo-text);
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 100;
}

.pop-up.show {
    opacity: 1;
}