﻿.leaderboard {
	position: absolute;
	right: 5px;
	top: 50px;
	z-index: 100;
	flex-direction: column;
	font-size: 15px;
	font-weight: 500;
	color: white;
	width: 350px;
	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);
	}

	.header {
		display: flex;
		opacity: 0.4;
		padding-top: 4px;
		padding-bottom: 4px;
		padding-left: 16px;
		padding-right: 16px;
		border-bottom: 1px solid rgba(white, 0.3);
	}

	.players,
	.name {
		width: 200px;
	}

	.name {
		padding-left: 28px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.kills,
	.sbux {
		width: 80px;
		text-align: center;
	}

	.canvas {
		flex-direction: column;
		min-height: 50%;
		min-width: 30%;
		max-height: 300px;
		overflow: scroll;
		pointer-events: all;
		cursor: pointer;

		&.draggingcamera {
			pointer-events: none;
		}

		.entry {
			margin-bottom: 2px;
			opacity: 0.5;
			flex-shrink: 0;
			padding-top: 10px;
			padding-bottom: 10px;
			padding-left: 16px;
			padding-right: 16px;

			&.me {
				opacity: 1;
			}

			&:hover {
				background-color: rgba(#000, 0.2);
			}
		}

		.entry:not(:last-child) {
			border-bottom: 1px solid rgba(white, 0.1);
		}
	}
}