@charset "utf-8";

html, body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

html {
	font-size: 12px;
	text-align: right;
	direction: rtl;
}

html * {
	font-family: Iran !important;
}

body {
	overflow: hidden;
}

main {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
}

.app-results {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 20rem;
	padding: 1.2rem;
	overflow: auto;
	border-left: 1px solid #ededed;
	box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.03);
	z-index: 10000;
}

@media only screen and (min-width: 600px) {
	.app-results {
		width: 32rem;
	}
}

.app-wrapper {
	flex-grow: 10;
}

#app {
	position: relative;
	width: 100%;
	height: 100%;
}

.app-start,
.app-end {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% - 20px));
	width: 40px;
	height: 40px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100%;
	z-index: 1000;
	cursor: pointer;
}

.app-start {
	background-image: url("../assets/images/marker-default-blue.svg");
}

.app-end {
	background-image: url("../assets/images/marker-default-red.svg");
}

.app-results-ul {
	flex-grow: 10;
	overflow: hidden;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.app-results-li {
	margin: 0;
	list-style: none;
}

.app-result-content {
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	background-color: rgba(0, 0, 0, 0.03);
	transition: all .5s;
	cursor: default;
}

.app-result-content:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.highlighted .app-result-content {
	background-color: rgba(0, 0, 0, 0.08);
}

.app-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 2000;
}

.app-overlay.app-visible {
	opacity: 1;
	visibility: visible;
}

h4 {
	font-size: 1.3rem !important;
	padding-bottom: 0.5rem !important;
	border-bottom: 2px solid #007bff !important;
}

.app-reset {
	position: relative;
	border-top: 2px solid #007bff !important;
	padding-top: 1rem;
	margin-top: 1rem;
}

.app-meme {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 300px;
	transform: translateY(-100%);
	background-position: bottom center;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
}

.app-meme.app-visible {
	opacity: 1;
	visibility: visible;
}

#iding {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 1rem;
	padding: 3px 5px;
	background-color: rgba(250, 250, 250, 0.7);
	z-index: 10000;
}

#iding span {
	color: #787878;
	cursor: default;
}

#iding a {
	color: #007bff;
	text-decoration: underline;
}

.app-troll {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20rem;
	height: 20rem;
	background-color: white;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s, visibility .5s;
	border: 3px solid black;
}

.app-troll.app-visible {
	opacity: 1;
	visibility: visible;
}

.app-return {
	position: absolute;
	top: 1.2rem;
	left: 1.2rem;
	text-decoration: underline;
}
