body {
	color: #777;
	width: 100%;
	overflow-x: hidden; /* Hide horizontal scrollbar */
}

h2 {
	font-size: 17px !important;
	margin-top: 10px !important;
}

h3 {
	margin: 10px 0 10px 0;
	letter-spacing: 10px;
	font-size: 24px;
	color: #111;
}

h4 {
	font-size: 11px !important;
	margin-top: 5px !important;
}

h5 {
	font-size: 11px !important;
	margin-top: 10px !important;
	color: black !important;
}

h6 {
	margin: 10px 0 10px 0;
	font-size: 20px;
	color: #111;
}

.heading-small {
	font-size: 15px !important;
	margin-top: 7px !important;
}

table {
	table-layout: fixed;
	width: 100%;
}

hr {
	margin-top: 0.1em !important;
	margin-bottom: 0.3em !important;
}

.captiontop {
	caption-side: top;
}

a {
	text-decoration: none;
}

a:hover {
	color:black !important;
	text-decoration: underline;
}

a:focus {
	color:black !important;
	text-decoration: underline;
}

.autocomplete-list {
	position: absolute;
	z-index: 1000;
	background: #fff;
	width: 80%;
	max-height: 240px;
	overflow-y: auto;
}

.autocomplete-item {
	padding: 6px 10px;
	cursor: pointer;
}

.autocomplete-item:hover {
	background-color: #f8f9fa;
}

.micro-col {
	width: 2rem;     /* Pld/Won/Drn/Lost */
}

.thin-col {
	width: 4rem;     /* Pld/Won/Drn/Lost */
}

.mid-col {
	width: 6rem;     /* Perf / Adjust / Diff */
}

.big-col {
	width: 10rem;
	word-wrap: break-word;
	white-space: normal;
}

.details-col {
	width: auto;     /* soak remaining space */
}

.matchcard-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;   /* design width */
    aspect-ratio: 148 / 105;

    background-image: url('https://www.wdclchess.org.uk/source/images/matchcard.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.matchcard-overlay {
    position: absolute;
    inset: 0;
    color: black;
    font-weight: 600;
    font-family: system-ui, sans-serif;

    font-size: 2.2vw;  /* scales with width */
}

/* Matchcard overlay HEADER */
.matchcard-hometeam{
	position: absolute;
	top: 23%;
	left: 13%;
}
.matchcard-awayteam {
	position: absolute;
	top: 23%;
	left: 60%;
}
.matchcard-matchnum {
	position: absolute;
	top: 11.5%;
	left: 3.5%;
}
.matchcard-round {
	position: absolute;
	top: 12%;
	left: 41%;
	font-size: 1.1em;
}
.matchcard-division {
	position: absolute;
	top: 11%;
	left: 78%;
}
/* Matchcard overlay BOARD 1 */
.matchcard-boardcolour1 {
	position: absolute;
	top: 35%;
	left: 6%;
	font-size: 0.45em;
}
.matchcard-homerule1 {
	position: absolute;
	top: 35%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer1 {
	position: absolute;
	top: 34%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult1 {
	position: absolute;
	top: 34%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer1 {
	position: absolute;
	top: 34%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult1 {
	position: absolute;
	top: 34%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule1 {
	position: absolute;
	top: 35%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename1 {
	position: absolute;
	top: 35%;
	left: 85%;
	font-size: 0.45em;
}
/* Matchcard overlay BOARD 2 */
.matchcard-boardcolour2 {
	position: absolute;
	top: 42%;
	left: 6%;
	font-size: 0.45em;
}
.matchcard-homerule2 {
	position: absolute;
	top: 41%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer2 {
	position: absolute;
	top: 41%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult2 {
	position: absolute;
	top: 41%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer2 {
	position: absolute;
	top: 41%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult2 {
	position: absolute;
	top: 41%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule2 {
	position: absolute;
	top: 41%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename2 {
	position: absolute;
	top: 41%;
	left: 85%;
	font-size: 0.45em;
}
/* Matchcard overlay BOARD 3 */
.matchcard-boardcolour3 {
	position: absolute;
	top: 48%;
	left: 6%;
	font-size: 0.45em;
}
.matchcard-homerule3 {
	position: absolute;
	top: 47%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer3 {
	position: absolute;
	top: 47%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult3 {
	position: absolute;
	top: 47%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer3 {
	position: absolute;
	top: 47%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult3 {
	position: absolute;
	top: 47%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule3 {
	position: absolute;
	top: 47%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename3 {
	position: absolute;
	top: 47%;
	left: 85%;
	font-size: 0.45em
}
/* Matchcard overlay BOARD 4 */
.matchcard-boardcolour4 {
	position: absolute;
	top: 54%;
	left: 6%;
	font-size: 0.45em;
}
.matchcard-homerule4 {
	position: absolute;
	top: 54%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer4 {
	position: absolute;
	top: 54%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult4 {
	position: absolute;
	top: 54%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer4 {
	position: absolute;
	top: 54%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult4 {
	position: absolute;
	top: 54%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule4 {
	position: absolute;
	top: 54%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename4 {
	position: absolute;
	top: 54%;
	left: 85%;
	font-size: 0.45em;
}
/* Matchcard overlay BOARD 5 */
.matchcard-boardcolour5 {
	position: absolute;
	top: 61%;
	left: 6%;
	font-size: 0.45em;
}
.matchcard-homerule5 {
	position: absolute;
	top: 61%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer5 {
	position: absolute;
	top: 61%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult5 {
	position: absolute;
	top: 61%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer5 {
	position: absolute;
	top: 61%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult5 {
	position: absolute;
	top: 61%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule5 {
	position: absolute;
	top: 61%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename5 {
	position: absolute;
	top: 61%;
	left: 85%;
	font-size: 0.45em;
}
/* Matchcard overlay BOARD 6 */
.matchcard-boardcolour6 {
	position: absolute;
	top: 68%;
	left: 6%;
	font-size: 0.45em
}
.matchcard-homerule6 {
	position: absolute;
	top: 68%;
	left: 9%;
	font-size: 0.45em;
}
.matchcard-homeplayer6 {
	position: absolute;
	top: 68%;
	left: 13%;
	font-size: 0.82em;
}
.matchcard-homeresult6 {
	position: absolute;
	top: 68%;
	left: 43%;
	font-size: 0.82em;
}
.matchcard-awayplayer6 {
	position: absolute;
	top: 68%;
	left: 48%;
	font-size: 0.82em;
}
.matchcard-awayresult6 {
	position: absolute;
	top: 68%;
	left: 77%;
	font-size: 0.82em;
}
.matchcard-awayrule6 {
	position: absolute;
	top: 68%;
	left: 82%;
	font-size: 0.55em;
}
.matchcard-rulename6 {
	position: absolute;
	top: 68%;
	left: 85%;
	font-size: 0.45em;
}
/* Matchcard overlay FOOTER */
.matchcard-status {
	position: absolute;
	bottom: 22%;
	left: 82%;
	font-size: 0.73em;
}
.matchcard-shockvalue {
	position: absolute;
	bottom: 17%;
	left: 82%;
	font-size: 0.45em;
}
.matchcard-matchdate {
	position: absolute;
	bottom: 8%;
	left: 25%;
	font-size: 1em;
}
.matchcard-homehandicap {
	position: absolute;
	bottom: 22%;
	left: 43%;
	font-size: 1em;
}
.matchcard-awayhandicap {
	position: absolute;
	bottom: 22%;
	left: 77%;
	font-size: 1em;
}
.matchcard-homeresult {
	position: absolute;
	bottom: 15.5%;
	left: 42%;
	font-size: 1em;
}
.matchcard-awayresult {
	position: absolute;
	bottom: 15.5%;
	left: 76%;
	font-size: 1em;
}
.matchcard-enteredby {
	position: absolute;
	bottom: 11.5%;
	left: 60%;
	font-size: 0.50em;
}
.matchcard-verifiedby {
	position: absolute;
	bottom: 8.75%;
	left: 60%;
	font-size: 0.50em;
}
.matchcard-completedby {
	position: absolute;
	bottom: 6%;
	left: 60%;
	font-size: 0.50em;
}
.matchcard-homeadjustment {
	position: absolute;
	bottom: 16%;
	left: 9%;
	font-size: 0.73em;
}
.matchcard-awayadjustment {
	position: absolute;
	bottom: 22%;
	left: 9%;
	font-size: 0.73em;
}

#largegamelisttable {
	margin: auto;
	width: 90% !important; 
}

#largefixturelisttable {
	margin: auto;
	width: 85% !important; 
}

#largestatslisttable {
	margin: auto;
	width: 85% !important; 
}

.statsheader {
	background-color:ghostwhite;
}

.statsfield {
	-ms-flex: 0 0 65px;
	flex: 0 0 65px;
	padding: .10rem !important;
	padding-right: 1rem !important;
	height:35px;
}

.playername {
	padding: .10rem !important;
	height:35px;
}

.fixturetitle {
	font-size: 12px;
}

.fixture {
	font-size: 10px;
}

.detailsbutton {
	padding: .10rem !important;
	height:35px;
}

.card-header {
	background-color: lightgray;
	font-size: 13px;
	line-height: 0.8;
}

.card-body {
	font-size: 11px;
	line-height: 1.4;
	padding: 10px 5px 10px 8px;
}

.helpbutton {
	background-color: #6c757d;
	border: none;
	color: rgba(255,255,255,.5);
	padding: 5px 10px;
	margin-top: 5px;
	cursor: pointer;
	font-size: 19px;
}

/* Darker background on mouse-over */
.helpbutton:hover {
	background-color: #535a5f;
	color: white;
}

.col-form-theme {
	padding-top: 1px !important;
	line-height: 1.0 !important;
}

.col-form-label {
	font-size: 15px !important;
	padding-bottom: 10px !important;
	line-height: 1.1 !important;
}

.form-group {
	margin-bottom:2px !important;
}

.formpulldown {
	font-family:verdana;
	font-size:12px;
	margin-bottom:5px;
}

.form-select {
	display: inline-block !important;
}

/* hidden on-screen */
.print-only {
	display: none;
}

.container {
	padding: 5px 5px !important;
	max-width: 1050px !important;
}

.white {
	color: darkgray;
}

.black {
	color: black;
}

#mapid { height: 400px; }

#googlemap {
	height: 100%;
}

.navbar {
	padding-left: 5px;
	padding-right: 5px;
}

/* change the brand and text color */
.navbar-brand {
	color: white;
}

.navbar-brand a {
	color: white;
}

.nav {
	background-color: #6c757d !important;
	font-size: 12px;
	padding-left: 0px;
	padding-right: 0px;
}

.usertable {
	line-height: 35px;
}

.dropdown-submenu {
	position: relative;
	color: white;
	font-size: 14px;
	padding-left: 0px;
	padding-right: 0px;
}

.dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: -1px;
	color: white;
	font-size: 12px;
	padding-left: 0px;
	padding-right: 0px;
}

.nav a {
	color: white;
	background-color: #6c757d !important;
	font-size: 12px;
}

.nav-tabs {
	margin-bottom: 0px !important;
}

.nav-link {
	background-color: #6c757d !important;
	color: white !important;
	border-color: darkgray !important;
	border-radius: 0;
	padding: .1rem .95rem;
	font-size: 12px;
}

.nav-link li a {
	color: darkgreen;
	font-size: 12px;
}

.nav-link.active {
	color: black !important;
	background-color: transparent;
}

.navbar-toggler {
	padding: .25rem .25rem;
}

#navbarDropdownMenufixtures {
	color: black;
	font-size: 12px !important;
	border-style: none !important;
}

.navbarDropdownfixtures {
	color: black;
	font-size: 12px;
}

.smallcaption a:link {
	color: darkgreen !important;
}

#myTab a {
	padding-left: 7px;
	padding-right: 7px;
}

.person {
	border: 10px solid transparent;
	margin-bottom: 25px;
	width: 80%;
	height: 80%;
	opacity: 0.7;
}
.person:hover {
	border-color: #f1f1f1;
}

.url {
	font-size: 11px !important;
}

.teamresult {
	font-size: 14px !important;
}

.teamverifyresult {
	font-size: 18px !important;
}

.playerresult {
	font-size: 14px !important;
}

.boardresult {
	font-size: 14px !important;
}

.email {
	font-size: 12px !important;
}

.comment {
	font-size: 12px !important;
}

.slategrey {
	color: slategrey;
}

.slategreyres {
	top: .3em;
	color: slategrey;
}

.incomplete {
	color: goldenrod !important;
}

@media (max-width: 600px) {
	.carousel-caption {
		display: none; /* Hide the carousel text when the screen is less than 600 pixels wide */
	}
}

.modal-header, .close {
	background-color: #333;
	color: #fff !important;
	text-align: center;
	font-size: 25px;
}

.modal-header {
	padding: 15px 20px;
}

.modal-body {
	padding-top: 5px !important;
}

.eventstat_modalbody {
	padding: 10px 20px;
	overflow-y: auto;
	max-height: 70vh;
}

.form-label {
	margin-bottom: 3px !important;
}

.eventdate { font-size: 13px; }

.latitude { font-size: 13px; }

.longitude { font-size: 13px; }

.lang { font-size: 13px; }

.form-group {
	font-size: 13px !important;
	color: black;
	text-align:left;
}

.imagelabel {
	width: 60px;	
}

.clubmap {
	max-width: 75%;
	height: auto;
}

.username {
	text-align:left;
	width:80px;
}

span.cbline {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	word-wrap: break-word !important;
}

.userselect {
	text-align:left;
	width:294px;
}

.detailBox {
	max-width: 920px;
	width: 100%;
	margin: 50px auto;
	border:1px solid #bbb;
}

#blog {
	margin:5px;
}

.titleBox {
	background-color:#fdfdfd;
	padding:0px;
}
.titleBox label{
	color:#444;
	margin:0;
	display:inline-block;
}
.commentBox {
	padding:7px;
	border-top:1px dotted #bbb;
}
.commentBox .form-group:first-child, .actionBox .form-group:first-child {
	width:80%;
}
.commentBox .form-group:nth-child(2), .actionBox .form-group:nth-child(2) {
	width:18%;
}
.actionBox .form-group * {
	width:100%;
}
.taskDescription {
	margin-top:0px;
}
.commentList {
	padding:10px;
	list-style:none;
	max-height:400px;
	overflow:auto;
}
.commentList li > div {
	display: table-cell;
}
.commentTitle {
	padding: 10px;
	outline: 0px;
	color: black;
	font-size: 28px;
	font-weight: 400;
	margin-top: 5px;
	margin-left: 10px;
	margin-right: 5px;
	line-height: 1.2;
	text-decoration: none;
	word-wrap: break-word;
	display: inline;
}

.commentText {
	padding: 10px;
	outline: 0px;
	color: black;
	font-size: 18px;
	margin-left: 10px;
	margin-right: 5px;
	line-height: 28px;
	font-weight: 300;
	text-decoration: none;
	word-wrap: break-word;
	margin-bottom: 1.6em;
}

.sub-text {
	padding: 5px;
	color:#a8a6a1;
	font-size:11px;
	line-height: 0.6;
	margin-left: 5px;
	margin-right: 5px;
	display: inline;
}

.sub-text a {
	color: #a8a6a1;
	transition: color .2s;
}

.linkTitle {
	padding: 5px;
	outline: 0px;
	color: black;
	font-size: 22px;
	font-weight: 400;
	margin-top: 30px;
	margin-left: 10px;
	margin-right: 10px;
	line-height: 1.2;
	text-decoration: none;
	word-wrap: break-word;
	display: inline;
}

.linkText a {
	padding: 5px;
	outline: 0px;
	color: black;
	font-size: 18px;
	margin-left: 5px;
	margin-right: 10px;
	line-height: 35px;
	text-decoration: none;
	word-wrap: break-word;
	margin-bottom: 5px;
}

.linkText a:hover,
.linkText a:focus {
	color: black;
	text-decoration: underline;
}

.actionBox {
	border-top:1px dotted #bbb;
	padding:0px;
}
.form-inline {
	margin:5px;
	color:#aaa;
	font-family:verdana;
	font-size:11px;
}
.team {
	margin:5px;
	color:black;
	font-size:14px;
}
.licence {
	font-family:verdana;
	font-size:12px;
}
#licencebronze {
	color:darksalmon;
}
#licencesilver {
	color:silver;
}
#licencegold {
	color:gold;
}

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	float:right;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
}

input.default:checked + .slider {
	background-color: #444;
}
input.primary:checked + .slider {
	background-color: #2196F3;
}
input.success:checked + .slider {
	background-color: #8bc34a;
}
input.info:checked + .slider {
	background-color: #3de0f5;
}
input.warning:checked + .slider {
	background-color: #FFC107;
}
input.danger:checked + .slider {
	background-color: #f44336;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

.smallcaption {
	caption-side: top;
	text-align: left;
	background-color: transparent;
	color: black;
	font-size: 12px;
	text-decoration: none;
	height: 30px;
}

table th {
	padding: 2px !important;
}

table td {
	padding: 2px !important;
}

table th a {
	color:darkgreen;
	text-decoration: none;
}
table td a {
	color: darkgreen !important;
	text-decoration: none;
}

table th a:hover,
table td a:hover {
	color:black !important;
	text-decoration: underline;
}

table th a:focus,
table td a:focus {
	color:black !important;
	text-decoration: underline;
}

.border-bottom {
	border-left-color: black !important;
	border-right-color: black !important;
}

.border-top {
	border-left-color: black !important;
	border-right-color: black !important;
}

.namesmall {
	font-size: 11px;
	color: white;
}

.namesmall a {
	font-size: 11px;
	color: white !important;
}

.namesmall a:hover {
	text-decoration: underline;
	color: darkgreen !important;
}

.namesmall a:active {
	color: gold;
	text-decoration: underline;
}

.namesmall sup {
	vertical-align: top;
	font-size: 8px;
}

.namesmall a sup {
	vertical-align: top;
	font-size: 8px;
}

.namesmallblack {
	font-size: 11px;
	color: black;
}

.namesmallblack a {
	font-size: 11px;
	color: darkgreen;
}

.namesmallblack a:hover {
	text-decoration: underline;
}

.namesmallblack sup {
	vertical-align: top;
	font-size: 8px;
}

.namesmallblack a sup {
	vertical-align: top;
	font-size: 8px;
}

.statussmall {
	font-size: 10px !important;
}

.matchnumsmall {
	font-size: 10px !important;
}

.resultsmall {
	font-size: 12px !important;
}
.seasonselect {
	font-size: 9px !important;
	min-width: 75px !important;
	max-width: 95px !important;
}

@media only screen and (max-width: 768px) {
	h6 {
		margin: 10px 0 10px 0;
		font-size: 14px;
		color: #111;
	}
	
	.commentTitle {
		padding: 50px;
		font-size: 24px;
		margin-top: 1px;
		margin-left: 1px;
		margin-right: 1px;
	}
	.commentText {
		padding: 1px;
		outline: 0px;
		color: black;
		font-size: 14px;
		margin-left: 1px;
		margin-right: 1px;
		line-height: 24px;
		margin-bottom: 1em;
	}
	.largetable {
		display: none;
	}
	.smalltable {
		display: block;
		font-size: 14px !important;
	}
	.largemenu {
		display: none;
	}
	.smallmenu {
		display: block;
	}
	.smallstripe {
		background-color: gainsboro;
	}

	.eventstat_modalbody { height: 250px; }

	/* Hide non-essential columns */
	.col-hidewhensmall {
		display: none;
	}

	/* Compact typography */
	table {
		font-size: 11px;
	}

	table th,
	table td {
		padding: 2px 3px !important;
		vertical-align: middle;
	}

	/* Name column becomes dominant */
	.col-name {
		width: auto !important;
		white-space: normal;
		word-break: break-word;
	}
}

@media only screen and (min-width: 769px) {
	.largetable {
		display: block;
	}
	.smalltable {
		display: none;
	}
	.largemenu {
		display: block;
	}
	.smallmenu {
		display: none;
	}
}

#print-wrapper {
	display: none;
}
.modal-body {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .matchcard-wrapper {
        transform: scale(calc((100vw - 40px) / 1000));
    }
}
@media (min-width: 768px) {
    .btn-md-normal {
        padding: .375rem .75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: .25rem;
    }
}
iframe {
    overflow: hidden;
}