/*
Copyright 2019 The TensorNetwork Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.app {
	display: flex;
	flex-direction: row;
	font: normal 15px sans-serif;
}

svg.workspace {
	float: left;
}

.app > .workspace {
    position: absolute;
}

svg.workspace .drag-selector {
	stroke: #fff;
	stroke-width: 2;
	fill: rgba(200, 200, 200, 0.5);
}

svg.grid {
    background-color: #f9f9f9;
}

.controls {
	position: absolute;
}

.controls a {
    padding: 5px;
}

.checkbox-holder {
	padding: 10px;
}

.checkbox-holder label {
	padding: 0;
}

svg text {
	user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
}

.toolbar {
	width: 300px;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2);
}

section {
	padding: 10px 20px;
	border-bottom: 1px solid #ddd;
}

.tensor-editor .svg-container {
	height: 200px;
}

.tensor-editor .workspace {
    background-color: #f9f9f9;
}

.delete {
	text-align: right;
	float: right;
	color: darkred;
}

.button-holder {
	padding: 20px 0;
}

.code-output {
	position: absolute;
	top: 620px;
	width: 800px;
	padding: 10px;
}

@keyframes flash {
	from {opacity: 0;}
	to {opacity: 1;}
}

.code-output code.copied {
	animation-name: flash;
	animation-duration: 200ms;
}

.code-output #copy-button {
	float: right;
}

pre {
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-spaces;
}

label {
	padding: 10px;
}

.help-window {
	position: absolute;
	top: 150px;
	left: 250px;
	width: 400px;
	padding: 10px 10px 10px 20px;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2);
}

.help-window li {
	padding: 5px;
}