* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body{
	background-color: #269CCB; /*https://cdn-images-1.medium.com/max/1600/1*CvLX_AgoEJ6RdxqTbxlDlw.png*/
}
#loading{
	position: fixed;
	z-index: 5000;
	margin: 1em auto auto auto;
	padding: 2em 1em;
	left: calc(50% - 200px);

	text-align: center;
	border: 2px solid black;
	background-color: #455A64;
	color: white;
	width: 400px;

}
.canvaswrapper{
	position: relative;
	width: 50%;
	/* height: 782px; */
}
.canvaswrapper video, .canvaswrapper canvas#c0, .canvaswrapper canvas#c1{
	/* border: 1px solid black; */
	cursor: default !important ;
	/* max-width: 100%;
	max-height: 100%; */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
#rightside{
	border: 1px solid green;
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
}
#c0{
	z-index: 250;
}
#c1{
	z-index: 500;
}
#overlay{
	z-index: 1000;
	position: absolute;
	top:0;
	left: 0;
	/* max-width: 100%; */
}
#overlay > *{
	font-size: 1em;
}
.hidden{
	display: none !important;
}
button#inp_prev.hidden, button#inp_next.hidden{
	display: inline-block !important;
	visibility: hidden;
}
.clear{
	clear: both;
}
#panels{
	position: relative;
}
#panels div, #panels button{
	position: absolute;
}
#panels, .panel{
	top: 0;
	left: 0;
	width: 100%;
}
#energydiagram{
	background-color: white;
	z-index: 50;
	width: 260px;
	border: 1px solid grey;
	opacity: 0.7;
	transform-origin: 0% 0%; /* For responsive */
}
#energydiagram #eaxis{
	top: 0;
	left: 0;
	position: relative;
}
#energydiagram .cell{
	height: 50px;
	width: 50px;
	border: 3px dashed black;
}
#energydiagram .cell.clicked{
	background-color: #FDFA72 !important;
}
#energydiagram .cell .arrow{
	font-size: 45px;
	line-height: 43px;
	left: 4px;
	top: 0px;
	z-index: 100;
	pointer-events: none;

	/* transition: all 1s ease-in-out; */
}
#energydiagram button{
	min-height: 2em;
}
#energydiagram .cell .arrow:nth-child(2){
	transform: rotate(180deg);
	top: 5px;
	left: 25px;
}
#energydiagram .label{
	height: 50px;
	width: 50px;
	font-size: 25px;
	line-height: 50px;
	padding-left: 4px;
}
#energydiagram #labelS{
	left: 100px;
	top: 250px;
}
#energydiagram #labelP{
	left: 200px;
	top: 50px;
}
#energydiagram #labelHyb{
	left: 200px;
	top: 120px;
}
#energydiagram #inp_antw{
	position: absolute;
	bottom: 0;
	right: 0;
	font-size: 1em;
}
#vis3d img{
	position: absolute;
	opacity: 0;
	transition: all 2s ease-in-out;
	right: 0;
	top: 0;
}
#bottom{
	background-color: #8BCE77;
	font-size: 24px;
	width: 100%;
	text-align: center;
}

/* The Modal (background) */
.modal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2500; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 1500px) {
	#energydiagram{
		transform: scale(0.7, 0.7);
	}
}
@media only screen and (max-width: 1000px) {
	#energydiagram{
		transform: scale(0.6, 0.6);
	}
	#bottom{
		font-size: 16px;
	}
}
@media only screen and (max-width: 700px) {
	#energydiagram{
		transform: scale(0.4, 0.4);
	}
}
