body {
    font-family: Roobert,Helvetica Neue,Helvetica,Arial,sans-serif;
    font-size: 1rem;

    background-color: rgb(239,239,241);
    color: rgb(14,14,16);
    color: rgb(59, 59, 68);
}
body.darktheme {
    color: rgb(239,239,241);
    color: rgb(173, 173, 184);
    background: rgb(31,31,35);
}

a {
    color: rgb(119,44,232);
}
body.darktheme a {
    color: rgb(169,112,255);
}

.text_left { text-align: left; }
.text_center { text-align: center; }
.text_right { text-align: right; }

input[type="button"] {
    text-align: center;
    border-radius: 4px;

    background: rgba(0, 0, 0, 0.1);
    color: rgb(14, 14, 16);
    border: 0px;
    line-height: 30px;

    cursor: pointer;

    background: rgba(0, 0, 0, 0.1);
    color: rgb(14, 14, 16);
}
    body.darktheme input[type="button"] {
        background: rgba(255, 255, 255, 0.15);
        color: rgb(239, 239, 241);
    }

.needsave .save {
    background: rgb(145, 71, 255) !important;
    color: rgb(255, 255, 255);
}
.save:hover,
body.darktheme .save:hover,
input[type="button"]:hover {
    background: rgb(119, 44, 232) !important;
}

/*
body.darktheme input[type="button"] {
    background: rgba(255,255,255,0.15);
    color: rgb(239, 239, 241);

    background: rgb(92, 22, 197);
    color: rgb(255, 255, 255);
}
body.darktheme input[type="button"]:hover {
    background: rgb(119, 44, 232);
}
*/

.form_section {
    padding: 4px;
    border-radius: 4px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.darktheme .form_section {
    background: rgb(24, 24, 27);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="text"],
input[type="number"] {
    background: rgba(0, 0, 0, 0.05);
    color: rgb(14, 14, 16);
    font-size: 12px;
    height: 30px;
    border: 0px;
    padding: 0px 4px;
    box-sizing: border-box;
}
body.darktheme input[type="text"],
body.darktheme input[type="number"] {
    background: rgba(255, 255, 255, 0.15);
    color: rgb(239, 239, 241);
}

h5 {
    margin: 4px auto;
}


.row {
    display: block;
}
.col {
    width: 50%;
    float: left;
    padding: 10px;
    box-sizing: border-box;

    min-height: 200px;
}

table, input[type="text"], input[type="button"], select { width: 100%; }

#error_handler { color: #FFFFFF; }
#error_handler.error { background: #891414; }
#error_handler.success { background: #005000; }

#emote_picker tr td:first-child,
#emote_picker tr td:nth-child(3),
#emote_picker tr td:nth-child(4),
#emote_picker tr td:last-child { text-align: center; }

input[type="button"].remove_phrase { width: 30px !important; }

#emote_picker tr th:nth-child(4),
#emote_picker tr td:nth-child(4) {
    display: none;
}
#emote_picker.battle_emote tr th:nth-child(4),
#emote_picker.battle_emote tr td:nth-child(4) {
    display: table-cell;
}

.battle_emote .single_emote_word,
.single_emote .battle_emote_word {
    display: none;
}
.single_emote .single_emote_word,
.battle_emote .battle_emote_word {
    display: block;
}

#config_navigation {
    list-style: none;
    padding: 0px;
    padding-bottom: 10px;
    box-shadow: inset 0 -1px 0 hsla(0,0%,100%,.1);
}
#config_navigation li {
    display: inline-block;
    margin-right: 20px;
}
#config_navigation li a {
    color: #000000;
    text-decoration: none;
    padding-bottom: 10px;
}
    body.darktheme #config_navigation li a {
        color: #FFFFFF;
    }
#config_navigation li a.active {
    color: rgb(191, 148, 255);
    box-shadow: 0 -1px 0 #bf94ff inset;
}

.section { display: none; position: relative; }
.section.active { display: block; }

#placementcontrol_handler {
    position: relative;
}
#placementcontrol {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: auto;

    background: #000000;
    background-size: contain;
}
#widget {
    position: absolute;
    background: #EFEFEF;
    cursor: move;
    opacity: 0.5;
}
#widget_sub {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid #333333;
    border-radius: 50%;
}

input[type="button"].save {
    width: 100px;
    clear: both;
}
td input[type="button"].save { width: 100%; }

ul { list-style: none; padding-left: 0px; }
#meter_style img { width: 50px; cursor: pointer; }
#preview {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    cursor: pointer;
    z-index: 9001;
    background: rgba(0,0,0,0.7);
}
#preview img {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
}

.field_section { margin-bottom: 2px; }
.field_section input[type="text"], .field_section input[type="number"],
.field_section select,
.field_section label { width: 49%; display: inline-block; }
#scoring_time_minutes, #scoring_time_seconds { width: 20%; }

.help_text { font-size: 14px; }


.theme { width: 33%; box-sizing: border-box; display: inline-block; }
.theme img { width: 100%; }
