
/************************
 * Race card
************************/
.race-card{
    display:inline-block;
    width: 360px;
    margin: 8px;
    padding: 8px;
    border-radius: 8px;
    color:white;
    transition: all 0.3s;
}

.race-card:hover{
    transform: scale(1.02);
    filter: brightness(0.95);
}

.race-card > span{
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin: 2%;
    padding: 2%;
    width : 42%;
    display:inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, 0.2);
}

.race-card h3{
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 2%;
    margin: 2%;
    width : 92%;
    white-space: nowrap;
}


.buttonarrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    font-size: 1.8rem;
    font-weight: 700;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    transition: opacity 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.buttonarrow:hover {
    opacity: 1;
    background: rgba(0,0,0,0.25);
}

.left-button {
    left: 14px;
}

.right-button {
    right: 14px;
}

/*****************************
 * Race page
*/
.mainRaceDashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}
.mainRaceDashboard > .flex-left {
    flex-basis: 460px;
    flex-grow: 1;
}
.mainRaceDashboard > .flex-right {
    flex-basis: 600px;
    flex-grow: 4;
}

/*****************************
 * Race Card
*/
.stage-card{
    background-color: var(--pcmmod-color-main-lightGrey);
    width: 38%;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    height: 230px;
    text-decoration: none;
    transition: all 0.3s;
}

.stage-card .stageBackdropFilter{
    backdrop-filter: saturate(60%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s;
}

.stage-card .gradient {
    width: 100%;
    height: 80%;
    background: linear-gradient(0deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.90) 52%, rgba(0,0,0,0) 90%);
    border-radius: 7.7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--pcmmod-color-hover-lightGrey);
    text-decoration: none;
    text-align: left;
    transition: all 0.5s;
}
.stage-card .gradient > h3, .stage-card .gradient > p {
    margin: 2px 10px;
    text-align: left;
    margin-bottom: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stage-card .optional-info {
    color: var(--pcmmod-color-hover-lightGrey2);
    line-height: 0px;
    font-size: 0px;
    padding-bottom: 5px;
    transition: all 0.5s;
}

.stage-card:hover {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
}
.stage-card:hover .gradient {
    height: 90%;
    color: white;
}
.stage-card:hover .stageBackdropFilter {
    backdrop-filter: saturate(100%);
}
.stage-card:hover .optional-info {
    line-height: 0.8rem;
    font-size: 0.8rem;
}






.leaflet-control-layers-expanded {
    text-align: left;
}
