html, body {
    margin: 0;
    padding: 0;
}

main {
    background-color: #0a0a0a;
    height: auto;
    min-height: calc(100vh - 70px);
    padding-top: 20px;
    padding-bottom: 50px;
}

section, #races {
    background-color: #111111;
    border: 1px solid #333333;
    width: 90%;
    margin: 20px auto;
    border-radius: 5px;
    padding: 10px;
}

#races {
    width: calc(90% + 20px);
    display: none;
}

h1, h2, h3, #races th {
    margin: 20px 0;
    font-family: 'Antonio', sans-serif;
    font-weight: bolder;
    font-size: 1.5em;
    color: white;
    line-height: 0.95;
}

h2 {
    font-weight: normal;
}

h1 span, h2 span {
    color: #9f9f9f;
    margin-bottom: 5px;
    font-size: 0.8em;
    display: block;
    font-weight: bold;
}


#race-details h1 span {
    width: calc(100% - 5px);
    min-height: 1px;
    background-color: #9f9f9f;
    margin: 0 auto;
}

h3, #races th {
    color: #9f9f9f;
    font-size: 1em;
    margin: 5px 0;
}

.info p, .race {
    color: white;
    font-family: Inter, sans-serif;
    margin: 0;
}

.info {
    margin: 15px 0;
}

#previousPage img {
    width: 75px;
}

.race {
    text-align: center;
}

#races th, #races td {
    border-bottom: 1px solid #333333;
    padding: 5px;
    border-collapse: collapse;
}

.race a {
    color: #d92027;
}

details {
    font-size: 1em;
    font-family: 'Antonio', sans-serif;
    font-weight: bolder;
    line-height: 0.95;
    border-width: 0 1px;
    background-color: #111111;
    border-color: #333333;
    border-style: solid;
    width: 90%;
    margin: 0 auto;
    color: white;
    padding: 10px;
}

details:first-of-type {
    margin-top: 5px;
    border-radius: 8px 8px 0 0;
    border-top: 1px solid #333333;
}

details:last-of-type {
    margin-bottom: 5px;
    border-radius: 0 0 8px 8px;
    border-bottom: 1px solid #333333;
}

details summary, details div    {
    color: white;
}

details summary {
    font-size: 1.2em;
}

details[open] summary {
    margin-bottom: 5px;
}

details div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

details div p {
    margin: 5px 0;
    font-weight: normal;
}

details a {

    color: #d92027;
    border: none;
    background: none;
    padding: 0;
    width: 100%;
    display: block;
    text-align: left !important;
    font-size: 1.1em;
    margin: 5px 0;
}

@media (min-width: 600px) {
    #races {
        display: table;
    }
    details {
        display: none;
    }
}


