

/* Header Pagina Maximaratona */
#maximaratona-header{
	position: relative;
}
#maximaratona-header p{
	margin: 0;
}
#maximaratona-header p:first-child{
	position: absolute;
	top: 0;
	left: 0;
	background-color: #e42d1a;
	font-size: 2rem;
	padding: 0.1rem 1rem;
	color: #ffffff;
}
#maximaratona-header img{
	margin: 0;
	display: block;
}
#maximaratona-header .maximaratona-form{
	position: absolute;
	bottom: 0;
	left: 50%;
	-webkit-transform: translateX(-50%);
	   -moz-transform: translateX(-50%);
	    -ms-transform: translateX(-50%);
	     -o-transform: translateX(-50%);
	        transform: translateX(-50%);
	width: 100%;
	padding: 0 1rem 2rem;
	box-sizing: border-box;
}
.classifica-eta{
	text-align: center;
}
.classifica-eta a {
    background-color: #00adee;
    color: #ffffff;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    box-sizing: border-box;
    display: block;
    max-width: 15rem;
    margin: 1.4rem auto;
    font-weight: bold;
}
.classifica-eta a:hover{
	color: #ffffff;
}
.search-athlete-container, .search-run-container {
    padding: 0 1rem 1rem;
    box-sizing: border-box;
}
form.form-athlete, form.form-run {
    background-color: #f3f3f3;
}
.search-athlete label, .search-run label {
    color: #ffffff;
    background-color: #e42d1a;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
    padding: 0 0.5rem;
    line-height: normal;
    font-weight: bold;
}
.search-athlete input[type="text"], .search-run input[type="text"]{
    height: 2rem;
    width: 100%;
    margin: 0 0.3rem 0.3rem;
    background-color: #f3f3f3;
    font-size: .9rem;
    color: #333;
}
.search-athlete input[type="submit"], .search-run input[type="submit"]{
    margin: 0 0.3rem 0.3rem;
    float: right;
    border: none;
    background-color: #e42d1a;
    color: #ffffff;
}
.search-run label{
	background-color: #2498e3;
}
.search-run input[type="submit"]{
	background-color: #2498e3;
}

.newsstand-item-start-content {
	padding-top: 0 !important;
}

/* TOP TEN */
.border-right {
    border-right: 1px solid #f3f3f3;
    box-sizing: border-box;
}
.ranking_table, .ranking-header {
    width: 94%;
    margin: auto;
    font-size: 1rem;
}
.ranking_table {
	margin-bottom: 1rem;
}
.ranking-header {
    background: url(../img/uomo.png) top right no-repeat;
    padding-right: 40px;
    height: 40px;
    line-height: 34px;
    width: auto;
    margin-left: 3%;
    display: inline-block;
}
.ranking-header.ranking-women {
	background-image: url(../img/donna.png);
}
.ranking_table tr {
	transition: .2s all ease-in-out;
}
.ranking_table tr:nth-child(even) {
	background: #f3f3f3;
}
.ranking_table tr:hover {
	background: #d3d3d3 !important;
	cursor: pointer;
}
.ranking_table tr:hover .athlete_m {
	color: #ff0000;
}
.ranking_table tr:hover .athlete_f {
	color: #33aaff;
}
.ranking_table td {
	padding: .3rem;
	font-weight: bold;
}
.ranking_table .position {
	color: #333;
	font-weight: normal;
}
.ranking_table .time {
	color: #333;
}
.ranking_table .athlete_m {
	color: #e42d1a;
	text-align: left;
}
.ranking_table .athlete_m span {
	font-weight: normal;
}
.ranking_table .athlete_f {
	color: #2498e3;
	text-align: left;
}
.ranking_table .athlete_f span {
	font-weight: normal;
}

@media screen and (min-width: 768px) and (max-width: 959px){
	#maximaratona-header .maximaratona-form{
		padding: 0;
	}
	.search-athlete label, .search-run label{
		font-size: 1.2rem;
	}
	.classifica-eta a{
		max-width: 12rem;
		font-size: 1rem;
	}
}
@media screen and (max-width: 767px){
	#maximaratona-header .maximaratona-form{
		position: relative;
		background-color: #f3f3f3;
		padding: 0;
	}
	.search-athlete input[type="submit"], .search-run input[type="submit"]{
		float: none;
		margin: 0.3rem auto;
		display: block;
		max-width: 15rem;
		width: 100%;
	}
	.search-athlete-container, .search-run-container{
		padding: 1rem 0;
	}
	.search-athlete input[type="text"], .search-run input[type="text"]{
		height: 3rem;
		width: 98%;
		box-sizing: border-box;
	}
}

/* Lista maratone */
.spinner-marathones > div {
	background-color: #2498e3;
}
#marathones-alert, #athletes-alert {
	width: 96%;
	margin: auto;
}
.marathones-container > * {
	display: none;
}
.marathones-container #marathones {
    list-style: none;
    margin: 0 2%;
}
.marathones-container #marathones li {
	color: #333;
}
.marathones-container #marathones .title {
	padding: .4rem 0;
}
.marathones-container #marathones .title:hover, .marathones-container #marathones .title.active {
	color: #00adee;
    cursor: pointer;
}
#marathones-pagination {
	padding: .3rem;
	margin-bottom: 1rem;
}
#marathones-pagination .page_number {
	display: inline-block;
	background: #333;
	color: #fff;
	font-weight: bold;
	text-align: center;
	width: 2rem;
	height: 2rem;
	line-height: 2rem;
	margin: .3rem;
	transition: all .3s ease-in-out;
}
#marathones-pagination .page_number.active, #marathones-pagination .page_number:hover {
	background: #2498e3;
	cursor: pointer;
}
.marathon-detail {
	border-top: .12rem solid #2498e3;
	background: #ddd;
	position: relative;
	padding: 1rem;
	display: none;
}
.marathon-detail * {
	color: #333;
}
.marathon-detail h5, .marathon-detail h6 {
	text-transform: uppercase;
}
.marathon-detail .logo {
    width: 160px;
    height: auto;
	position: absolute;
	z-index: 1;
	right: 1.2rem;
	top: 1.2rem;
	background: none;
}
.marathon-detail .logo img {
	width: 100%;
	height: auto;
}
.marathon-detail button {
	color: #fff;
	background: #2498e3;
    font-weight: bold;
    text-align: center;
    font-size: .9rem;
    display: block;
    border: none;
    padding: .6rem 3rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* Detail marathon modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99999; /* Sit on top */
    padding-top: 16%;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content.container {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: auto;
    max-width: 860px;
    position: relative;
    overflow: auto;
    max-height: 78vh;
}
.modal .newsstand-pagination {
	padding: 0rem;
	margin: 0rem;
	text-align: center;
}
.modal .newsstand-pagination .page-numbers {
    display: inline-block;
    background: #333;
    color: #fff;
    font-weight: bold;
    text-align: center;
    min-width: 1rem;
    height: 1rem;
    line-height: 1rem;
    min-height: 0;
    margin: .3rem;
    padding: .5rem;
	transition: all .3s ease-in-out;
	border-radius: none;
}
.modal .newsstand-pagination .page-numbers:hover, .modal .newsstand-pagination .page-numbers.current {
	background: #2498e3;
	cursor: pointer;
}
.modal .ranking-men-container .page-numbers:hover, .modal .ranking-men-container .page-numbers.current {
	background: #e42d1a;
}
.modal .time-container {
    display: inline-block;
    width: 30%;
    margin: auto;
    margin-left: 3%;
    margin-top: 1rem;
}
.modal .time-container .red {
	font-weight: bold;
	color: #e42d1a;
	text-transform: uppercase;
}
.ranking-slider {
    min-height: 8rem;
}