

#filter_ranking_list { font-family: 'Libre Franklin', sans-serif !important; position: relative; width: 100%; padding:0; margin: 20px auto; text-align: center; }
#filter_ranking_list .fleft, .fright { margin: 10px 5px 0 5px; }
#filter_ranking_list select {  height: 30px;
    padding: 3px 8px 0 8px;
    border: 1px solid #eeeeee;
    background: #eeeeee;
    outline: 0;
    font-size: 12px;
    border-radius: 0; }
#filter_ranking_list input[type=text] { height: 30px;
    padding: 3px 8px 0 8px;
    border: 1px solid #eeeeee;
    background: #eeeeee;
    outline: 0;
    font-size: 12px;
    border-radius: 0; }
#filter_ranking_list .fright { padding-top: 15px; }
#filter_ranking_list .fright button { height: 30px; }
#submit_filters { height: 30px; padding: 3px 8px 0 8px; cursor: pointer; border: 0; }
#clean_filters { height: 30px; padding: 3px 8px 0 8px; cursor: pointer; border: 0; }
#buttonPodium { height: 30px; padding: 3px 8px 0 8px; cursor: pointer; border: 0; text-transform: uppercase; padding-left: 30px; padding-right: 30px; }
.buttonPodium { height: 30px; padding: 3px 8px 0 8px; cursor: pointer; border: 0; cursor: pointer; }
.buttonPodiumSelected { height: 30px; padding: 3px 8px 0 8px; cursor: pointer; border: 0; background: #eeeeee !important; color: #000000 !important; cursor: default;  }

#goToTop { display: none; position: fixed; bottom: 5px; right: 5px; font-size: 46px; color: rgba(100, 100, 100, 0.8); cursor: pointer; }

#message_no_results { display: none; position: absolute; width: 100%; margin:0; top: 80px; left: 0; padding: 10px 0; color: #FFFFFF; background: rgba(255, 50, 50, 0.8); text-align: center; }

.item i { font-size: 16px; color: rgba(50, 50, 50, 0.8); cursor: pointer; }


.podium_div { float: left; width: 39%; margin: 2vh 2% 2vh 8%; padding: 10px 0; background-color: rgba(0, 0, 0, 0.2); border: 0; border-radius: 5px; }
.podium_div:nth-child(even) { margin: 2vh 8% 2vh 2%; }
.podium_div div { padding: 5px 20px; }
.podium_div .ptitle span { display: inline-block; padding-bottom: 8px; border-bottom-width: 2px; border-bottom-style: solid;  }

#tableRankingList { width: 100%; font-family: 'Libre Franklin', sans-serif !important; }
#tableRankingList table { font-family: 'Libre Franklin', sans-serif !important; width: 100%; padding: 0; border-collapse: collapse; }
#tableRankingList .dataTables_filter { display: none; }
#tableRankingList table thead th { white-space: nowrap; padding: 5px; padding-top: 10px; padding-bottom: 10px; }
#tableRankingList table thead .controlHeader { border-bottom: none; }
/*#tableRankingList table tbody tr { border-bottom: 1px solid #f0f0f0; }*/
#tableRankingList table tbody tr td { /*border-bottom: 1px solid #e5e5e5;*/ padding-top: 10px; padding-bottom: 10px; }
#tableRankingList table tbody tr.even { background: #eeeeee; }
#tableRankingList table tbody tr:hover { background: #cacaca; }
#tableRankingList table tbody tr.selected { background: #fcb64c !important; color: #ffffff !important; }
#tableRankingList .link:hover { color: #4cadfc !important; }
table.dataTable.dtr-column > tbody > tr > td.control::before, table.dataTable.dtr-column > tbody > tr > th.control::before { background-color: #828282; }
table.dataTable.dtr-column > tbody > tr.parent td.control::before, table.dataTable.dtr-column > tbody > tr.parent th.control::before { background-color: #CECECE; }

#rkSearch {
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-size: 12px;
    height: 100vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: #fafafa;
}
#rkSearch .event-title {
    font-size: 1.7rem;
    line-height: 1.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: oblique;
    padding: 10px;
    color: #444444;
}
#rkSearch .rk-info {
    color: #666666;
    font-size: 1rem;
}
#rkSearch #filter_dorsal { 
    width: 90%;
    margin: 50px auto 0;
    max-width: 300px; 
    padding: 4px; 
    border: 1px solid #cccccc;
    box-shadow: none;
    font-size: 1.2rem;
    line-height: 1.8rem;
}
@media only screen and (max-width: 600px) {
    #rkSearch {
        font-size: 16px;
    }
}

#athleteInfo { display: none; position: absolute; z-index: 999; top: 0; left: 0; width: 100%; height: 99vh; background: #fafafa; }
#athleteInfo .w35 { float: left; width: 35%; height: 20vh; margin-left: 9%; margin-right: 5%; padding: 5vh 0; font-size: 24px; text-align: center; font-weight: 600; }
#athleteInfo .w35 span { display: block; }
#athleteInfo .w35:nth-child(even) { margin-left: 5%; margin-right: 9%; }
#athleteInfo .w80 { float: left; width: 80%; height: auto; margin-left: 9%; margin-right: 9%; text-align: center; font-size: 1.7rem; line-height: 1.75rem; font-weight: 400; padding: 10px 0; letter-spacing: 1px; font-style: oblique; color: #444444; }
#athleteInfo .w35 label { display: inline-block; border-bottom: 2px solid #FFF; min-width: 100px; text-align: center; padding: 0 20px 8px 20px; margin-bottom: 5px; text-transform: uppercase; font-size: 16px; font-weight: normal; color: #666666; }
#athleteInfo .w35 span { color: #222222; }
#athleteInfo .position { width: 160px; height: 160px; line-height: 24px; margin: 0 auto; text-align: center; border-radius: 90px; border-width: 6px; border-style: solid; border-color: #999999; color: #444; background-color: #FFF; font-weight: normal; }
#athleteInfo .position label { display: inline-block; font-size: 14px; margin-top: 10px; color: #666666; margin-bottom: 5px; border-width: 0; }
#athleteInfo .position .p2  { display: inline-block; font-size: 12px; margin-top: 15px; color: #666666; margin-bottom: 4px; border-width: 0; border-top: 2px solid #999999; }
#athleteInfo .position span { display: block; font-size: 48px; letter-spacing: -2px; color: #444444; font-weight: 900; border-width: 0; }
#athleteInfo .position .s2 { display: block; font-size: 32px; letter-spacing: -2px; color: #444444; font-weight: 900; border-width: 0; }
#athleteInfoTemplate { display: none; }
#athleteErrorTemplate { display: none; }

@media only screen and (max-width: 400px) {
    #athleteInfo .w80 {
        float: none;
        width: 100%;
        height: auto;
        margin: 0;
    }
    #athleteInfo .w35 {
        float: none;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 10px 0;
    }
    #athleteInfo .w35 label {
        padding: 0 20px;
    }
    #athleteInfo .w35:nth-child(even) {
        margin: 0;
    }
}

#teamClassification { padding-left: 2%; }
#teamClassification .raceTitle { display: block; padding: 40px 0 10px 0; clear: both; color: #666; text-align: center; text-transform: uppercase; }
.lineTables { display: inline-block; width: 30%; vertical-align: top; margin: 10px 2% 10px 0; }
.tableTeamRanking { width: 100%; padding:0; border-spacing: 0; border-width: 1px; border-style: solid; border-radius: 4px; color: #444; border-colapse: colapse; }
.tableTeamRanking2 { float: none; margin: auto; }
.tableTeamRanking tr:first-child th:first-child { border-top-left-radius: 2px; }
.tableTeamRanking tr:first-child th:last-child {  border-top-right-radius: 2px; }
.tableTeamRanking tr:nth-child(even) { -webkit-filter: opacity(90%); filter: opacity(90%); /*background-color: rgba(200, 200, 200, 0.1); */ }
.tableTeamRanking th, td { padding: 5px; }
.tableTeamRanking th { font-weight: normal; font-size: 80%; text-transform: uppercase; padding-bottom: 20px; }
.tableTeamRanking .position { border-radius: 24px; width: 40px; height: 40px; display: inline-block; text-align: center; font-size: 20px; font-weight: bold; }
#raceDivTitle { position: fixed; z-index: 100000;top: 0; width: 100%; background: #ffffff; color: #000000; padding-bottom: 10px; padding-top: 10px; border-bottom: 1px solid #000000; }

#infoRace {  font-family: 'Libre Franklin', sans-serif !important; font-size: 15px; font-weight: bold; margin-bottom: 20px; }
#athleteProfile { font-family: 'Libre Franklin', sans-serif !important; font-size: 15px; margin: 4%; }
#athleteProfile #athleteProfileLeft { display: inline-block; width: calc(100% - 220px); }
#athleteProfile #athleteProfileRight { display: inline-block; width: 215px; }
#athleteProfile #avatarDiv { width: 120px; }
#athleteProfile #avatarDiv #avatar { width: 90px; height: 90px; border: 2px solid #eeeeee; -moz-border-radius: 50%; -webkit-border-radius: 50%; -khtml-border-radius: 50%; border-radius: 50%; }
#athleteProfile #infoDiv { width: calc(100% - 125px); }
#athleteProfile #infoDiv #nameDiv { font-size: 25px; font-weight: bold; margin-bottom: 20px; }
#athleteProfile #infoDiv .info { font-size: 15px; }
#athleteProfile #infoDiv .info .country { text-transform: uppercase; }
#athleteProfile #infoDiv .info .infoLeft { display: inline-block; min-width: 100px; }
#athleteProfile #infoDiv .info .infoRight { display: inline-block; }
#athleteProfile #infoResults { margin-top: 30px !important; }
.infoRank { font-size: 15px; font-style: italic; }
.rankSquare { width: 100px; display: inline-block;  margin-bottom: 10px; }
.rankSquare1 { margin-right: 10px; }
.rankSquare .barTop { text-align: center; }
.rankSquare .rank { text-align: center; font-weight: bold; font-size: 32px; background: #eeeeee; }
.rankSquare .rank.rankSquareSmall { font-size: 20px !important; }
.rankSquare .rank .desq { font-size: 15px; } 
#athleteProfile #athleteProfileLeft .certificateDownload  { font-style: italic; text-decoration: underline; margin-top: 20px; }
#table_results { font-family: 'Libre Franklin', sans-serif !important; width: 100%; border-spacing: 0; }
#table_results th { font-family: 'Libre Franklin', sans-serif !important; text-align: center; }
#table_results td { font-family: 'Libre Franklin', sans-serif !important; text-align: center; }
#table_results tr.odd { background: #eeeeee; }
#infoResults { font-size: 15px; font-style: italic; margin-top: 10px; }
#teamProfile { font-family: 'Libre Franklin', sans-serif !important; font-size: 15px; margin: 5%; margin-top: 50px; }
#teamProfile .infoTeam { font-size: 20px; font-style: italic; font-weight: bold; display: inline-block; width: calc(100% - 120px); margin-right: 10px; }
#teamProfile .infoTeam #athletesNrDiv { font-weight: normal; font-size: 15px; }
#teamProfile .infoTeamRight { display: inline-block; width: 100px; }
#teamProfile .infoTeamRight .rankSquare1 { margin-right: 0; }
#podiumProfile { font-family: 'Libre Franklin', sans-serif !important; font-size: 15px; margin: 5%; margin-top: 50px; }
#podiumProfile table { font-family: 'Libre Franklin', sans-serif !important; font-size: 12px; padding: 0; border-collapse: collapse; }
#podiumProfile #buttonsPodium { text-align: center; margin-bottom: 30px; }
#podiumProfile .even { background: #eeeeee; }
#podiumProfile .classBottom { margin-bottom: 20px; }
@media only screen and (max-width: 1065px) {
    #modal { width: 90% !important; max-width: 950px; margin: auto !important; left: 5% !important; margin-right: 5% !important; }
}
@media only screen and (max-width: 800px) {
    #athleteProfile #athleteProfileLeft { width: calc(100% - 110px); }
    #athleteProfile #athleteProfileRight { width: 100px; }
    .rankSquare { display: block; }
    .rankSquare1 { margin-right: unset; margin-bottom: 10px; }
}
@media only screen and (max-width: 750px) {
    #filter_ranking_list .fleft { float: none; }
    #filter_ranking_list .fright { float: none; }
}
@media only screen and (max-width: 650px) {
    #athleteProfile #athleteProfileLeft { display: block; width: 100%; }
    #athleteProfile #athleteProfileRight {display: block; width: 100%; margin-top: 30px; }
    .rankSquare { display: inline-block; margin-right: 10px; }
    .rankSquare1 { margin-right: 10px; margin-right: bottom; }
    #table_results { font-size: 13px; }
    #athleteProfile #infoDiv .info { font-size: 13px; }
}
@media only screen and (max-width: 490px) {
    #filter_ranking_list .fleft .inlineblock { margin-top: 10px; }
}
@media only screen and (max-width: 450px) {
    #teamProfile .infoTeam { width: 100%; margin-right: 0; display: block; }
    #teamProfile .infoTeamRight { width: 100%; display: block; }
    #teamProfile .infoTeamRight .infoRank { text-align: left !important; margin-top: 30px; }
}
@media only screen and (max-width: 395px) {
    #athleteProfile #avatarDiv { width: 100%; display: block; }
    #athleteProfile #infoDiv { width: 100%; display: block; }
    #podiumProfile .tdPadd { display: none; }
}
#galleryPhotos { background-color: #f4f4f4; }
            
/* Responsive gallery */
#galleryPhotos .gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

#galleryPhotos .gallery img {
	width: 100%;
	max-width: 300px;
	height: auto;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
	cursor: pointer;
}

#galleryPhotos .gallery img:hover {
	transform: scale(1.05);
}

/* Modal styles */
#galleryPhotos .modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.8);
}

#galleryPhotos .modal-content {
	display: flex;
	align-items: center; /* Center vertically */
	justify-content: center; /* Center horizontally */
	height: 100%; /* Make sure it takes full height */
	max-width: 90%;
	margin-left: 5%;
	position: relative; /* Make this a positioned element */
}

#galleryPhotos .modal img {
	max-width: 100%;
	max-height: 80vh; /* Limit the height to 80% of the viewport height */
	height: auto;
	border-radius: 10px;
}

#galleryPhotos .close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001; /* Ensure buttons are above the image */
}

#galleryPhotos .prev, .next {
	position: absolute;
	top: 50%; /* Center vertically */
	transform: translateY(-50%); /* Adjust for button height */
	color: white;
	font-size: 30px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001; /* Ensure buttons are above the image */
}

#galleryPhotos .prev {
	left: 5%; /* Position previous button */
}

#galleryPhotos .next {
	right: 5%; /* Position next button */
}

#galleryPhotos .folders {
	list-style-type: none;
	padding: 0;
}

#galleryPhotos .folders li {
	padding: 10px;
	background-color: #fff;
	margin: 10px 0;
	border-radius: 5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

#galleryPhotos .folders li:hover {
	background-color: #eaeaea;
}

#galleryPhotos #backToRootBtn {
	display: none; /* Hide the button initially */
	margin: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 10px 20px;
	font-size: 16px;
	background-color: #3d610e;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

#galleryPhotos #backToRootBtn:hover {
	background-color: #2b4509;
}

/* Responsive styling */
@media (max-width: 768px) {
	#galleryPhotos .gallery img {
		max-width: 45%;
		margin: 5px;
	}

	#galleryPhotos .prev, .next {
		font-size: 24px;
	}

	#galleryPhotos .close {
		font-size: 32px;
	}

	#galleryPhotos #backToRootBtn {
		width: 80%;
		font-size: 14px;
		padding: 8px;
	}
}

@media (max-width: 480px) {
	#galleryPhotos .gallery img {
		max-width: 100%;
		margin: 5px;
	}

	#galleryPhotos .prev, .next {
		font-size: 20px;
	}

	#galleryPhotos .close {
		font-size: 28px;
	}

	#galleryPhotos #backToRootBtn {
		width: 90%;
		font-size: 12px;
		padding: 6px;
	}
}