/* normal styling rules */
body {
    background: aliceblue;
    width: 100%;
    height: 100%;
    font-size: 24px;
    margin: 12px 0 0;
    padding: 0;
    text-align: center;
}

main {
    padding: 0 24px;
    margin: 0 auto;
}
button {
    transition: all 400ms ease;
    display: block;
    margin: 12px auto;
    width: 100%;
    padding: 12px;
    font-size: 100%;
    background: #eee;
    border: 1px solid #bbb;
    cursor: pointer;
}
button:hover {
    background-color: #aaa;
    text-decoration: none !important;
    /*color: white;*/
}

input {
    display: block;
    margin: 0 auto 12px;
    width: 100%;
    font-size: 100%;
}
input:hover {
    text-decoration: none !important;
}

i:hover {
    text-decoration: none !important;
}

[data-action] {
    cursor: pointer;
}
[data-action]:hover {
    text-decoration: underline;
}

[data-action="download"] {
    color: green;
}

.section {
    margin-bottom: 96px;
}

/* simple tables */
.row {
    display: flex;
}

.row > * {
    align-self: center;
    padding: 12px;
    margin: 0;
}
.row .fill {
    flex: 1;
}

.row input {
    display: inline-block;
    width: auto;
    min-width: 0;
    margin: 4px 0;
}

.row button {
    display: inline-block;
    width: auto;
    padding: 16px;
    margin: 4px 0;
}

/* regular tables */
table {
    width: 100%;
}


/* extra rules for large screens */
@media (min-width: 600px) {
    main {
        width: 80%;
    }
    .small-only {
        display: none;
    }
}

/* extra rules for small screens */
@media (max-width: 600px) {
    .row {
        display: block;
        padding: 6px 0 12px 0;
        border-bottom: 1px solid #ddd;
    }
    .row input {
        display: block;
        width: 100%;
    }
    .row > a {
        display: block;
        width: 100%;
    }
    .large-only {
        display: none;
    }
}

/* advanced mode + debugging */
#advanced {
    min-height: 24px;
    text-align: center;
}

#status {
    font-size: 60%;
    padding: 24px 12px;
    background: #F5DCCF;
    display: none;
    text-align: left;
}

body.advanced #advanced {
    background: #F5DCCF;
}
body.advanced #status {
    display: block;
}

.tag {
    color: red;
    padding: 4px;
}


/* page specific css */
.warning {
    color: red;
}
.primary {
    font-weight: bold;
}
.secondary {
    font-size: 50%;
}

body.users table td:first-child {
    width: 24px;
}

body.users table tr {
    text-align: right
}

body.users table input {
    width: 100%;
}
