html,
body {

    height: 100vh;
    width: 100vw;
    /* overflow: hidden; */
    padding: 0em;    
    margin: 0 auto;    
    overflow-x: hidden;

    overscroll-behavior: none;    
    touch-action: manipulation;
    background-image: url('../img/resultsBackground.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }



main {
    position: relative;
    z-index: 1;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);    

    margin-right: auto;
    margin-left: auto;
    padding-top: 10px;

    display: flex;
    align-items: flex-start; 
    justify-content: center;
}


main.tv {
    justify-content:left;    
}



.holder {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;

    width: fit-content;
    height: fit-content;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;  
    padding-right: 3px;
}

    .holder:before {
        content:"";
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--bg); 
        z-index: -1; 
        top: 0px;
        left: 0px;
    }




.driver-list {
    display: flex;
    flex-direction: column;
    /* width: fit-content; */
    width: fit-content;    
    height: fit-content;
    white-space: nowrap;    
    align-content: center;    
 }


 .driver-list {

    height: calc(((var(--max-h) + var(--mrgin-b)) * var(--current_rows)) - var(--mrgin-b));

    /* max-height: calc(100vh - var(--header_height) - var(--mrgin-b) - var(--max-h) + (var(--base-size)) - (var(--ios)) ); */
    max-height: calc(100vh - (var(--header_height) + var(--max-h) + var(--base-size) + var(--ios) + var(--header_margin)) );         
 }



  .driver-list *{
    position: relative;
  }  
  




.header {
    display: flex;
    position: relative;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
    padding: 10px;
    padding-right: 0px;
    width: calc(100% - 25px);
    margin-left: 5px;
    align-items: center;  
    justify-content: center; 
    z-index: 1;         
}

    .sharjah::before,
    .header::before {
        content: "";    
        position: absolute;
        display: block;    

        height: calc(100% - 4px); /* or whatever its actual height is */
        width: 100%;
        top: 2px;
        left: 0px;
        background-color: var(--red);
        border-radius: var(--radius); 
        z-index: -1;   
    }






.main_header {
    display: flex;
    position: relative;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
    padding-left: 10px;
    padding-right: 0px;
    width: calc(100% - 15px);
    margin-left: 0px;
    align-items: center;  
    justify-content: center; 
    z-index: 1;
    flex-direction: column;            
}


.main_header,.header
{
    --header_height: calc(((var(--header_row_height) + var(--big_header)) - var(--mrgin-b)));  
    height: var(--header_height);
    margin-bottom: var(--header_margin);
}












.main_header > * {

}


.top_header,
.sub_header
{
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: row;
}

.sharjah{
    display: flex;    
    position: relative;
    width: 200px;
    align-items: center;  
    justify-content: center;

    font-size:     
    clamp(
        15px,
        calc(22px + ((var(--current_rows) - var(--start-row)) / (var(--end-row) - var(--start-row)) * 7px)),
        22px
    );    
}  

.header_content
{
    position: relative;    
    display: flex;    
    align-items: center;  
    justify-content: center;
    flex: 1 1 0;
    margin-left: 15px;   
    font-size: 32px;   
                     
}



.top_header
{
    margin-left: -6px;    
    height: 100%;
}






.sub_header
{
    position: relative;
    width: calc(100% - 17px)!important;
    margin-left: 10px!important;
}


.sub_header img
{
    position: absolute;
    width: 0px!important;
    height: 0px!important;
    opacity: 0!important;
    left: 0px;
}


.sub_header .border-gradient
{
    width: 100%;
}

.sub_header .driver_row_number
{

    opacity: 0;
}



