@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

:root {
    --primary: #629460;
    --accent: green;
    --delete: red;
    --primary-text: #000000;

    background-color: var(--primary);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    max-width: 55rem;
    margin: 0.5em auto;
    border: 1px solid black;
    border-radius: 5px;
    padding: 0.75rem;
    background-color: white;
}

.header-title {
    background-color: #ffffff;
    padding: 1px;
    margin-top: 45px;
    margin-bottom: 0;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-text);
}

nav {
    background-color: #243119;
    padding: 10px;
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

nav a {
    color: lightgray;
    text-decoration: none;
    padding: 0 10px;
}

nav a:hover {
    color: white;
}

.tasklist {
    padding-left: 0;
    list-style-type: none;
}

.task {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.task-done {
    flex: 0 0 auto;
}

.task-description {
    flex: 1;
    padding: 0 10px;
}

.task-date {
    flex: 0 0 130px;
    text-align: center;
    white-space: nowrap;
}

.task-delete {
    flex: 0 0 auto;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5em;
}

.task-done-description {
    text-decoration: line-through;
    color: gray;
}

.create-task-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1em;
    font-weight: bold;
}

.material-icon {
    border: none;
    background: none;
    font-family: 'Material Icons';
    font-size: inherit;
    cursor: pointer;
}

.example {
    color: var(--primary-text);
}

/* Checkbox icon */

input.checkbox-icon {
    font-family: 'Material Icons';
    font-size: inherit;
    appearance: none;
    cursor: pointer;
}

input.checkbox-icon:before {
    content: 'check_box_outline_blank';
}

input.checkbox-icon:checked:before {
    content: 'check_box';
}

/* Toggle switches */

input.toggle-switch {
    vertical-align: middle;
    font-size: 1em;
    appearance: none;
    position: relative;
    cursor: pointer;
    margin: 0em 0.2em;
    width: 1.4em;
    height: 0.8em;
}

input.toggle-switch:after {
    vertical-align: middle;
    content: '';
    display: inline-block;
    position: absolute;
    width: 1.4em;
    height: 0.6em;
    background-color: #fa3a4d;
    border-radius: 0.3em;
}

input.toggle-switch:before {
    vertical-align: middle;
    content: '';
    display: inline-block;
    position: absolute;
    width: 0.7em;
    height: 0.7em;
    z-index: 1;
    left: 0;
    top: -0.1em;
    border: 1px solid rgb(128, 128, 128);
    border-radius: 0.6em;
    background-color: white;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition-duration: 0.3s;
}

input.toggle-switch:checked:before {
    left: 0.7em;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.6);
}

input.toggle-switch:checked:after {
    background-color: #ACECA1;
}