/* 
    Created on : 30.10.2022
    Author     : Janne Mustonen
*/

table.datainput{
    border-collapse: collapse;
    width: 100%;
    border: 1px solid lightgrey;
    margin: 0;
    font-size: 0.8em;
}

table.datainput thead{
    background-color: #a6ce39;
    color: white;
}

table.datainput thead th, table.datainput tbody td{
    border-bottom: 1px solid #ddd;
    border: 1px solid #ddd;
    padding: 8px;
}

table.datainput tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.target_wrapper{
    margin: 4px;
    display: grid;
    grid-template-areas:
        'targetnum hitarea round'
        'shooternum shootername shooternationality'
        'timer timer timer';
    grid-template-columns: 75px auto 65px;
    grid-template-rows: 48px 30px auto;
    background-color: white;
}

div.target_wrapper > div{
    border: 1px solid black;
}

div.target_wrapper div.targetnum{
    grid-area: targetnum;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    padding: 8px;
    line-height: 32px;
}

div.target_wrapper div.hitarea{
    grid-area: hitarea;
    padding: 10px 0;
    text-align: center;
}

div.target_wrapper div.hitarea span{
    padding: 3px 10px;
    border-radius: 24px;
    display: inline-block;
}

div.target_wrapper div.hitarea span.miss{
    background-color: red;
    color: red;
    border: 1px solid black;
}

div.target_wrapper div.hitarea span.hit{
    background-color: green;
    color: green;
    border: 1px solid black;
}

div.target_wrapper div.hitarea span.hits{
    color: white;
    font-size: 2em;
    font-weight: bold;
    background-color: green;
}

div.target_wrapper div.hitarea span.misses{
    color: white;
    font-size: 2em;
    font-weight: bold;
    background-color: red;
}

div.target_wrapper div.hitarea span.time{
    color: white;
    font-size: 2em;
    font-weight: bold;
    background-color: grey;
}

div.target_wrapper div.round{
    grid-area: round;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
}

div.target_wrapper div.shooternum{
    grid-area: shooternum;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
    padding: 4px;
}

div.target_wrapper div.shootername{
    grid-area: shootername;
    text-align: left;
    font-size: 1.2em;
    font-style: italic;
    padding: 4px;
}

div.target_wrapper div.shooternationality
{
    grid-area: shooternationality;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
    padding: 4px;
}

div.target_wrapper div.timer{
    grid-area: timer;
    position: relative;
    line-height: 12px;
    font-size: 1.8em;
}

div.target_wrapper div.timer span{
    position: absolute;
    top: 1px;
}

div.target_wrapper div.timer span.hit{
    color: green;
}

div.target_wrapper div.timer span.miss{
    color: red;
}

div.target_wrapper div.timer div.bar{
    background-color: lightblue;
    height: 16px;
}

/* Results Wrapper */
div.target_wrapper div.results {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 32px;
}

div.target_wrapper div.results span{
    padding: 4px 0;
    margin: 2px;
    display: inline-block;
}

div.target_wrapper div.results span.miss{
    color: red;
}

div.target_wrapper div.results span.hit{
    color: green;
}

div.target_wrapper div.results span.time{
    font-size: 0.5em;
}

div.results_wrapper
{
    display: flex;
    font-size: 0.7em;
}

div.results_wrapper div.heatresults{
    display: inline-block;
    padding: 3px;
    align-content: center;
    text-align: center;
    width: 38px;
}

div.results_wrapper div.results_wrapper div.heatresults:last-child{
    background-color: #70ad47;
    color: white;
}

div.results_wrapper div.heatresults .shootingresults{
    text-align: center;
}

div.results_wrapper div.heatresults .shootingtime{
    text-align: center;
}

div.results_wrapper div.heatresults .totaltime{
    border-top: 1px solid black;
    margin-top: 4px;
    padding-top: 4px;
}

div.results_wrapper div.heatresults span.hit{
    color: green;
}

div.results_wrapper div.heatresults span.miss{
    color: red;
}

div.runningtime{
    vertical-align: top;
    display: inline-block;
    background-image: url( '/gfx/icons/icon_running_big.png' );
    background-repeat: no-repeat;
    background-position-y: 8px;
    background-position-x: center;
    padding-top: 40px;
    text-align: center;
    min-width: 26px;
    margin-right: 16px;
}

div.finaltime{
    display: inline-block;
    text-align: center;
    padding: 4px 2px;
    
}

div.finaltime_wrapper{
    background-color: lightgreen;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}