root { 
    display: block;
}

html, body, #wrapper {
    height: 100%;
}

#wrapper {
    width: 90%;
    margin: 0 auto;
}

#main {
    min-height: 100%;
    /* background-color: #ccff04; page specific */
}

#contentWrapper {
    padding-bottom: 50px;
}

#footer {
    text-align: center;
    height: 50px;
    margin-top: -50px;
}

h1 {
    font-family: 'Finger Paint', cursive;
    font-size: 48px;
    text-align: center
}

.header_div {
    /*background-color: #FFDD0B; --> moved to main */
    min-height: 150px;
    overflow: hidden;
    margin: 0px auto;
    padding-top: 10px;
    /*width: 90%; */ /* --> moved to wrapper */
    /*display: table-cell;*/
    vertical-align: middle
}

#options_header {
    clear: both;
    margin: 0px auto;
    padding: 0px;
    overflow: hidden; /* has great effect on block height!!!*/
    background-color: #11DDFF;
    /*width: 90%; */ /* --> moved to wrapper */
    min-height: 100px;
}

#option_box_container {
    clear: both;
    /* margin: 0px auto; */
    margin-left: 20px;
    margin-right: 20px;
    padding: 0px;
    overflow: hidden; /* has great effect on block height!!!*/
    /*width: 960px; */      /*ot_box(280) + tn_box(285) + tl_box(320) + 3*20 + 15 (right shadow border) = 960 */
}

.option_box_class {
    float: left;
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0px;
    background-color: #0fb9ff;
    min-height: 100px;
    border-radius: 10px;
    box-shadow: hsla(221, 97%, 30%, 0.8) 5px 5px 10px;
}

#ot_box {
    width: 280px;
}
#ot_box_tt1 {
    width: 150px;
}

#tn_box {
    width: 285px;
}

#tl_box {
    width: 320px;
}

#content {
    margin: 0px auto;
    overflow: hidden;
}

#math_target1 {
    clear: both;
    /*margin: 0px auto;*/  /* for centered horizontal alignment */
    margin-left: 100px;
    padding: 0px;
    width: 1000px;
}

#action_button_row {
    clear: both;
    margin: 0px auto;
    padding: 0px;
    overflow: hidden; /* has great effect on block height!!!*/
    background-color: #11DDFF;
}

#action_box_container {
    /*clear: both;*/
    float: left;
    margin: 0px auto;
    margin-left: 100px;
    padding: 0px;
    overflow: hidden; /* has great effect on block height!!!*/
    width: 500px;      /*new_task_box(???) + result_box(???) + 15 (right shadow border) = ??? */
    min-height: 85px;
}

.action_box_class {
    float: left;
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0px;
    background-color: #0fb9ff;
    min-height: 100px;
    border-radius: 10px;
    box-shadow: hsla(221, 97%, 30%, 0.8) 5px 5px 10px;
}

.action_button_class{
    float: left;
    font-family: 'Finger Paint', cursive;
    font-size: 24px;
    text-align: center;
    background-color: #0fb9ff;
    color: #023197;
    width: 160px;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 10px;
    border-color: #11DDFF;
    box-shadow: hsla(221, 97%, 30%, 0.8) 5px 5px 10px;    
}

#check_result_button {
    float: right;
}

#button_div {
    clear:both;
    margin: 0px auto;               /* for horizontal center alignment */
    /*width: 90%; */ /* --> moved to wrapper */
    background-color: #11DDFF;
}
.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

.start_math_cell {
    clear: both;
    float: left;
}

.math_cell {
    float: left;
}

.grid_cell {
    overflow: hidden;
    font-family: Helvetica, sans-serif;
    text-align: center;
    font-size: 20px;
    min-width: 25px;
    background-color: #FCFCFC;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}

.grid_cell_border{
    min-height: 36px;
    line-height: 35px;
    border: 1px solid #c0c0c0;
}
.last_arg_line_border {
    min-height: 35px;
    line-height: 34px;              /* for middle alignment !!! */
    border-bottom: 2px solid black;
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #c0c0c0;
}

.last_result_line_border {
    min-height: 33px;
    line-height: 32px;              /* for middle alignment !!! */
    border-bottom: 4px double black;
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #c0c0c0;
}

.last_result_line_border {
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    min-height: 33px;
    line-height: 32px;              /* for middle alignment !!! */
    border-bottom: 4px double black;
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #c0c0c0;
}

.input_digit{
    font-family: Helvetica, sans-serif;
    text-align: center;
    font-size: 20px;
    max-width: 18px;
}

.input_digit:focus
{
    background-color:#ddfefd;
} 

.cb_options_div_container {
    clear: both;
    margin: 0px auto;
    padding: 0px;
    background-color: #11DDFF;
}
.cb_ot_div_container {
    float: left;
    position:relative;
    text-align: center;
    min-height: 70px;
    width: 70px;
    overflow: hidden;
}

.cb_ot_inactive {
    position:absolute; top:10px; left:10px; /* enough space to neighboring boxes */
    background-size: 600%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 50px;
    visibility: visible;
    border: #11DDFF solid;
}
.cb_ot_active {
    /*background-size: 600%; */
}

.cb_tn_div_container {
    float: left;
    position:relative;
    text-align: center;
    min-height: 70px;
    width: 95px;
    overflow: hidden;
}

/* TODO: vererben der CSS Einstellungen */
.cb_tn_inactive {
    position:absolute; top:10px; left:10px;/*margin-top:-25px*/
    background-size: 400%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 75px;
    visibility: visible;
    border: #11DDFF solid;
}

.cb_tl_lineal_div_container {
    /* clear: both; */
    margin-left: 10px;
    margin-top: 10px;
    float: left;
    min-width: 300px;
    min-height: 50px;
    border: #11DDFF solid;
}
#cb_tl_10 {
    float: left;
    background-size: 1200%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 25px;
    visibility: visible;
}
#cb_tl_20 {
    float: left;
    background-size: 1200%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 25px;
    visibility: visible;
}
#cb_tl_20_50 {
    float: left;
    background-size: 1200%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 25px; /* single splice */
    visibility: visible;
}
#cb_tl_50 {
    float: left;
    background-size: 1200%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 25px;
    visibility: visible;
}
#cb_tl_50_100 {
    float: left;
    background-size: 600%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 50px;  /* double splice*/
    visibility: visible;
}
#cb_tl_100 {
    float: left;
    background-size: 1200%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 25px;
    visibility: visible;
}
#cb_tl_100_1000 {
    float: left;
    background-size: 400%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 75px;  /* triple splice */
    visibility: visible;
}
#cb_tl_1000 {
    float: left;
    background-size: 600%;
    cursor: pointer;
    margin: 0pt auto;
    height: 50px;
    width: 50px; /* double splice */
    visibility: visible;
}
.cb_tl_active {
}

.pass_icon {
    background-size: 500%;
    background-image: url(./pics/smileys.png);
    background-repeat: no-repeat; 
    background-position: -3px 5px ;
}

.fail_icon {
    background-size: 500%;
    background-image: url(./pics/smileys.png);
    background-repeat: no-repeat; 
    background-position: -32px 5px ;
}

#result_cnt_box_container {
    float: right;
    margin: 10px;
    border-radius: 5px;
    border: 2px #4195fc solid;
    width: 100px;
    height: 80px;
    /*background-color: whitesmoke;*/
    /* opacity: 0.5; */
    background: rgba(240, 240, 240, 0,5);
}

#result_cnt_pass_pic {
    width: 25px;
    background-size: 500%;
    background-image: url(./pics/smileys.png);
    background-repeat: no-repeat; 
    background-position: -3px -4px ;
}

#result_cnt_fail_pic {
    width: 25px;
    background-size: 500%;
    background-image: url(./pics/smileys.png);
    background-repeat: no-repeat; 
    background-position: -35px -4px ;
}

.result_cnt_box {
    clear: both;
}

.result_cnt_pass_ind {
    float: left;
    margin: 10px;
    height: 25px;
}
.result_cnt_fail_ind {
    float: left;
    margin: 0px 10px; /* top/bottom=0 left/right=10 */
    height: 25px;            
}
