#tf2-minigame-wrapper {
	margin: 0 30vw;
	width: 40vw;
	aspect-ratio: 7/6;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Roboto", Sans-serif;

	border-radius: 48px;

	border-style: solid;
	border-width: 43px;

	background-origin: border-box;
	background-clip: border-box;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

@media screen and (max-width: 1280px) {
	#tf2-minigame-wrapper {
		margin: 0 20vw;
		width: 60vw;
	}
}

@media screen and (max-width: 720px) {
	#tf2-minigame-wrapper {
		margin: 0 10vw;
		width: 80vw;
	}
}

@media screen and (max-width: 520px) {
	#tf2-minigame-wrapper {
		aspect-ratio: 1;
	}
}

@media screen and (max-width: 380px) {
	#tf2-minigame-wrapper {
		aspect-ratio: 5 / 7;
	}
}

#tf2-minigame-loading {
	font-size: 2rem;
}

#tf2-minigame-err {
	display: none;
}

#tf2-minigame-loading-dots {
	display: inline-block;
	width: 3ch;
	text-align: left;
}

#tf2-minigame-init {
	display: none;
	height: 100%;
	flex-grow: 1;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.text-head {
	font-size: 2rem;
}

.text-info {
	font-size: 1rem;
	font-weight: bold;
}

.tf2-team-select-wrapper {
	align-self: stretch;
	flex-grow: 1;
	margin-top: 1rem;
	display: flex;

	gap: 1rem;
}

.tf2-team-select-button {
	flex-grow: 1;
	border: solid 1px black;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;

	background-size: cover;
	background-position: center;
	background-color: #333;
	background-blend-mode: overlay;

	transition: background-color 0.5s ease-in-out;
}

.tf2-team-select-button:hover {
	background-color: rgba(0, 0, 0, 0);
}

.tf2-team-select-button span {
	font-size: 1.5rem;
	font-weight: bolder;
	color: white;
	text-shadow: 0 0 3px black;
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tf2-team-select-button:hover span {
	opacity: 1;
	transform: none;
}

#tf2-minigame-game {
	display: none;
	height: 100%;
	flex-grow: 1;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.tf2-team-score {
	flex-grow: 1;
	border: solid 1px black;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	background-size: cover;
	background-position: center;

	color: white;
	text-shadow: 0 0 3px black;
	font-size: 1.5rem;

	background-color: #333;
	background-blend-mode: overlay;
}

.drop-crate {
	display: none;
	z-index: 10000;

	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.drop-remove {
	animation: drop-fade 0.5s ease-in;
}

@keyframes drop-fade {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.drop-item {
	display: none;
	z-index: 10001;
	transform: translateY(-96px);

	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.drop-show {
	animation: show-fade 3s ease-out;
}

@keyframes show-fade {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	25% {
		opacity: 1;
	}
}