/* top styles */

.top
{
    position: absolute;
    display: flex;
    top: 00px;
    left: 50%;
    margin-left: -500px;
    width: 1000px;
    height: fit-content;
    align-items: center;
    justify-content: end;
    z-index: 10;
    flex-flow:column;
    transition: height ease 1s;    
}

.top .content{
    position: relative;
    width: fit-content;
    min-width: 200px;
    height: calc(80px - 30px);
    background-color: var(--bg);
    padding: 15px;
    padding-top: 10px;
    padding-bottom: 10px;                            
}

/* .top .content+.content {
    margin-top: 5px;
} */

/* .top .content.disabled {
    display: none;
    opacity: 0;
    height: 0px;
    overflow: hidden;
} */




.top .content{
    position: absolute;
    top: -200px;
    opacity: 0;
    transition: width ease 1s;    
}









.content_inner
{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    border-radius: 10px;
    box-sizing: border-box; 
    font-size: inherit;
    font-size: 30px; 
    flex-flow: column;       
}

.content_inner .border-gradient.left::before,
.content_inner .border-gradient.left::after,
.content_inner .border-gradient.right::before,
.content_inner .border-gradient.right::after{
  
  width: 35%;
}    


.content.htimer{
    height: calc(65px - 30px);
    font-size: 30px;
    letter-spacing: 1px;
    font-weight: lighter
}

.content_inner > div > span{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity ease 1s;
}

.content_inner > div.active > span{
    opacity: 1;
}


.final_lap,
.to_go,
.checkered
{
    width: 100%;
    height: 0px;
    overflow: hidden;
    transition: width ease 1s;
}

.final_lap.show,
.to_go.show,
.checkered.show
{
    width: 100%;
    height: 100%;
}





.to_go span
{
    text-align: left;
    font-size: 20px;
}

.to_go span b
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100%;
    font-size: 45px;
}

.checkered.show
{
 
    text-align: center;
}

.checkered span
{
    width: 100%;
    height: 100%;
    text-align: center;
    word-spacing: 50px;
    font-size: 23px;
    line-height: 23px;    
}



.checkered_flag {
    position: absolute;
    top: -10px;
    width: 100%;
    height: calc(100% + 20px);
    /* background-color: #FFF;
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
                      linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
    
    background-repeat: repeat; */
    overflow: hidden;
}

.checkered_flag:before {
    content:"";
    position: absolute;
    top:0px;
    width: 1000%;
    height: 100%;
    background-color: #FFF;
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
                      linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
    
    background-repeat: repeat;
    opacity: 0;
    transition: left ease 3s, right ease 3s , opacity ease 1s;;
}


.checkered.active .checkered_flag:before {
    opacity:1;
}

.checkered_flag:first-of-type {
    left: calc( (100% + 15px)* -1) ;
}
.checkered_flag:first-of-type:before {
    left: 100%;
}

.checkered.active .checkered_flag:first-of-type:before {
    left: -500%;
}


.checkered_flag:last-of-type {
    right: calc( (100% + 15px)* -1) ;
}
.checkered_flag:last-of-type:before {
    right: 100%;
}



.checkered.active .checkered_flag:last-of-type:before {
    right: -500%;
}
