

/* 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:nth-child(even) {
	background: #f3f3f3;
}
.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: #fff;
		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 atleti */
#athletes-alert, #athletes-alert {
	width: 96%;
	margin: auto;
}
.athletes-container > * {
	display: none;
}
.athletes-container #athletes {
    list-style: none;
    margin: 0 2%;
}
.athletes-container #athletes li {
	color: #333;
}
.athletes-container #athletes .title {
	padding: .4rem 0;
}
.athletes-container #athletes .title:hover, .athletes-container #athletes .title.active {
	color: #e42d1a;
    cursor: pointer;
}
.athletes-container {
	margin-bottom: 1rem;
}
#athletes-pagination {
	padding: .3rem;
	margin-bottom: 1rem;
}
#athletes-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;
}
#athletes-pagination .page_number.active, #athletes-pagination .page_number:hover {
	background: #e42d1a;
	cursor: pointer;
}
.athlete-detail {
	border-top: .12rem solid #e42d1a;
	background: #ddd;
	position: relative;
	padding: 1rem;
	display: none;
}
.athlete-detail * {
	color: #333;
}
.athlete-detail h5, .athlete-detail h6 {
	text-transform: uppercase;
}
.athlete-detail .logo {
    width: 160px;
    height: auto;
	position: absolute;
	z-index: 1;
	right: 1.2rem;
	top: 1.2rem;
	background: none;
}
.athlete-detail .logo img {
	width: 100%;
	height: auto;
}
.athlete-detail button {
	color: #fff;
	background: #e42d1a;
    font-weight: bold;
    text-align: center;
    font-size: .9rem;
    display: inline-block;
    border: none;
    padding: .6rem 3rem;
    margin: .5rem;
    cursor: pointer;
}

/* Detail athlete modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99999; /* Sit on top */
    padding-top: 8%;
    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 */
.content-wrapper {
    z-index: 9 !important;
}
.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;
}

@media screen and (max-width: 767px) {
	.modal-content.container {
		max-height: none;
		height: 100%;
		box-sizing: content-box;
	}
}
.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 .container .athlete-year-time {
	color: #333;
	font-size: .9rem;
	margin-bottom: 1rem;
	overflow: hidden;
}
.modal .container .athlete-year-time .img {
	width: 80px;
	height: 80px;
	background-position: 50% 50%;
	background-size: contain;
	background-repeat: no-repeat;
	float: left;
}
.modal .container .athlete-year-time .athlete-year-data {
	float: left;
	margin-left: 1rem;
}
.modal .container .athlete-year-time .clear {
	clear: both;
}
.modal .container .athlete-year-time .button {
	color: #fff;
	background: #e42d1a;
    font-weight: bold;
    text-align: center;
    font-size: .9rem;
    display: inline-block;
    border: none;
    padding: .6rem;
    cursor: pointer;
    margin-top: .3rem;
}
.modal .container .year_race {
	font-weight: bold;
	color: #e42d1a;
	margin-bottom: .6rem;
}
.modal .container .red {
	color: #e42d1a;
	transition: all .3s ease-in-out;
}
.modal .container .red:hover {
    color: #aa0000;
    cursor: pointer;
}

/* Modal auth widget */

.auth-widget-logout {
	background: #171717;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	display: block;
	width: 100%;
    padding: .6rem 0;
    font-weight: bold;
    font-size: .85rem;
    cursor: pointer;
    margin-bottom: .3rem;
}
.auth-widget {
	background: #2498e3;
    width: 300px;
    margin: auto;
    border-radius: 5px;
    box-shadow: 0px 0px 12px #333;
    padding: .6rem;
    position: fixed;
    top: 12%;
    left: calc(50% - 150px);
    z-index: 99;
    display: none;
}
@media screen and (max-width: 767px){
	.auth-widget {
		width: 100%;
		left: 0;
	}
}
.auth-widget .auth-widget-greeting {
	color: #fff;
	font-size: 1rem;
}
.auth-widget .auth-widget-header {
	color: #fff;
    font-size: .9rem;
    font-weight: 600;
}
.auth-widget-header-error .auth-widget-header-error-text {
	color: #cc0000;
	border: 1px solid #cc0000;
    padding: .3rem;
    background: #ffeeee;
}
.auth-widget .auth-widget-actions {
	float: right;
    width: 25%;
    background: none;
    position: relative;
}

.auth-widget .form-input-wrapper {
	display: flex;
    flex-direction: row;
}
.auth-widget .form-input-wrapper .input-container {
	float: left;
	width: 75%;
}
.auth-widget .form-input-wrapper .input-container input {
    width: 98%;
    display: block;
    margin-bottom: .3rem;
    box-sizing: border-box;
    color: #333;
}
.auth-widget .form-input-wrapper .auth-widget-actions {
	float: right;
    width: 30%;
    background: none;
    position: relative;
}
.auth-widget .form-input-wrapper .auth-widget-actions input {
	background: #d7181d;
    color: #fff;
    width: 100%;
    height: calc(100% - .3rem);
    position: absolute;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}
.auth-widget .clear {
	clear: both;
}
.auth-widget .auth-widget-actions-wrapper a {
	color: #fff;
	padding: .3rem 0;
    display: block;
}
.auth-widget .auth-widget-actions-wrapper a:hover {
	text-decoration: underline;
	cursor: pointer;
}
.auth-widget .auth-widget-actions-wrapper .button {
	background: #171717;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	display: block;
	width: 100%;
    padding: .6rem 0;
    font-weight: bold;
    font-size: .85rem;
    cursor: pointer;
}
.auth-widget .auth-widget-social .auth-widget-social-icon {
	width: 36px;
	height: 36px;
	display: inline-block;
	margin: 8px;
	cursor: pointer;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 50%;
	background-color: #fff;
	transition: .2s all ease-in-out;
}
.auth-widget .auth-widget-social .auth-widget-social-icon:hover {
	width: 42px;
	height: 42px;
	margin: 2px;
}
.auth-widget .auth-widget-social .icon-facebook-circled {
	background-image: url('../img/ico_fb.png');
}
.auth-widget .auth-widget-social .icon-twitter-circled {
	background-image: url('../img/ico_tw.png');
}
.auth-widget .auth-widget-social .icon-gplus-circled {
	background-image: url('../img/ico_gp.png');
}