
[data-layertype='card'] > .icon { background-image: url('/images/builder/icon_cardbody.imageset/icon_cardbody@3x.png') }

[data-layertype='text'] > .icon { background-image: url('/images/builder/icon_text.imageset/icon_text@3x.png') }

[data-layertype='image'] > .icon { background-image: url('/images/builder/icon_image.imageset/icon_image@3x.png') }

[data-layertype='line'] > .icon { background-image: url('/images/builder/icon_line.imageset/icon_line@3x.png') }

[data-layertype='shape'] > .icon { background-image: url('/images/builder/icon_shape.imageset/icon_shape@3x.png') }

[data-layertype='barcode'] > .icon { background-image: url('/images/builder/icon_barcode.imageset/icon_barcode@3x.png') }

[data-layertype='texture'] > .icon { background-image: url('/images/builder/icon_texture.imageset/icon_texture@3x.png') }

[data-layertype='gif'] > .icon { background-image: url('/images/builder/icon_gif.imageset/icon_movie@3x.png') }

[data-layertype='movie'] > .icon { background-image: url('/images/builder/icon_movie.imageset/icon_film@3x.png') }

[data-layertype='group'] > .icon { background-image: url('/images/builder/icon_group.imageset/icon_group@3x.png') }

[data-layertype='gradient'] > .icon { background-image: url('/images/builder/icon_gradient.imageset/icon_gradient@3x.png') }

[data-layertype='alignleft'] > .icon { background-image: url('/images/builder/left.imageset/icon_alignleft@3x.png') }

[data-layertype='aligncenter'] > .icon { background-image: url('/images/builder/center.imageset/icon_aligncenter@3x.png') }

[data-layertype='alignright'] > .icon { background-image: url('/images/builder/right.imageset/icon_alignright@3x.png') }

[data-layertype='aligntop'] > .icon { background-image: url('/images/builder/top.imageset/icon_aligntop@3x.png') }

[data-layertype='alignmiddle'] > .icon { background-image: url('/images/builder/middle.imageset/icon_alignmiddle@3x.png') }

[data-layertype='alignbottom'] > .icon { background-image: url('/images/builder/bottom.imageset/icon_alignbottom@3x.png') }

[data-layertype='alignfillhorizontal'] > .icon { background-image: url('/images/builder/sizehorizontal.imageset/icon_sizehorizontal@3x.png') }

[data-layertype='alignfillvertical'] > .icon { background-image: url('/images/builder/sizevertical.imageset/icon_sizevertical@3x.png') }

[data-layertype='deletelayer'] > .icon { background-image: url('/images/icons/icon_trash.png'); }

[data-layertype='togglegrid'] > .icon { background-image: url('/images/builder/icon_grid.imageset/icon_grid@3x.png'); }

div.fullscreen {
	position: absolute;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	top: 0px;
	left: 0px;
	z-index: 1;
}

#mainbody:has(> .headerbar) > div.fullscreen {
	top: 50px;
	width: 100% !important;
	height: calc(100% - 50px) !important;
}

div.fullscreen > div.canvas {
	position: absolute;
	width: calc(100% - 500px);
	left: 0px;
	height: calc(100% - 300px);
	top: 0px;
	margin: 0px !important;
	overflow: hidden;
}

div.fullscreen > div.canvas > span.applogoedit {
	position: absolute;
	width: 96px;
	height: 96px;
	left: 20px;
	top: 20px;
	background-image: url('/images/logo.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

@media (prefers-color-scheme: light) {
    div.fullscreen > div.properties {
        background-color: #fff;
    }    
	div.fullscreen {
		background-color: #e9e9e9;
	}
	div.fullscreen {
		background-color: rgba(0,0,0,0.1);
	}
	div.fullscreen > div.canvas > div.deletetools {
		background-color: #fff;
	}
	div.fullscreen > div.canvas > div.aligntools {
		background-color: #fff;
	}
	div.fullscreen > div.canvas > div.layertools {
		background-color: #fff;
	}	
	div.fullscreen > div.canvas > div.previewtools {
	}
}

@media (prefers-color-scheme: dark) {
    div.fullscreen > div.properties {
        background-color: #000;
    }    
	div.fullscreen {
		background-color: rgba(0,0,0,0.2);
	}
	div.fullscreen > div.canvas > div.deletetools {
		background-color: rgba(0,0,0,0.1);
	}
	div.fullscreen > div.canvas > div.aligntools {
		background-color: rgba(0,0,0,0.1);
	}
	div.fullscreen > div.canvas > div.layertools {
		background-color: rgba(0,0,0,0.1);
	}	
	div.fullscreen > div.canvas > div.previewtools {
	}
}

div.fullscreen > div.properties {
	position: absolute;
	width: 500px;
	right: 0px;
	height: 100%;
	top: 0px;
	margin: 0px !important;
}

div.fullscreen > div.canvas > div.layertools {
	position: absolute;
	z-index: 3;
	left: 20px;
	top: calc(50% - 250px);
	height: 500px;
	width: 50px;
	border-radius: 8px;
	border: 0.8px solid var(--bordercolor);
}

div.fullscreen > div.canvas > div.deletetools {
	position: absolute;
	z-index: 3;
	left: 20px;
	top: calc(50% + 270px);
	height: 50px;
	width: 50px;
	border-radius: 8px;
	border: 0.8px solid var(--bordercolor);
}

div.fullscreen > div.canvas > div.aligntools {
	position: absolute;
	z-index: 3;
	bottom: 20px;
	margin-left: 50%;
	width: auto;
	height: 50px;
	left: -195px;
	border-radius: 8px;
	border: 0.8px solid var(--bordercolor);
}

div.fullscreen > div.canvas > div.previewtools {
	position: absolute;
	z-index: 3;
	bottom: 20px;
	margin-left: 0;
	width: auto;
	height: 50px;
	left: 20px;
}

div.previewtools > *:not(ul) {
	margin-top: 10px;
	float: left;
}

div.previewtools > * {
	float: left;
	margin-left: 10px;
}

div.fullscreen > div.canvas > .cardbuilder {
	position: absolute;
}

div.fullscreen > div.canvas > div.idinfo {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: calc(100% - 20px);
	height: 20px;
	z-index: 2;
	background-color: transparent;
}

li.groupheader {
	position: relative;
	margin-top: 10px;
	width: 100%;
	min-height: 20px;
	padding: 4px 0px;
	margin-top: 20px;
}

li.groupheader:first-child {
	margin-top: 0px;
}

li.groupheader > span.title {
	margin-left: 10px;
	font-size: 20px;
	font-family: 'ptrootbold',Arial,Helvetica,freesans,sans-serif; 
}

li.propertyitem {
	position: relative;
	width: calc(100% - 10px);
	min-height: 40px;
	padding: 2px 5px;
	/* border-bottom: 0.8px solid var(--cellseparator); */
	background-color: rgba(0,0,0,0.05);
	margin-bottom: 10px;
	border-radius: 8px;
	margin-top: 5px;
}

li.propertyitem:hover {
	background-color: rgba(0,0,0,0.07);
}

@media (prefers-color-scheme: dark) {
	li.propertyitem {
		background-color: rgba(255,255,255,0.1);
	}
}

li.propertyitem:last-child,
li.propertyitem:has(+ .groupheader) {
	border-bottom-color: transparent;
}

li.layeritem {
	position: relative;
	background-color: var(--backgroundcolor);;
	width: calc(100% - 4px);
	min-height: 40px;
	padding-left: 3px;
	border-left: 1px solid var(--bordercolor);
	border: 1px solid var(--bordercolor);
	margin-top: -1px;
}

li.layeritem:first-child {
	margin-top: 0px;
}

li.layeritem.selected {
	padding-left: 0px;
	border-left: 4px solid #ff0000;
}

li.propertyitem:last-child,
li.layeritem:last-child {
	margin-bottom: 40px;
}

li.layeritem:not(.selected):hover {
	padding-left: 0px;
	border-left: 4px solid #ddd;
}

li.propertyitem > span,
li.layeritem > span {
	position: relative;
	display: inline-block;
	vertical-align: top;
}

li.layeritem > span.icon {
	width: 30px;
	height: 30px;
	margin-top: 5px;
	margin-left: 5px;
	margin-right: 15px;
	background-color: transparent;
}

li.layeritem > span.delete {
	width: 20px;
	height: 20px;
	margin-top: 10px;
	background-color: transparent;
	background-image: url('/images/icons/icon_cross.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

li.layeritem > span.info {
	width: calc(100% - 80px);
	margin-bottom: 2px;
}

li.layeritem > span.info > span:first-child {
	margin-top: 1px;
}

li.layeritem > span.info > span {
	position: relative;
	width: 100%;
	margin-bottom: 2px;
	display: block;
}

div.fullscreen > div.properties > div {
	position:relative;
	display: block;
	width: calc(100% - 30px);
	overflow-y: scroll;
	padding: 15px;
}

div.fullscreen > div.properties > div.valuesets {
	height: calc((100% - 60px) / 3.0 * 2.0);
	overflow-x: hidden;
	border-bottom: 1px solid var(--bordercolor);
}

div.fullscreen > div.properties > div.layers {
	height: calc((100% - 60px) / 3.0);
}

div.fullscreen > div.properties > div:first-child {
	margin-bottom: 20px;
}

span.info > span.fontinfo {
	font-size: 12px;
	color: #999;
	line-height: 14px;
}

ul.toolicons > li {
	position: relative;
}

ul.toolicons > li > span {
	position: relative;
	width: 30px;
	height: 30px;
}

.deletetools > ul.toolicons > li { margin-left: 10px; margin-top: 10px; }

.deletetools > ul.toolicons > li.gap { margin-top: 30px; }

.layertools > ul.toolicons > li { margin-left: 10px; margin-top: 10px; }

.layertools > ul.toolicons > li.gap { margin-top: 30px; }

.aligntools > ul.toolicons > li,
.previewtools > ul.toolicons > li { display: inline-block; margin-top: 10px; margin-left: 10px; }

.aligntools > ul.toolicons > li:last-child,
.previewtools > ul.toolicons > li:last-child { margin-right: 10px;}

.aligntools > ul.toolicons > li.gap { margin-left: 30px; }


ul.toolicons > li.disabled > span {
	opacity: 0.1;
}

.cardbuilder > .container > .margin {
	background-color: rgba(0,0,0,0.1);
}

li.propertyitem > span.propertyname {
	margin-top: 9px;
	margin-left: 10px;
	width: 150px;
}

li.propertyitem > span.value {
	margin-top: 6px;
	width: calc(100% - 170px);
	word-wrap: break-word;
	margin-bottom: 5px;
}

span.value > * {
	vertical-align: top;
}

span.value > select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	max-width: 100%;
	box-shadow: inset 0px 3px 3px rgba(0,0,0,.1); -moz-box-shadow: inset 0px 3px 3px rgba(0,0,0,.1); -webkit-box-shadow: inset 0px 3px 3px rgba(0,0,0,.1);
	border-color: var(--bordercolor);
	outline-color: var(--bordercolor);
	border-radius: 6px;
	height: 32px;
	line-height: 32px;
	padding: 2px 10px;
}

span.value > textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 0.8px solid var(--bordercolor);
	border-radius: 6px;
	padding: 0 7px;
	min-width: calc(100% - 14px);
	max-width: calc(100% - 14px);
	width: calc(100% - 14px);
	color: var(--textcolor);
	background-color: var(--backgroundcolor);
}

span.value > input[type='text'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: 28px;
	line-height: 28px;
	border: 0.8px solid var(--bordercolor);
	border-radius: 6px;
	padding: 0 7px;
	width: calc(100% - 14px);
	color: var(--textcolor);
	background-color: var(--backgroundcolor);
}

span.inkwell {
	width: 16px;
	height: 16px;
	position: relative;
	background-color: rgba(200, 0, 0, 0.4);
	border: 1px solid var(--bordercolor);
	border-radius: 11px;
}

span.value > span.inkwell {
	top: 5px;
	position: absolute;
	right: 5px;
}

ul.colortags {
	position: relative;
	width: calc(100% - 20px);
	margin-left: 10px;
	margin-top: 10px;
}

ul.colortags > li {
	display: inline-block;
	margin-right: 5px;
	margin-bottom: 5px;
}

ul.colortags > li > span.inkwell {
	position: relative;
}

ul.colortags > li > span.inkwell.selected {
	border-color: rgb(246, 177, 78);
	border-width: 2px;
}

span.value > input[type='range'] + input[type='text'] {
	margin-left: 10px;
	width: 75px;
	text-align: right;
}

span.value > * {
	vertical-align: top;
}

span.value > span {
	margin-left: 10px;
}

span.value > span:first-child {
	margin-left: 0px;
}

span.value > span:not(.inkwell) + input {
	margin-left: 10px;
}

span.value > span.dimension + input {
	text-align: right;
}

span.value > input + span.dimension {
	margin-left: 15px;
}

span.value > span.dimension {
	width: 15px;
	top: 3px;
	text-align: center;
}

span.value > label.switch {
	margin-top: -1px;
}


li.colortag {
	display: inline-block;
	position: relative;
	width: 30px;
	height: 30px;
}

div.colortools {
	position: absolute;
	bottom: 20px;
	left: 20px;
	width: 500px;
	height: 280px;
}

div.colorselector {
	position: absolute;
	overflow: hidden;
	bottom: 20px;
	left: 540px;
	width: calc(100% - 1060px);
	height: 280px;
}

div.colortools > *:not(.colortags) {
	float: left;
	width: 192px;
	margin-right: 20px;
}

div.colorselector > section {
	margin: 20px;
	width: calc(100% - 40px);
}

ul.swatches > li {
	width: 20px;
	height: 20px;
	background-color: #fff;
	border: 1px solid var(--bordercolor);
	float: left;
	margin-right: 5px;
	margin-bottom: 5px;
}

ul.swatches + ul.swatches {
	margin-top: 10px;
}

div.colortools:after { content: "."; display:block; clear:both; height:0; visibility:hidden; }

div.colortools > span.colorwheel {
	background-image: url('/images/ColorWheel.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	position: relative;
	margin-left: 20px;
	margin-top: 20px;
	width: 192px;
	height: 192px;
	margin-bottom: 20px;
}

div.colortools > ul.sliders > li {
	width: calc(100% - 20px);
}

div.colortools > ul.sliders > li > input[type='range'] {
	width: calc(100% - 20px);
	margin-left: 10px;
	margin-bottom: 15px;
}


span.displayflip { position: absolute; right: 30px; top: 20px; }

span.displayflip > span { background-image: url('/images/builder/icon_properties.imageset/icon_properties@3x.png'); }

span.savedoc { position: absolute; right: 30px; top: 20px; }

span.savedoc > span { background-image: url('/images/builder/icon_save.imageset/icon_save@3x.png'); }


input[name="zoom"] {
	/* position: absolute;
	left: 20px;
	bottom: 26px; */
	width: 200px;
	/* z-index: 5; */
}


div.marginlines > span.margin { position: absolute; background-color: #0000ff; }

div.gridlines > span.gridline { position: absolute; background-color: rgba(0,0,255,0.1); }

span.roundedbutton {
	width: 64px;
	height: 64px;
	background-color: var(--offwhite);
	border-radius: 32px;
}

span.roundedbutton > span {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	width: 32px;
	height: 32px;
	margin: 16px;
}

input[type='range'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-shadow: inset 0px 3px 3px rgba(0,0,0,.1); -moz-box-shadow: inset 0px 3px 3px rgba(0,0,0,.1); -webkit-box-shadow: inset 0px 3px 3px rgba(0,0,0,.1);
	height: 28px;
	width: 150px;
	line-height: 28px;
	border: 0.8px solid var(--bordercolor);
	border-radius: 14px;
	padding: 0 7px;
	background-color: var(--backgroundcolor);
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 14px;
	width: 14px;
	border-radius: 7px;
	border: 0.8px solid var(--bordercolor);
	background-color: white;
	box-shadow:0px 0px 3px rgba(0,0,0,.3); -moz-box-shadow:0px 0px 3px rgba(0,0,0,.3); -webkit-box-shadow:0px 0px 3px rgba(0,0,0,.3);
}


input[type="range"][name="color.red"]::-webkit-slider-thumb { background-color: red; }
input[type="range"][name="color.green"]::-webkit-slider-thumb { background-color: green; }
input[type="range"][name="color.blue"]::-webkit-slider-thumb { background-color: blue; }


div.magnet {
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: #fffcd0;
	border: 1px solid #000;
	background-image: url('/images/icons/icon_cross.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	z-index: 1;
	cursor: pointer;
}

div.magnet[data-location='topleft'] { top: -10px; left: -10px; }
div.magnet[data-location='topmiddle'] { top: -10px; left: calc(50% - 10px); }
div.magnet[data-location='topright'] { top: -10px; right: -10px; }

div.magnet[data-location='middleright'] { top: calc(50% - 10px); right: -10px; }
div.magnet[data-location='middleleft'] { top: calc(50% - 10px); left: -10px; }

div.magnet[data-location='bottomleft'] { bottom: -10px; left: -10px; }
div.magnet[data-location='bottomright'] { bottom: -10px; right: -10px; }
div.magnet[data-location='bottommiddle'] { bottom: -10px; left: calc(50% - 10px); }


span.imageselector {
	height: 200px;
	width: 100%;
	border: 0.8px solid var(--bordercolor);
	border-radius: 6px;
	background-position: center center;
	background-size: contain;
	background-repeat: no-repeat;
}