body, html {
	font-family: Lato;
	margin: 0;
}

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

h1.article_title, h1.h2h_title, h2.article_title, h3.article_title {
  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;
  font-family: Anton;
}

h2.article_title {
  font-size: 28px;	
}

h3.article_title {
  font-size: 22px;	
}

/*analyis front page cards*/

.analysisHolder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-bottom: 80px;
}

.Ahold {
    flex: 1 1 320px;
    max-width: 320px;
    min-width: 280px;
}

.Ahold a {
    text-decoration: none;
    color: inherit;
}

.analysis {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: .25s;
}

.analysis:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.cardHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    min-height: 60px;
    box-sizing: border-box;
}

.cards {
	width: 15px;
}




.analTable {
    margin: 0 auto;
    display: table;
    margin-bottom: 20px;
}

.narrow {
    width: 450px;
}

div.analTable > div:nth-of-type(odd), div.table4747 > div:nth-of-type(odd) {
    background: #ececec;
}

.group {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C62828;
}

.slash {
    flex-shrink: 0;
    color: #bbb;
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
}

.summary {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.imageCard img {
    display: block;
    width: auto;
    height: 140px;
    object-fit: cover;
    margin: 0 auto;
}

.analysisID {
    padding: 10px 14px;
    font-size: 9px;
    color: #999;
}








.keyText {
    display: table-cell;
    padding-left: 3px;
    text-align: left;
    vertical-align: middle;
}


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

img.yellow_card, img.red_card, img.orange_card {
	width:auto; 
	height:15px; 
	margin-bottom: 5px; 
	vertical-align: middle; 
	padding:1px;
}

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

.dateSVGmonth {
  	font-size: 5.5em;
}

.dateSVGday {
  	font-size: 12.5em;
}

.dateSVGweekday {
  	font-size: 5.5em;
}

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

.fixturedetails {
  	margin: 8px auto;
  	border-color: #e6e6e6;
  	border-width: 1px;
  	border-style: solid;
 	width: 900px;
 	padding: 10px;
}


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

.row.show {
    opacity: 1;
    transform: translateY(0);
}

.metricToggle {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #fff;
}

.metricBtn {
    padding: 10px 16px;
    border: 0;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
}

.metricBtn.active {
    background: #111;
    color: #fff;
}

.butHold {
	margin-top: 15px;
	text-align: center;
}

.key {
    color: grey;
    margin: 0 auto;
    text-align: center;
    display: table;
    padding: 5px;
}

.legend_note{
	width: inherit;
    text-align: center;
    margin: 0 auto;
    padding: 0;
    font-size: 0.75em;
    margin-bottom: 1em;
    margin-top: 20px;
    color: #808080;
}

.numRank {
    display: table-cell;
    vertical-align: middle;
}

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

#top {
    width: 100vw;
	height: 100px;
	background-color: #000000;
    margin: 0 auto;
    background-color: white;
    margin-bottom: 10px;
    display: table;
    padding-bottom: 4.5rem;
}

.fade {
    opacity: 0;
    transition: opacity .25s;
}
.fade.show {
    opacity: 1;
}


.headHold {
    position: relative;
    width: 60px;
    height: 60px;
    display: table-cell;
    vertical-align: middle;
}


.head-ref {
    border-radius: 50%;
    vertical-align: middle;
    margin: 8px;
    height: 45px;
    width: 45px;
}

.head-ref.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.badgeLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
}


.crest {
	background-color: transparent;
	position: relative;
    top: 5px;
    left: 40px;
    width: 25px;
    height: 25px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.awayCrest {
	background-color: var(--awayColor);
	position: relative;
    width: 50px;
    height: 50px;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.homeCrest {
	background-color: var(--homeColor);
	position: relative;
    width: 50px;
    height: 50px;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.homeTeamName {
	text-align: right;
}

.crest.loaded {
    opacity: 1;
}

.refHead {
	position: relative;
    width: 50px;
    height: 50px;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.jerseyNumber {
    position: absolute;
    margin-top: -26px;
    margin-left: 0px;
    text-align: center;
    top: 65px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid black;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    color: black;
    transition: opacity 0.2s ease;
}

.row.show .jerseyNumber {
    opacity: 1;
}

.number_block {
    width: 25px;
    padding: 5px;
    background-color: black;
    color: white;
    margin: 2px;
    border-radius: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
    display: block;
    text-align: center;
}

.playerName {
    display: table-cell;
    text-align: left;
    width: 165px;
    vertical-align: middle;
}

.loading {
    opacity: 0.4;
    filter: blur(1px);
    transition: opacity .2s, filter .2s;
}

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#loadingIndicator {
    text-align:center;
    opacity:0;
    transition:opacity .25s ease;
    font-size:14px;
    margin:10px 0;
    font-weight: 800;
}

.dots {
    display:inline-block;
    width: 1.5em;
    text-align:left;
}

.dots::after {
    content: '';
    animation: dots 1.2s infinite steps(4);
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

#seasonLinks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 50px;
    column-gap: 6px;
    margin-bottom: 60px;
}

#seasonLinks a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    transition: width .35s ease;
    position: relative;
    overflow: visible;
}

#seasonLinks a.activeSeason {
    width: 140px;
    height: 60px;
}

#seasonLinks img {
    width: 100%;
    height: auto;

    transform: scale(1);
    transform-origin: center center;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

#seasonLinks a.activeSeason img {
    transform: scale(1.15);  /* subtle extra emphasis */
}

/* base icon */
.seasonImg {
    width: 38px;
    height: 38px;
    transition: transform 0.25s ease;
    transform-origin: center;
    cursor: pointer;
}

/* selected icon */
.seasonImgL {
    width: 38px;
    height: 38px;
    transform: scale(2.2);
    z-index: 10;
    position: relative;
}

.season_link {
    width: 75vw;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

#seasonLinks a.activeSeason {
    z-index: 5;
}



.td6036 {
    display: table-cell;
    text-align: center;
    font-size: 13px;
}

.mcw3v {
    display: table-cell;
    text-align: center;
}


.sc {
    height: 15px !important;
    width: 15px !important;
    object-fit: contain;
}



.clubGameCard {
    display: grid;
    grid-template-columns: 60px 80px 80px 120px 50px 50px 90px 50px 120px 120px 100px 100px;
    grid-template-rows: auto auto;
    gap: 10px;
    align-items: center;
}


.matchGameCard {
    position: relative;
    display: grid;
    grid-template-columns: 45px 70px 1fr 160px 1fr 120px;
    grid-template-rows: auto auto auto;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: 18px;
    padding: 18px;
    margin: 15px auto;
    width: min(900px, 95%);    
    box-shadow:
        0 8px 20px rgba(0,0,0,.08),
        0 2px 5px rgba(0,0,0,.05);
    border: 1px solid #eee;
    overflow:hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.matchGameCard:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0,0,0,.15);
}

.matchGameCard::before,
.matchGameCard::after {
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:8px;
}

.matchGameCard::before {
    left:0;
    background:var(--homeColor);
}

.matchGameCard::after {
    right:0;
    background:var(--awayColor);
}

[data-field="metricDisplay"] {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:10px;
	background: linear-gradient(
	    135deg,
	    var(--homeColor),
	    var(--awayColor)
	);
	color:white;
	border-radius:18px;
}



.metricValue {
    font-size:64px;
    line-height:1;
    font-weight:900;
    color:white;
    letter-spacing:-2px;
}

.metricLabel {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#999;
    margin-top:6px;
}

.metricBar {
    width:120px;
    height:5px;
    border-radius:10px;
    background:#eee;
    margin-top:15px;
}

.metricBarFill {
    height:100%;
    background:#00958F;
    border-radius:10px;
}

.refereeHolder {
    display: flex;
    align-items: center; 
    gap: 4px;
}

.refHead {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.refName {
}

.w18 {
	width: 18px;
	height: 18px;
	font-size: 11px;
}


.subAnalysisTabs {
    display: flex;
    width: 100%;
    margin: 0 auto 20px;
    box-sizing: border-box;
}

.subAnalysisTabs a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 9px 13px;
    background: #B88F3B;
    color: white;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    box-sizing: border-box;
}

.subAnalysisTabs a.selected {
    border-bottom: 5px solid #333;
}

.subAnalysisContent.hide {
    display: none;
}

#container, #container4 {
	width: 800px;
	height: 800px;
	margin: 0 auto;
}


#logo {
    width: 100vw;
    text-align: center;
}

#logo img {
    margin: 1vw;
    display: inline-block;
}

#logo img.selected {
    height: 10vw;
    width: 10vw;
    max-height: 60px;
    max-width: 60px;
}

#logo img.desaturate {
    height: 7vw;
    width: 7vw;
    max-height: 40px;
    max-width: 40px;
    -webkit-filter: grayscale(100%);
    -webkit-border-radius: 50%;
    -webkit-box-shadow: inset 0 0 1px 80px rgba(0, 0, 0, 0.6);
}

.circle, .circle1, .circle2, .circle4, .circle6, .circle12, .circle14, .circle15, .circle41, .circle69, .circle70{
    color: white;
    height: 35px;
    width: 35px;
    display: flex;
    border-radius: 50%;
    font-size: 14px;
    border: 1px solid #333333;
    justify-content: center;
    align-items: center;
}

.circle1 {
	background-color: #8FBC8F;
}

.circle2 {
    background-color: #73cde5;
}

.circle4 {
    background: #5E5047;
}

.circle6 {
	background: #800080;
}

.circle12 {
	background: #00958F;
}

.circle14 {
	background: #336699;
}

.circle15 {
	background: #ff5722;
}

.circle41 {
    background: #A52A2A;
}

.circle69 {
	 background: #78909C;
}

.circle70 {
	background: #6DB0DD;
}

.chooseTeam {
	text-align: center;
}

.crest_line {
	padding:7px; 
	height:50px; 
	width:50px; 
	-webkit-filter:grayscale(100%); 
	opacity: 0.7;
}

.crest_line.selected {
	height:80px; 
	width:80px; 
	-webkit-filter:grayscale(0%);
	opacity: 1;
}


#article {
	width: min(1200px, calc(100% - 30px));
	margin: 0 auto;
}

.article_title {
	text-align: center;
	margin: 20px 0 10px;
}

#article h3 {
	text-align: center;
	margin: 0 0 25px;
	font-size: 1.15rem;
	font-weight: normal;
}

.chartWrapper {
	width: 800px;
	margin: 20px auto 30px;
}

.container_tries {
	width: 800px;
	height: 800px;
}

.resIW {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 12px;
	min-width: 130px;
	vertical-align: middle;
}

.resIW img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex: 0 0 40px;
}

.winNumber {
	font-family: Futura, sans-serif;
	color: #333;
	font-size: 35px;
	font-variant: small-caps;
	line-height: 1;
}

.winText {
	font-family: Futura, sans-serif;
	color: #333;
	font-size: 18px;
	font-variant: small-caps;
	writing-mode: vertical-rl;
	line-height: 1;
}


img.table_crest {
    height: 35px;
    margin-left: 1px;
    margin-right: 1px;
    width: 35px;
}


.row a {
	display: flex;
	align-items: center;
	gap: 8px;
}


.awayteam a {
	display: flex;
	align-items: center;
}

.analTable .row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 55px;
    margin-bottom: 6px;
    border: 1px solid #D3d3d3;
    border-radius: 10px;
    padding: 2px;
}

.analTable .numRank {
	flex: 0 0 45px;
}

.analTable .awayteam {
	flex: 1 1 auto;
	min-width: 0;
}

.analTable .ptsA {
	flex: 0 0 65px;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.vertScore {
	display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px;
}


.scoreHold {
    width: 40px;
    text-align: center;
    padding: 5px 8px;
    border-left: 1px solid #d3d3d3;
}

.PtsIcon {
    display: block;
    width: 27px;
    height: 27px;
    margin: 0 auto 5px;
}

.scoreNumber {
    font-size: 22px;
    line-height: 24px;
    font-weight: 700;
}

.scoreType {
    margin-top: 3px;
    font-size: 9px;
    line-height: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #777;
    text-transform: uppercase;
}



@media (max-width: 700px) {
	
	.metricToggle {
		max-width: 80vw;
	}
	
	.season_link {
		width: 95vw;
	}
	
	#loadingIndicator {
		margin: 0px;
	}

    #seasonLinks {
    	display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        margin: 0 auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        height: 100px;
    }    

    #seasonLinks::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    #seasonLinks img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    #seasonLinks a {
        flex: 0 0 auto;  /* prevents shrinking/wrapping */
        width: 40px;
        height: 40px;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: width 0.25s ease, height 0.25s ease;
    }
 
	#seasonLinks a img {
	    transition: transform .25s ease;
	}
    
    #seasonLinks a.activeSeason {
	    width: 80px;
	    height: 60px;
	}    
    
    #seasonLinks a.activeSeason img {
	    width: 78px;
        height: 78px;
	}

    .seasonImg {
        width: 30px;
        height: 30px;
        padding: 0px;
    }

    .seasonImgL {
        transform: scale(1.1); /* reduce aggression on mobile */
    }
    
    .jerseyNumber {
    	font-size: 9px;
    	padding: 0;
    }
    
    .legend_note {
    	margin: 0px;
    }
    
    .butHold {
    	margin-top: 0px;
    }
    
    .keyText {
    	font-size: 0.75em;
    }
    
    .metricBtn {
    	font-size: 0.75em;
    	padding: 5px 8px;
    }

	#container4 {
        width: 90vw;
        height: 95vw;
        margin: 0 auto;
    }

    #container {
        width: 90vw;
        height: 110vw;
        margin: 0 auto;
    }  	

	#article {
		width: calc(100% - 20px);
	}

	.article_title {
		font-size: 1.6rem;
		line-height: 1.15;
	}

	#article h3 {
		font-size: 1rem;
		line-height: 1.3;
		margin-bottom: 15px;
	}

	.container_tries {
		height: 500px;
	}

	.resIW {
		margin: 6px 8px;
		min-width: 110px;
	}

	.resIW img {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}

	.winNumber {
		font-size: 28px;
	}

	.winText {
		font-size: 15px;
	}

	.analTable .row {
		padding: 5px 0;
	}

	.analTable .numRank {
		flex: 0 0 35px;
	}

	.analTable .awayteam {
		flex: 1 1 calc(100% - 35px);
	}

	.analTable .ptsA {
		flex: 1 1 20%;
	}

	.analTable .ptsA img {
		width: 30px !important;
		height: 30px !important;
	}
	
	.circle, .circle1, .circle2, .circle4, .circle6, .circle15, .circle41, .circle69, .circle70 {
    width: 25px;
    height: 25px;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
	}
}






@media (max-width: 450px) {
	#article {
		width: calc(100% - 16px);
	}

	.container_tries {
		height: 450px;
	}

	.resIW {
		margin: 5px 6px;
		min-width: 95px;
		gap: 4px;
	}

	.resIW img {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
	}

	.winNumber {
		font-size: 24px;
	}

	.winText {
		font-size: 13px;
	}

	.analTable .row {
		min-height: 50px;
	}

	.analTable .numRank {
		flex: 0 0 30px;
	}

	.analTable .awayteam {
		font-size: 14px;
	}

	.analTable .ptsA {
		flex: 1 1 20%;
	}
}


