html, body {
    margin: 0;
    padding: 0;
    background-color: #E5E5E5;
    font-family: helvetica, sans-serif;
}

h1, h2, h3 {
    color: #333399;
}

.background_working {
    cursor: wait !important;
}

a {
	color: #13214e;
	font-weight: bold;
	text-decoration: none;
	}
/*************************************************************************************************************** Menu */
/*
header {
    margin: 0;
    padding: 10px 0;
    width: 100%;
    height: 20px;
    background-color: #E2E2E4;
    text-align: center;
    vertical-align: center;
}

header .menu-container ul.menu {
    margin: 0;
    padding: 0;
}

header .menu-container ul.menu hr {
    border: 0;
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 1), #3B87C8, #3B87C8, rgba(255, 255, 255, 1));
    margin: 0;
    padding: 0 10px;
}

header .menu-container ul.menu li {
    display: inline-block;
    margin: 0 10px;
}

header .menu-container ul.menu li a {
    font-size: 20px;
    color: #3e3e3e;
    text-decoration: none;
}

header .menu-container ul.menu li .sub-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 180px;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 20;
}

header .menu-container ul.menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

header .menu-container ul.menu li:hover .sub-menu ul {
    width: 100%;
    margin: 5px 0;
    padding: 0;
}

header .menu-container ul.menu li .sub-menu ul li {
    background-color: #ffffff;
    margin: 0;
    padding: 5px 10px;
    text-align: left;
    width: 100%;
}

header .menu-container ul.menu li .sub-menu ul li:first-child a {
    padding-top: 10px;
}

header .menu-container ul.menu li .sub-menu ul li:last-child a {
    padding-bottom: 10px;
}

header .menu-container ul.menu li .sub-menu ul li a {
    width: 100%;
    margin: 0;
    line-height: 1.375;
    font-weight: 300;
    font-size: 15px;
    color: #333333;
    display: block;
}

header .menu-container ul.menu li .sub-menu ul li a:hover {
    color: #285f8f;
}*/

/************************************************************************/

noscript, #errorMsgContainer {
    border: 2px solid red;
    display: block;
    color: red;
    padding: 30px 30px;
    margin: 0 auto 20px auto;
    font-size: 20px;
}

#errorMsgContainer {
    display: none;
}

#busy {
    color: red;
    font-size: 18px;
    display: inline-block;
    margin: 10px 15px;
    position: fixed;
}

#fileExplorer {
    display: none;
}

#footer {
    margin: 5px auto;
    text-align: left;
    padding: 0;
    width: 1080px;
    color: #666;
 	border-top:1px solid #CECECE;
	
	font-size:0.8em;
    line-height:1em;
}

#documentation {
    margin: 15px auto;
    text-align: left;
    padding: 5px 5px 5px 35px;
    width: 1040px;
    
 	border:1px solid #CECECE;
	background-color: #F9F9F9;
	
	-webkit-box-shadow: #B3B3B3 4px 4px 4px;
	-moz-box-shadow: #B3B3B3 4px 4px 4px;
	 box-shadow: #B3B3B3 4px 4px 4px;
	 font-size:1em; line-height:1.35em
}

#main {
    margin: 15px auto;
    text-align: center;
    padding: 0px 0px;
    width: 1080px;
    
	border:1px solid #CECECE;
	background-color: #F9F9F9;
	
	-webkit-box-shadow: #B3B3B3 4px 4px 4px;
	-moz-box-shadow: #B3B3B3 4px 4px 4px;
	 box-shadow: #B3B3B3 4px 4px 4px;
}

#main #options {
    text-align: center;
    margin: 20px auto 30px auto;
    width: 1030px;
}

#main #options tr td {
    vertical-align: top;
    margin: 0;
    padding: 2px;
    width: 33%;
}
#algorithmOptionsSection {
    width:auto;
    //display:none;
}

#BlockOptionsContainer tr td:first-child{
    text-align: center;
}

#BlockOptionsContainer tr td:last-child{
    text-align: left;
}
#BlockOptionsContainer input{
    margin-right: 10px;
    max-width: 110px;
}

#DemoManagerOptions {
    margin: 5px auto;
    text-align: center;
}
#DemoManagerOptions button{
    margin: 5px 5px;
}

#main #options Button.loadImage {
    width: 80%;
    margin-bottom:10px;
}

#main #options #export {
    margin-top: 15px;
}

#main fieldset {
    display: inline-block;
    float: left;
    margin: 0;
    padding: 20px 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

#log {
    display: none;
    padding: 10px 10px;
    font-family: Helvetica, serif;
    font-size: 14px;
    width: 450px;
    height: 80px;
    border: 1px solid black;
    margin: 20px 20px;
    overflow: auto;
    resize: both;
}

#log span {
    display: block;
}

#animationSteps{
    width:60px;
}

/**********************************************************************************************************************/

Button, a.button{
    display: inline-block;
    color: #e9e9e9;
	border: solid 1px #333;
	background: #333;
	background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));
	background: -moz-linear-gradient(top,  #666,  #000);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    padding: 5px 25px;
    text-decoration: none;
    border: none;
    outline: none;
}

Button:hover, a:hover {
	background: #000;
	background: -webkit-gradient(linear, left top, left bottom, from(#333), to(#000));
	background: -moz-linear-gradient(top,  #333,  #000);
	filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#000000');
   color: #e7e7e7;

    text-decoration: none;
    cursor: pointer;
}

Button:active, a.button:active {
    background: #333;
}

Button:disabled, a.button:disabled {
    background: #a1b1bf;
    cursor: not-allowed;
}

#playAnimation {
    padding: 4px 15px;
}

#animationBlock {
    display: none;
}

#imageChooser {
    display: none;
    vertical-align: center;

    z-index: 5;
    background-color: #f5f5f5;
    box-shadow: black 0 0 55px 0;
    padding: 20px 20px;
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);

    max-height: 70%;
    max-width: 800px;
    min-width: 550px;

    overflow-y: scroll;
}
#imageChooser #imagesContainer {
    padding:0;
    margin:0;
}
#imageChooser #imagesContainer div{
    display: inline-block;
    margin: 10px 10px;
    width: 100px;
}
#imageChooser #imagesContainer img{
    width: 100px;
    height: 100px;
    cursor: pointer;
}
#imageChooser #imagesContainer img:hover{
    box-shadow: 0 0 2px 2px #3cb0fd;
}

#imageChooser #imagesContainer span{
    white-space: nowrap;
    width: 100px;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
}

#imageOptionPopup {
    z-index: 5;
    background-color: #f5f5f5;
    box-shadow: black 0 0 55px 0;
    padding: 20px 20px;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#imageOptionPopup div {
    margin: 30px auto 10px auto;
    text-align: center;
}

