/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126;
   License: none (public domain);
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

html,
body {
    height: 100%;
    font-family: Roboto, sans-serif;
    background-color: #333;
    color: #eee;
    font-size: 24px;
}

.center-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

button {
    background-color: transparent;
    color: deepskyblue;
    border: 1px solid deepskyblue;
    border-radius: 8px;
    padding: 12px 8px;
}

button + button {
    margin-top: 1em;
}

button:disabled {
    color: #999;
    border-color: #999;
}

.popup {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0px 2px 5px rgba(0,0,0,.25);
}

.popup.visible {
    display: flex;
}

.popup-header {
    padding: 8px 12px;
    border-bottom: 1px solid #444;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.close-button {
    cursor: pointer;
}

.popup-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.form-item {
    margin-bottom: 12px;
}

.form-item.hidden {
    display: none;
}

.form-item label {
    display: block;
    font-size: .75em;
    margin-bottom: .5em;
}

.form-item input {
    background-color: rgba(0,0,0,.25);
    color: #eee;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: 12px 8px;
}

.form-item.error label {
    color: indianred;
}

.form-item.error input {
    border-color: indianred;
}

.popup-footer {
    padding: 8px 12px;
    border-top: 1px solid #444;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

html,
body {
    height: 100%;
    font-size: 16px;
    overflow: hidden;
}

.current-status {
    margin-top: 1em;
    margin-bottom: 1em;
    color: #aaa;
    flex: 0 0 auto;
}

.current-status span {
    color: #eee;
}

.lock-wrap {
    flex: 1 1 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background-color: #282828;
    margin-top: 16px;
    padding: 16px 0;
}

.lock-wrap button {
    margin: 8px 0;
}

.unlock {
    margin-top: 1em;
    margin-bottom: .5em;
    flex: 0 0 auto;
    color: indianred;
    border-color: indianred;
}

.loading-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #282828;
    color: #eee;
}

.loading-overlay.visible {
    display: flex;
}

.lock-footer {
    flex: 0 0 auto;
    transform: translateY(-100%);
}