/*** hit_location - tooltip ***/
/*div#data div.roll div.target div.armor div div a.tooltip span div.shot div {*/
div#data div.roll div.target div.armor div div a.tooltip span div.shot div,
div#data div.roll div.target div.armor div a.tooltip span div.shot div {
    border-bottom: 1px solid #595959;
    padding-bottom: 5px;
}

div#data div.roll div.target div.armor div div a.tooltip span div.shot div.medical,
div#data div.roll div.target div.armor div div a.tooltip span div.shot div.medical div.medical-skills,
div#data div.roll div.target div.armor div div a.tooltip span div.shot div.medical div.medical-skills div,
div#data div.roll div.target div.armor div a.tooltip span div.shot div.medical div.medical-skills div,
div#data div.roll div.target div.armor div a.tooltip span div.shot div.medical div.medical-skills,
div#data div.roll div.target div.armor div a.tooltip span div.shot div.medical {
    border-bottom: none;
}

div#data div.roll div.target div.armor div div a.tooltip span div.shot div.medical div.medical-skills div div,
div#data div.roll div.target div.armor div a.tooltip span div.shot div.medical div.medical-skills div div {
    border: 1px solid #500d04;
    padding: 5px 0;
}

/*** hit_location ***/
div span.result span {
    color: red;
    float: none;
    font-weight: bold;
}

div#data div  {
    /*border-bottom: 1px solid #595959;*/
    clear: both;
    /*padding: 5px 0 0 0;*/
}

div#data div div div.shot div.extra {
    border-bottom: none;
    border-top: 1px solid #595959;
}

div#data div.medical {
    border-bottom: none;
}

div#data div.medical:after {
    clear: both;
    content: '';
    display: block;
}

div#data a.tooltip span div.shot div.medical div.medical-skills {
    border-bottom: none;
    clear: none;
    padding: 0;
}

div#data a.tooltip span div.shot div.medical div.medical-skills div {
    border-bottom: none;
    clear: none;
    float: left;
    margin: 5px;
    text-align: center;
    width: 100px;
}

div#data a.tooltip span div.shot div.medical div.medical-skills div div {
    background-color: #f0f0f0;
    border: 1px solid #500d04;
    margin-left: auto;
    margin-right: auto;
    float: none;
    width: 80px;
}

div#data a.tooltip span div.shot div.medical div.medical-skills div label {
    float: none;
}

div#automatic, div#manual, div#grenade {
    clear: both;
}

div#grenade {
    min-height: 15px;
}

div.medical-skills div label {
    padding-left: 0;
}

div#data div.roll {
    /*background-color: #ffffcc;
    border: 1px solid black;*/
    clear: left;
    margin: 10px 0;
    /*width: 208px;*/
}

div#data div.roll:after {
    clear: both;
    content: '';
    display: block;
}

div.roll label.roll-label {
    background-color: #ffffcc;
    border: 1px solid black;
    font-size: 12px;
    margin: 0 0 0 2px;
    /*padding-left: 5px;*/
    text-align: center;
    width: 95%;
}

div.shot {
    background-color: #ffffcc;
    border: 1px solid black;
    /*margin: 2px 0 0 3px;*/
    width: 470px;
}

/*div.concussion {
    background-color: #ffffcc;
    border: 1px solid black;
    width: 200px;
}*/

div.armor div.shot div label {
    padding-left: 3px;
}

/*div.concussion {
    font-weight: bold;
    text-align: center;
}*/

div.shot label.shot-label {
    font-size: 12px;
    text-align: center;
    width: 100%;
}

div#data div.roll div.target {
    background-color: #666;
    border: 1px solid black;
    clear: none;
    float: left;
    height: 298px;
    /*margin-left: 3px;*/
    margin: 2px;
    width: 202px;
}

div.target label.target-label {
    color: #fff;
    font-size: 12px;
    /*margin-bottom: 5px;*/
    text-align: center;
    width: 100%;
}

form {
    background-color: #cc9;
    border: none;
    float: left;
    padding-bottom: 10px;
    width: 495px; /* Safari */
}

form#hit-location div:after {
    clear: both;
    content: '';
    display: block;
}

form#hit-location div#options {
    padding: 10px 0 0 30px;
}

form#hit-location div#options div {
    padding: 3px 0;
}

form#hit-location div#options div label {
    width: 190px;
}

form#hit-location div input:first-child {
    /*border: 1px solid red;*/
    float: left;
}

form#hit-location div input#roll-option-manual, form#hit-location div input#roll-option-automatic, form#hit-location div input#roll-option-grenade {
    border: none; /* Opera */
    width: 20px;
}

span.footnote {
    font-size: 8px;
    vertical-align: super;
}

input#roll {
    padding: 5px;
    width: 100px;
}

label#manual-label {
    float: none;
    padding-right: 31px;
}

span#error, span.instant-death {
    color: #ff0000;
    font-weight: bold;
}

/*** text output ***/
div#data div.roll div.target-text {
    background-color: #666;
    border: 1px solid black;
    clear: none;
    float: left;
    /*height: 298px;*/
    margin: 2px;
    width: 471px;
}

div#data div.roll div.target-text label.target-label {
    text-align: center;
    width: 100%;
}

div#data div.roll div.target-text div.shot {
    margin-bottom: 2px;
    width: 469px;
}

div#data div.roll div.target-text div.shot div.medical div.medical-skills div div {
    background-color: #f0f0f0;
    border: 1px solid #500d04;
    float: none;
    margin: 0 auto;
    /*padding: 5px 0;*/
    width: 80px;
}

div#data div.roll div.target-text div.shot div.medical div.medical-skills {
    border-bottom: none;
    clear: none;
    padding: 0;
}

div#data div.roll div.target-text div.shot div.medical div.medical-skills div {
    border-bottom: none;
    clear: none;
    float: left;
    margin: 5px;
    text-align: center;
    width: 100px;
}

div#data div.roll div.target-text div.shot div.medical div.medical-skills div div {
    background-color: #f0f0f0;
    border: 1px solid #500d04;
    margin-left: auto;
    margin-right: auto;
    float: none;
    width: 80px;
}

div#data div.roll div.target-text div.shot div.medical div.medical-skills div label {
    float: none;
}

div#data div.roll div.target-text div.shot div {
    border-bottom: 1px solid #595959;
    padding-bottom: 5px;
}

div#data div.roll div.target-text div.shot div.medical,
div#data div.roll div.target-text div.shot div.medical div.medical-skills,
div#data div.roll div.target-text div.shot div.medical div.medical-skills div,
div#data div.roll div.target-text div.shot div.medical div.medical-skills div,
div#data div.roll div.target-text div.shot div.medical div.medical-skills,
div#data div.roll div.target-text div.shot div.medical {
    border-bottom: none;
}

div#data div.roll div.target-text div.shot div.damage {
    border-top: 1px solid #595959;
}

div.roll div.target-text div.shot div span {
    display: table-cell;
}

/*** damage types ***/
div#damage-types {
    border: 1px solid black;
    float: left;
    margin-right: 10px;
    width: 152px;
}

div#damage-types div#header {
    font-weight: bold;
    text-align: center;
}

div#damage-types div label {
    width: 25px;
    text-align: center;
}

/*** help ***/
div#help {
    float: left;
    padding: 2px;
    width: 210px;
}

div#help div#header {
    font-weight: bold;
}

div#help p img {
    vertical-align: middle;
}

/*** armor diagram ***/
div.armor {
    background: #cc9 url(/img/api/armor_diagram.jpg) no-repeat scroll 0 0;
    height: 263px;
    margin: 2px auto 0 auto;
    /*text-align: center;*/
    width: 200px;
}

div#data div.roll div.target div.armor div {
    border-bottom: 0;
}

div#data div.roll div.target div.armor div.head {
    float: left; /* w/o this detail popup pushes icons down page */
    height: 15px;
    margin: auto auto auto 93px;
    position: relative;
    top: 26px;
    width: 15px;
}

div#data div.roll div.target div.armor div div.left-arm {
    clear: none;
    float: left;
    height: 15px;
    left: 28px;
    position: relative;
    top: 56px;
    width: 15px;
}

div#data div.roll div.target div.armor div div.chest {
    clear: none;
    float: left;
    height: 15px;
    left: 78px;
    position: relative;
    top: 51px;
    width: 15px;
}

div#data div.roll div.target div.armor div div.right-arm {
    clear: none;
    float: left;
    height: 15px;
    left: 130px;
    position: relative;
    top: 56px;
    width: 15px;
}

div#data div.roll div.target div.armor div.abdomen {
    bottom: -50px;
    float: left; /* w/o this detail popup pushes icons down page */
    height: 15px;
    left: 93px;
    position: relative;
    top: 73px;
    width: 15px;
}

div#data div.roll div.target div.armor div div.left-leg {
    clear: none;
    float: left;
    height: 15px;
    left: 58px;
    position: relative;
    top: 110px;
    width: 15px;
}

div#data div.roll div.target div.armor div div.right-leg {
    clear: none;
    float: left;
    height: 15px;
    left: 114px;
    position: relative;
    top: 110px;
    width: 15px;
}

/*** tooltip ***/
a.tooltip img {
    z-index: 1;
}

a.tooltip span {
    display: none;
    left: 15px;
    position: relative;
    /*top: -10px;*/
    width: 472px;
    z-index: 2;
}

/*a.tooltip:hover {
    position: relative;
}*/

/*a.tooltip:hover span {
*//*display: block;*//*
    left: 10px;
    position: absolute;
    top: 0;
}*/

/*a.tooltip:hover span div.shot div span, a.tooltip span div.shot div span {*/
a.tooltip span div.shot div span, a.tooltip span div.shot div span {
    display: table-cell;
}

/*a.tooltip:hover span div.shot span {
    position: relative;
}*/

/*div.concussion a.tooltip span {
    background-color: #ffffcc;
    border: 1px solid black;
    left: 160px;
    position: relative;
    text-align: center;
    width: 200px;
    z-index: 2;
}*/

/*div.concussion a.tooltip:hover span {
    left: 10px;
    top: -10px;
}*/

div.spacer {
    background-color: #666;
    height: 5px;
}

/*div.hit {
    background: #ffffff url(/img/api/hit.png) no-repeat scroll 0 0;
    height: 15px;
}*/
