html, body {
    margin: 0;
    background: #dedede;
}

header {
    font-family: monospace;
    background: black;
    color: white;
}

body > header {
    font-size: 16px;
    background: url('./assets/tatlogo.png') black 8px center no-repeat;
    background-size: 40px 40px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid #aaa;

    min-height: 34px;
    padding: 8px 12px 8px 56px;
}

main {
    font-family: sans-serif;
    padding: 20px;
}

section {
    background: white;
    margin-bottom: 32px;
}

section > header {
    padding: 12px 12px 12px 50px;
    font-size: 115%;
    position: relative;
}

section > header > img {
    display: block;
    position: absolute;
    top: 20%;
    left: 12px;
    height: 60%;
}

section > div {
    padding: 12px;
}


.button {
    display: inline-block;
    background: #6d8ca6;
    color: white;
    font-weight: bold;
    font-size: 85%;
    padding: 16px;
    box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #597a95;
}

.api-docs a,
.api-docs a:visited {
    color: #4b87b9;
    text-decoration: none;
}
.api-docs a:hover {
    text-decoration: underline;
}


a.button, a.button:link, a.button:visited, a.button:active {
    color: white;
}

.status {
    border-left: 4px solid black;
    padding-left: 8px;
}
.status.error {
    color: #c93e3e;
    border-color: #c93e3e;
}
.ok {
    color: #3b922a;
    border-color: #3b922a;
}

code {
    background: black;
    padding: 2px 5px;
    border-radius: 4px;
    color: #ddd;
}

pre {
    overflow: auto;
    background: black;
    color: #87d079;
    padding: 16px;
    border-radius: 4px;
}

label {
    display: block;
    padding-bottom: 12px;
}
label div {
    display: block;
    font-size: 80%;
}

input {
    display: block;
    margin-right: 16px;
    padding: 6px;
    font-size: 14px;
}

button {
    border: none;
    cursor: pointer;
}

.api-docs {
    overflow-x: hidden;
}

.api-docs h2 {
    font-style: italic;
    margin-top: 5em;
    border-bottom: 4px double #888;
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
    color: #050;
}

.api-links {
    padding-left: 1.2em;
}

.api-docs .section-wrap {
    margin-bottom: 32px;
    overflow-x: auto;
}
.api-docs section {
    padding: 6px;
    margin-bottom: 0;
    display: table;
    border-collapse: collapse;
    width: 100%;
}
.api-docs section > div {
    padding: 0;
    display: table-row;
    border-bottom: 1px solid #ddd;
}
.api-docs section > div:last-child {
    border-width: 0;
}
.api-docs section > div > * {
    display: table-cell;
    padding: 12px;
}
.api-docs section > div > *:nth-child(2n) {
    font-size: 90%;
    padding-left: 1em;
    min-width: 250px;
}
.api-docs section > div > *:first-child {
    width: 1px;
    white-space: nowrap;
}

.help {
    background: black;
    font-size: 80%;
    border-radius: 50%;
    color: white;
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    text-align: center;
    line-height: 1.2em;
    margin-left: 0.5em;
    color: white !important;
}


/* loading spinner */
.loading {
    text-align: center;
    font-weight: bold;
}
.lds-circle {
    display: inline-block;
    transform: translateZ(1px);
}
.lds-circle > div {
    display: inline-block;
    width: 51px;
    height: 51px;
    margin: 6px;
    border-radius: 50%;
    background: #000;
    animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes lds-circle {
    0%, 100% {
        animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
    }
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(1800deg);
        animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
    }
    100% {
        transform: rotateY(3600deg);
    }
}
