/* turns on the last plus */
*.st-block:last-child .st-block-addition {
    display: block;
}

/* adds border to the blocks */
*.st-blocks {
    border-radius: 2px;
    border: 1px solid #CCC;
    padding: 10px;
    overflow: initial;
}

/* removes space from top */
.st--hide-top-controls .st-top-controls{
    display:none;
}

.st-outer, .st-outer p {
    font-size:15px;
}
.st-block__inner {
    margin: 10px 20px 10px 20px !important;
}
.st-block-controls__buttons{
    background: #fff;
}
.st-block-replacer__button {
    width: 20px;
}
.st-block-replacer {
    top: 14px;
    left: -5px;
}
.st-block-replacer__button {
    background-color: #fff;
}
.st-block--empty .st-text-block{
    line-height: 1.45;
}
.st-block-addition-top__icon .st-block-control-ui-btn,
.st-block-addition-top__icon .st-block-ui-btn__delete,
.st-block-addition-top__icon .st-block-ui-btn__reorder,
.st-block-addition-top__icon .st-icon{
    width:20px ;
    height:20px ;
}
.st-block--textable .st-block-addition-top,
.st-block[data-type=list] .st-block-addition-top {
    top: -0.6em;
}
.st-block-addition-top__icon {
    padding-left: 0;
    left: -5px;
    height: 15px;
    margin-top: -5px;
}
.st-block-addition-top:before {
    top: 44%;
    left: 20px;
}
.st-block-addition-top {
    height: 10px;
}

.st-block__inner--droppable{
    margin-bottom: 10px;
}


.st-list-block__list {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 10px;
}

/* Reposition delete button and dialog to right */
.st-block .st-block-ui-btn__delete {
    font-size: 1pc;
    display: block ;
    height: 15px;
    width: 15px;
    left: 0;
    top: 0;
}
.st-block .st-block__ui-delete-controls {
    left: 25px;
    right: auto;
    top: 5px;
    z-index: 9999;
}
.st-block .st-block__ui-delete-controls::before {
    display: none;
}
.st-block .st-block-ui-btn__reorder {
    top: 0;
    right: 0;
}

.st-block-controls__button .st-icon {
    margin: 0 auto 10px;
}

.st-block .custom-text,
.st-block .html
{
    background-color: #f7f7f7;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}
.st-block .html textarea {
    border: 1px solid #ccc;
}
.st-block .html .block-title:after {
    color: red;
    content: "\f071";
    padding-left: 5px;
    font: normal normal normal 14px/1 FontAwesome;
}

.st-block .custom-text .block-title {
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    color: #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    line-height: 0.9em;
}

.st-block .custom-text .st-text-block {
    font-size: 1em;
}

.st-block-controls {
    padding: 5px;
    top: 0;
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    position:relative;
}

.st-format-bar {
    max-width: 170px !important;
    margin-top: -110px;
    margin-left: 15px;
}

.st-text-block.st-text-block--quote {
    margin: auto;
}

.st-text-block.st-text-block--heading {
    white-space: normal;
    word-wrap: break-word;
}

div.prompt {
    z-index: 999;
    position: fixed;
    width: 300px;
    height: 265px;
    top: calc(50% - 150px);
    left: calc(50% - 130px);
    background-color: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(200,200,200, 0.8);
    box-shadow: 5px 5px 10px rgba(200,200,200,0.85);
    z-index: 999;
}

div.prompt ul {
    padding: 0;
    list-style: none;
}

div.prompt ul li {
    padding: 5px;
}

div.prompt .buttons {
    text-align: center;
}

div.prompt .buttons button {
    margin-left: 5px;
}

div.prompt .error {
    border: 1px solid red;
}

/* FIXME: Temporary fix for FIREFOX Scribe Liunks */
.st-block .st-text-block a {
    padding: 2px 6px;
    margin-right: -4px;
}

.st-block .st-text-block a:hover {
    padding: 1px 5px;
    border: 1px dotted #a0a0a0;
}

button.structured-content.src-toggle {
    position: relative;
    left: 91%;
    top: 4px;
    border-radius: 5px;
    color: #c0c0c0;
    font-size: 11px;
}
.st-drag-element {
    display: none;
}
