.que.ddimageortext .qtext {
    margin-bottom: 0.5em;
    display: block;
}

.que.ddimageortext div.ddarea,
form.mform fieldset#id_previewareaheader div.ddarea {
    text-align: center;
}

.que.ddimageortext div.droparea,
form.mform fieldset#id_previewareaheader div.ddarea {
    position: relative;
}

.que.ddimageortext .dropbackground,
form.mform fieldset#id_previewareaheader .dropbackground {
    border: 1px solid #000;
    max-width: none;
    margin: 0 auto;
}

.que.ddimageortext .dropzone {
    position: absolute;
    opacity: 0.5;
    border: 1px solid black;
    z-index: 1;
}

.que.ddimageortext .dropzone:focus,
.que.ddimageortext .dropzone.valid-drag-over-drop {
    border-color: #0a0;
    box-shadow: 0 0 5px 5px rgba(255, 255, 150, 1);
    outline: 0;
}

.que.ddimageortext .draghome,
.que.ddimageortext .drag,
form.mform fieldset#id_previewareaheader .droppreview {
    border: 1px solid black;
    display: inline-block;
    font: 13px/1.231 arial, helvetica, clean, sans-serif;
}

.que.ddimageortext .draghome {
    vertical-align: top;
    margin: 5px;
    visibility: hidden;
    height: auto;
    width: auto;
}

.que.ddimageortext .dragitems,
form.mform fieldset#id_previewareaheader .dragitems {
    height: 0;
}

.que.ddimageortext .drag,
form.mform fieldset#id_previewareaheader .droppreview {
    position: absolute;
    cursor: move;
    z-index: 2;
}

.que.ddimageortext .dragitems.readonly .drag {
    cursor: auto;
}

form.mform fieldset#id_previewareaheader .drag.beingdragged,
.que.ddimageortext .drag.beingdragged {
    z-index: 3;
    box-shadow: 3px 3px 4px #000;
}

.que.ddimageortext .group1,
form.mform fieldset#id_previewareaheader .group1 {
    background-color: #fff;
}

.que.ddimageortext .group2,
form.mform fieldset#id_previewareaheader .group2 {
    background-color: #b0c4de;
}

.que.ddimageortext .group3,
form.mform fieldset#id_previewareaheader .group3 {
    background-color: #dcdcdc;
}

.que.ddimageortext .group4,
form.mform fieldset#id_previewareaheader .group4 {
    background-color: #d8bfd8;
}

.que.ddimageortext .group5,
form.mform fieldset#id_previewareaheader .group5 {
    background-color: #87cefa;
}

.que.ddimageortext .group6,
form.mform fieldset#id_previewareaheader .group6 {
    background-color: #daa520;
}

.que.ddimageortext .group7,
form.mform fieldset#id_previewareaheader .group7 {
    background-color: #ffd700;
}

.que.ddimageortext .group8,
form.mform fieldset#id_previewareaheader .group8 {
    background-color: #f0e68c;
}

/* Editing form. Style repeated elements*/
/*Top*/
body#page-question-type-ddimageortext div[id^=fgroup_id_][id*=drags_] {
    background: #eee;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    border: 1px solid #bbb;
    border-bottom: 0;
}

body#page-question-type-ddimageortext div[id^=fgroup_id_][id*=drags_] .fgrouplabel label {
    font-weight: bold;
}
/* Middle */
body#page-question-type-ddimageortext div[id^=fitem_id_][id*=dragitem_] {
    background: #eee;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    border: 1px solid #bbb;
    border-top: 0;
    border-bottom: 0;
}
/* Bottom */
body#page-question-type-ddimageortext div[id^=fitem_id_][id*=draglabel_] {
    background: #eee;
    margin-bottom: 2em;
    margin-top: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    border: 1px solid #bbb;
    border-top: 0;
}
