@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #212122;
    color: white;
}

app {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

h1 {
    font-size: 28px;
}

input, button, .boxed {
    background: #212122;
    border: 2px solid #888;
    padding: 5px 10px;
    margin-bottom: 10px;
    color: #aaa;
}

a.boxed, .boxed a, a:hover.boxed, .boxed a:hover {
    color: #aaa;
    text-decoration: inherit;
}

.clickable {
    cursor: pointer;
}

.fill {
    width: 100%;
}

a:hover.clickable, .clickable a:hover {
    text-decoration: inherit;
}

.page-header, .list-header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 10px;
}

.actions {
    display: flex;
}

.main-item-link {
    flex: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}

.actions a, .actions button {
    margin-left: 5px;
    margin-bottom: 0;
}

.item-actions a, .item-actions button {
    margin-left: 10px;
    margin-right: 5px;
}

.lists-list li {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
}

.lists-list .actions {
    padding-top: 5px;
    padding-bottom: 5px;
}

.color-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

    .color-list li {
        border: 2px solid #212122;
        width: 40px;
        height: 40px
    }

    .color-list li.selected {
        border-color: #cecece;
    }

.category {
    color: white;
    padding: 10px;
    margin-bottom: 10px;
}

    .category button, .category a {
        background: inherit;
        color: inherit;
        font-size: 20px;
        border-color: white;
        border-width: 1px;
    }

    .category input {
        border-width: 1px;
        border-color: white;
        margin-right: 5px;
    }

    .category input:focus, .category button:focus {
        outline: none;
    }

    .category h2 {
        font-size: 14px;
    }

.category-bottom-actions {
    justify-content: flex-end;
    align-items: center;
}

.category-bottom-actions a {
    margin-left: 15px;
}

.category-item {
    font-size: 20px;
    margin-bottom: 3px;
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
}

.category-item-description {
    display: flex;
    flex: 1;
}

.disable-text-selection {
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

.category-item-description a {
    flex: 1;
}

.state-done .category-item-description {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: line-through;
}

.state-not-added .state-icon {
    visibility: hidden;
}

.state-icon {
    margin-right: 5px;
    font-size: 17px;
}

.non-edit-items-mode .state-not-added {
    display: none;
}

.non-edit-items-mode .state-icon {
    display: none;
}

.inline-confirm {
    margin-left: 20px;
    margin-right: 20px;
}

.inline-confirm i {
    margin-left: 5px;
}

.inline-menu .inline-confirm {
    display: inline-block;
}

.add-item-form {
    margin-top: 20px;
}

.edit-form {
    display: flex;
    flex-direction: column;
}

.add-item-form input {
    flex: 1;
}

.form-row {
    display: flex;
    flex-direction: row;
}

.list-management-menu {
    position: fixed;
    display: flex;
    bottom: 0;
    max-width: 500px;
    width: 100%;
    padding: 5px 20px;
    background: #212122;
    border-style: solid;
}

.list-management-actions {
    font-size: 40px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

#search-form {
    display: flex;
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-right: 17px;
    align-items: center;
}

#search-input {
    flex: 1;
    margin-bottom: 0;
    border: none;
}

#search-input:focus {
    outline: none;
}

#clear-search-button {
    position: relative;
    left: -15px;
}

.categories-list {
    margin-bottom: 50px;
}

.inactive-toggle-button {
    color: #555;
}

.pulse {
    opacity: 1;
    animation-name: opacity-pulse;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
}

@keyframes opacity-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100 {
        opacity: 1;
    }
}