div#text_output_window {
    position: absolute;
    top: auto;
    width: 48.75%;
    right: 0.5%;
    left: auto;
    min-width: 36em;
    height: 20%;
    min-height: 6em;
    bottom: 0.5em;
    font-size: 1em;
}
div#mdanim_output_window {
    position: absolute;
    width: 48.75%;
    left: 0.5%;
    right: auto;
    font-size: 1em;
    top: 3em;
    bottom: 0.5em;
}
div#control_panel {
    position: absolute;
    bottom: auto;
    top: 2.0em;
    right: 0.5%;
    width: 48.75%;
    min-width: 22em;
    height: 12em;
    left: auto;
    font-size: 1.25em;
}
div#e_window {
    position: absolute;
    bottom: 0.5em;
    top: auto;
    right: 0.5%;
    width: 48.75%;
    left: auto;
    min-height: 4em;
    height: calc(96% - 18em);
}
@media screen and (max-width: 67em) {
    div#text_output_window {
	font-size: 0.75em;
    }
    div#mdanim_output_window {
	top:4em;
	font-size: 0.75em;
    }
    div#control_panel {
	top: 2.5em;
	font-size: 1.2em;
    }
    div#e_window {
	height: calc(96% - 17.9em);
    }
}
@media screen and (max-width: 53em) {
    div#text_output_window {
	font-size: 0.5em;
    }
    div#mdanim_output_window {
	top: 6em;
	font-size: 0.5em;
    }
    div#control_panel {
	top: 3.33em;
	font-size: 0.9em;
    }
    div#e_window {
	height: calc(96% - 14.3em);
    }
}
div#tilt {
    position: absolute;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 5em;
    background-color: #000000;
    color: #FF0000;
    z-index:1000000;
}
div#tilt div {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    left: 0;
    right: 0;
}
@media screen and (max-width: 46em) {
    div#control_panel {
	top: 4em;
	font-size: 0.75em;
    }
    div#e_window {
	height: calc(96% - 12.5em);
    }
}
@media screen and (max-width: 41em) and (orientation: portrait) {
    div#tilt {
	display: block;
    }
}
@media screen and (max-width: 41em) and (orientation: landscape) {
    div#mdanim_output_window {
	top: 4.2em;
    }
    div#control_panel {
	top: 3.5em;
	font-size: 0.6em;
    }
    div#e_window {
	height: calc(96% - 9.5em);
    }
}
@media screen and (max-width: 20em) and (orientation: landscape) {
    div#control_panel,
    div#mdanim_output_window {
	top: 3em;
    }
    div#e_window {
	height: calc(96% - 9.5em);
    }
}
div#text_output {
    overflow: auto;
    min-height: 200em;
}
div#mdanim {
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
}
canvas#mdanimcanvas {
    position: absolute;
}
canvas#e_window_container_canvas {
    background-color: #F2F2F2;
}
