/*********
** Main layout
*********/
input[type="button"] {
    font-size: 20px;
    border-radius: 5px;
    outline: none;
    box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, .2);
    cursor: pointer;
}

caption {
    text-align: left;
    padding-top: 2px;
}

#output {
    padding: 10px;
    overflow: auto;
    font-family: monospace;
}

input#upload-button {
    background: #ccf;
    border: 1px solid #000088;
}

input#upload-button {
    background: #eef;
}

/*********
** Log metadata & filters
*********/
.banner {
    border: 2px solid gray;
    border-radius: 5px;
    padding: 1em;
}

.banner.success {
    border-color: green;
    background: #CFC;
}

.banner.error {
    border-color: red;
    background: #FCC;
}

#metadata, #mods, #filters {
    font-weight: bold;
    border-bottom: 1px dashed #888888;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

table#metadata,
table#mods {
    border: 1px solid #000000;
    background: #ffffff;
    border-radius: 5px;
    border-spacing: 1px;
    overflow: hidden;
    cursor: default;
    box-shadow: 1px 1px 1px 1px #dddddd;
}

#mods {
    min-width: 400px;
}

#mods .color-red {
    color: red;
}

#mods .color-green {
    color: green;
}

#mods tr {
    cursor: pointer;
}

#metadata tr,
#mods tr {
    background: #eee
}

#mods span.notice {
    font-weight: normal;
    font-size: 11px;
    position: relative;
    top: -1px;
    display: none;
}

#mods span.notice.btn {
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 5px;
    position: relative;
    top: -1px;
    padding: 0 2px;
    background: #eee;
}

#mods span.notice.txt {
    display: inline-block;
}

#mods .mod-entry.hidden {
    opacity: 0.5;
}

#mods .content-packs {
    margin-left: 1em;
    font-size: 0.9em;
    font-style: italic;
}

#metadata td:first-child {
    padding-right: 5px;
}

#metadata tr:nth-child(even),
#mods tr:nth-child(even) {
    background: #fff
}

#filters {
    margin: 1em 0 0 0;
    padding: 0;
}

#filters span {
    padding: 3px 1em;
    display: inline-block;
    border: 1px solid #000000;
    border-radius: 3px;
    font-family: monospace;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    border-color: #880000;
    background-color: #fcc;
}

#filters span:hover {
    background-color: #fee;
}

#filters span.active {
    background: #cfc;
    border-color: #008800;
}

#filters span.active:hover {
    background: #efe;
}

/*********
** Log
*********/
#log .mod-repeat {
    font-size: 0.85em;
}

#log .trace {
    color: #999;
}

#log .debug {
    color: #595959;
}

#log .info {
    color: #000;
}

#log .alert {
    color: #b0b;
}

#log .warn {
    color: #f80;
}

#log .error {
    color: #f00;
}

#log {
    border-spacing: 0;
}

#log tr {
    background: #fff;
}

#log td {
    padding: 0 1px;
    background: inherit;
    border-bottom: 1px dotted #ccc;
    border-top: 2px solid #fff;
    vertical-align: top;
    white-space: pre-wrap;
}

#log td:not(:last-child) {
    max-width: 175px;
    padding: 0 4px;
    overflow: hidden;
    white-space: nowrap;
}

#log td[data-title]:hover {
    font-size: 1px;
    overflow: inherit;
    position: relative;
}

#log td:nth-child(3):hover:after {
    content: attr(data-title);
    display: block;
    position: absolute;
    border-radius: 4px;
    box-shadow: 1px 1px 2px #ccc;
    background: inherit;
    border: 1px solid #ccc;
    background: #efefef;
    padding: 1px 1px 0 1px;
    font-size: 10pt;
    top: -2px;
    left: 2px;
    color: #000;
}

#log td:last-child {
    width: 100%;
}

#error {
    color: #f00;
}


/*********
** Upload popup
*********/
#upload-area .popup,
#upload-area #uploader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .33);
    z-index: 2;
    display: none;
    padding: 5px;
}

#upload-area #uploader:after {
    content: attr(data-text);
    display: block;
    width: 100px;
    height: 24px;
    line-height: 25px;
    border: 1px solid #000;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px -50px 0 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
}

#upload-area .popup h1 {
    position: absolute;
    top: 10%;
    left: 50%;
    margin-left: -150px;
    text-align: center;
    width: 300px;
    border: 1px solid #008;
    border-radius: 5px;
    background: #fff;
    font-family: sans-serif;
    font-size: 40px;
    margin-top: -25px;
    z-index: 10;
    border-bottom: 0;
}

#upload-area .frame {
    margin: auto;
    margin-top: 25px;
    padding: 2em;
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    padding-bottom: 30px;
    background: #FFF;
    border-radius: 5px;
    border: 1px solid #008;
}

#upload-area #cancel {
    border: 1px solid #880000;
    background-color: #fcc;
}

#upload-area #submit {
    border: 1px solid #008800;
    background-color: #cfc;
}

#upload-area #submit:hover {
    background-color: #efe;
}

#upload-area #input {
    width: 100%;
    height: 30em;
    max-height: 70%;
    margin: auto;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #000088;
    outline: none;
    box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 192, .2);
}