@import url('core.css');
.info-blocks{
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    font-weight: 500;
}
.live-top-5{
    display: none;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #c5c5c5;
    background-color: #202020;
    box-sizing: border-box;
    padding: 20px 24px;
    margin: 50px;
    width: 100%;
}
.lap-counter-live{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap:100px;
}
.lap-counter-live h1{
    color: white;
    font-weight: 500;
    font-size: 30px;
    padding-left: 10px;
}
.lap-counter-live .live{
    color: red;
    font-size: 20px;
}
.timing-tower{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.timing-row{
    display: grid;
    grid-template-columns:40px 1fr auto;
    color: rgb(255, 255, 255);
    font-size: 22px;
    width: 100%;
    padding: 5px;
    border-bottom: solid 1px #c5c5c5;
}
.live-button{
    border-style: solid;
    border-width: 1px;
    border-color: rgb(255, 0, 0);
    border-radius: 10px;
    background-color: rgba(255, 0, 0, 0);
    color: rgb(255, 0, 0);
    width: 50%;
}
.live-button:hover{
    background-color: red;
    color: white;
    border: white;
    border-style: solid;
    border-width: 1px;
    text-decoration: none;
}
.last-winner{
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #c5c5c5;
    background-color: #202020;
    box-sizing: border-box;
    padding: 20px 24px;
    margin: 50px;
    width: 100%;
}
.winner-card{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.winner-card h2{
    color: white;
    font-size: 30px;
    margin: 0;
}
.winner-card h3{
    color: white;
    font-size: 25px;
    margin: 0;
}
.winner-card h4{
    color: white;
    font-size: 20px;
    margin: 0;
}
.winner-card .driver-headshot{
    width: 250px;
    height: 250px;
}
.winner-text{
    background-color: #202020;
    text-align: center;
    align-self: stretch;
    padding: 10px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -20px;
    border-top: 2px solid #c5c5c5;
    border-radius: 10px;
}
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.team .team-logo{
    align-items: center;
}
.standings {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #c5c5c5;
    background-color: #202020;
    box-sizing: border-box;
    padding: 20px 24px;
    margin: 50px;
    width: 100%;
    gap: 20px;
}
.standing-title{
    color: white;
    font-weight: 500;
    font-size: 30px; 
    overflow: hidden;
    white-space: nowrap;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.standing-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.standings-row-team{
    display: grid;
    grid-template-columns:40px 50px 1.5fr auto;
    color: white;
    font-size: 22px;
    width: 100%;
    padding: 5px;
    border-bottom: solid 1px #c5c5c5;
}
.standings-row-driver {
    display: grid;
    grid-template-columns: 40px minmax(150px, 1fr) auto;
    column-gap: 12px;
    color: white;
    font-size: 22px;
    width: 100%;
    padding: 5px;
    border-bottom: solid 1px #c5c5c5;
    text-align: left;
}

.standings-row-driver,
.standings-row-team {
    height: 42px;
    box-sizing: border-box;
}
.driver {
    white-space: nowrap;
}
.gap {
    justify-self: end;
}
.team-logo{
    max-height: 30px;
    max-width: 30px;
    justify-content: center;

}
.calendar-overview{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #202020;
    padding-bottom: 20px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-width: 2px;
    border-color: white;
}
.calendar-overview h1{
    color: white;
    text-align: center; 
    padding-bottom: 20px;
}
.calendar-overview ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}
.calendar-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #c5c5c5;
    background-color: #202020;
    padding: 20px 50px;
    gap: 10px;
}
.calendar-card h1{
    color: white;
    font-size: 20px;
    margin: 0;
}
.calendar-card h2{
    color: #dfdfdf;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}
.calendar-card .calendar-card-flag{
    height: 100px;
    width: 150px;
}
.calendar-card button{
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    background-color: rgba(255, 0, 0, 0);
}
.calendar-card .past-race{
    color: white;
    border-color: white;
}
.calendar-card .live-race{
    color: red;
    border-color: red;
}
.calendar-card .future-race{
    color: #a1a1a1;
    border-color: #a1a1a1;
}
.calendar-carosel{
    position:relative;
    width: 80%;
    margin: 0 auto;
}
.carosel-viewport{
    padding:10px;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.carosel-track{
    display:flex;
    justify-content:flex-start;
    gap:50px;
    margin:0;
    padding:0;
    list-style:none;
}
.carosel-button{
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    color:white
}
.carosel-button--left{
    left:-40px;
}
.carosel-button--right{
    right:-40px;
}
.calendar-dropdown{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: rgba(255, 0, 0, 0);
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    color: white;
}