/* GENERAL */

/* START: sticky footer stuff */
/* Note: only works for contest pages, other pages have many elements with
   hard-coded positions that get messed up when this is applied */
html,
body,
#page-wrapper {
	height: 100%;
}
#page-wrapper {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
}
#main-content {
	-webkit-flex: 1 0 auto;
	        flex: 1 0 auto;
}
#main-footer {
	-webkit-flex-shrink: 0;
	        flex-shrink: 0;
}
/* END: sticky footer stuff */

#main-content {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	background-image: url("/assets/images/patterns/pattern-aops.png");
	background-repeat: repeat;
	background-size: 150px;
	background-color: #1b365d;
}

#main-content .acadproblemsolvers {
	background-image: url("/assets/images/top/pattern-online-gray.png");
	background-repeat: repeat;
	background-size: 150px;
	background-color: #efefef;
}

#breadcrumbs-wrapper {
	display: none !important;
}

#contest {
	width: 100%;
}

.contest-landing-padded {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 15px;
}

.contest-landing-main .cms-inner,
.contest-landing-main .contest-footer-outer {
	width: 100%;
	margin: 0;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
}

/* BRUCE */
.contest-banner {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
	background-color: #ff7a0c;
	padding: 20px 0;
}
.contest-banner .banner-nav {
	display: -webkit-flex;
	display: flex;
	width: 100%;
	max-width: 1170px;
	-webkit-justify-content: space-evenly;
	        justify-content: space-evenly;
	-webkit-align-content: space-around;
	        align-content: space-around;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
}
.contest-banner h2,
.contest-banner a {
	color: white;
	transition: all 0.2s;
}
.contest-banner a.btn:hover {
	background-color: white;
	color: #ff7a0c;
}
.contest-banner h2 {
	font-size: 22px;
	line-height: 22px;
	margin: 0 10px 15px;
	text-align: center;
}
.contest-banner a,
.contest-banner .btn {
	width: 230px;
	font-weight: 300;
	font-size: 16px;
	height: -webkit-fit-content;
	height: fit-content;
	height: -moz-fit-content;
	padding: 4px 8px;
	border: 2px solid white;
	margin: 4px;
}
.contest-banner .btn.disabled {
	color: white;
	background-color: #e86b04;
}

/* HEADER */
.contest-landing-header-container {
	width: 100%;
	padding: 35px 30px 0px 30px;
	margin: 15px 0 10px;
	overflow: hidden;
}

.aoime .contest-landing-header-container,
.acadproblemsolvers .contest-landing-header-container {
	margin: auto;
}
.usemo .contest-landing-header-container {
	padding: initial;
	margin: auto;
}

.contest-landing-header {
	width: 100%;
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
}

/* LOGO */
.contest-logo-container {
	margin-bottom: 40px;
	padding: 0 20px;
}

.contest-logo-container img {
	height: 70px;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

.usemo .contest-logo-container {
	max-width: 300px;
	padding: 20px;
	margin-bottom: auto;
}

.usemo .contest-logo-container img {
	max-width: 100%;
	height: auto;
}

/* Footer / Logo */

.contests #main-footer .footer-container {
	padding-top: 0;
}

.contests #main-footer .footer-colHeader {
	color: rgb(128, 127, 162);
}

.contest-footer-outer {
	margin: 15px 0 20px;
}

.contest-logo-footer {
	width: 100%;
	max-width: 1210px;
	padding: 20px 30px;
	margin: auto;
}

.contests #main-footer .footer-topRow {
	display: none;
}

.contest-logo-footer img {
	height: 50px;
}

.amc .contest-logo-footer img,
.aoime .contest-logo-footer img {
}

/* Contest buttons */
.contest-buttons {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	        flex-direction: column;

	padding: 20px 0;
	max-width: 250px;
}

.contest-buttons > .btn {
	margin: 10px;
}

@media (max-width: 839px) {
	.contest-banner .banner-nav {
		-webkit-justify-content: center;
		        justify-content: center;
	}
}

/* Mobile devices */
@media (max-width: 768px) {
	.contest-landing-header-container {
		padding-left: 0;
		padding-right: 0;
	}

	.contest-logo-container {
		text-align: center;
	}
}

.ecole-mouseover-wrapper {
	background: #eee;
}
