main {
    background-color: #0a0a0a;
    min-height: auto;
    margin: 0;
    padding-bottom: 50px;
    border-bottom: grey 1px solid;
}

.breedte {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.rodestreep {
    margin-top: 0;
    padding-top: 50px;
    color: #d92027;
    font-family: Inter, sans-serif;
    font-weight: bolder;
    display: flex;
    justify-content: flex-start;
}

.rodestreep span {
    display: inline;
    width: 50px;
    height: 4px;
    background-color: #d92027;
    margin: auto 5px auto 0;
}

h1 {
    margin: 0;
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 2.5em;
    color: #d92027;
    line-height: 0.95;
}

h1 span {
    color: white;
}

#maintekst {
    color: #9D9D9D;
    font-family: Inter, sans-serif;
    line-height: 1.2;
    width: 100%
}

#filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#filter img {
    width: 30px;
}

#filter select {
    background-color: #121212;
    border: grey 1px solid;
    color: white;
    font-size: 1.1em;
    padding: 8px;
    border-radius: 5px;
}

label {
    display: none;
}

#controlPanel {
    background-color: #0a0a0a;
    min-height: calc(66vh - 70px);
    height: auto;
    position: relative;
}


.race-switch-control {
    display: inline-flex;
    background-color: #111111;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #333333;
    font-family: sans-serif;
    position: absolute;
    top: 30px;
    left: 30px;
}

.race-switch-control input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Standaard look van de knoppen */
.race-switch-control label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    color: #bbbbbb;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

/* DE FIX: De rode kleur als hij geselecteerd is */
.race-switch-control input[type="radio"]:checked + label {
    background-color: #e31e24 !important;
    color: #ffffff !important;
}

/* Hover effect voor de niet-geselecteerde knop */
.race-switch-control label:hover {
    color: #ffffff;
}

#races {
    background-color: #0a0a0a;
    min-height: calc(66vh - 70px);
    height: auto;
    position: relative;
}

@media (min-width: 388px) {
    #races {
        min-height: 70vh;
    }
}


    @media (min-width: 768px) {
        .breedte {
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-end;
        }

        .rodestreep {
            padding-top: 90px;
        }

        h1 {
            font-size: 3em;
        }

        #maintekst {
            font-size: 1.25em;
        }

        #controlPanel {
            min-height: calc(71vh - 70px);
        }

        .race-switch-control {
            left: 150px;
            top: 50px;
        }
    }
