@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #eaeaea;
    color: #000;
    margin: 0;
    padding: 0;
}

header {
    background-color: #000;
    color: white;
    padding: 10px 0;
    text-align: center;
}
header h1 {
	color: #fff;
}

nav {
    background-color: #D31A16;
    padding: 15px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ccc;
}

.main-content {
    padding: 20px;
}

button, input[type="submit"] {
    background-color: #D31A16;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

button:hover, input[type="submit"]:hover {
    background-color: #cc0000;
}

/* Tabellen für mobile Geräte scrollbar machen */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    width: 100%;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #D31A16;
    text-align: center;
}

th {
    background-color: #D31A16;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
    color: #000;
}

main {
    padding: 20px;
}

h1 {
	color: #000;
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

h2 {
    color: #000;
    border-bottom: 2px solid #D31A16;
    padding-bottom: 10px;
}

h3 {
    color: #000;
    margin-top: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    border: 1px solid #555;
    padding: 8px;
    text-align: center;
}

.results-table th {
    background-color: #D31A16;
    color: white;
    font-weight: bold;
}

.results-table tbody tr:nth-child(odd) {
    background-color: #ccc;
}

.results-table tbody tr:nth-child(even) {
    background-color: #dedede;
}

.results-table tbody tr:hover, #ratings-table tbody tr:hover {
	background-color: #aaa;
}

#filters {
    margin-bottom: 20px;
}

#filters label {
    margin-right: 10px;
    font-weight: bold;
}

#filters select, #race-selection select, #season-selection select {
    padding: 5px 7px;
    margin-right: 20px;
    border-radius: 6px;
    border: 2px solid #D31A16;
    background-color: #000000;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    appearance: none; /* entfernt Browser-Styles */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 24, 1, 0.2);
}

#filters select:hover, #race-selection select:hover, #season-selection select:hover {
    border-color: #D31A16;
    box-shadow: 0 0 8px rgba(255, 24, 1, 0.4);
}

#filters select:focus, #race-selection select:focus, #season-selection select:focus {
    outline: none;
    border-color: #D31A16;
    box-shadow: 0 0 12px rgba(255, 24, 1, 0.6);
}

td.fastest-lap {
    background-color: #800080 !important;
    color: #FFFFFF;
    font-weight: bold;
}

span {
    font-weight: bold;
}

span[style*="color: green;"] {
    color: green;
}

span[style*="color: red;"] {
    color: red;
}

p.welcome {
    margin-bottom: 20px;
    text-align: center;
}

.icons {
    text-align: center;
    margin-top: 30px;
}

.icons img {
    margin: 0 10px;
    width: 50px;
    height: 50px;
}

.icons a {
    text-decoration: none;
}

/* Lineup-Spezifische Stile */
.lineup-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.team {
    width: 45%;
    border: 3px solid;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ccc;
}

.team h2 {
    margin: 0;
    padding: 10px;
    color: #ffffff;
    text-align: center;
    background-color: #ccc;
    border-bottom: 0px solid #D31A16;
}

.team-details {
    display: flex;
    align-items: center;
    padding: 10px;
}

.team-details img {
    width: 50%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
}

.team-details img.teamlogo {
    width: 100px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
}

.drivers {
    flex-grow: 1;
}

.drivers p {
    font-size: 18px;
    text-align: center;
    margin: 0;
    padding: 5px 0;
}

.reserve-drivers {
    list-style: none;
    padding: 0;
}

.reserve-drivers li {
    color: #000;
    background-color: #ccc;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .team {
        width: 100%;
    }

    .team-details {
        flex-direction: column;
    }

    .team-details img {
        margin-bottom: 15px;
        margin-right: 0;
        width: 100%;
    }
}

.dnf-row {
    background-color: #555 !important;
    color: #eaeaea;
}

.standings-container {
    justify-content: space-around;
    padding: 20px;
}

.drivers-standings, .teams-standings {
    width: 48%;
}

.drivers-standings h1, .teams-standings h1 {
    text-align: left;
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.standings-container table {
    width: 100%;
    border-collapse: collapse;
    color: #eaeaea;
    font-size: 1rem;
}

.standings-container th, .standings-container td {
    padding: 8px 12px;
    border: 1px solid #555;
    text-align: center;
}

.standings-container th {
    background-color: #D31A16;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.standings-container tbody tr:nth-child(odd) {
    background-color: #ccc;
}

.standings-container tbody tr:nth-child(even) {
    background-color: #dedede;
}

.standings-container td:first-child {
    font-weight: bold;
}

.standings-container .drivers-standings td.driver-name {
    color: #FFD700;
}

.standings-container .teams-standings td.team-name {
    color: #FFD700;
}
