@import (less) "bower_components/normalize.css/normalize.css";

@import "mixins/bfc.less";
@import "mixins/clearfix.less";
@import "mixins/size.less";
@import "mixins/user-select.less";

@fontMonospace: Consolas, "Liberation Mono", Menlo, Courier, monospace;

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

code, pre {
	background-color: rgba(0,0,0,0.04);
	border-radius: 3px;
	padding: 2px 6px;
	font-family: @fontMonospace;
	font-size: 12px;
	color: #2f2f2f;
}

.hide { display: none !important; }


.header {
	padding: 18px 18px;
	.clearfix();
	.input-wrapper {
		background: #c5c5c5;
		padding: 0.5rem 1rem;
		margin: 0 0.75rem 0.75rem 0;
		border-radius: .5rem;
		float: left;
		width: 76%;
		.wrapper-inner {
			width: 100%;
			position: relative;
			.clearfix();
			.input-message-wrapper {
				position: absolute;
				left: 0;
				right: 50px;
			}
			input.input-message {
				outline: none;
				border: none;
				padding: 0;
				background-color: transparent;
				font-size: 20px;
				line-height: 28px;
				width: 100%;
			}
			button.input-button {
				float: right;
				outline: none;
				border: none;
			}
		}
	}
	div.menu-button {
		background: #c5c5c5;
		padding: 0.5rem 1rem;
		margin: 0 0.75rem 0.75rem 0;
		border-radius: .5rem;
		float: left;
		height: 29px;
		line-height: 28px;
		color: #444;
		cursor: pointer;
		.user-select(none);
		&.logo {
			background-color: #6779f7;
			img.svg-logo {
				height: 30px;
			}
		}
		img.svg-checkbox {
			position: relative;
			top: 3px;
			margin-left: 3px;
		}
	}
}

.container-wrapper {
	overflow-x: auto;
	position: relative;
}

.container {
	font-size: 20px;
	white-space: nowrap;
	padding: 300px 40px 180px 40px;   /// Keep a large-ish bottom padding b/c we use it to scroll the whole container. cf. media queries
	mark {
		position: relative;
		span.single-score {
			position: absolute;
			bottom: -32px;
			left: 0; right: 0;
			text-align: center;
			font-family: @fontMonospace;
			font-size: 12px;
			visibility: hidden;
		}
		&:hover {
			span.single-score {
				visibility: visible;
			}
		}
	}
}

body.debug {
	span.single-score {
		visibility: visible !important;
	}
}

.svg-container {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: -1;
	// background-color: pink;
}


/**
 * Arrows
 */

.displacy-arrow {
	color: #cad2cd; // #87908a;
	visibility: hidden;
	.displacy-label {
		font-family: @fontMonospace;
		font-size: 12px;
	}
	&.score-ok {
		color: #ff9378;
	}
	&.score-best {
		color: #ff211d;
		visibility: visible;
	}
}

body.debug {
	.displacy-arrow {
		visibility: visible !important;
	}
}

/**
 * Footer
 */

.footer {
	padding: 18px 18px;
	color: #2f2f2f;
	font-size: 14px;
	max-width: 700px;
	line-height: 1.3;
	a {
		color: inherit;
	}
	.footline {
		height: 2px;
		width: 200px;
		background-color: #696969;
	}
}

/**
 * Media queries
 */

@media (min-height: 700px) and (max-height: 800px) {
	.container {
		padding-bottom: 70px;
	}
}

@media (max-height: 700px) {
	.container {
		padding-bottom: 40px;
	}
}


/**
 * Elements from Displacy
 */


.c-input__icon {
	margin-left: 0.75em
}
.c-input__button {
	font-size: inherit;
	background: transparent;
	color: inherit;
	cursor: pointer
}
.c-input__button.c-input__button--large {
	font-size: 1.5em
}
.c-input__button__icon {
	width: 1.25em;
	height: 1.25em
}
.loading .c-input__button__icon {
	display: none
}
.c-input__button__spinner {
	// width: 1.15em;
	// height: 1.15em;
	display: none;
	-webkit-animation: spinner 0.5s linear infinite;
	animation: spinner 0.5s linear infinite
}
.loading .c-input__button__spinner {
	display: inline-block
}
@-webkit-keyframes spinner {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}
@keyframes spinner {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}