﻿.leaderboard
{
	position: absolute;
	right: 5px;
	top: 50px;
	z-index: 100;
	flex-direction: column;
	font-size: 15px;
	font-weight: 500;
	color: white;
	width: 280px;
	opacity: 0;
	transition: all 0.2s ease-out;
	transform: translateX(100%);
	background-color: rgba( #000, 0.7 );
	border-radius: 1px;
	font-family: Helvetica;

	&.open
	{
		opacity: 1;
		transform: scale( 1 );
	}

	.players
	{
		flex-grow: 1;
	}

	.deaths, .kills, .ping
	{
		width: 90px;
		text-align: right;
		flex-grow: 1;
		padding-right: 40px;
	}

	.header
	{
		opacity: 0.4;
		border-bottom: 1px solid rgba( white, 0.3 );
		min-width: 30%;
		padding: 4px;
		padding-left: 18px;
		font-weight: 600;
	}

	.canvas
	{
		flex-direction: column;
		min-height: 50%;
		min-width: 30%;
		max-height: 300px;
		overflow: scroll;
		pointer-events: auto;

		.entry
		{
			margin-bottom: 2px;
			padding: 14px;
			padding-left: 32px;
			opacity: 0.5;
			flex-shrink: 0;
			cursor: pointer;

			&.me
			{
				opacity: 1;
			}

			&:hover {
				background-color: rgba( #000, 0.2 );
			}
		}

		.entry:not(:last-child) {
			border-bottom: 1px solid rgba( white, 0.1 );
		}
	}
}
