:root{
    --red: #D83203;
    --green: #144E3E;
    --light-green: #0E654D;
    --dark-green: #033829;
    --olive: #323B38;
}
*{
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    text-transform: uppercase;
}
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
a{
    text-decoration: none;
}
header {
    width: 100%;
    height: 150px;
    position: relative;
    flex-shrik: 0;
}
.header-background {
    height: 100%;
    width: 100%;
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/header.jpg');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(1.2px);
}
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
    width: 112px;
    height: 88px;
}
.meeting {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/white-red.svg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 44px;
    width: 100%;
    color: white;
    text-wrap: balance;
    text-align: center;
    
}
.back-link {
    display: flex;
    flex-direction: column;
    padding: 5px;
    position: absolute;
    top: 10px;
    left: 20px;
    text-decoration: none;
}
.back-icon{
    height: 27px;
    width: 35px;
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/back.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.back-text {
    font-size: 14px;
    text-transform: capitalize;
    color: black;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: min-content;
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
    background: #D2E3C7;
    box-shadow: inset rgba(0, 0, 0, 0.16) 0px 3px 6px 0px; 
}

.bg-image-green {
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/green.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

footer{
    height: 70px;
    margin-top: 25px;
}
header img, footer img{
    height: 100%;
}
small{
    text-align: center;
    font-size: 10px;
    margin-bottom: 10px;
    padding: 5px;
}
.name-club-bib-number small > span{
	background-color: transparent;
}
.name-club-bib-number small{
	background-color: transparent;
}
.red{
    color: var(--red);
}
h3{
/*     background-color: var(--red); */
	background-color: #144E3E;
    color: white;
    max-width: 800px;
    width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	height: 100px;
	font-size: 1.2em;
	margin: 0px 0px 10px 0px;
}
h3 > p {
    margin: 0px;
    font-size: .9em;
}
.button{
	background-color: var(--dark-green);
    top: 5px;
    left: 5px;
    position: absolute;
    text-decoration: none;
    height: 60px;
	width: 125px;
	cursor: pointer;
	border: 2px solid white;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 10px;
	color: white;
}
.button:active{
	transform: scale(0.9);
}
section{
    width: 100%;
    margin: 0;
}
div{
    width: 100%;
}
ul{
    width: 100%;
    display: grid;
    grid-template-columns: 30px 40px 40px 1fr 60px;
    padding: 0;
}
li{
    list-style: none;
    /* border: 1px solid black; */
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 0.9em;
}
.runners{
    display: grid;
    grid-column: auto;
    row-gap: 10px;
}
.runner{
    display: grid;
    grid-template-columns: 50px 1fr 80px;
	margin-bottom: 5px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.20);
	position: relative;
}
.runner:nth-child(1) .class, .runner:nth-child(2) .class, .runner:nth-child(3) .class {
    font-size: 50px;
    align-items: flex-start;
}
.runner:first-child {
    padding-top: 35px;
}
.runner:last-child{
    border-bottom: none;
}
.runner-header {
    position: absolute;
    top: -12px;
    left: -2.5%;
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/white-red.svg');
    background-size: cover;
    background-repeat: no-repeat;
    display: grid;
    grid-template-columns: calc(50px + 2.5%) 1fr 80px;
    align-items: center;
    width: 105%;
    height: 50px;
    color: white;
    padding-left: 2.5%;
}
.runner-header-ranking {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.runner-header-ranking-icon {
    width: 30px;
    height: 100%;
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/ranking.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.runner .class{
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 36px;
}
.runner .class-no-result{
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-weight: bold;
    font-size: 1.2em;
}
.runner .name-club-bib-number{
    padding: 5px 10px;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}
.runner .name-club-bib-number *
{
    padding: 0;
    margin: 0;
}
.runner .name-club-bib-number > small{
    display: flex;
    justify-content: space-between;
	color: grey;
}
.runner .time{
	height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.extra-info {
    display: flex;
    flex-direction: column;
}
.extra-info > p {
    font-weight: 700;
}
.extra-info > span {
    font-size: 10px;
}
footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
footer img {
    width: 212px;
    height: 100%;
}

.infoClass {
    box-sizing: border-box;
    padding: 10px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    width: 100%;
    gap: 10px;
}
#club-select-container {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    gap: 16px;
    display: flex;
    flex-wrap: nowrap;
}

#clubSelect {
    height: 40px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
    flex-shrink: 0;
}
#club-select-container button {
    height: 40px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
    flex-shrink: 0;
}

.list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.discipline-container {
    position: relative;
}
.discipline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    flex-direction: column;
    width: 100%;
    padding: 0 80px 0 5px;
    z-index: 2;
    position: relative;
    background-position-x: -45px;
    margin-top: 10px;
}

.background-white-big {
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/white-big.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.background-red-arrow {
    background-image: url('https://frma.racetimermorocco.com/meeting_live/img/red-arrow.svg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 40px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-position-x: -25px;
}


.runner-engagement {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 100%;
    background-color: white;
    padding: 5px;
    margin-top: 5px;
}



.hide {
    display: none;
}

.runner-engagement-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    width: 100%;
    gap: 5px;
}
.runner-engagement-rank {
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

.runner-engagement-name-club-confirmation {
    display: flex;
    flex-direction: column;
}
.runner-engagement-name-club {
     display: flex;
     gap: 5px;
}
.runner-engagement-club,
.runner-engagement-confirmation {
    display: flex;
    white-space: nowrap;
    font-size: 10px;
}

.runner-engagement-performance {
    width: 100px;
    font-size: 24px;
}

.pt-25 {
    padding-top: 25px;
}