label {
    font-weight: normal;
}
input {
    padding: .2em .4em .2em .4em;
    border: 1px #ccc solid;
    border-radius: 3px;
}
input[type="number"], input[type="text"] {
    margin-left: .4em;
    margin-right: .4em;
}
input[type="number"] {
    width: 4.5em;
    text-align: center;
}

header.generator-intro {
    margin-bottom: 1em;
}
header.generator-intro p:last-child {
    margin-bottom: 0;
}

#prettyPrint {
    position: relative;
    top: 3px;
}

.raw-content {
    font-family: "Source Code Pro", Consolas, "Courrier New", Courrier, monospace;
    width: 500px;
}

.form-import, .section-output {
    margin-top: 1em;
}

.block-pool {
    background-color: white;
    border: solid 1px #ccc;
    border-radius: 5px;
    margin: 1em 0 1em 0;
}
.block-pool:first-child {
    margin-top: 0;
}
.block-pool h3 {
    width: 100%;
    border-bottom: solid 1px #ccc;
    padding: .3em 0 .3em .5em;
}
.block-pool h3 .btn-remove, .block-entry .btn-remove, .block-condition .btn-remove {
    border: none;
    border-radius: 0;
    float: right;
    background-color: transparent;

    position: relative;
    top: -3px;
}
.block-entry .btn-remove {
    top: 3px;
}
.block-condition .btn-remove {
    top: 2px;
}
.block-pool h3 .btn-remove:hover {
    background-color: transparent;
}

.block-pool .fa {
    width: 1em;
    text-align: center;
}

.form-part {
    display: inline-block;
}
.form-part:first-of-type {
    margin-left: 1em;
}

.form-part-inline {
    display: inline-block;
    padding: .8em 0 0 0;
}
.form-part-inline:first-of-type {
    padding-left: .8em;
}

.section-footer {
    margin-top: .8em;
    padding: .5em;
    border-top: #ccc 1px solid;
}

.block-entry {
    border: solid 1px #ccc;
    border-radius: 5px;
    margin-top: 1em;
    margin-right: 1em;
    margin-left: 1em !important;
    padding: 0;
}

.block-entry > .json-elem > select:first-of-type {
    font-size: 120%;
    display: inline-block;
    width: 30%;
    margin: .4em;
}

.block-entry-extra {
    display: block;
    border-top: solid 1px #ccc;
}
.block-entry-extra:out-of-range {
    border-top: none;
}

.block-condition, .block-function, .block-function .modif-elem {
    border: solid 1px #ccc;
    margin-right: 1em;
    margin-left: 1em !important;
    padding: .4em;
}
.block-condition:first-child, .block-function:first-child, .block-function .modif-elem:first-child {
    margin-top: .8em;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.block-condition:last-child, .block-function:last-child, .block-function .modif-elem:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.block-condition:not(:first-child):not(:last-child), .block-function:not(:first-child):not(:last-child), .block-function .modif-elem:not(:first-child):not(:last-child) {
    border-top: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}
.block-condition:last-child:not(:only-child), .block-function:last-child:not(:only-child), .block-function .modif-elem:last-child:not(:only-child) {
    border-top: none;
}
.block-condition input, .block-function input {
    padding: .0em .4em .0em .4em;
}
.block-condition label, .block-function label {
    margin-bottom: 0;
}
.block-condition input[type="checkbox"], .block-function input[type="checkbox"] {
    margin: 0;
    position: relative;
    top: 3px;
}

.block-condition > .json-elem > .extra, .block-function > .json-elem > .extra {
    margin-left: .4em;
}

.block-function .enchant, .block-condition .score, .block-function .attribute-uuid, .block-function .attribute-name {
    margin-top: .4em;
}
.block-function .enchant:empty, .block-condition .score:empty {
    margin-top: 0;
}
.block-function .enchant .btn-remove, .block-function .slot .btn-remove, .block-condition .score .btn-remove {
    float: none;
    top: 0;
}

.block-function .slot {
    margin-top: .4em;
    margin-bottom: .4em;
}
.block-function .slot .nest-obj {
    margin-left: 0;
}

.block-entry:not(:first-child) .help-quality {
    display: none;
}
