/******************************************************************************************************
 *
 * Project        : RT Live
 * File           : livedata.css
 * Description    : Styles for the Live Data page of RT Live
 * Author         : Harindra Herath
 * Copyright      : Race Technology Ltd, UK
 *
 *
 * Version      Date            Author                    Change/Reason
 * -------    ----------        --------------------    -------------------------------------------------------
 *    1.0        09/04/2015         Harindra Herath         Created
 *******************************************************************************************************/

/*region Desktop*/
.show-border {
    border: 1px solid white;
}

#message-input-send-button-div {
    display: inline;

}

#info-message {
    width: 180px;
    height: 14px;
    font-size: 13px;
}

#show-label {
    font-size: 13px;
}

div#live-data-main {
    width: 91%;
    margin: 0 auto 0 auto;
    height: auto;
    align-self: auto;
    display: flex;
    justify-content: space-between;
}

div#live-data-table {
    width: 390px;
    height: auto;
    margin: 53px 0 0 20px;
}

div#live-data-table div#table {
    margin-left: 20px;
    height: 100%;
}

div#live-map {
    width: 100%;
    float: left;
    height: 410px;
    padding: 0;
}

div#track-map {
    width: 100%;
    height: 100%;
}

#map-select {
    width: auto;
    font-size: 11px;
}

#show-div {
    width: auto;
    display: inline-block;
    clear: both;
    margin-top: 0;
}

#legend-div {
    height: 18px;
    width: 210px;
    margin-top: 11px;
    margin-left: 69px;
}

/*
Styles for live data table
*/

div#live-data-table div#table div.table-body-racing {
    width: 409px;
    background-color: white;
    float: left;
    height: 294px;
    padding: 0;
    direction: rtl;
    overflow-y: scroll;
    margin-left: -41px;
    text-align: left; /* Override direction */
    margin-top: -2px;
}

div#live-data-table div#table div.table-body-safety {
    width: 392px;
    background-color: white;
    float: left;
    height: 294px;
    padding: 0;
    direction: rtl;
    overflow-y: scroll;
    margin-left: -40px;
    text-align: left;
}

div#live-data-table-header {
    color: white;
    margin-top: -20px;
    height: 35px;
}

div#live-data-table-header-safety {
    color: white;
    margin-top: -20px;
    height: 35px;
    margin-left: 0;
}

div#live-data-table-header div {
    height: 20px;
    text-align: center;
}

div#live-data-table-header-safety div {
    height: 20px;
    text-align: center;
    width: 230px;
}

div#live-data-table-header div span label {
    float: left;
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
}

div#live-data-table-header-safety div span label {
    float: left;
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
}

span#alarms-span-middle > label {
    font-size: 13px;
}

#header-alarms-safety span#alarms-span-middle > label {
    font-size: 13px;
}

#alarm1, #alarm2, #alarm3, #alarm4, #alarm5 {
    font-size: 13px;
}

/* Styles for live data table headers
*/

div#live-data-table div#header-name {
    width: 82px;
    float: left;
    height: 35px;
}

div#live-data-table div#header-name-safety {
    width: 232px;
    float: left;
    height: 35px;
}

div#live-data-table div#header-last-lap {
    width: 82px;
    float: left;
    height: 35px;
}

div#live-data-table div#header-best-lap {
    width: 85px;
    float: left;
    height: 35px;
}

div#live-data-table div#header-alarms {
    width: 120px;
    float: left;
    height: 35px;
    margin-top: -22px;
}

div#live-data-table div#header-alarms-safety {
    width: 120px;
    float: left;
    height: 35px;
    margin-top: -51px;
    margin-left: 231px;
}

div#live-data-table div#header-alarms div {
    width: 22px;
    float: left;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #999999;
    border-top: none;
    border-bottom: none;
    font-size: 13px;
}

div#live-data-table div#header-alarms-safety div {
    width: 22px;
    float: left;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #999999;
    border-top: none;
    border-bottom: none;
}

div#header-name span:nth-child(2), div#header-last-lap span:nth-child(2) {
    width: 62px;
}

div#header-best-lap span:nth-child(2) {
    width: 65px;
}

div#header-alarms span:nth-child(2) {
    width: 100px;
}

#name-span-middle-safety {
    width: 211px;
}

/*Styles for the liva data table rows
*/
div#live-data-table div.table-row {
    width: 391px;
    height: 20px;
    font-size: 11px;
    border-bottom: 1px solid #000;
}

div#live-data-table div.table-row-safety {
    width: 375px;
    height: 20px;
    font-size: 11px;
    border-bottom: 1px solid #000;
}

div#live-data-table div.table-row:hover {
    /*background-color: #fd9921;*/
}

div#live-data-table div.table-row div {

    height: 20px;
    border-right: 2px solid #999999;
}

div#live-data-table div.table-row-safety div {
    height: 20px;
    border-right: 2px solid #999999;
}

div#live-data-table div.table-row div.live-data-radio {
    float: left;
    width: 21px;
    height: 20px;
    text-align: center;
    vertical-align: middle;
    border-left: 2px solid #999999;
}

div#live-data-table div.table-row-safety div.live-data-radio {
    float: left;
    width: 21px;
    height: 20px;
    text-align: center;
    vertical-align: middle;
    border-left: 2px solid #999999;
}

div.live-data-radio input[type=radio] {
    float: left;
    width: 20px;
    height: 14px;
    margin-left: 1px;
}

div#live-data-table div.table-row div.live-data-name {
    float: left;
    width: 79px;
}

div#live-data-table div.table-row-safety div.live-data-name {
    float: left;
    width: 228px;
}

div#live-data-table div.table-row div.live-data-last-lap {
    float: left;
    width: 80px;
}

div#live-data-table div.table-row div.live-data-best-lap {
    float: left;
    width: 83px;
}

div#live-data-table div.table-row div.live-data-alarms {
    float: left;
    width: 118px;
    border-right-style: none;
}

div#live-data-table div.table-row-safety div.live-data-alarms {
    float: left;
    width: 118px;
    border-right-style: none;
}

div#live-data-table div.table-row div.live-data-alarms div {
    float: left;
    width: 22px;
}

div#live-data-table div.table-row-safety div.live-data-alarms div {
    float: left;
    width: 22px;
}

div#live-data-table div.table-row div.live-data-alarms div:first-child + div + div + div + div {
    float: left;
    border-right-style: none;
}

div#live-data-table div.table-row-safety div.live-data-alarms div:first-child + div + div + div + div {
    float: left;
    border-right-style: none;
}

div.table-row div p {
    float: left;
    margin-top: 5px;
    margin-left: 5px;
    direction: ltr; /* Fix text direction */
}

div.table-row-safety div p {
    float: left;
    margin-top: 5px;
    margin-left: 5px;
    direction: ltr; /* Fix text direction */
}

/*
Styles for live lap time table
*/

div#live-lap-time {
    width: 140px;
    height: 200px;
    margin: 12px 0 0 0;
}

div#lap-time-table-header div span.middle label {
    float: left;
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold
}

div#lap-time-table-header {
    font-size: 14pt;
    color: white;
    font-weight: bold;
}

div#lap-time-table-header div#header-lap-no {
    float: left;
    width: 50px;
    height: 35px;
}

div#lap-time-table-header div#header-lap-time {
    float: left;
    width: 90px;
    height: 35px;
}

div#lap-time-table-body {
    width: 156px;
    float: left;
    padding: 0;
    margin-left: -16px;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: white;
    direction: rtl; /* Right To Left */
    /*
    direction: rtl; /* Right To Left */
    text-align: left; /* Override direction */
    max-height: 150px;
}

#lap-time-body-inner {
    direction: ltr;
}

.lap-time-table-row {
    width: 140px;
    height: 20px;
    background-color: white;
    border-bottom: 1px solid #000;
}

.lap-no {
    float: left;
    height: 20px;
    width: 47px;
    border-left: 2px solid #989898;
    border-right: 2px solid #989898;
}

.lap-no p, .lap-time p {
    float: none;
    margin: 0 auto 0 auto;
    font-size: 10px;
    font-weight: bold;
    padding-top: 5px;
}

.lap-no p {
    width: 10px;
}

.lap-time p {
    width: 60px;
}

.lap-time {
    height: 20px;
    width: 89px;
}

#header-lap-no span.middle {
    width: 30px;
}

#header-lap-time span.middle {
    width: 70px;
}

/*
Styles for live variable display gauges
*/

div#live-variables {
    width: 150px;
    height: 364px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#gauge1-label, #gauge2-label {
    float: left;
    display: block;
    width: 140px;
    height: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-left: 5px;
}

#gauge1-label {

}

#gauge2-label {

}

div#gauge1-div, div#gauge2-div {
    width: 150px;
    height: 145px;
    float: left;
}

div#live-variables label#unit-name {
    float: left;
    margin: 0 auto 0 auto;
    width: 100%;
    font-size: 16pt;
    font-weight: bold;
    height: 20px;
    color: white;
    text-align: center;
    line-height: 20px;
}

div#live-alarms {
    width: 100%;
    border-radius: 5px;
    margin-top: 17px;
}

div#live-alarms table {
    border-collapse: unset;
    width: 98%;
    height: 96%;
    margin-left: 4px;
}

div#live-alarms table tr td {
    border-collapse: collapse;
    border: 1px solid #999999;
    height: 21px;
    vertical-align: middle;
}

/*div#header-alarms table td:first-child {
    width: 25px;
    height: 25px;
}*/

div#live-alarms table td:first-child {
    padding-left: 2px;
}

div#live-alarms table td:first-child + td span {
    /*color: #fd9921;*/
    color: white;
    font-size: 13px;
    font-weight: 600;
    float: left;
    margin-left: 5px;
}

div#live-alarms table td:first-child + td + td span {
    float: left;
    margin-left: 5px;
    margin-right: 5px;
}

.alarm-table-cell {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

/*table#live-info-messages tr {
    height: 25px;
}

table#live-info-messages tr td:first-child {
    width: auto;
}*/

span#reconnecting-message {
    font-size: 12px;
    color: black;
    background-color: #F8D486;
    border-style: solid;
    border-color: #F8D486;
    border-radius: 2px;
}

/*#live-info-messages-div {
    width: auto;
    margin-right: 16px;
}*/

#alarms-span-middle {
    width: 100px;
}

#live-info-messages {
    width: 100%;
    float: left;
    clear: both;
    margin-top: 9px;
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#live-info-messages label {
    font-size: 13px;
    color: white;
    font-weight: bold;
    padding-right: 8px;
    display: inline;
}

#info-message-send {
    min-width: 58px;
    width: auto;
    font-size: 11px;
    height: 18px;
    margin-left: 3px;
}

div.heading {
    margin-bottom: 0;
    clear: both;
}

#map-settings {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 9px;
    border-bottom: 1px solid #747474;
    height: 29px;
}

#map-settings > * {
    display: inline-block;
}

#map-settings-label {
    font-size: 13px;
}

#show-all-units-label, #automatic-zoom-label, #reset-map-zoom {
    font-size: 13px;
}

#reset-zoom-div {
    float: right;
    width: auto;
    min-height: 10px;
    height: auto;
}

a#reset-map-zoom {
    color: white;
    font-weight: bold;
}

a#reset-map-zoom:hover {
    color: white;
}

#gauge1-div-and-label, #gauge2-div-and-label {
    width: 150px;
    height: 175px;
}

#unit-name {
    display: none;
}

#live-alarms-div {
    width: auto;
    height: 361px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

#live-alarms {
    display: flex;
}

#live-alarms > * {
    display: inline;
}

#live-alarms td:first-child {
    display: none;
}

#show-all-units-checkbox, #automatic-zoom-checkbox {
    vertical-align: middle;
    margin: 0;
}

#device-state-legend {
    width: 111%;
    display: inline-flex;
    margin: 10px 0 10px -40px;
    background-color: white;
}

#device-state-legend.safety {
    width: 106%;!important;
}

.device-state-legend-item {
    height: 20px;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 3px;
}

.device-state-legend-item label {
    color: black;
    font-size: 13px;
    font-weight: bold;
}

.legend {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.red {
    background-color: red;
}

.black {
    background-color: black;
}

.blue {
    background-color: blue;
}

#live-screen-map {
    width: 91%;
    margin: 60px auto 10px auto;
}

#lap-time-and-alarms-div {
    width: auto;
    height: 361px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

#live-alarms label {
    font-weight: bold;
    color: white;
    font-size: 13px;
}

/*endregion*/

/*region mobile*/

/*mobile site*/
@media screen and (max-device-width: 912px) {

    #map-settings * {
        font-size: 8pt;
    }

    #reset-zoom-div {
        float: none;
    }

    div#live-variables {
        order: 3;
        height: auto;
        width: auto;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
    }

    #live-info-messages {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #live-alarms label {
        font-size: 8pt !important;
    }

    #device-state-legend.safety {
        width: 113%;
    }

    #device-state-legend.racing {
        width: 107%;
    }

    .device-state-legend-item label {
        font-size: 8pt;
    }

    #message-input-send-button-div {
        white-space: nowrap;
    }

    #send-div label {
        padding-right: 3px;
    }

    #live-screen-map {
        margin: 10px auto 10px auto;
    }

    #message-from-unit-div {
        white-space: nowrap;
    }

    input#info-message {
        width: 146px;
        font-size: 8pt;
        display: inline;
    }

    div#live-alarms.safety {
        float: left;
        margin-top: 0;
    }

    .alarm-table-cell {
        font-size: 8pt;
    }

    div#live-alarms table td:first-child + td span {
        font-size: 13px;
    }

    #live-alarms.safety .indicator-green {
        display: inline-block;
        width: 3vw;
        height: 3vw;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        background-position: 0 0;
        margin-top: 4px;
        margin-left: 6px;
    }

    #live-alarms.safety .indicator-red {
        display: inline-block;
        width: 3vw;
        height: 3vw;
        background-image: url('../img/indicator_red.png');
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: cover;
        margin-top: 4px;
        margin-left: 6px;
    }

    #live-info-messages label {
        font-size: 8pt;
        padding-right: 3px;
    }

    #info-message-send {
        font-size: 8pt;
        display: inline;
        margin-top: 5px;
        margin-bottom: 5px;
        min-width: unset;
    }

    div#live-data-table.racing {
        margin: 40px 0 0 18px;
        display: flex;
        width: 90vw;
        float: left;
        height: 148px;
        margin: 0 0 0 22px;
    }

    div#live-data-table.safety {
        width: 100%;
        float: none;
        height: auto;
        margin: 0 0 19px 31px;
    }

    div#live-map {
        width: 100%;
        float: right;
        height: 95vw;
        margin: 0 1px 0 0;
        padding: 0;
    }

    #gauge1-label, #gauge2-label {
        font-size: 8pt;
    }

    #show-label {
        font-weight: normal;
        font-size: 8pt;
    }

    #map-select {
        font-size: 8pt;
        width: auto;
    }

    div#live-data-table.racing div#table {
        margin-left: 16px;
    }

    div#live-data-table.safety div#table {
        margin-left: 14px;
    }

    div#live-data-table div#table div.table-body-safety {
        width: 92vw;
        background-color: white;
        float: left;
        height: auto;
        padding: 0;
        direction: ltr;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left;
    }

    div#live-data-table div.table-row-safety div.live-data-name {
        float: left;
        width: 56vw;
    }

    div#live-data-table div.table-row-safety div.live-data-alarms div {
        float: left;
        width: 5vw;
    }

    div#live-data-table div.table-row-safety div.live-data-alarms {
        float: left;
        width: 29vw;
        border-right-style: none;
    }

    div#live-data-table div.table-row-safety {
        font-size: 10px;
    }

    div#live-data-table div.table-row-safety {
        font-size: 6pt;
    }

    div#live-data-table div#header-name-safety {
        width: 57vw;
        float: left;
        height: 20px;
    }

    div#live-data-table div#header-name-safety span.middle {
        width: 53vw;
        float: left;
        height: 20px;
    }

    div#live-data-table-header-safety {
        display: flex;
        align-items: flex-end;
        color: white;
        margin-top: -20px;
        height: 32px;
        margin-left: -16px;
    }

    div#live-data-table-header-safety div span label {
        float: left;
        width: 100%;
        margin-top: 6px;
        font-size: 7pt;
        font-weight: bold;
    }

    #header-alarms-safety span#alarms-span-middle > label, #header-name-safety span#name-span-middle-safety > label {
        font-size: 8pt;
    }

    div#live-data-table div#header-alarms-safety {
        width: 28vw;
        float: none;
        height: 100%;
        margin-top: -24px;
        margin-left: 0;
    }

    #header-name-safety {
        float: none;
    }

    div#live-data-table div#header-alarms-safety div {
        width: 5vw;
        float: left;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #999999;
        border-bottom: none;
        border-top: none;
        font-size: 8pt;
    }

    div#live-data-table div.table-row-safety {
        width: 94vw;
        height: 20px;
        font-size: 6pt;
        border-bottom: 1px solid #000;
    }

    div#live-data-table-header-safety div {
        height: 20px;
        text-align: center;
        display: inline-block;
    }

    #info-message-from-unit {
        font-size: 8pt !important;
        margin-right: 10px;
    }

    #live-data-main {
        display: flex;
        flex-flow: wrap;
    }

    #live-data-table {
        order: 1;
    }

    #live-alarms.safety {
        order: 2;
    }

    #live-variables.safety {
        order: 3;
    }

    div.styled-select {
        margin-left: 0;
    }

    div#live-lap-time {
        width: 140px;
        height: 180px;
        float: left;
        margin-left: 34px;
        margin-top: 8px;
        display: block;
    }

    div#live-alarms {
        width: auto;
        height: auto;
        margin-right: 0;
        margin-top: 17px;
        margin-left: 16px;
        border-radius: 5px;
        float: left;
    }

    div#live-info-messages-div {
        width: 100%;
        margin-top: 14px;
    }

    div#live-lap-time {
        margin-top: 18px;
    }

    div#lap-time-table-header div span.middle label {
        float: left;
        width: auto;
        margin-top: 5px;
        margin-left: 10px;
        font-size: 8pt;
        font-weight: bold;
    }

    div#live-data-table-header div span label {
        float: left;
        width: 100%;
        margin-top: 6px;
        font-size: 8pt;
        font-weight: bold;
    }

    div#live-data-table-header {
        color: white;
        margin-top: 20px;
        height: 20px;
        margin-left: -16px;
    }

    div#live-data-table div#header-name {
        width: 18vw;
        float: left;
        height: 35px;
    }

    /*span.middle*/
    div#header-name span:nth-child(2) {
        width: 14vw;
    }

    div#live-data-table div#header-name {
        width: 18vw;
        float: left;
        height: 28px;
    }

    span.middle.racing {
        height: 28px;
    }

    span.left.racing {
        height: 28px;
    }

    span.right.racing {
        height: 28px;
    }

    div#live-data-table div#header-last-lap {
        width: 21vw;
        float: left;
        height: 20px;
    }

    div#header-last-lap span:nth-child(2) {
        width: 17vw;
    }

    div#live-data-table div#header-best-lap {
        width: 22vw;
    }

    div#header-best-lap span:nth-child(2) {
        width: 18vw;
    }

    div#live-data-table div#header-alarms {
        width: 30vw;
        float: left;
        height: 20px;
        margin-top: -12px;
        margin-left: 0;
    }

    div#header-alarms span:nth-child(2) {
        width: 26vw;
    }

    div#live-data-table div#header-alarms div {
        width: 5vw;
        float: left;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #999999;
        border-top: none;
        border-bottom: none;
        font-size: 8pt;
    }

    div#live-data-table div#table div#table-body {
        width: 96vw;
        background-color: white;
        float: left;
        height: 104px;
        padding: 0;
        direction: ltr;
        overflow-y: hidden;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left; /* Override direction */
    }

    div#live-data-table div.table-row {
        width: 98vw;
        height: 20px;
        font-size: 6pt;
        border-bottom: 1px solid #000;
    }

    div#live-data-table div.table-row div.live-data-name {
        float: left;
        width: 16vw;

    }

    div#live-data-table div.table-row div.live-data-alarms {
        float: left;
        width: 28vw;
        border-right-style: none;
    }

    div#live-data-table div.table-row div.live-data-alarms div {
        float: left;
        width: 5vw;
    }

    div#live-data-table div.table-row div.live-data-last-lap {
        float: left;
        width: 20vw;
    }

    div#live-data-table div.table-row div.live-data-best-lap {
        float: left;
        width: 20vw;
    }

    div#live-data-main.racing {
        width: 91%;
        margin: 10px auto 20px auto;
        height: 100%;
        display: flex;
    }

    div#live-data-main.safety {
        height: 100%;
        margin: 44px auto 20px auto;
        display: flex;
    }

    #main-content > .heading {
        display: none;
    }

    div#live-data-table div#header-best-lap {
        width: 22vw;
        float: left;
        height: 20px;
    }

    div#lap-time-table-header div#header-lap-no {
        height: 28px;
    }

    div#lap-time-table-header div#header-lap-time {
        height: 20px;
    }

    #header-lap-no span.left {
        width: 5px;
    }

    #header-lap-no span.right {
        width: 5px;
    }

    #header-lap-no span.middle {
        width: 40px;
    }

    #header-lap-time span.left {
        width: 5px;
    }

    #header-lap-time span.right {
        width: 5px;
    }

    #header-lap-time span.middle {
        width: 80px;
    }

    #lap-time-and-alarms-div {
        order: 2;
        width: auto;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        justify-content: space-around;
    }

    #gauge1-div-and-label, #gauge2-div-and-label {
        margin-top: 10px;
    }

    span.left {
        width: 10px;
    }

    span.right {
        width: 10px;
    }

    #unit-name {
        display: none;
    }

    div.heading {
        display: none;
    }

    #live-alarms-div {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        order: 2;
        margin: 7px auto 13px auto;
    }

    div#live-data-main > div#live-data-table {
        width: auto;
        height: auto;
    }

    div#live-variables.racing {
        margin-top: 15px;
    }

    div#live-variables.safety {
        margin-top: -14px;
    }
}

/*legend*/
@media screen and (max-device-width: 378px) {
    div#legend-div {
        margin-top: 50px !important;
        margin-left: 0 !important;
    }
}

/*live table*/
@media screen and (min-device-width: 290px) and (max-device-width: 368px) {

    div#live-data-table div#table div#table-body {
        width: 96vw;
        background-color: white;
        float: left;
        height: 104px;
        padding: 0;
        direction: ltr;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left; /* Override direction */
    }

    #live-alarms .indicator-green {
        display: inline-block;
        width: 13px;
        height: 13px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 5px;
    }

    #live-alarms .indicator-red {
        display: inline-block;
        width: 13px;
        height: 13px;
        background-image: url('../img/indicator_red.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 6px;
    }

    #live-data-table-header {
        width: 90.9vw;
    }

}

@media screen and (min-device-width: 368px) and (max-device-width: 421px) {

    div#live-data-table div#table div#table-body {
        width: 92vw;
        background-color: white;
        float: left;
        height: 104px;
        padding: 0;
        direction: ltr;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left; /* Override direction */
    }

    div#header-alarms span:nth-child(2) {
        width: 22vw;
    }

    div#live-data-table div#header-alarms {
        width: 26vw;
        float: left;
        height: 20px;
        margin-top: -12px;
        margin-left: -2px;
    }

    div#live-data-table {
        width: 90vw;
        float: left;
        height: 148px;
        margin: 0 0 0 26px;
    }

    span.indicator-green {
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 1px;
    }

    .indicator-red {
        width: 12px;
        height: 12px;
        margin-top: 4px;
        margin-left: 1px;
    }

    #live-alarms .indicator-green {
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 5px;
    }

    #live-alarms .indicator-red {
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('../img/indicator_red.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 6px;
    }

}

@media screen and (min-device-width: 421px) and (max-device-width: 482px) {

    div#live-data-table div#table div#table-body {
        width: 92vw;
        background-color: white;
        float: left;
        height: 104px;
        padding: 0;
        direction: ltr;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left; /* Override direction */
    }

    div#header-alarms span:nth-child(2) {
        width: 23vw;
    }

    div#live-data-table div#header-alarms {
        width: 27vw;
        float: left;
        height: 20px;
        margin-top: -12px;
        margin-left: 0;
    }

    /*div#live-data-table {
        width: 90vw;
        float: left;
        height: 148px;
        margin: 20px 0 0 30px;
    }*/
    span.indicator-green {
        display: inline-block;
        width: 13px;
        height: 13px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 3px;
    }

    span.indicator-red {
        width: 13px;
        height: 13px;
        margin-top: 4px;
        margin-left: 3px;
    }

    #live-alarms .indicator-green {
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 5px;
    }

    #live-alarms .indicator-red {
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url('../img/indicator_red.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 6px;
    }

}

@media screen and (min-device-width: 482px) and (max-device-width: 912px) {

    div#live-data-table div#table div#table-body {
        width: 92vw;
        background-color: white;
        float: left;
        height: 104px;
        padding: 0;
        direction: ltr;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-left: -40px;
        text-align: left; /* Override direction */
    }

    div#header-alarms span:nth-child(2) {
        width: 23vw;
    }

    div#live-data-table div#header-alarms {
        width: 27vw;
        float: left;
        height: 20px;
        margin-top: -12px;
        margin-left: 0;
    }

    div#live-data-table {
        width: 90vw;
        float: left;
        height: 148px;
        margin: 5px 0 0 26px;
    }

    span.indicator-green {
        width: 15px;
        height: 15px;
        margin-top: 2px;
        margin-left: 9px;
    }

    span.indicator-red {
        width: 15px;
        height: 15px;
        margin-top: 2px;
        margin-left: 9px;
    }

    #live-alarms .indicator-green {
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../img/indicators.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 5px;
    }

    #live-alarms .indicator-red {
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../img/indicator_red.png');
        background-repeat: no-repeat;
        margin-top: 4px;
        margin-left: 6px;
    }

}

@media screen and (max-device-width: 332px) {

    #gauge1-label.racing, #gauge2-label.racing {
        width: 135px;
    }

    div#gauge1-div.racing, div#gauge2-div.racing {
        width: 139px;
    }

    div#live-data-main.racing {
        margin: 10px 2px 20px 2px;
    }
}

/*gauges*/
@media screen and (max-device-width: 325px) {
    div#gauge1-div.safety, div#gauge2-div.safety {
        width: 45vw;
    }

    #gauge1-label.safety, #gauge2-label.safety {
        width: 43vw;
    }
}

@media screen and (min-device-width: 600px) and (max-device-width: 912px) {

    div#live-data-table.racing div#header-name {
        width: 17.3vw;
    }

    div#header-name span:nth-child(2) {
        width: 13.3vw;
    }

    div#live-data-table.racing div#header-best-lap {
        width: 21.4vw;
    }

    div#header-best-lap span:nth-child(2) {
        width: 17.4vw;
    }

    div#live-data-table.racing div#header-last-lap {
        width: 21.3vw;
    }

    div#header-last-lap span:nth-child(2) {
        width: 17.3vw;
    }

    div#live-data-table.racing div.table-row {
        width: 94vw;
    }

    div#live-data-table.racing div#table div#table-body {
        width: 89.6vw;

    }

    div#live-data-table.racing div#header-alarms {
        width: 26.7vw;
    }

    div#header-alarms span:nth-child(2) {
        width: 22.7vw;
    }
}

@media screen and (min-device-width: 703px) and (max-device-width: 801px) {

    div#live-data-table.racing div#table div#table-body {
        width: 89vw;
    }

    div#live-data-table.racing div#header-alarms {
        width: 26.7vw;
    }

    div#header-alarms span:nth-child(2) {
        width: 22.7vw;
    }

}

@media screen and (min-device-width: 801px) and (max-device-width: 912px) {

    div#live-data-table.racing div#table div#table-body {
        width: 88.5vw;
    }

    div#live-data-table.racing div#header-alarms {
        width: 26.3vw;
    }

    div#header-alarms span:nth-child(2) {
        width: 24.3vw;
    }

    div#header-name span:nth-child(2) {
        width: 15.299vw;
    }

    div#header-last-lap span:nth-child(2) {
        width: 19.3vw;
    }

    div#header-best-lap span:nth-child(2) {
        width: 19.4vw;
    }

    span.indicator-green {
        margin-left: 14px;
    }

    span.indicator-red {
        margin-left: 14px;
    }

}

/*live data table font*/
@media screen and (max-device-width: 500px) {
    div#live-data-table-header div span label, #header-alarms-safety span#alarms-span-middle > label, #header-name-safety span#name-span-middle-safety > label {
        font-size: 7pt;
    }
}

/*live-info-messages-div*/
@media screen and (max-device-width: 440px) {

    table#live-info-messages td {
        display: inline;
        clear: right;
        float: right;
    }

    table#live-info-messages tr > td:first-child {
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    span#info-message-from-unit {
        text-align: center;
    }
}

/*map settings*/
@media screen and (min-device-width: 640px) and (max-device-width: 912px) {

    #show-div {
        float: right;
    }

}

@media screen and (max-device-width: 640px) {

    #map-settings-label {
        width: 100%;
    }

    #live-screen-map #map-settings {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        height: auto;
        margin-top: 0;
    }

    #map-settings #reset-map-zoom {
        margin-right: 0;
    }

}

@media screen and (min-device-width: 640px) and (max-device-width: 750px) {

    #live-screen-map #map-settings.racing {
        height: 30px;
    }

}

@media screen and (max-device-width: 750px) {

    #map-settings.racing {
        height: auto;
        margin-top: 0;
    }

    #map-settings.racing #map-settings-label {
        margin-top: 7px;
    }

    #map-settings.safety #map-settings-label {
        margin-top: 8px;
    }

    #show-all-units-label, #automatic-zoom-label, #reset-map-zoom  {
        margin-right: 10px;
    }

    #show-all-units, #automatic-zoom, #reset-zoom-div, #show-div {
        margin-top: 10px;
    }

    #show-all-units.safety {
        margin-left: 0;
    }

}

@media screen and (max-device-width: 500px) {

    #map-settings.racing {
        display: table;
        height: auto;
    }

    #show-all-units {
        margin-top: 10px;
    }

    #show-div {
        margin-top: 10px;
    }

    #map-settings.safety {
        display: table;
        height: 39px;
    }

    #map-settings-label {
        display: table-row;
    }

    #show-all-units-label {
        margin-right: 0;
    }

    #show-all-units.safety {
        margin-left: 0;
    }

}

/*live variables*/
@media screen and (min-device-width: 487px) and (max-device-width: 515px) {

    div#live-variables.racing {
        margin-top: 15px;
        margin-left: 0;
    }
}

/*endregion*/
