.page[name='race'][mode] > .menu,
.page[name='race']:not([mode='statistics']) > .header,
.page[name='race'][mode] > .content > .imageWrapper,
.page[name='race'][mode='scoreboard'] > .content > .section[key='records'],
.page[name='race'][mode='records'] > .content > .section[key='scoreboard'],
.page[name='race']:not([mode='statistics']) > .content > .section[key='laps'],
.page[name='race'][mode='statistics'] > .content > .section[key='records'],
.page[name='race'][mode] > .footer {
    display: none;
}
.page[name='race'] > .header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 64px;
}
.page[name='race'] > .header > .side {
    width: 64px;
}
.page[name='race'] > .header > .side > .button {
    padding: 20px;
}
.page[name='race'] > .header > .side > .button > img {
    display: block;
    width: 24px;
}
.page[name='race'] > .header > .center {
    display: table;
    width: calc(100% - 128px);
    height: 100%;
    text-align: center;
}
.page[name='race'] > .header > .center > div {
    display: table-cell;
    font-size: 16px;
    font-weight: 600;
    vertical-align: middle;
}
.page[name='race'] > .content {
    position: absolute;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.page[name='race']:not([mode]) > .content {
    padding-bottom: 16px;  
}
.page[name='race']:not([mode='statistics']) > .content {
    top: 0;
}
.page[name='race'][mode='statistics'] > .content {
    top: 64px;
}
.page[name='race'] > .content > .imageWrapperOverlay {
    position: absolute;
    top: 0px;
    right: 0;
    left: 0;
    z-index: 1;
    animation: opacity 0.4s ease;
    opacity: 1;
    display: block;
    height: 165px;
}
.page[name='race'] > .content > .imageWrapper {
    width: 100%;
    height: 165px;
    border-radius: 8px;
    position: relative;
}
.page[name='race'] > .content > .imageWrapper > img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.page[name='race'] > .content > .section:not(:last-child) {
    margin-bottom: 40px;
}
.page[name='race'] > .content > .section.fullScreen {
    position: fixed;
    top: 0;
    left: 100vw;
    height: 100vw;
    z-index: 3;
    width: 100vh;
    transform-origin: 0 0;
    padding-top: 24px;
    padding-bottom: 24px;
    animation: spin 0.15s ease 1 forwards, fadeIn 0.3s ease forwards;
}
.page[name='race'] > .content > .section > .header {
    margin-top: 12px;
    margin-right: 20px;
    margin-bottom: 12px;
    margin-left: 20px;
    overflow: hidden;
}
.page[name='race'] > .content > .section.fullScreen > .header > .title {
    font-size: 20px;
}
.page[name='race'] > .content > .section:not(.fullScreen) > .header > .title {
    font-size: 16px;
}
.page[name='race'] > .content > .section > .header > img {
    width: 18px;
    margin-top: 3.5px;
}
.page[name='race'] > .content > .section > .header > .title {
    font-weight: 600;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .header > .title {
    margin-top: 7.5px;
}
.page[name='race'] > .content > .section > .header > .timer {
    padding: 10px;
    border-radius: 12px;
}
.page[name='race']:not(.active) > .content > .section > .header > .timer {
    display: none;
}
.page[name='race'] > .content > .section > .header > .timer > img {
    width: 14px;
    height: 14px;
    margin-top: 3px;
}
.page[name='race'] > .content > .section.fullScreen > .header > .timer > .value {
    font-size: 17px;
}
.page[name='race'] > .content > .section:not(.fullScreen) > .header > .timer > .value {
    font-size: 13px;
}
.page[name='race'] > .content > .section > .tabs {
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
}
.page[name='race'] > .content > .section > .tabs > .button {
    border-radius: 8px;
    display: inline-block;
    padding: 8px 10px;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 13px;
}
.page[name='race'] > .content > .section.fullScreen > .tableWrapper {
    font-size: 17px;
}
.page[name='race'] > .content > .section:not(.fullScreen) > .tableWrapper {
    font-size: 13px;
}
.page[name='race'] > .content > .section > .tableWrapper {
    border-radius: 16px;
    margin-right: 20px;
    margin-left: 20px;
    font-weight: 600;
}
.page[name='race'] > .content > .section.fullScreen > .tableWrapper {
    position: absolute;
    top: 94px;
    right: 24px;
    bottom: 66px;
    left: 24px;
    overflow-y: auto;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table {
    border-spacing: 0px 10px;
    width: 100%;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > thead > .filterFields,
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > thead > .buttons {
    display: none;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > thead > tr > th[key='clientKey'] {
    text-align: center;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > thead > tr > th {
    pointer-events: none;
}
.page[name='race'] > .content > .section[key='records'] > .tableWrapper > .fTable > .content > table > thead > tr > th,
.page[name='race'] > .content > .section[key='records'] > .tableWrapper > .fTable > .content > table > tbody > tr > td:not([colspan]),
.page[name='race'] > .content > .section[key='laps'] > .tableWrapper > .fTable > .content > table > thead > tr > th,
.page[name='race'] > .content > .section[key='laps'] > .tableWrapper > .fTable > .content > table > tbody > tr > td:not([colspan]) {
    font-size: 12px;
}
.page[name='race'] > .content > .section:not(.fullScreen)[key='scoreboard'] > .tableWrapper > .fTable > .content > table > thead > tr > th,
.page[name='race'] > .content > .section:not(.fullScreen)[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td:not([colspan]) {
    font-size: 11px;
}
.page[name='race'] > .content > .section[key='laps'] > .tableWrapper > .fTable > .content > table > tbody > tr.best {
    font-weight: bold
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > tbody > tr > td:first-child {
    text-align: center;
    width: 20px;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > tbody > tr > td {
    padding-top: 16px;
    padding-bottom: 16px;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .badge,
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .text {
    display: inline-block;
    vertical-align: middle;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .badge {
    width: 34px;
    height: 38px;
    position: relative;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .badge > img {
    width: 100%;
    height: 100%;
    opacity: 0;
}
.page[name='race'] > .content > .section > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .badge > .level {
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    line-height: 24px;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .text {
    width: calc(100% - 44px);
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .text > .name,
.page[name='race'] > .content > .section[key='records'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .name {
    font-weight: 600;
    font-size: 14px;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .text > .name {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .text > .carName {
    font-weight: 500;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .tableWrapper > .fTable > .content > table > tbody > tr > .operations > .button {
    border-radius: 8px;
    padding: 4px 8px;
    vertical-align: middle;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .header > .title > img {
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}
.page[name='race'].active > .content > .section[key='scoreboard'] > .header > .timer > span {
    font-size: 12px;
}
.page[name='race']:not(.active) > .content > .section[key='scoreboard'] > .header > .timer > span {
    display: none;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .controls {
    padding: 4px;
    border-radius: 16px;
    margin-top: 6px;
}
.page[name='race'] > .content > .section.fullScreen[key='scoreboard'] > .controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
}
.page[name='race'] > .content > .section[key='scoreboard'] > .controls > img {
    width: 26px;
    display: block;
}
.page[name='race'] > .content > .section[key='records'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .badge,
.page[name='race'] > .content > .section[key='records'] > .tableWrapper > .fTable > .content > table > tbody > tr > td[key='clientKey'] > .name {
    display: inline-block;
    vertical-align: middle;
}
.page[name='race'] > .footer.records {
    display: block;
}

@media (max-width: 799px) {
    .page[name='race']:not([mode]) > .content {
        bottom: 71px;
    }
    .page[name='race'][mode] > .content {
        bottom: 0;
    }
}
@media (min-width: 800px) {
    .page[name='race'] > .content {
        bottom: 0;
    }
}

@keyframes spin { 
    100% { 
        transform:rotate(90deg);
    } 
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}