body {
	background-color: #fff;
}

.twn-mainpage {
	background-color: #fff;
	color: #252525;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.twn-mainpage-header {
	/* @embed */
	background: transparent url(//translatewiki.net/static/logo.png) no-repeat scroll left 10px center;
	/*FIXME: we need svgs too*/
	background-size: 50px;
	padding-left: 65px;
	padding-bottom: 5px;
	height: 75px;
	line-height: 1.5em;
	box-shadow: 0 0 4px;
}

.twn-mainpage-header .twn-mainpage-personal-actions {
	padding-right: 20px;
	text-align: right;
}

.twn-mainpage-header .uls-trigger {
	background-position: center left;
	padding-left: 30px;
	color: #3366BB;
	margin-top: 8px;
	cursor: pointer;
	display: inline-block;
}

.twn-mainpage-title .twn-brand-name {
	padding-top: 12px;
	font-size: 28px;
}

.twn-mainpage-title .twn-brand-motto {
	padding-top: 5px;
	font-size: 16px;
	color: #555555;
}

.twn-mainpage-header {
	border-bottom: 4px solid #3366BB;
}

.twn-mainpage-header .login,
.twn-mainpage-header .logout {
	color: #3366BB;
	padding-top: 50px;
	padding-left: 20px;
}

.twn-mainpage-banner {
	/* Actual image is added in php */
	background: transparent none no-repeat scroll left center;
	background-size: 100%;
	position: relative;
	box-shadow: 0 0 4px, inset 0 0 40px;
	border-top: 1px solid #5787E5;
}

.banner-attribution {
	color: #FFF;
	clear: left;
	font-size: 10px;
	padding: 10px 10px 20px 10px;
	position: absolute;
	opacity: 0.8;
	bottom: 0;
}

.banner-attribution a,
.banner-attribution a:visited {
	color: #FFF;
}

.twn-mainpage-search {
	padding: 7px 5px;
	background-color: #252525;
	box-shadow: 0 2px 4px;
}

.twn-mainpage-stats-tiles {
	margin: 10px 0 50px 5px;
}

.stats-tile-row {
	height: 140px;
}

.stats-tile {
	background-color: #3366BB;
	background-color: rgba(51, 102, 187, 0.7);
	color: white;
	height: 130px;
	margin: auto;
	width: 80%;
	padding: 10px;
	cursor: pointer;
	-webkit-animation: fadein 1.5s;
	animation: fadein 1.5s;
}

@-webkit-keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.unused.stats-tile {
	background-color: rgba(51, 102, 187, 0.3);
	cursor: auto;
}

.stats-number {
	font-size: 42px;
	opacity: 0.9;
	line-height: 1.2em;
}

.stats-text {
	font-size: 1em;
	opacity: 0.85;
	font-weight: normal;
	word-break: break-all;
}

.main-widget {
	background-color: #F8F8F8;
	background-color: rgba(248, 248, 248, 0.85);
	color: #252525;
	max-height: 580px;
	padding: 10px;
	margin-left: 4%;
	overflow: auto;
	margin-top: 10px;
	box-shadow: inset 0 0 4px #ffffff;
}

.main-widget label {
	font-size: 16px;
}

.main-widget .row input {
	padding: 6px;
	font-size: 16px;
	margin: 5px 0 5px 10px;
	outline: 0;
	border-style: solid;
	border-width: 1px;
	border-color: #C9C9C9;
	color: #252525;
}

.main-widget button {
	margin: 10px;
}

.main-widget h1,
.main-widget h2 {
	border-bottom: none;
	padding: 10px;
}

/* Signup styles start here. They are here to avoid FOUC. */
.login-widget .dev-signup {
	border-top: 1px solid #DDDDDD;
	cursor: pointer;
	padding: 10px;
}

.login-widget .only-dev {
	padding: 5px 10px 0 10px;
}

.login-widget .only-dev textarea {
	padding: 5px;
}

.login-widget .signup-language-selector {
	font-size: 12pt;
	background-color: #f8f8f8;
	margin: 5px 0 10px 5px;
	cursor: pointer;
	padding: 5px 12px;
}

.login-widget .signup-language-selector:hover {
	background-color: #e5e5e5;
}

.login-widget .signup-languages {
	padding-top: 5px;
}

.login-widget input.invalid {
	border: 1px solid #E85355;
}

/* Signup styles end here. */

.user-stats-title {
	padding-left: 100px;
	background: transparent url(../images/user-small.png) no-repeat scroll left center;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/user-small.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/user-small.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/user-small.svg);
	background-position: bottom left;
	background-size: 75px;
	min-height: 75px;
}

.subtitle {
	padding: 0 10px;
}

.main-widget h2 {
	border: none;
	font-weight: lighter;
	color: #252525;
	font-size: 20px;
	padding-bottom: 0;
}

.ranking {
	background-color: white;
	padding: 10px;
	border-top: 1px solid #EEEEEE;
}

.ranking .count {
	font-size: 29px;
	font-weight: bold;
}

.ranking .button {
	min-width: 80%;
	min-height: 32px;
}

.ranking .count-description {
	font-size: 18px;
}

.ranking .rank-description {
	color: #555555;
	font-size: 15px;
}

.langstats-link,
.sandbox-message {
	padding: 10px 15px;
}

.ranking {
	padding: 10px;
}

.sandbox-message {
	color: #333333;
	background-color: #fbf9ce;
	font-size: 14px;
}

.langstats-link {
	border-top: 1px solid #DDDDDD;
}

a.langstats-link {
	font-size: 16px;
	padding: 10px;
}

.twn-mainpage-search input,
.twn-mainpage-search button {
	padding: 5px;
	font-size: 16px;
	height: 32px;
}

.twn-mainpage-search button {
	width: 12%;
}

.twn-mainpage-footer {
	background-color: #F0F0F0;
	height: 50px;
	font-size: 16px;
	padding: 10px;
	margin: 10px;
	border-bottom: 1px solid #AAA;
	line-height: 30px;
}

.twn-mainpage-poweredby {
	background-color: #F0F0F0;
	font-size: 18px;
	height: 50px;
	margin: 10px;
	padding: 10px;
	text-align: center;
}

.project-tile {
	border: 1px solid #AAA;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	background: #FCFCFC;
	margin: 10px;
	height: 180px;
}

.project-tile.linked {
	cursor: pointer;
}

.project-tile:hover {
	border-color: #777;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.project-tile.more {
	font-size: 26px;
	padding: 15px;
	cursor: pointer;
	color: #555;
}

.project-icon div {
	width: 100%;
	height: 100%;
	background-size: 90%;
	background-repeat: no-repeat;
	background-position: left 5px top 10px;
}

.project-name {
	font-size: 18px;
	height: 100px;
	padding: 25px 5px 0 0;
}

.tux-statsbar,
.tux-statsbar span {
	height: 5px;
}

.project-statsbar {
	height: 5px;
	padding: 0 10px 10px 15px;
}

.project-statstext {
	height: 25px;
	opacity: 0.7;
	padding-left: 15px;
}

.project-content,
.project-icon {
	height: 130px;
}

.project-top {
	height: 140px;
}

.twn-mainpage-project-tiles {
	padding-top: 10px;
	padding-bottom: 15px;
}

.twn-mainpage-project-tiles .twn-mainpage-project-tile .project-tile .project-actions {
	text-align: left;
	height: 40px;
	line-height: 40px;
	background-color: #252525;
	margin: 0;
	overflow: hidden;
}

.twn-mainpage-project-tiles .twn-mainpage-project-tile .action {
	border-right: 1px solid #333333;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #FFFFFF;
	font-size: 14px;
	padding: 0 5px 0 0;
}

.twn-mainpage-project-tile .action:last-child {
	border: none;
}

.project-actions a,
.project-actions a:visited {
	color: #FFFFFF;
	text-decoration: none;
	padding-left: 24px;
	cursor: pointer;
}

.project-tile span.translate {
	padding-left: 20px;
	padding-right: 5px;
	background: transparent url(../images/view-list.png) left top no-repeat;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/view-list.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/view-list.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/view-list.svg);
}

.project-tile span.proofread {
	padding-left: 20px;
	background: transparent url(../images/view-proofread.png) left top no-repeat;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/view-proofread.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/view-proofread.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/view-proofread.svg);
}

.project-actions a.translate {
	background: transparent url(../images/view-list-hi.png) left top no-repeat;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/view-list-hi.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/view-list-hi.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/view-list-hi.svg);
}

.project-actions a.proofread {
	background: transparent url(../images/view-proofread-hi.png) left top no-repeat;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/view-proofread-hi.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/view-proofread-hi.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/view-proofread-hi.svg);
}

.searchbox {
	border: 1px solid #777777;
	height: 32px;
	margin: 0 5px;
	-webkit-appearance: none;
}

.twn-mainpage-search {
	height: 50px;
	padding: 10px 10px 10px 60px;
	position: relative;
}

.twn-mainpage-search:before {
	display: inline-block;
	content: "";
	background: #252525 url(../images/search.png) no-repeat scroll left center;
	background-image: -webkit-linear-gradient(transparent, transparent), url(../images/search.svg);
	background-image: -moz-linear-gradient(transparent, transparent), url(../images/search.svg);
	/* @embed */
	background-image: linear-gradient(transparent, transparent), url(../images/search.svg);
	background-size: 30px;
	height: 30px;
	width: 30px;
	position: absolute;
	left: 25px;
}

.twn-mainpage-project-selector-title {
	font-size: 22px;
	padding: 30px 10px 15px 15px;
}

.twn-mainpage-add-project {
	display: block;
	font-size: 12pt;
	padding: 15px 10px 25px 15px;
}

.twn-mainpage-footer a,
.twn-mainpage-footer a:visited {
	text-align: center;
	color: #3366BB;
}

@media all and (max-width: 1200px) {
	.stats-tile {
		width: 100%;
	}
}

@media all and (max-width: 800px) {
	.twn-mainpage-banner.row .six.columns, .twn-mainpage-banner.row .five.columns {
		width: 100%;
		margin: 5px 0;
	}

	.twn-mainpage .row.twn-mainpage-project-tiles .twn-mainpage-project-tile {
		width: 50%;
	}

	.twn-mainpage-stats-tiles {
		margin-bottom: 10px;
	}

	.banner-attribution {
		position: relative;
	}

	.main-widget {
		background-color: #F8F8F8;
	}

	.twn-mainpage-banner {
		background-position: top left;
	}

}

/* Non-JS cleanups */

.client-nojs .uls-trigger {
	visibility: hidden;
}

.client-nojs .grid .project-actions {
	display: block;
}

/* button is here to make this rule more specific than .mw-ui-button */
button.same-language-uls-trigger {
	margin-left: 10px;
}

.same-language-uls-trigger:after {
	content: "";
	border-top: 4px solid #AAAAAA;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.5em;
}

/* Override group selector css to avoid pointing triangle */
div.ext-translate-msggroup-selector-menu:after,
div.ext-translate-msggroup-selector-menu:before {
	display: none;
}

/* Override the statsbar on-hover info for TWN Mainpage */
.tux-statsbar-info {
	display: none;
}

.twn-mainpage-banner .main-widget .twnmp-signup-error {
	background-color: #CF1C1F;
	padding: 6px;
	margin: 0 -15px 0 5px;
	color: white;
	position: relative;
	top: -2px;
	font-size: 14px;
	border-bottom: 2px solid #a90000;
	border-radius: 2px;
}

.twnmp-signup-error:before {
	content: "";
	display: inline-block;
	border-bottom: 5px solid #CF1C1F;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	position: absolute;
	top: -5px;
}
