﻿* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Arial, Helvetica, sans-serif;
    background-color: #E0E0E0;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

input[type=text], input:not([type]) {
    padding: 0 10px;
    text-overflow: ellipsis;
}

button {
    border: 1px solid #999;
    color: #555;
    background-color: #F4F4FA;
    padding: 0 10px;
}

button:hover {
    background-color: white;
}

/* Quickstart.jsx CSS */
.wrapper {
    max-width: 800px;
    margin: auto;
    padding: 30px 10px 10px 10px;
}

.wrapper article {
    background-color: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.75);
    border-radius: 10px;
}

header {
    background-color: #71BCFA;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

header h1 {
    text-transform: uppercase;
    font-weight: normal;
    color: white;
    font-size: 20px;
    margin: 4px;
}

header h2 {
    text-transform: uppercase;
    font-weight: normal;
    color: #545353;
    font-size: 14px;
    margin: 4px;
}

.qs-toolbar {
    display: flex;
    width: 100%;
    height: 26px;
}

.qs-toolbar > .qs-toolbar-additem {
    order: 1;
    flex-grow: 1;
}

.qs-toolbar > .qs-toolbar-refresh {
    order: 2;
    height: 26px;
    margin: 8px 0 5px 0;
    font-size: 1em;
}

.qs-toolbar > .qs-toolbar-refresh.disabled > button {
    background-color: red;
}

.qs-toolbar > .qs-toolbar-refresh > button {
    margin-left: 10px;
    padding: 0 10px;
    height: 100%;
    border-radius: 4px;
}

ul.todoItems {
    padding: 8px;
    margin: 0;
}

ul.todoItems > li {
    list-style-type: none;
    height: 36px;
    padding: 0;
    border-bottom: 1px solid #dadada;
}

.error {
    width: 100%;
    color: white;
    background-color: red;
    margin: 4px;
    padding: 8px;
}

/* TodoItem.jsx CSS */
.todoItem {
    display: flex;
    flex-flow: row nowrap;
}

.todoItem > .todoItem-id {
    position: absolute;
    margin-left: 26px;
    font-size: 8px;
    color: #C0C0C0;
}

.todoItem > .todoItem-text {
    flex-grow: 1;
    order: 2;
    overflow: hidden;
    padding: 5px 2px;
}

.todoItem > .todoItem-text > input[type=text] {
    width: 100%;
    height: 26px;
    line-height: 24px;
    border: 1px solid transparent;
    background-color: transparent;
}

.todoItem > .todoItem-text > input[type=text]:focus,
.todoItem > .todoItem-text > input[type=text]:hover {
    border-color: #a0a0a0;
    background-color: #f0f0c0;
}

.todoItem > .todoItem-complete {
    order: 1;
}

.todoItem > .todoItem-complete > input[type=checkbox] {
    margin: 0;
    height: 100%;
}

.todoItem > .todoItem-delete {
    order: 2;
}

.todoItem > .todoItem-delete > button {
    margin: 5px;
    height: 26px;
}

/* AddTodoItem.jsx CSS */

div.addTodoItem {
    display: flex;
    flex-flow: row nowrap;
    height: 26px;
    margin: 8px 0 5px 0;
    font-size: 1em;
}

div.addTodoItem >  .addTodoItem-text {
    order: 0;
    flex-grow: 1;
    overflow: hidden;
}

div.addTodoItem >  .addTodoItem-text > input[type=text] {
    width: 100%;
    height: 26px;
    border: 1px solid #999;
    font-size: 1em;
    border-radius: 4px;
}

div.addTodoItem >  .addTodoItem-add {
    order: 1;
}

div.addTodoItem >  .addTodoItem-add > button {
    margin-left: 10px;
    padding: 0 10px;
    height: 100%;
    border-radius: 4px;
}
