/* begining of customization area */

/* standard colors of the rest of the document */
:root {
	--ground-color: #dcdcdc;
	--base1-color: #860000;
	--base2-color: #a81010;
	--dark1-color: #222222;
	--dark2-color: #444444;
	--bright1-color: #dcdcdc;
	--bright2-color: #c0c0c0;
	--male-color: #000080;
	--female-color: #C71585;
	--nofide-color: #D2B48C;
}
/* .. for the  documento */
#blahblah h1 {
	color: var(--dark1-color);
}
/* form background */
html, body {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	position: relative;
	-webkit-font-smoothing: antialiased;
	background: var(--ground-color)!important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
/* background menu */
.navbar-expand-lg {
    background: var(--ground-color)!important;
}

/*hero*/
#hero {
	height: 256px;
	min-height: 256px;
	padding-top: 56px;
	position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	background-image: url('banner.webp');
}

#hero:before {
	width: 100%;
	height: 100%;
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .5);
}

#hero .container-fluid {
	position: relative;
	z-index: 10;
}

/* item menu */
.nav-link {
    color:var(--dark2-color)!important;
    font-size:18px!important;
    font-weight: bold!important;
}
.nav-link:hover {
    background: var(--base1-color)!important;
    color: white!important;
    font-size:20px!important;
    font-weight: bold!important;
}
.nav-link:focus {
    color: white!important;
    font-size:20px!important;
    font-weight: bold!important;
}
.dropdown-menu {
    background: var(--ground-color)!important;
}
.dropdown-item { 
    color:var(--dark2-color)!important;
    font-size:16px!important;
    font-weight: bold!important;
}
.dropdown-item:hover {
    background: var(--base1-color)!important;
    color: white!important;
    font-size:20px!important;
    font-weight: bold!important;
}
/* table title */
.mt-4 {
	padding-top:10px;
    color: var(--base2-color)!important;
	font-size:18px!important;
	font-weight: bold!important;
}

/* tabel heading */
table thead tr th {
    background-color: var(--base2-color)!important;
    color: white!important;
    font-size:18px!important;
    font-weight: bold!important;
}
/* tabel body */
table tbody tr td {
    background-color: var(--ground-color)!important;
    color:var(--dark1-color)!important;
    font-size:18px!important;
    font-weight: bold!important;
}
/* item with link */
table tbody tr td a {
    color:var(--dark1-color)!important;
}
/* odd table row */
.table-striped>tbody>tr:nth-child(odd)>td {
    background-color: var(--bright2-color)!important;
}
/* even table row */
.table-striped>tbody>tr:nth-child(even)>td {
    background-color: var(--bright1-color)!important;
}
/* footer sfondo */
.bg-light {
    background-color: transparent!important;
}
/* footer legenda */
.tbody, td, tfoot {
    background-color: transparent!important;
    color:var(--dark1-color)!important;
    font-size:16px!important;
    font-weight: bold!important;
}
/* footer testo */
.text-dark {
    color:var(--dark1-color)!important;
    font-size:16px!important;
    font-weight: bold!important;
}
/* title male color */
.male {
	border: 1px solid var(--male-color);
	background-color: var(--male-color);
	color: white;
}
/* title female color */
.female {
	border: 1px solid var(--female-color);
	background-color: var(--female-color);
	color: white;
}
/* no title FIDE color */
.notitle {
	display: inline-block;
	width: 45px;
	border-radius: 6px;
	font-size: 80%;
	color:black;
	background-color: var(--nofide-color); 
	text-align: center;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}
/* number player cards */
caption {
	color: var(--base1-color)!important;
	font-size:16px!important;
    font-weight: bold!important;
}
caption a {
	font-size:16px!important;
    font-weight: bold!important;
}
/* footer border down */
.border-light-subtle {
    border-color: var(--ground-color)!important;
}

/* end of customization area */

#hero {
	height: 256px;
	min-height: 256px;
	padding-top: 56px;
	position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero:before {
	width: 100%;
	height: 100%;
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .5);
}

#hero .container-fluid {
	position: relative;
	z-index: 10;
}

.btn-stat-detail {
	width: 40px;
	height: 40px;
	border-radius: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: white;
	border: 1px solid #ddd;
	position: absolute;
	left: 50%;
	bottom: -50%;
	transform: translate(calc(-50% + 17px), -50%);
}

.btn-stat-detail.disabled {
	opacity: .5;
	pointer-events: none;
}

.w-lg-50 {
	width: 50%;
}

.w-25 {
	width: 25%;
}

.w-10 {
	width: 10%;
}

.position-sticky {
	z-index: 100;
}

.btn-stat-detail svg {
	max-width: 50%;
}

table thead tr th,
table tbody tr td {
	padding-left: 24px !important;
	padding-right: 24px !important;
}

.table-divider {
	width: 100%;
	height: 100px;
	min-height: 100px;
	margin-top: 60px;
}

.team-reports table tr th,
.team-reports table tr td {
	white-space: nowrap;
}

.content-loader {
	width: 100%;
	height: 80px;
	margin: 40px auto;
    display: flex;
    justify-content: center;
	position: relative;
}

.content-loader div {
	width: 64px;
	height: 64px;
	margin: 8px;
	box-sizing: border-box;
	display: block;
	position: absolute;
	border: 8px solid #ced4da;
	border-radius: 50%;
	animation: loader-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: #ced4da transparent transparent transparent;
}

.content-loader div:nth-child(1) {
	animation-delay: -0.45s;
}

.content-loader div:nth-child(2) {
	animation-delay: -0.3s;
}

.content-loader div:nth-child(3) {
	animation-delay: -0.15s;
}

@keyframes loader-animation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.stat-card {
	position: relative;
	z-index: 10;
}

.btn-stat-detail svg {
	transition: all .3s ease;
}

.btn-stat-detail[aria-expanded="true"] svg {
	transform: rotateX(180deg);
}

.player-stat-row {
	border-bottom: 1px solid #e7e7e7;
}

.player-stat-row:last-child {
	border: none;
}

.player-stat-row .player-score {
	border-left: 1px solid #e8ecef;
	border-right: 1px solid #e8ecef;
}

.player-stat-row .player-score.black {
	background: #e8ecef;
}

.player-stat-row .player-score.white {
	background: white;
}

.player-stat-row > div:first-child,
.player-stat-header > div:first-child {
	width: calc(50% + 17px);
}

.player-stat-row.odd {
	background: #f8f9fa;
}

.stat-collapse {
	margin-top: -10px;
	padding-top: 10px;
	position: relative;
	z-index: 5;
	border-radius: 5px;
	border: 1px solid #0000002d;
	border-top: none;
}

.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
 background-color: #D8EBFB;
}

td.score {
	font-weight: bold;
	text-align: left;	
	font-size: 120%; 
}

div.res {
   font-weight: bold;
   text-align: center;	
   font-size: 100%; 
}

td.result {
	font-weight: bold;
	text-align: center;	
	font-size: 110%; 
}

div.cb {
	background-color: black;
	color: white;
	font-size: 80%;
	text-align: center;
	border: 1px solid gray;
}

div.cw {
	font-size: 80%; 
	background-color: white;
	color: black;
	text-align: center;
	border: 1px solid gray;
}

div.cf {
	text-align: center;
	font-size: 80%;
	background-color: #FFFF66;
	border: 1px solid black;
	color:black;
}

td.hole {
	background:url(hole.gif) no-repeat; 
	background-position: left center; 
}
  
/*num.sort.*/
.idn {
	display: inline-block;
	width: 40px;
	border: 1px solid white;
	font-size: 80%;
	background-color: white;
	border-radius: 5px;
	color : black;
	text-align: center;
}
/*pairing*/
.idwhite {
	display: inline-block;
	width: 40px;
	font-size: 80%;
	border: 1px solid black;
	background-color: white;
	border-radius: 5px;
	color : black;
	text-align: center;
}
.idblack {
	display: inline-block;
	width: 40px;
	font-size: 80%;
	background-color: black;
	border-radius: 5px;
	color : white;
	text-align: center;
}

@media only screen and ( max-width: 991px ) {
	.w-50 {
		width: 100% !important;
	}
	.stat-card .border-end {
		border: none !important;
		border-bottom: 1px solid #e9ecef !important;
	}
	.player-stat-row > div:first-child,
	.player-stat-header > div:first-child {
		width: 100%;
	}
	.player-stat-row {
		border-bottom: 4px solid #ebebeb;
	}
	.player-stat-row:last-child {
		border-bottom: none;
	}
	.btn-stat-detail {
		bottom: -26%;
	}
}
