@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%
}

body {
	background-color: #0e1726;
    color: #fff;
    display: flex;
    flex-flow: column;
}

/* TOP */
.headbar {
    background-color: rgb(25, 30, 58);
    color: #fff;
    margin: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#countdown, #category, #heatnr {
	color: #25d5e4;
    font-size: 15px;
    font-weight: bold;
	line-height: 18px;
	margin: 1px;
}
#heatnr { text-align: right }

#countdown {
    font-size: 18px;
}


/* HEAT STANDINGS */
#heatstandings>div {
    border-bottom: 1px solid rgb(25, 30, 58);
    color: rgb(191, 201, 212);
    position: relative;
    height: 43px;
    margin-bottom: 5px;
}

.place,
.name,
.score,
.info,
.best,
.needs,
.needpts,
.priority {
    position: absolute;
}

.place {
    width: 34px;
    height: 36px;
    padding: 7px 0 0 7px;
    font-size: 28px;
}

.name {
    top: 7px;
    left: 47px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1;
}

.score {
    background-color: #333;
	color: #fff;
    top: 0;
    right: 0px;
    height: 38px;
    width: 55px;
    padding: 5px 0 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.priority {
    background-color: #444;
    top: 25px;
    right: 130px;
    width: 25px;
    height: 18px;
    line-height: 20px;
    padding: 0;
    font-weight: bold;
    text-align: center;
}

.info {
    top: 25px;
    left: 47px;
    font-size: 14px;
}

.best {
    top: 8px;
    right: 59px;
    font-size: 14px;
}

.needs {
    top: 27px;
    right: 59px;
}

.needpts {
    top: 27px;
    right: 0;
    width: 54px;
    text-align: center;
    z-index: 3;
}

/* SCORE TABLE */
#boardscores {
    flex: 1 1 auto;
}

#tablescores {
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
    border-collapse: collapse;
}

.jscores {
    display: flex;
    justify-content: space-evenly;
    overflow: hidden;
    max-height: 0;
    width: 0;
    transition: all 1s ease;
}

.jscores span {
    padding: 0 5px 5px;
    font-size: 11px;
    color: #bbb;
}

.xScore {
    position: absolute;
    top: 1px;
    right: 5px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 10px;
    text-align: center;
}

.avg {
    padding: 3px 0;
    margin: 1px 0;
}

.head {
    line-height: 28px;
}

.topscore {
    font-weight: 600;
    background-color: #444;
}

.scorecol {
    text-align: center;
    font-weight: bold;
    width: 100px;
    position: relative;
    border: 1px solid rgb(25, 30, 58);
}

.interference {
    color: red;
    padding-left: 4px
}

.flag {
	display: flex;
	align-items: center;
}
.flag img {
	margin-right: 3px;
	height: 18px;
}

#btnShowScores {
    display: none;
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

/* BOTTOM */
#boardbottom {display:none;}

.wave2come {
    margin: auto;
    border: 5px solid #FF0000;
    border-radius: 50%;
    border-top: 5px solid #FF9090;
    width: 10px;
    height: 10px;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* compatibility */
.bluehead2,
.bluehead3,
.bluehead4,
.blue .place {
    background-color: #0000ff;
    color: #fff
}

.blackhead2,
.blackhead3,
.blackhead4,
.black .place {
    background-color: #000;
    color: #fff
}

.redhead2,
.redhead3,
.redhead4,
.red .place {
    background-color: #ff0000;
    color: #fff
}

.whitehead2,
.whitehead3,
.whitehead4,
.white .place {
    background-color: #fff;
    color: #000
}

.yellowhead2,
.yellowhead3,
.yellowhead4,
.yellow .place {
    background-color: #ffff00;
    color: #000
}

.greenhead2,
.greenhead3,
.greenhead4,
.green .place {
    background-color: #00ff00;
    color: #000
}

.cyanhead2,
.cyanhead3,
.cyanhead4,
.cyan .place {
    background-color: #00ffff;
    color: #000
}

.brownhead2,
.brownhead3,
.brownhead4,
.brown .place {
    background-color: #a52a2a;
    color: #fff
}

.scoreheaders {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.scoreheaders div {
    font-size: 16px;
    padding: 10px;
}

.scorecolumns {
    display: flex;
    justify-content: space-around;
}

.scorecolumns div {
    min-width: 50px;
    text-align: center;
}

.scorecolumns div span {
    line-height: 25px;
    padding: 5px;
}

.scorecolumns div:last-child {
    display: none;
}