@import url("https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap");

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* 2. Remove default margin */
* {
    margin: 0;
}
body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}
/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}
/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}
/*
    9. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

body,
html {
    font-family: "Titillium Web", sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
    width: 100vw;
}

/* VARIABLES */

:root {
    --p1-color: #1c1c1c;
    --p2-color: #1c1c1c;
    --p3-color: #1c1c1c;
    --p4-color: #1c1c1c;
    --hover-color: #38383f;
}
h1 {
    margin: 25px auto;
}
.table-container {
    width: 90%;
    /* border: 1px solid black; */
    margin: 25px auto;
}

.table-container th {
    display: none;
}

.table-container tr {
    display: flex;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
    cursor: pointer;
    height: 75px;
}

.table-container tr.table-content {
    justify-content: space-between;
    padding: 0;
}

.table-container tr.table-content td {
    margin: 0 10px 0 5px;
    font-size: 1rem;
    text-align: center;
    padding: 5px;
    height: 100%;
}
.table-container tr.table-content td:nth-child(1) {
    display: flex;
    align-items: center;
}

.table-container tr.table-content td:nth-child(2) {
    text-wrap: nowrap;
    display: flex;
    align-items: center;
}
.table-container tr.table-content td .position {
    border-right: 5px solid var(--andrew-color);
    padding-right: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.table-container tr.table-content td .driver-name {
    margin-left: 10px;
}

.table-container tr.table-content td .driver-surname {
    font-weight: bolder;
    text-transform: uppercase;
    margin-left: 2px;
}

.table-container tr.table-content td .team {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
}
.table-container tr:hover .table-content td .team:not(:hover) {
    color: #fff !important;
}

.table-container tr.table-content td .points {
    background-color: #ccc;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: 0 10px;
}

/* HOVER */

.table-container tr:hover {
    background-color: var(--hover-color);
    color: #fff !important;
}

.table-container tr:hover .points {
    color: black;
}

/* DRIVER 1 */

.table-container .table-content.driver1 .position {
    border-right: 5px solid var(--p1-color);
}

/* DRIVER 2 */

.table-container .table-content.driver2 .position {
    border-right: 5px solid var(--p2-color);
}

/* DRIVER 3 */

.table-container .table-content.driver3 .position {
    border-right: 5px solid var(--p3-color);
}

/* DRIVER 4 */

.table-container .table-content.driver4 .position {
    border-right: 5px solid var(--p4-color);
}

.liveries {
    display: flex;
    flex-wrap: wrap;
    max-width: 90%;
    margin: 0px auto 25px auto;
}
.liveries img {
    width: 50%;
}
