

@keyframes fadeInDragItem {
    0%   {transform: scale(1,1); opacity: 0.5; }
    100% {transform: scale(0.5,0.5); opacity: 1.0; }
}

@keyframes fadeInMarker {
    0% {transform: scale(0.5,0.5) }
    100%   {transform: scale(1,1) }
}

@keyframes fadeInPositionMarker {
    0% { transform: translateY(-20px); }
    100%   {transform: translateY(0); }
}

@keyframes rotateAnimation {
    0%   {transform: rotateX(0); scale(0.5, 0.5); }
    25%   {transform: rotateX(90deg); scale(0.5, 0.5); }
    50%   {transform: rotateX(180deg); scale(0.5, 0.5); }
    75% {transform: rotateX(270deg); scale(0.5, 0.5); }
    100% {transform: rotateX(360deg); scale(0.5, 0.5); }
}

.draggable-list-container {
    padding: 0 !important;
    position: relative;
    width: calc(100% - 35px);
    left: 0;
}

.order-type-items {
    left: 24px;
    right: 30px;
}

.draggable-list-container.child-dragged > .draggable-handle {
    cursor: alias;
}

.draggable-list-container .draggable-item {
}

.draggable-item .sub-items table {

}

.draggable-item > .draggable-handle {
    cursor: grab;
    cursor: -webkit-grab;
    cursor: -moz-grab;
}

.draggable-item.dragging > .draggable-handle {
    cursor: alias;
}

.draggable-list-container .sub-items table tr:not(.dragging) {
    position: relative;
    background-color: #efefef !important;
}

.draggable-list-container table {
    column-span: all;
    border-collapse: collapse;
    empty-cells: hide;
    width: 100%;
}

.draggable-list-container .prepare-drop-over {
    background-color: orange !important;
}

.draggable-list-container .prepare-drop-over table tr {
    background-color: orange !important;
}

.draggable-list-container .prepare-drop-over table tr td {
    background-color: orange !important;
}

.draggable-list-container .dragging:not(.currently-dragged) {
    margin-top: 5px;
    margin-bottom: 5px;
}

.draggable-list-container .dragging {
    position: absolute;
    outline: 2px solid black;
    z-index: 1000;
    opacity: 0.9;
    /* animation-name: fadeInDragItem; */
    animation-duration: 0.15s;
    animation-timing-function: ease-in;
}

.draggable-list-container .dragging.pending-drop-above {
    cursor: alias !important;
}

.draggable-list-container .dragging.pending-drop-over {
    background-color: orange !important;
    cursor: alias !important;
}

.draggable-list-container .dragging.pending-drop-over td {
    background-color: orange !important;
}

.draggable-list-container .dropzone-placeholder {

}

.draggable-list-container .debug-info {
    font-size: 0.6em;
    text-align: right;
    float: right;
    padding-right: 5px;
}

.draggable-list-container .draggable-item td.title {
    max-width: initial;
}

.draggable-list-container .draggable-item td.title > a {
    max-width: 175px;
    display: inline-block;
}

.draggable-list-container.child-dragged {
    cursor: alias !important;
}

#content .order-type-items > .draggable-item,
#content .order-type-items .dropzone-placeholder  {
    display: block;
    height: auto;
    vertical-align: top;
    padding: 0;
    word-wrap: break-word;
    user-select: none;
    box-sizing: border-box;
    width: auto;
    border: 1px solid lightgray;
    margin-bottom: 5px;
    border-left: 5px solid darkgray;
}

#content .order-type-items > .draggable-item.correct {
    border-left-color: green;
    position: relative;
}

#content .order-type-items > .draggable-item.correct > .item-position-marker, #content .order-type-items > .draggable-item.incorrect > .item-position-marker {
    display: inline-block;
}

#content .order-type-items > .draggable-item.correct > .item-correct-marker {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(../img/correct_white_transparent.png);
    background-size: contain;
    position: absolute;
    right: -14px;
    /* top: 0; */
    top: calc(50% - 16px);
    background-color: green;
    animation-name: fadeInMarker;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
}

#content .order-type-items > .draggable-item.incorrect {
    border-left-color: red;
    position: relative;
}

#content .order-type-items > .draggable-item > .item-position-marker {
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.2em;
    margin-left: -16px;
    float: left;
    /* margin-top: 1px; */
    display: none;
    /* position: absolute; */
    text-align: center;
    vertical-align: top;
    line-height: 1em;
    border: 1px solid black;
    border-radius: 15px;
    width: 15px;
    position: absolute;
    height: 15px;
    top: calc(50% - 0.7em);
    background-color: inherit;
    animation-name: fadeInPositionMarker;
    animation-duration: 0.25s;
    animation-timing-function: ease-in;
}

#content .order-type-items > .draggable-item > .draggable-handle {
    display: block;
    margin: 0;
    padding: 10px;
}

#content .order-type-items > .draggable-item > .draggable-handle > .item-content {
    display: inline;
}

#content .order-type-items > .draggable-item.dragging {
    background-color: white !important;

    -webkit-box-shadow: 6px 4px 5px -1px rgba(0,0,0,0.71);
    -moz-box-shadow: 6px 4px 5px -1px rgba(0,0,0,0.71);
    box-shadow: 6px 4px 5px -1px rgba(0,0,0,0.71);
}

#content .order-type-items .dropzone-placeholder > .item-position-marker {
    display: none;
}

#content .order-type-items .dropzone-placeholder {
    animation-name: fadeInDropPlaceholder;
    animation-duration: 0.25s;
    animation-timing-function: ease-in;
    padding: 10px;
    opacity: 0.3;
    border-left: 10px solid black;
    background-color: white !important;
}
