html, body {
    font: 14px Roboto, sans-serif;
    background-color: #F4F5F9;
    color: #333;
    padding: 0;
    margin: 0;
}

input[type="button"] {
    padding: 6px 20px;
}

input[type="button"].icon {
    font-size: 18px;
}

select, input[type="text"], input[type="password"] {
    width: calc(100% - 20px);
    font-size: 18px;
    margin: 4px 0;
    padding: 6px;
}

h1 {
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
    font-weight: bold;
    font-size: 26px;
}

h1 .close {
    margin-left: 32px;
}

h3 {
    padding: 12px;
    margin: 0;
}

h4 {
    padding: 10px 0;
    font-size: 16px;
    margin: 0;
}

h5 {
    font-size: 14px;
    padding: 0;
    margin: 0;
}

img {
    margin: 0 auto 20px;
    display: block;
}

pre {
    margin-top: 6px;
}

#auth {
    box-shadow: 0px 0px 20px 0px rgba(34, 60, 80, 0.1);
    background-color: #fff;
    border-radius: 6px;
    margin: 20px auto;
    display: none;
    width: 360px;
}

#main, #goals, #family, #rules, #webhooks, #console {
    display: none;
}

#main {
    z-index: 1;
}

#goals, #family, #rules, #webhooks, #console {
    z-index: 2;
}

#initiatives_list {
    padding: 6px 6px 0;
}

.initiative {
    width: calc(50% - 36px);
    display: inline-block;
    position: relative;
    font-weight: bold;
    padding: 12px;
    height: 96px;
    margin: 6px;
}

.initiative .close {
    text-decoration: none;
    font-weight: normal;
    margin-left: 16px;
    font-size: 12px;
    color: #666;
    display: none;
}

.initiative:hover .close {
    display: inline;
}

.initiative.current {
    border: 4px solid #E7700D;
    margin: 2px;
}

#tasks_list {
    padding: 12px 12px 0;
}

.task {
    position: relative;
}

.task input[type="checkbox"] {
    vertical-align: middle;
    display: inline;
}

.task input[type="text"] {
    width: calc(100% - 38px);
    font: 16px "Courier New";
    padding: 0px 0px 0px 6px;
    vertical-align: middle;
    display: inline;
    outline: none;
    border: none;
    margin: 0;
}

.task input[type="text"].top_limit {
    border-left: 5px solid #0000cc;
    padding-left: 1px;
}

.task input[type="text"].expired {
    border-left: 5px solid #cc0000;
    padding-left: 1px;
}

.task input[type="text"].done {
    text-decoration: line-through;
}

#events {
    margin-right: 20px;
    width: calc(34%);
    float: left;
}

#events_list {
    padding: 12px;
}

.event {
    border-bottom: 2px solid #e76f0d77;
    padding: 12px;
}

.event:last-child {
    border: none;
}

.event .datetime {
    margin-bottom: 6px;
    cursor: pointer;
}

.event .description {
    margin-top: 10px;
}

.event .location {
    margin-top: 6px;
}

.event .location a {
    font-size: 12px;
    color: #777;
}

.event .location a:hover {
    text-decoration: none;
}

.event.just_added {
    background-color: rgba(255, 0, 0, 0.05);
}

#references {
    width: calc(66% - 20px);
    float: left;
}

#references .filter {
    padding: 12px 12px 20px;
}

#references select, #references input[type="text"] {
    width: 280px;
}

#references #more_btn {
    background-color: #EFEFF2;
    border-radius: 0 0 6px 6px;
    text-align: center;
    cursor: pointer;
    padding: 16px;
    color: #000;
    margin: 12px;
}

#references #more_btn:hover {
    background-color: #EDEDED;
}

.reference {
    border: 1px solid #ccc;
    max-height: 220px;
    margin: 6px 12px;
    overflow: auto;
    padding: 12px;
}

.reference:last-child {
    margin-bottom: 12px;
}

.reference .controls {
    margin-bottom: 12px;
}

.reference .controls input[type="button"] {
    float: left;
}

.reference .controls .tags {
    float: right;
}

.reference .controls .tags a {
    text-decoration: none;
    margin-left: 12px;
    color: #777;
}

.reference .controls .tags a:hover {
    text-decoration: none;
}

.reference .attachments {
    margin: 12px 0 0;
}

.reference .attachments a {
    color: rgb(4, 76, 159);
    margin-right: 12px;
}

.reference .attachments a:last-child {
    margin-right: 0;
}

.reference .attachments a:hover {
    text-decoration: none;
}

#console #template {
    width: 260px;
}

#console textarea, #console #response {
    font: 14px "Courier New";
    overflow: auto;
    height: 280px;
    width: 360px;
}

#console input[type="text"] {
    width: 220px;
}

#console #request {
    font: 16px "Courier New";
    width: 360px;
}

#console #response_code {
    margin-top: 12px;
}

.menu {
    margin-bottom: 20px;
    padding-left: 48px;
    position: relative;
}

.menu input {
    margin-right: 12px;
}

.menu img {
    position: absolute;
    width: 32px;
    left: 0;
}

.container_1 {
    float: left;
    width: 40%;
}

.container_1 > div {
    padding-bottom: 46px;
}

.container_1 #new_object, .container_1 #new_initiative {
    border-radius: 0 0 6px 6px;
    position: absolute;
    outline: none;
    padding: 10px;
    clear: both;
    bottom: 6px;
    margin: 0;
    border: 0;
}

.container_2 {
    margin-left: 20px;
    float: right;
    width: calc(60% - 20px);
}

.screen {
    position: relative;
    padding: 20px;
    margin: 20px;
}

.box {
    box-shadow: 0px 0px 20px 0px rgba(34, 60, 80, 0.1);
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    position: relative;
    min-height: 160px;
}

.clear {
    clear: both;
}

.loading_error {
    position: absolute;
    text-align: center;
    margin-top: -50px;
    padding: 0 20px;
    top: 50%;
    right: 0;
    left: 0;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    animation: shimmer 0.5s infinite;
    background-size: 200% 100%;
    position: absolute;
    z-index: 10000;
    opacity: 40%;
    height: 100%;
    width: 100%;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media screen and (max-width: 1600px) {
    .container_1 {
        width: 100%;
    }

    .container_2 {
        width: 100%;
    }
}

@media screen and (max-width: 780px) {
    .container_1 {
        width: 100%;
    }

    .container_2 {
        width: 100%;
    }

    .initiative {
        width: calc(100% - 36px);
    }

    #events {
        width: 100%;
        float: none;
        margin: 0;
    }

    #references {
        padding-bottom: 1px;
        margin-top: 20px;
        width: 100%;
        float: none;
    }
}

@media screen and (max-width: 460px) {
    #auth {
        width: 280px;
    }

    .screen {
        margin: 0 0 20px 0;
    }

    #console textarea, #console #response {
        width: 320px;
    }

    #console #request {
        width: 320px;
    }
}
