/*
 * JSTMSimulator - A Turing Machine simulator written in JavaScript.
 * Copyright (C) 2016 VittGam.net. All Rights Reserved.
 * https://www.turingsimulator.net/
 *
 * See https://www.turingsimulator.net/github for source code.
 *
 * Please see the attached LICENSE file for licensing information.
 */html,body{margin:0;padding:0}body{font:15px arial,sans-serif;background:#0d1117}body.displayresults{margin:8px;background:white}h1{margin-top:0}#main,#tape #tapebg{background-image:url(jstmsimulator.gif);background-repeat:no-repeat}#main{position:relative;background-color:#0d1117;background-position:-720px 0;width:950px;height:574px;margin:8px auto;overflow:hidden;font-size:16px;font-family:"monospace",monospace;cursor:default;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}body.displayresults #main{border:10px solid #0d1117;border-radius:10px}#state{position:absolute;left:0;top:186px;width:684px;height:32px;margin:0 auto;text-align:center;font-size:32px;font-weight:bold;white-space:nowrap;z-index:1}#code{position:absolute;z-index:4;left:720px;top:0;font-size:13px;line-height:16px;width:226px;height:568px;overflow:scroll;white-space:pre;word-wrap:normal;resize:none;padding:2px;border:0}#username{position:absolute;z-index:4;left:720px;top:0;width:226px;height:16px;font:13px arial,sans-serif;line-height:16px;color:white;white-space:nowrap;text-align:center;font-weight:bold;text-shadow:black 0 0 6px;display:none}body.loadmode.savemode #username{display:block}#status{position:absolute;z-index:3;left:0;top:507px;width:716px;height:16px;line-height:16px;text-align:right;color:white;white-space:nowrap;font:13px arial,sans-serif;font-weight:bold;text-shadow:black 0 0 6px}#status a{color:white;text-decoration:none}#status a:hover,#status a:focus{text-decoration:underline}#progs{display:none;position:absolute;z-index:4;left:720px;top:526px;width:230px;height:24px;cursor:default}#loadbtn{display:none;position:absolute;z-index:4;left:720px;top:550px;width:230px;height:24px}#savebtn{display:none;position:absolute;z-index:4;left:835px;top:550px;width:115px;height:24px}body.loadmode #code{height:520px}body.loadmode.savemode #code{top:18px;height:502px}body.loadmode #progs,body.loadmode #loadbtn,body.loadmode.savemode #savebtn{display:block}body.loadmode.savemode #loadbtn{width:115px}#startbtn{position:absolute;z-index:4;left:240px;top:526px;width:240px;height:24px}#stopbtn{position:absolute;z-index:4;left:480px;top:526px;width:240px;height:24px}#speedlbl{position:absolute;z-index:4;left:0;top:528px;width:70px;height:18px;color:white;font:18px arial,sans-serif}#speed{position:absolute;z-index:4;left:70px;top:526px;width:170px;height:24px;cursor:default}#input{position:absolute;z-index:4;left:0;top:551px;width:716px;height:16px}#tape{position:absolute;z-index:2;left:0;top:314px;width:720px;height:209px;overflow:hidden}#tape #tapebg{background-position:0 0;position:absolute;z-index:1;left:0;top:0;width:720px;height:627px}#tape.anim1 #tapebg{top:-418px}#tape.anim2 #tapebg{top:-209px}#tape span{position:absolute;font-weight:bold;width:10px;height:16px;z-index:2}#tape.anim1 span{margin-left:1px}#tape.anim2 span{margin-left:-6px;margin-top:-1px}#tape.movedleft span#cell16,#tape.movedright span#cell14{color:green}#tape span#cell0{left:156px;top:35px}#tape span#cell1{left:167px;top:36px}#tape span#cell2{left:181px;top:35px}#tape span#cell3{left:194px;top:35px}#tape span#cell4{left:208px;top:35px}#tape span#cell5{left:220px;top:35px}#tape span#cell6{left:232px;top:34px}#tape span#cell7{left:245px;top:34px}#tape span#cell8{left:259px;top:34px}#tape span#cell9{left:273px;top:34px}#tape span#cell10{left:288px;top:33px}#tape span#cell11{left:303px;top:32px}#tape span#cell12{left:318px;top:32px}#tape span#cell13{left:333px;top:32px}#tape span#cell14{left:347px;top:31px}#tape span#cell15{left:362px;top:31px;color:red}#tape span#cell16{left:376px;top:30px}#tape span#cell17{left:390px;top:30px}#tape span#cell18{left:404px;top:29px}#tape span#cell19{left:418px;top:29px}#tape span#cell20{left:433px;top:29px}#tape span#cell21{left:449px;top:29px}#tape span#cell22{left:465px;top:29px}#tape span#cell23{left:479px;top:28px}#tape span#cell24{left:493px;top:28px}#tape span#cell25{left:507px;top:28px}#tape span#cell26{left:519px;top:27px}#tape span#cell27{left:532px;top:27px}#tape span#cell28{left:546px;top:26px}#tape span#cell29{left:560px;top:27px}#tape span#cell30{left:576px;top:28px}#moveleft{position:absolute;left:78px;top:326px;width:64px;height:64px;z-index:4}#moveright{position:absolute;left:587px;top:329px;width:64px;height:64px;z-index:4}body.displayresults #results td.codecell{font-family:"monospace",monospace;white-space:pre}#noscript-alert{color:red;font-size:40px;font-weight:bold;text-align:center;margin:20px auto;padding:20px;width:910px;border:4px dashed red;border-radius:20px}#fork-me-on-github{width:150px;height:150px;position:absolute;overflow:hidden;top:0;right:0;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;z-index:0}body.loadmode.savemode #fork-me-on-github{display:none}#fork-me-on-github div{position:absolute;padding:2px 0;background-color:#a00;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,0.00)),to(rgba(0,0,0,0.15)));background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.00),rgba(0,0,0,0.15));background-image:-moz-linear-gradient(top,rgba(0,0,0,0.00),rgba(0,0,0,0.15));background-image:-o-linear-gradient(top,rgba(0,0,0,0.00),rgba(0,0,0,0.15));background-image:-ms-linear-gradient(top,rgba(0,0,0,0.00),rgba(0,0,0,0.15));background-image:linear-gradient(top,rgba(0,0,0,0.00),rgba(0,0,0,0.15));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#000000',EndColorStr='#000000');-webkit-box-shadow:0 2px 3px 0 rgba(0,0,0,0.5);box-shadow:0 2px 3px 0 rgba(0,0,0,0.5);z-index:9999;top:42px;right:-43px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}#fork-me-on-github div a{font-family:arial,sans-serif;font-size:13px;font-weight:700;color:white;text-decoration:none;text-shadow:0 -1px rgba(0,0,0,0.5);text-align:center;width:200px;line-height:20px;display:inline-block;padding:2px 0;border-width:1px 0;border-style:dotted;border-color:rgba(255,255,255,0.7)}