
canvas
{
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #dddddd;
}

h1
{
    color: #3377aa;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family:sans-serif;
}

h2
{
    color: #4488bb;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family:sans-serif;
}

h3
{
    color: #4488bb;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family:sans-serif;
}

h4
{
    color: #5599cc;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 3px;
    font-family:sans-serif;
}

h5
{
    color: #3377aa;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 3px;
    font-family:sans-serif;
}

.section_style
{
    font-size: 1.25em;
    color: #4488bb;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family:sans-serif;
    display: block;
    width: 100%;
}
.chapter_style_toc
{
    font-size: 1.25em;
    color: #5599cc;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
    font-family:sans-serif;
    display: block;
    width: 100%;
}
.section_style_toc
{
    font-size: 1.00em;
    color: #4488bb;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
    font-family:sans-serif;
    display: block;
    width: 100%;
}
.history_version
{
    color: #5599cc;
    font-weight: bold;
}

.copyright_style
{
    color: #5599cc;
    font-weight: bold;
    font-family:sans-serif;
	float: left;
}

.forum_style
{
    color: #66aadd;
    font-weight: bold;
    font-family:sans-serif;
    border-style: solid;
    border-color: #88ccff;
    border-width: 2px;
    border-radius: 4px;
	float: right;
}

/* If you want to change margin-left and margin-right, make
   sure to alter the factor 0.8 in the function
   SamIllustration3DObj.prototype.fResizeCanvas = function() 
   as well.
*/
body
{
    margin-left:0%;
    margin-right:0%;
}

a:link
{color: #4488bb; text-decoration: none;}
a:visited
{color: #226699; text-decoration: none;}
a:link:hover
{text-decoration: underline;}

.center
{
    text-align: center;
}

table.center
{
    margin-left:auto;
    margin-right:auto;
}

.float_right_canvas_div
{
    float: right;
    padding-left: 8px;
    padding-bottom: 8px;
    padding-top: 8px;
}

.popup_ii_box
{
    border-style: solid;
    border-color: #f0f0f0;
    border-width: 1px;
    background-color:#f8f8f8;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
    margin-left:0%;
    margin-right:0%;
}

.figurediv
{
    margin-top:10px;
    margin-bottom:10px;
}

.ii_caption_font
{
    color: #4488bb;
    font-weight: bold;
    font-size: 95%;
    font-family:sans-serif;
}

.ii_longest_caption_font
{
    color: #f3f3f3;
    font-weight: bold;
    font-size: 95%;
    font-family:sans-serif;
}

.hidden
{
    visibility: hidden;
}

.ii_caption_box_container
{
    position:relative;
    border-style: solid;
    border-color: #e3e3e3;
    border-width: 1px;
    background-color:#f3f3f3;
    margin-top: 2px;
    z-index:    1;
}

.ii_caption_box_regular
{
    position:absolute;
    top:0px;
    left:0px;
    border:none;
    background-color:#f3f3f3;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
    z-index:    2;
}

.ii_longest_caption_box
{
    border:none;
    color:#f3f3f3;
    background-color:#f3f3f3;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.ii_caption_box
{
    border-style: solid;
    border-color: #e3e3e3;
    border-width: 1px;
    background-color:#f3f3f3;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.svg_ontop_equation___container
{
    position:relative;
    border:none;
}

.svg_ontop_equation___equation
{
    position:absolute;
    border:none;
}


.svg_ontop_equation___svg
{
    position:absolute;
    margin-left:auto;
    margin-right:auto;
    border:none;
}

.svg_ontop_equation___hidden_equation
{
    border:none;
}



.proof_font
{
    color: #4488bb;
    font-weight: bold;
    font-size: 90%;
    font-family:sans-serif;
}

.preferences_font
{
    color: #4488bb;
    font-weight: bold;
    font-size: 90%;
    font-family:sans-serif;
    text-align: right;
}

.example_font
{
    color: #4488bb;
    font-weight: bold;
    font-size: 94%;
    font-family:sans-serif;
}

.example_font_darker
{
    color: #4488bb;
    font-weight: bold;
    font-size: 94%;
    font-family:sans-serif;
}

.definition_font
{
    color: #4488bb;
    font-weight: bold;
    font-size: 94%;
    font-family:sans-serif;
}
.definition_font_darker
{
    color: #3377aa;
    font-weight: bold;
    font-size: 95%;
    font-family:sans-serif;
}

.definition_box
{
    margin-top: 0px;
    margin-bottom: 5px;
    border-style: solid;
    border-color: #d3d3d7;
    border-width: 3px;
    background-color:#f0f0f7;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    border-radius: 10px;
    overflow: auto;
}

.example_box
{
    margin-top: 0px;
    margin-bottom: 5px;
    border-style: solid;
    border-color: #d3d7d7;
    border-width: 3px;
    background-color:#f3ffff;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    overflow: auto;
}

.hr_proof
{
    background-color:#cccccc;
    border-width:0;
    color:#00ff00;
    height:1px;
    line-height:0;
    margin:2px 0px 5px 0px;
    page-break-after:always;
    width:100%;
}

.hr_example
{
    background-color:#ccccff;
    border-width:0;
    color:#00ff00;
    height:1px;
    line-height:0;
    margin:2px 0px 5px 0px;
    page-break-after:always;
    width:100%;
}

.hr_big_shadow
{
    border-color: #000000;
    margin:0 0 0 0;
    padding:0;
    border:0;
    outline:0;
    overflow:hidden;
    height:8px;
}

.hr_big_shadow:after
{
    content:"";
    margin:0 auto;
    position:relative;
    top:-35px;
    display:block;
    width:95%;
    height:12px;
    box-shadow:0px 25px 10px #aaa;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    border-radius:50%;
}

.hr_small_shadow
{
    margin:0 0 0 0;
    padding:0;
    border:0;
    outline:0;
    overflow:hidden;
    height:4px;
}

.hr_small_shadow:after
{
    content:"";
    margin:0 auto;
    position:relative;
    top:-29px;
    display:block;
    width:95%;
    height:6px;
    box-shadow:0px 25px 5px #aaa;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    border-radius:50%;
}

.equations_start
{
    position:relative;
}

.equations_each
{
    position:absolute;
    left:0px;
    top:-500px;
}

.loadscreen
{
    opacity:    1.0;
    background: rgba(255,255,255,0.0);
    width:      100%;
    height:     auto;
    z-index:    998;
    top:        0;
    left:       0;
    position:   fixed;
    color: #228822;
    font-weight: bold;
    font-size: 150%;
    font-family:sans-serif;
}

.center_load_screen
{
    position:    relative;
    margin:0     auto;
    z-index:     999;
    color:       #115588;
    font-weight: bold;
    font-family: sans-serif;
    top: 45%;
}

.jastooltip
{
   background-color:#F0F0F0;
   cursor: help; text-decoration: none;
   position: relative;
}

.jastooltip > iframe
{
   margin-left: -999em;
   position: absolute;
}

.jastooltip:hover > iframe
{
   position: absolute; left: -5em; top: 2em; z-index: 99;
   margin-left: 0; width: 250px;
   border: double;
   background-color: white;
}

.jastooltip:hover
{
   background-color: yellow;
}

/* ================ some stuff for menus ====================*/
 .mymenubutton {
    font-family:sans-serif;
    font-size:1.0em;
    font-weight:bold;
    font-style:normal;
    width:200px;
    text-align:center;
    text-shadow:4px 4px 4px #287ace;
}
.roundmenubutton {
    font-family:sans-serif;
    font-size:15px;
    font-weight:bold;
    font-style:normal;
    width:64px;
    height:64px;
    text-align:center;
    text-shadow:4px 4px 4px #303030;
    -moz-border-radius: 32px;
    -webkit-border-radius: 32px;
    border-radius: 32px;
}
.menu_class
{
    background:transparent #ffffff no-repeat scroll 0px 0px;
    left:5px;
    position:fixed;
    top:0px;
        opacity:0.5;
    /* Firefox */
    -moz-transition-property: opacity;
    -moz-transition-duration: 0.5s;
    -moz-transition-delay: 0s;
    /* WebKit */
    -webkit-transition-property: opacity;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-delay: 0s;
    /* Opera */
    -o-transition-property: opacity;
    -o-transition-duration: 0.5s;
    -o-transition-delay: 0s;
    /* Standard */
    transition-property: opacity;
    transition-duration: 0.5s;
    transition-delay: 0s;
    z-index:    100;
}
.menu_class:hover
{
    opacity:1.0;
}
/* ================ end stuff for menus ====================*/

/* two class used to try to fix the problem with changing sizes on text etc in iOS */
/*  read about problems here: http://css-tricks.com/forums/topic/issue-with-jquery-slidetoggle-display-none/ */
/* the solution might be to change the class instead -- see samToggleClass() also */
.class_section_div_hidden
{
    /*
    display: none;
    overflow: hidden;
    */
    /** testing **/
    display: block; visibility: hidden;
    height: 0; overflow: hidden;
    padding: 0; margin: 0; border: none;
}

.class_section_div_visible
{
    /*display: '';*/
    overflow: hidden;
}
.popupterm_class
{
    color:       #000000;
}