.gnewstateeditor { 
	padding: 1px; 
	overflow: hidden;
}

.gnewstateeditor.edit-mode .state-editor-main-container {
	width: 250px;
	height: 250px;
	background-color: rgba(0, 0, 0, 0.1);
	border: 2px solid gray;
}

.gnewstateeditor.edit-mode .state-editor-main-container p {
	text-align: center;
	font-style: italic;
	font-size: 2em;
	color: rgba(0, 0, 0, 0.6);
	margin-top: 80px;
}

.gnewstateeditor.edit-mode .ui-resizable-handle {
	display: none !important;
}

.gnewstateeditor .state-editor-main-container {
	width: 704px;
	height: 400px;
	border: 1px solid black;
	position: relative;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.gnewstateeditor .state-editor-main-container .ui-resizable-handle {
	position: absolute;
	bottom: -3px;
	right: -3px;
}

.gnewstateeditor .state-editor-main-container .ui-resizable-handle:hover {
	cursor: se-resize;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox {
	background-color: rgba(0, 0, 0, 0.05);
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool {
	width: 40px;
	margin-left: 4px;
	margin-bottom: 5px;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-radius: 5px;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool img {
	opacity: 0.85;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool.selected {
	background-color: rgba(0, 0, 0, 0.08);
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool.selected img {}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool:hover {
	background-color: rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool:hover img,
.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool.selected img {
	opacity: 1;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox .state-editor-tool:active {
	background-color: rgba(0, 0, 0, 0.2);
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox-top {
	height: 50px;
	width: 100%;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox-top .state-editor-tool {
	float: left;
	position: relative;
	top: 4px;
}

.gnewstateeditor .state-editor-main-container .state-editor-toolbox-left {
	height: calc(100% - 50px);
	width: 50px;
	float: left;
}

.gnewstateeditor .state-editor-main-container .state-editor-canvas {
	height: calc(100% - 51px);
	width: calc(100% - 51px);
	float: left;
	border-top: 1px solid black;
	border-left: 1px solid black;
	background-size: 15px 15px;
    background-image: linear-gradient(to right, rgba(30, 144, 255, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(30, 144, 255, 0.1) 1px, transparent 1px);
    position: relative;
    overflow: hidden;
}

.gnewstateeditor .state-editor-main-container .state-editor-canvas svg {
	width: 100%;
	height: 100%;
}

.gnewstateeditor .state-editor-main-container .state-editor-canvas .arrow {
    stroke: #000000;
    stroke-width: 2;
    marker-end: url(#arrow);
}

.resizable-helper {
	border-right: 1px dashed rgb(150, 150, 150);
	border-bottom: 1px dashed rgb(150, 150, 150);
}

.gnewstateeditor .state-editor-main-container .state-editor-canvas .connector-label,
.gnewstateeditor .state-editor-main-container .state-editor-canvas .activity-label {
	border: 1px solid rgba(0, 0, 0, 0.2);
	padding: 2px 4px;
	padding-bottom: 1px;
	border-radius: 5px;
	background-color: #FFF8DC;
	margin-bottom: 20px !important;
}

.gnewstateeditor .state-editor-main-container .state-editor-canvas .state-editor-activity::after {
	content: attr(data-label) '';
	white-space: nowrap;
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translate(-50%, 20px);
}

@keyframes scale {
    25% {
        transform: scale(1.25);
    }
    
    50% {
        transform: scale(1.5);
    }
    
    75% {
        transform: scale(1.25);
    }
    
        75% {
        transform: scale(1);
    }
}

.gnewstateeditor .state-editor-main-container .state-editor-activity {
	animation: scale 0.2s ease-in-out;
	opacity: 0.85;
	text-align: center;
	height: 54px;
	width: 54px;
	margin-bottom: 20px;
}

.gnewstateeditor .state-editor-main-container .state-editor-activity img {
	position: relative;
	top: 4px;
}

.gnewstateeditor .state-editor-main-container .state-editor-activity:hover {
	cursor: pointer;
	opacity: 1;
	background-image: url('icons/selector.png');
	background-repeat: no-repeat;
	background-position: center center;
}