a {
  color: #333;
  text-decoration: none;
}

body {
    font-family: "Lato", Arial, sans-serif;
}

h1.article_title, h1.h2h_title, h2.article_title {
  font-family: Impact, Charcoal, sans-serif;
  display: block;
  font-size: 42px;
  -webkit-margin-before: 0 em;
  -webkit-margin-after: 0 em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  font-weight: normal;
  text-align: center;
  color: #333333;
  text-shadow: none;
  font-variant: normal;
  padding-bottom: 10px;
  margin: 0;
}

blockquote {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  margin: 0.25em 0;
  padding: 0.35em 40px;
  line-height: 1.45;
  position: relative;
  color: #383838;
}

blockquote::before {
  display: block;
  padding-left: 10px;
  content: "\201C";
  font-size: 120px;
  position: absolute;
  left: -30px;
  top: -40px;
  color: #7a7a7a;
}

.nameText {
	margin-left: 5px;
}

.refImageHolder {
    max-width: 700px;
    margin: 25px auto;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.circle_ref {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f1f1;
    flex-shrink: 0;
}

.refInfo {
    flex: 1;
}

.refInfo h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.refInfo h2 {
    margin: 8px 0 0;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.appearances {
	font-size: 80px;
	text-align: center;
}

.appIcon {
	width: 30px;
	height: 30px;
}

.average-points {
	position: absolute;
  	top: 84px;
  	left: 23px;
}

.avPo {
    color: #63a1cc;
    font-size: 42px;
    line-height: 1;
}

.label-small {
    font-size: 10px;
}

.min-max {
    position: relative;
    height: 150px;
}

.min-max img {
    position: absolute;
    left: 90px;
    top: 10px;
    width: 25px;
    height: 120px;
}

.max-value,
.min-value {
    margin-left: 35px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
}

.min-value {
    margin-top: 55px;
}

.bHold {
    margin-top: -10px;
}

.cR {
	width: 50px;
	height: 50px;
}

.gameHold {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.gameTitle {
    font-size: 55px !important;
    line-height: 1;
    font-weight: 700;
    margin-top: 0 !important;
}

/* target the inline rotated label */
.gameHold > div:last-child {
    rotate: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 14px !important;
    color: #777;
}

.graph {
    display: inline-block;
    margin-top: -8px;
    position: absolute;
    width: 105px;
    height: 70px;
    margin-left: 120px;
    background-color: #333333;
    -webkit-mask: url(/images/svg/graph.svg) no-repeat center;
    mask: url(/images/svg/graph.svg) no-repeat center;
}


.hHold {
	margin-top: 40px;
    text-align: center;
    color: #848484;
}

.hw {
    margin-left: 20px;
    font-size: 10px;
    display: inline-block;
    margin-top: 15px;
    color: #848484;
    text-align: right;
}

.hwRatio {
	font-size: 20px; 
	font-weight: 600;
}


.sumPo {
    text-align: right;
    color: #848484;
    float: left;
    margin-left: 10px;
    margin-top: 30px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

/*fixtures*/
.matchWrap {
    display: grid;
    grid-template-columns: 40px 120px 60px 120px 80px; /*420px total*/
    align-items: center;
    gap: 12px;
    padding: 5px 5px;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

.rDate {
    font-size: 0.5rem;
    color: #666;
}



.hT,
.aT {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hT {
    justify-content: flex-end;
}

.aT {
    justify-content: flex-start;
}

.hThold,
.aThold {
    font-weight: 600;
}

.hThold {
	text-align: right;
}

.aThold {
	text-align: left;
}

.cR {
    width: 35px;
    height: 35px;
}

.hS {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.label {
  display: inline-block;
  vertical-align: middle;
}

.penS {
    margin-left: auto;
    text-align: right;
    font-size: 0.9rem;
}

.circle3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
	color: #333333;
  	background: #FFA500;
  	font-size: 14px;
  	border: 1px solid #333333;
}

.yellow_card, .orange_card, .red_card {
	width: 10px;
}



/*toggle button*/
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-bottom: -10px;
}

.switch input {
  display: none;
}


.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.switch input:checked + .slider {
    background-color: #63a1cc;
}

.switch input:checked + .slider::before {
    transform: translateX(26px);
}

.slider.round::before {
  border-radius: 50%;
}
.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}



.legend_note {
  width: inherit;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  font-size: 0.75em;
  margin-bottom: 1em;
}

.measure_title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


.measure_title h6, .measure_title h8 {
    margin: 0;
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px;
    line-height: 1.2;
    color: #666;
}

.refCardHolder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}

.refCardHolder > div {
    flex: 1 1 250px;
}


.ref_appearance, .ref_measure, .ref_trend, .ref_best, .ref_his {
  	font-size: 14px;
  	border: 1px solid #bdbdbd;
  	border-radius: 5px;
  	margin: 5px;
  	position: relative;
 	box-sizing: border-box;
 	text-align: center;
 	overflow: hidden;
 	max-width: 250px;
 	height: 215px;
}

.refCardHolder .ref_best {
    flex: 0 0 calc(550px - 20px);
    max-width: 530px;
    height: inherit;
}

.ref_his {
    overflow-y: auto;
}

.ref_best {
	height: 300px;
}

.ref_his img, .logo img {
	height: 30px;
	width: 30px;
	margin: 5px;
}

.ref_measure > .tooltip {
    position: absolute;
    top: 14px;
    right: 15px;
}

.ref_profile {
  display: inline-block;
  width: 100%;
}

.ref_profile p {
  line-height: 150%;
  font-size: 1.2em;
  color: #003663;
  text-align: justify;
  padding: 10px;
}

.role-selector {
  text-align: center;
  margin: 20px 0;
}

.role-btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 0;
  border: 1px solid #333333;
  background: #f5f5f5;
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  border-right: none;
  transition: background 0.2s, color 0.2s;
}

.role-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.role-btn:last-child {
  border-radius: 0 20px 20px 0;
  border-right: 1px solid #333333;
}

.role-btn:hover {
  background: #333333;
  color: white;
}

.role-btn.active {
  background: #333333;
  color: white;
}

.tooltip img {
    width: 20px;
    padding-top: 3px;
    cursor: pointer;
}

.tooltip {
    display: flex;
    align-items: center;
}

/*games per season */

.seasonBars {
    width: 95%;
    margin: 20px auto;
}

.seasonBarRow {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
}

.seasonLabel {
    width: 80px;
    font-size: 12px;
    text-align: right;
    margin-right: 10px;
}

.barTrack {
    flex: 1;
    height: 22px;
    background: #eee;
    overflow: hidden;
}

.barFill {
    height: 100%;
    width: 0;
    animation: growBar 0.8s ease forwards;
    animation-delay: 0.15s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    box-sizing: border-box;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@keyframes growBar {
    from {
        width: 0;
    }
    to {
        width: var(--width);
    }
}

.seasonBarRow:hover .barFill {
    filter: brightness(1.15);
}


/* referee appearances */

.competition_table {
    display: table;
    margin: 0 auto 5px auto;
}

.competition_row {
    display: table-row;
}

.competition_cell {
    display: table-cell;
    min-width: 40px;
    text-align: center;
}

.count_cell {
    text-align: center;
}

.appIcon {
    display: block;
    margin: 0 auto;
}

.match_count {
    color: #848484;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
}


/*pie*/

.pie {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.pie svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visisble;
}

.pie circle {
    fill: none;
    stroke-width: 6;
}

.pie_background {
    stroke: #B6B6B6;
}

.pie_value {
    stroke: #f00006;
}



.numberCircle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
}


/*fixture list */
.analTable {
  margin: 0 auto;
    margin-bottom: 0px;
  display: table;
  margin-bottom: 20px;
}

div.analTable > div:nth-of-type(2n+1), div.table4747 > div:nth-of-type(2n+1) {
  background: #ececec;
}

.row {
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.125rem;
  display: table-row;
}

.numRank {
  display: table-cell;
  vertical-align: middle;
  min-width: 30px;
  max-width: 30px;
  width: 30px;
}

.number_block {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.dateHold {
  vertical-align: middle;
  display: table-cell;
  width: 50px;
  padding: 5px;
}

.hometeam, .awayteam {
  width: 170px;
  display: table-cell;
  vertical-align: middle;
  padding: 6px;
}

.aTm, .hTm {
  display: table-cell;
  vertical-align: middle;
  width: 95px;
}

img.table_crest {
  vertical-align: middle;
  height: 40px;
  margin-left: 3px;
  margin-right: 3px;
  width: 40px;
  border: 0px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.compIcon {
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

.resHold, .repHold, .edHold {
  display: table-cell;
  vertical-align: middle;
  width: 35px;
}

img.balls {
  width: auto;
  height: 15px;
  margin-bottom: 5px;
  vertical-align: middle;
  padding: 0px;
}

.homeScore, .awayScore {
  font-size: 25px;
  color: white;
  text-align: center;
  background-color: #333333;
  border-radius: 6px;
  padding: 3px;
}

.seaS, .ptsA, .ptsAw, .gC, .ptsC, .tC, .gameTime {
  width: 40px;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
}

.competitions {
	margin: 2px;
}

.attendance, .attendanceShow {
  text-align: right;
  padding-right: 5px;
  vertical-align: middle;
  display: table-cell;
  width: 60px;
}

.venueDetails {
  display: table-cell;
  vertical-align: middle;
  width: 90px;
}

.dateHold {
    width: 50px;
    margin: 0 auto;
}

.rDate .dateSVGmonth {
	  font-size: 9em;
}
	
.rDate .dateSVGday {
	  font-size: 16em;
}
	
.rDate .dateSVGweekday {
	  font-size: 9em;
}

.dateSVG {
    display: block;
    width: 100%;
    height: auto;
}

.dateSVGmonth {
  font-size: 5.5em;
}

.dateSVGday {
  font-size: 12.5em;
}

.dateSVGweekday {
  font-size: 5.5em;
}





.refCardHolder > * {
    opacity: 0;
    transform: translateY(25px);
    animation: cardEnter 0.8s ease forwards;
}

.refCardHolder > *:nth-child(1) {
    animation-delay: .1s;
}

.refCardHolder > *:nth-child(2) {
    animation-delay: .2s;
}

.refCardHolder > *:nth-child(3) {
    animation-delay: .3s;
}

.refCardHolder > *:nth-child(4) {
    animation-delay: .4s;
}

.refCardHolder > *:nth-child(5) {
    animation-delay: .5s;
}

.refCardHolder > *:nth-child(6) {
    animation-delay: .6s;
}

.refCardHolder > *:nth-child(7) {
    animation-delay: .7s;
}

.refCardHolder > *:nth-child(8) {
    animation-delay: .8s;
}

.refCardHolder > *:nth-child(9) {
    animation-delay: .9s;
}

.refCardHolder > *:nth-child(10) {
    animation-delay: .10s;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






















@media (max-width: 768px) {
	
	.ref_profile p {
		font-size: 0.75em;
	}
	
	.refCardHolder .ref_best {
		max-width: 95vw;
	}
	
	.ref_appearance, .ref_measure, .ref_trend, .ref_best, .ref_his {
		font-size: 0.75em;
	}
	
	.matchWrap {
		grid-template-columns: 30px 1fr 80px 1fr 40px;
		font-size: 0.9em;
	}
	
	.rDate .dateSVGmonth {
	  font-size: 9em;
	}
	
	.rDate .dateSVGday {
	  font-size: 16em;
	}
	
	.rDate .dateSVGweekday {
	  font-size: 9em;
	}
	
	.circle3 {
		width: 20px;
		height: 20px;
		font-size: 1.7em;
		font-weight: 80;		
	}

	.cr {
		width: 20px;
		height: 20px;
	}
	
	.hs {
		font-size: 0.8em;
	}
	
	.penS {
		font-size: 0.6em;
	}
}