/**
 * Styles for IMEI lookup tool.
 */
body {
	animation: fadein 0.2s ease-out;
	background: #10a564;
	color: var(--c-white);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
}

@keyframes fadein {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

div.container {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

div.error {
	background: url("../svg/cross.svg") transparent no-repeat left 8px center;
	padding: 10px 10px 10px 55px;
}

form {
	display: flex;
	justify-content: space-between;
	margin: 0;
	width: 80%;
}

form .input-wrap {
	width: 100%;
}

form .button-wrap {
	display: none;
	width: calc(25% - 10px);
}

form input[type="search"] {
	-webkit-appearance: none;
	background: url("../svg/search.svg") #fff no-repeat left 8px center;
	border: 0;
	border-radius: 0;
	display: block;
	font-family: inherit;
	height: 39px;
	margin: 0;
	outline: none;
	padding: 0 8px 0 40px;
	width: 100%;
}

form button {
	background: transparent;
	border: 1px solid #fff;
	color: var(--c-white);
	height: 39px;
	margin: 0;
	padding: 0;
	width: 100%;
}

form button:hover {
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
}

form .form-error {
	background: url("../svg/error.svg") #fff no-repeat right 8px center;
	border-top: 1px solid #ddd;
	color: var(--c-red);
	font-size: 11px;
	padding: 8px 34px 8px 8px;
}

div.result {
	padding: 10px 10px 10px 40px;
}

div.result span {
	display: none;
}

div.result--match {
	background: url("../svg/cross.svg") transparent no-repeat left 8px center;
}

div.result--no-match {
	background: url("../svg/check.svg") transparent no-repeat left 8px center;
}

div.result--maybe {
	background: url("../svg/maybe.svg") transparent no-repeat left 8px center;
}


@media screen and (min-width: 370px) {

	form {
		width: 60%;
	}
}

@media screen and (min-width: 400px) {

	div.result span {
		display: inline;
	}
}

@media screen and (min-width: 470px) {

	form .input-wrap {
		width: 75%;
	}

	form .button-wrap {
		display: block;
	}
}
