body {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    font-size: 16px;
}

#label {
    position: relative;
}

.label-content {
    border: 2px dashed #eee;
    min-height: 20px;
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: relative;
}

#app {
    margin: 1.5rem 0.5rem;
    position: relative;
    overflow: auto;
}

.label-content > .draggable {
    position: absolute;
    display: flex;
    user-select: none;
    z-index: 1;
    cursor: grab;
    font-family: Arial, sans-serif;
}

.label-content > .draggable:focus,
.label-content > .draggable:active {
    cursor: grabbing;
}

.label-content > .draggable > * {
    z-index: -1;
}

.label-content .draggable:Before {
    content: "\22EE"
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #f2f2f2;
}

.nav button {
    background: #d1d1d1;
    border: 0;
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: 300ms;
    font-size: 14px;
}

.nav button:Hover {
    background: #8d8d8d;
    color: #fff;
}

#app {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#app > #label {
    width: calc(100% - 300px);
}

#app > .meta {
    width: 300px;
}

#app > .meta .property {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

#app > .meta .property #selected {
    font-size: 18px;
    color: #636363;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

#app > .meta .property > div {
    display: block;
    margin-bottom: 10px;
}

#app > .meta .property > div label {
    display: block;
}


#app > .meta .property > div select,
#app > .meta .property > div input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #eee;
    height: 35px;
}


#app > .meta #list {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
}

#app > .meta #list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#app > .meta #list ul li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

#app > .meta #list ul li .title {
    font-size: 14px;
    opacity: .8;
}

#app > .meta #list ul li .type {
    font-size: 12px;
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
    color: #6e6e6e;
}

#app > .meta #list ul li .position {
    width: 100%;
    font-size: 12px;
    opacity: .6;
}

#app > .meta #list ul li:last-child {
    border: 0;
    padding: 0;
    margin: 0;
}

#app #label > .label-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
}

#app #label > .label-header > span {
    font-size: 18px;
    font-weight: bolder;
}

#app #label > .label-header input {
    border: 1px solid #eee;
    padding: 5px;
    max-width: 100px;
}

.label-content > .draggable:after {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    z-index: -1;
    border: 2px solid red;
    opacity: 0;
}

.label-content > .draggable.selected:after {
    opacity: 1;
}

.fileInput {
    visibility: hidden;
}

#app > .meta .property > div.hide {
    display: none;
}

#app > .meta #list ul li > div > select {
    width: 100%;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
}

#app > .meta #list ul li > .element-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    column-gap: 10px;
    margin-bottom: 10px;
}

#app > .meta #list ul li > .element-header > .remove {
    background: #f0f0f0;
    height: 30px;
    width: 30px;
    border: 0;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

#app > .meta #list ul li > .element-header > .remove:before {
    content: '\01F5D1';
}

#app > .meta #list ul li > .element-header > .remove:Hover {
    background: red;
    color: #fff;
}

.label-content > .draggable > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f1f1f1;
}