/*
    This stylesheet was adapted from the
    https://github.com/orderedlist/minimal
    GitHub Pages theme,
    and is therefore licensed under CC BY-SA 3.0.

    https://creativecommons.org/licenses/by-sa/3.0/
*/

/*
    note: you really need to restructure this to use classes instead of ids
*/

@font-face {
    font-family: 'Jaldi';
    font-weight: 400;
    font-weight: normal;
    src: url("/test/fonts/Jaldi/Jaldi-Regular.ttf") format("truetype"), url("./fonts/Jaldi/Jaldi-Regular.ttf") format("truetype");
}
@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url("/test/fonts/Roboto/Roboto-Regular.ttf") format("truetype"), url("./fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}
@font-face {
    font-family: 'Roboto Bold';
    font-weight: 400;
    font-style: normal;
    src: url("/test/fonts/Roboto/Roboto-Bold.ttf") format("truetype"), url("./fonts/Roboto/Roboto-Bold.ttf") format("truetype");
}
@font-face {
    font-family: 'Roboto Medium';
    font-weight: 500;
    font-style: normal;
    src: url("/test/fonts/Roboto/Roboto-Medium.ttf") format("truetype"), url("./fonts/Roboto/Roboto-Medium.ttf") format("truetype");
}

body {
    background-color: #d3d5d7;
    padding: 20px 0px;
    font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #424242;
    font-weight: 400;

    min-width: 400px;
    margin: 0px;
}

h1,h2,h3,h4,h5,h6 {
    color: #222;
    margin: 0 0 20px;
}
h1,h2,h3 {
    line-height: 1.1;
}
h1 {
    font-size: 28px;
}
h2 {
    color: #393939;
}
h3,h4,h5,h6 {
    color: #494949;
    margin-block-end: 6px;
}

a {
    color: #267CB9;
    text-decoration: none;
}
a:hover,a:focus {
    color: #069;
    font-weight: bold;
}

a small {
    font-size: 11px;
    color: #777;
    margin-top: -0.3em;
    display: block;
}
a:hover small {
    color: #777;
}

code,pre {
    font-family: Consolas, Terminal, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
    color: #333;
}
pre {
    padding: 8px 15px;
    background: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th,td {
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #e5e5e5;
}
dt {
    color: #444;
    font-weight: 700;
}
th {
    color: #444;
}

ul {
    margin-block-start: 4px;
    margin-block-end: 4px;
}

img {
    max-width: 100%
}

strong {
    color: #222;
    font-weight: 700
}
small {
    font-size: 11px
}

header {
    padding: 0px 20px;
}
section {
    padding: 20px 20px 50px 20px;
    box-shadow: 0 0 0 8px #d3d5d7, 0 -8px 8px #666;
    position: relative;
}
footer {
    font-size: 12px;
    padding: 20px 20px 50px 20px;
    box-shadow: 0 0 0 8px #d3d5d7, 0 -8px 8px #666;
}


#section-header {
    display: inline-block;
    width: 100%;
    position: relative;
}
#section-header img {
    vertical-align: middle;
    height: 40px;
}
#used-cars {
    font-family: 'Roboto Bold';
    font-size: 18px;
    color: #000;
    display: inline-block;
    vertical-align: middle;
}
#legend-cars {
    font-family: 'Roboto';
    font-size: 22px;
    color: #d5d5d5;
    display: inline-block;
    vertical-align: middle;
}
#update-string {
    font-size: 13px;
    position: absolute;
    right: 26px;
    top: 32px;
}
.car-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.car {
    background-color: #d9dbdb;
    position: relative;
    height: 220px;
    min-width: 310px;
    width: 310px;
    margin: 10px;
    box-shadow: 0px 0px 12px #ccced0;

    flex: 0 0 29%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.car #flag {
    position: absolute;
    top: 20px;
    left: 10px;
    height: 16px;
    width: 24px;
}
.car #manufacturer {
    font-family: 'Jaldi';
    font-weight: 400;
    font-size: 24px;

    color: #292929;
    position: absolute;
    top: 10px;
    left: 40px;
    width: 280px;
}
.car #name {
    font-family: 'Roboto Medium';
    font-weight: 500;
    font-size: 24px;

    position: absolute;
    color: #292929;
    top: 50px;
    left: 10px;
    width: 300px;
}
.car #name a {
    color: #292929;
}
.car #credits {
    font-family: 'Roboto Bold';
    font-weight: 400;
    font-size: 26px;

    position: absolute;
    color: #000;
    bottom: 20px;
    right: 20px;
    width: 282px;
    text-align: right;
}
.car #cr {
    font-family: 'Roboto';
    font-size: 22px;
}
.car #limited {
    font-family: 'Roboto Bold';
    font-size: 18px;
    color: #D00;

    position: absolute;
    bottom: 55px;
    right: 20px;
}
.car #soldout {
    font-family: 'Roboto Bold';
    font-size: 32px;
    color: #B00;

    transform: rotate(-10deg);
    margin: 24px 0px 0px 0px;
    padding: 6px;
    border: 4px solid #B00;
    z-index: 1;
}
.car #daycount {
    font-family: 'Roboto';
    font-size: 12px;
}
.car #new {
    font-family: 'Roboto Bold';
    font-size: 32px;
    color: #0487C4;

    position: absolute;
    top: 2px;
    right: 20px;
}
.car #days-estimate {
    font-family: 'Roboto';
    font-size: 11px;
    color: #777;

    position: absolute;
    bottom: 10px;
    right: 20px;
}
.car #days-remaining {
    font-family: 'Roboto';
    font-size: 11px;
    color: #D00;

    position: absolute;
    bottom: 80px;
    right: 20px;
}
.car #reward-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
}
.car #reward-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #208ae7;

    position: absolute;
    bottom: 35px;
    left: 6px;
    text-align: center;
}
.car #engineswap-icon {
    position: absolute;
    bottom: 10px;
    left: 40px;
}
.car #engineswap-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #333;

    position: absolute;
    bottom: 35px;
    left: 38px;
    text-align: center;
}
.car #lottery-icon {
    position: absolute;
    bottom: 10px;
    left: 70px;
}
.car #lottery-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #333;

    position: absolute;
    bottom: 35px;
    left: 66px;
    text-align: center;
}
.car #trophy-icon {
    position: absolute;
    bottom: 10px;
    left: 100px;
}
.car #trophy-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: rgb(173, 137, 18);

    position: absolute;
    bottom: 35px;
    left: 98px;
    text-align: center;
}
.car #transfer-icon {
    position: absolute;
    bottom: 10px;
    left: 130px;
}
.car #transfer-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: rgb(188, 28, 0);

    position: absolute;
    bottom: 35px;
    left: 128px;
    text-align: center;
}

#legend-section {
    background-color: #28282b;
    box-shadow: 0 0 16px #28282b;
    color:#898989;
}
.lcar {
    position: relative;
    height: 280px;
    min-width: 280px;
    width: 280px;

    margin: 9px;
    border: 1px solid #444446;
    flex: 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lcar #flag {
    position: absolute;
    top: 20px;
    left: 10px;
    height: 16px;
    width: 24px;
}
.lcar #manufacturer {
    font-family: 'Jaldi';
    font-weight: 400;
    font-size: 20px;

    color: #d5d5d5;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 240px;
}
.lcar #name {
    font-family: 'Roboto Medium';
    font-weight: 500;
    font-size: 24px;

    position: absolute;
    color: #d5d5d5;
    top: 45px;
    left: 20px;
    width: 240px;
}
.lcar #name a {
    color: #d5d5d5;
}
.lcar #credits {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 26px;

    border-top: 1px solid #0487C4;
    padding: 6px 0px 0px 0px;
    position: absolute;
    color: #d5d5d5;
    bottom: 70px;
    left: 20px;
    width: 240px;
}
.lcar #cr {
    font-family: 'Roboto';
    font-size: 20px;
}
.lcar #limited {
    font-family: 'Roboto Bold';
    font-size: 18px;
    color: #D00;

    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 240px;
    text-align: right;
}
.lcar #soldout {
    font-family: 'Roboto Bold';
    font-size: 32px;
    color: #B00;

    transform: rotate(-10deg);
    margin: 0px 0px 24px 0px;
    padding: 6px;
    border: 4px solid #B00;
    z-index: 1;
}
.lcar #daycount {
    font-family: 'Roboto';
    font-size: 12px;
}
.lcar #icon {
    position: absolute;
    right: 48px;
    top: 0px;
    width: 32px;
}
.lcar #new {
    font-family: 'Roboto Bold';
    font-size: 32px;
    color: #0487C4;

    position: absolute;
    bottom: 125px;
    right: 20px;
}
.lcar #days-estimate {
    font-family: 'Roboto';
    font-size: 11px;
    color: #898989;

    position: absolute;
    bottom: 6px;
    left: 20px;
    width: 240px;
    text-align: right;
}
.lcar #days-remaining {
    font-family: 'Roboto';
    font-size: 11px;
    color: #D00;

    position: absolute;
    bottom: 6px;
    left: 20px;
    width: 240px;
    text-align: right;
}
.lcar #onetime {
    font-family: 'Roboto';
    font-size: 11px;

    position: absolute;
    bottom: 120px;
    left: 20px;
    width: 240px;
    text-align: center;
}
.lcar #grind {
    font-family: 'Roboto';
    font-size: 11px;

    position: absolute;
    bottom: 105px;
    left: 20px;
    width: 240px;
    text-align: center;
}
.lcar #play {
    font-family: 'Roboto';
    font-size: 11px;

    position: absolute;
    bottom: 90px;
    left: 20px;
    width: 240px;
    text-align: center;
}
.lcar #reward-icon {
    position: absolute;
    bottom: 25px;
    left: 20px;
}
.lcar #reward-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #208ae7;

    position: absolute;
    bottom: 50px;
    left: 15px;
    text-align: center;
}
.lcar #engineswap-icon {
    position: absolute;
    bottom: 25px;
    left: 50px;
}
.lcar #engineswap-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #aaa;

    position: absolute;
    bottom: 50px;
    left: 48px;
    text-align: center;
}
.lcar #trophy-icon {
    position: absolute;
    bottom: 25px;
    left: 80px;
}
.lcar #trophy-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: #c93;

    position: absolute;
    bottom: 50px;
    left: 78px;
    text-align: center;
}
.lcar #transfer-icon {
    position: absolute;
    bottom: 25px;
    left: 110px;
}
.lcar #transfer-text {
    font-family: 'Roboto';
    font-size: 8px;
    color: rgb(188, 28, 0);

    position: absolute;
    bottom: 50px;
    left: 108px;
    text-align: center;
}

.carnew {
    border: 1px solid #0487C4;
    margin: 9px;
}
.carlimited {
    border: 1px solid #D00;
    margin: 9px;
}
.carsold {
    border: 1px solid #000;
    margin: 9px;
}
.car.carsold {
    background-color: #999;
}

#campaign-reward-section {
    padding: 40px 20px 50px 20px;
    box-shadow: none;
}
#campaign-reward-section h3 {
    width: 360px;
    border-top: 1px solid #999;
}

#engine-swap-block {
    border-top: 1px solid #999;
    min-width: 360px;
    max-width: 460px;
    position: relative;
}
#engine-swap-block small {
    position: absolute;
    top: 0px;
    right: 0px;
    font-weight: 700;
    text-align: right;
}

#daily-races {
    font-family: 'Roboto';
    font-size: 32px;
    color: #ddedf7;
    text-align: center;
}
#daily-races-section {
    background: #080c10;
    background: linear-gradient(45deg, #080c10 0%, #404f5c 100%);
    box-shadow: 0 0 16px #1a2128;
    color:#ddedf7;
}

.dailyrace-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.dailyrace {
    background-color: #0c1316;
    position: relative;
    height: 900px;
    min-width: 380px;
    max-width: 380px;
    width: 380px;
    margin: 10px;
    border: 1px solid #ffffff88;
    color: #fff;
}
.dailyrace #racetitle {
    position: absolute;
    top: 10px;
    left: 40px;
    font-family: 'Roboto Bold';
    font-size: 22px;
}
.dailyrace #flag {
    position: absolute;
    top: 130px;
    left: 20px;
    height: 16px;
    width: 24px;
}
.dailyrace #logo {
    position: absolute;
    top: 10px;
    left: 40px;
    width: 300px;
}
.dailyrace #trackname {
    position: absolute;
    top: 150px;
    left: 20px;
    width: 340px;
    font-family: 'Roboto';
    font-size: 18px;
}
.dailyrace .racedetails {
    position: absolute;
    top: 200px;
    left: 20px;
    width: 340px;
}
.dailyrace .racedetailrow {
    width: 340px;
    height: 32px;
    vertical-align: middle;
}
.dailyrace .racedetailheader {
    font-family: 'Roboto Bold';
    font-size: 12px;
    background-color: #394245;
    color: #eff;
    width: 340px;
    text-align: center;
}
.dailyrace .racedetaillabel {
    font-family: 'Roboto Bold';
    font-size: 12px;
    color: #667176;
}
.dailyrace .racedetailcontent, .dailyrace .specifiedcar {
    font-family: 'Roboto Bold';
    font-size: 14px;
    color: #eff;
}
.dailyrace #fuelcons, .dailyrace #tyrewear {
    color: #f64;
}
.dailyrace #racesettings .racedetailcontent {
    color: #7bf;
}
.dailyrace .racedetailcontent#bop, .dailyrace .racedetailcontent#spec {
    color: #fe2;
}
/*.dailyrace #pitlanepenlabel {
    font-size: 10px;
}*/
.dailyrace .boprace {
    background-color: #fe2;
    color: #000;
    width: auto;
    position: absolute;
    top: 15px;
    right: 0px;
    width: 80px;
    height: 20px;
    font-family: 'Roboto Bold';
    text-align: center;
}

.tyre {
    font-family: 'Roboto';
    font-size: 16px;
    color: #fff;
    border: 2px solid #fff;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    vertical-align: middle;
    display: table-cell;
    border-radius: 50%;
    text-align: center;
}
.tyre#CS, .tyre#SS, .tyre#RS {
    color: #f40;
    border: 2px solid #f40;
}
.tyre#CM, .tyre#SM, .tyre#RM {
    color: #ff4;
    border: 2px solid #ff4;
}
.tyre#IM {
    color: #6b4;
    border: 2px solid #6b4;
}
.tyre#W {
    color: #26b;
    border: 2px solid #26b;
}
.tyre#D {
    color: #c60;
    border: 2px solid #c60;
}

#back-to-top {
    font-size: 13px;
    position: absolute;
    right: 26px;
    bottom: 32px;
}