* {
    box-sizing: border-box;
}

/* Main page css*/

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #111111; 
    color: #f3f3f3;
    line-height: 1.6;
}

header {
    background-color: #1f1f1f;
    border-bottom: 4px solid #e10600;
    padding: 20px 0 0 0;
}

.headerCont h1 {
display: flex;
justify-content: center;
margin: 0;
font-size: 35px;
text-transform: uppercase;
letter-spacing: 2px;
color: #e10600;
}

.headerCont h2 {
    display: flex;
    justify-content: center;
    margin: 5px 0 20px 0;
    font-size: 30px;
    color: #aaa;
    font-weight: 400;
}

.navMenu ul {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navElem {
    margin: 0 5px;
}

.navElem a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}

.navElem a:hover {
    background-color: #e10600;
    color: #ffffff;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.historyTopic {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.historyCont ul {
    list-style-type: none;
    padding: 0;
}

.historyP {
    background-color: #1f1f1f;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid #333;
    transition: transform 0.2s, border-color 0.2s;
}

.historyP:hover {
    transform: translateX(5px);
    border-left-color: #e10600;
}

.historyP h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #e10600;
    font-size: 20px;
}

.historyP img {
    display: block;
    height: auto;
    width: 300px;
    margin-top: 15px;
    border-radius: 4px;
}

.actionCont ul {
    display: flex;
    gap: 20px;
    list-style-type: none;
    padding: 0;
}

.actionP {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #e10600;
}

.actionP h4 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Teams page css */

.teamsDiv {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

.teams1, .teams2, .teams3 {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #1f1f1f;
    padding: 25px;
    border-radius: 8px;
}

.teamCard {
    display: flex;
    flex-direction: column; 
    align-items: center;  
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    width: 160px;       
    transition: transform 0.2s, background-color 0.2s;
}

.teamCard:hover {
    transform: translateY(-5px);
    background-color: #333;
}

.teamCard img {
    width: 100px;            
    height: 100px;
    object-fit: contain;   
    margin-bottom: 12px;   
}

.teamCard a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.teamCard:hover a {
    color: #e10600;
}

.teamsInfo {
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

.teamsInfo section {
    background-color: #1f1f1f; 
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #333333;
    transition: transform 0.2s, border-left-color 0.2s;
}

.teamsInfo section:hover {
    transform: translateX(4px);
    border-left-color: #e10600; 
}


.teamsInfo strong {
    display: block; 
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.teamsInfo p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* racing.html css */

.tracksMain {
    margin: 0 auto;
    padding: 20px;
    max-width: 1400px;
}

.racesTracksInfo {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

.tracksCal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    background-color: #1f1f1f;
    border-left: 4px solid #e10600;
    border-radius: 8px;
    width: 100%;
    flex: 1.2;
}

.tracksListRow1, .tracksListRow2 {
    padding: 0;
    margin: 0;
    width: 100%;
    list-style-type: none;
    flex: 1;
}

.tracksListRow1 li, .tracksListRow2 li {
    display: flex;
    margin-bottom: 15px;  
    gap: 15px;
    align-items: center;
}

.tracksListRow1 img, .tracksListRow2 img {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

.tracksListRow1 a, .tracksListRow2 a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 6px 10px;
    transition: background-color 0.2s, border-radius 0.2s;
    display: inline-block;
    width: 100%;
}

.tracksListRow1 a:hover, .tracksListRow2 a:hover {
    background-color: #e10600;
    border-radius: 4px;
}

.track-info {
    display: none; 
    background-color: #1f1f1f;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #333;
    transition: transform 0.2s, border-color 0.2s;
    width: 100%;
    flex: 1;
    position: sticky;
    top: 20px;
}

.track-info:hover {
    transform: translateY(-2px);
    border-left-color: #e10600; 
}

.track-info h2 {
    margin-top: 0;
    color: #e10600;
}

.track-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.track-gallery img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

#text-aus:target, #text-chn:target, #text-jpn:target, #text-mia:target,
#text-can:target, #text-mco:target, #text-esp:target, #text-aut:target,
#text-gbr:target, #text-bel:target, #text-hun:target, #text-nld:target,
#text-ita:target, #text-aze:target, #text-sgp:target, #text-usa:target,
#text-mex:target, #text-bra:target, #text-vegas:target, #text-qat:target,
#text-abu:target, #text-mdr:target {
    display: block;
}

/* leaderboard */

.tableCont {
    max-width: 950px;
    margin: 40px auto;
    padding: 10px;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tableCont table {
    width: 100%;
    border-collapse: collapse; 
    font-family: sans-serif;
    color: #ffffff;
    text-align: left;
}

.tableCont th {
    background-color: #111111;
    color: #b3b3b3;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 2px solid #e10600; 
}

.tableCont td {
    padding: 12px 16px;
    font-size: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.tableCont tr:hover td {
    background-color: #262626;
    color: #ffffff;
}

.tableCont td:last-child{
    text-align: right;
    font-weight: bold;
}

.tableCont td:first-child {
    font-weight: bold;
    color: #a0a0a0;
    width: 50px;
}

.tableCont tr:nth-child(2) td:first-child { 
    color: #ffd700; 
}
.tableCont tr:nth-child(3) td:first-child { 
    color: #c0c0c0; 
}
.tableCont tr:nth-child(4) td:first-child { 
    color: #cd7f32; 
}

/*about.html*/

.mLetter {
    max-width: 650px;
    margin: 60px auto;
    padding: 30px;
    background-color: #1f1f1f; 
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-top: 4px solid #e10600; 
}

.mLetter p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: sans-serif;
}

.lP {
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

form {
    display: flex;
    gap: 12px;
    width: 100%;
}

form input[type="text"] {
    flex: 1; 
    background-color: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

form input[type="text"]:focus {
    border-color: #e10600;
}

form input[type="text"]::placeholder {
    color: #777777;
    font-style: italic;
}

form button[type="submit"] {
    background-color: #e10600; 
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

form button[type="submit"]:hover {
    background-color: #b80500; 
}

form button[type="submit"]:active {
    transform: scale(0.97); 
}

