/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background: #020617;
  color: #e5e7eb;
  padding-bottom: 64px;
}
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* TOP BAR */
.topbar {
  height: 50px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* CONTENT */
.content {
  padding: 12px 5px;
}

.view {
  display: none;
    overflow: hidden;
    overflow-y: auto;
}

.view.active {
  display: block;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.match {
	background: #282828;
	margin-bottom: 5px;
	text-align: left;
	float: left;
	width: 100%;
	height: 50px;
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    border-radius: 6px;
    box-shadow: 2px 2px 2px 0 #6c6c6c;
}
.match.status-live {
    background-color: #38bdf8;
    color: #000000;
    font-weight: bolder;
}
.match .terrain {
	position: relative;
	font-weight: bolder;
	font-size: 12px;
    height: 50px;
    display: grid;
    align-content: center;
    padding-left: 10px;
}
.match .terrain:after {
	border-right: 1px solid #aaaaa5;
	position: absolute;
	top: 10px;
	right: 0;
	content: "";
	height: 30px;
}
.match.status-live .terrain:after {
    border-right: 1px solid #000;
}
.match .team {
	font-size: 13px;
    padding-left: 10px;
    height: 50px;
    display: grid;
    align-content: center;
}


/* RANKING */
.ranking {
    margin-bottom: 30px;    
}
.ranking-row.header {
    margin-top: 10px;
    background-color: #dedede;
    color: #000;
    font-size: 12px;
    border-radius: 10px 10px 0 0;
    padding-right: 10px;
}
.ranking-row {
    display: grid;
    grid-template-columns: 20px 1fr repeat(7, 25px);
    align-items: center;
    height: 40px;
    text-align: center;
    border-bottom: 1px solid #dedede;
    font-size: 12px;
     padding-right: 10px;
}
.ranking-row:nth-child(2) DIV:nth-child(1), .ranking-row:nth-child(3) DIV:nth-child(1) {
    background-color: #38bdf8;
    height: 40px;
    width: 100%; 
    display: grid;
    align-content: center;
}
.ranking-row:nth-child(4) DIV:nth-child(1), .ranking-row:nth-child(5) DIV:nth-child(1) {
    background-color: #f32759;
    height: 40px;
    width: 100%;  
    display: grid;
    align-content: center;
}

.ranking-row DIV:nth-child(2) {
    text-align: left;
    padding-left: 10px;
}


/* FOOTER */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #020617;
  border-top: 1px solid #1e293b;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  z-index: 100;
}
.bottom-nav button {
  background: none;
  border: 0;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
    cursor: pointer;
}

.bottom-nav button i {
  font-size: 18px;
  margin-bottom: 2px;
}

.bottom-nav button.active {
  color: #38bdf8;
}



#goal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.9);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	font-size: 6vw;
	font-weight: bold;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	text-align: center;
}

#goal-overlay small {
	font-size: 3vw;
	margin-top: .5em;
	opacity: .85;
}

#goal-overlay.show {
	animation: goalFlash 1.4s ease-out forwards;
}

@keyframes goalFlash {
	0%   { opacity: 0; transform: scale(.8); }
	15%  { opacity: 1; transform: scale(1.05); }
	80%  { opacity: 1; }
	100% { opacity: 0; transform: scale(1); }
}

