@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

:root {
    --font-stack: "Nunito Sans", sans-serif;
    --black: #141414;
    --grid-gap: 10px;
    --flex-padding: 5px;
}

body {
    background-color: #f7f7f7;
    font-family: var(--font-stack);
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    left: 0;
    transition: left 0.3s ease-in-out;
}

body.nav-open {
    left: -280px;
    transition: left 0.3s ease-in-out;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-stack);
    color: var(--black);
    font-weight: 900;
}

h1 {
    font-size: 40px;
    letter-spacing: -0.022em;
    line-height: 1.2em;
    margin-bottom: 24px;
}

h2 {
    display: inline-block;
    font-size: 21px;
    padding: 8px 15px;
    border-bottom: 5px solid var(--color);
    margin-bottom: 32px;
}

h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

h4,h5,h6 {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
    font-size: 16px;
    font-weight: 700;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 16px;
}

.sub-header {
	display: inline-block;
	color: var(--color-text);
	background-color: var(--color);
	font-size: 12px;
	padding: 6px;
	margin-bottom: 8px;
	font-weight: var(--bold);
	line-height: 1;
}

strong {
    font-weight: 700;
}

p, li {
    line-height: 1.5em;
    margin-bottom: 20px;
}
p:last-child{
    margin-bottom: 0;
}

.padded {
    padding: 8px;
}

/* Centering in theme 2 only */
.t2-center{
	text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.flex.t2-center{
	justify-content: center;
}

/* COLOURS */
body .white {
    color: white;
}

.theme-colour,
.theme-color {
    color: var(--color);
}

body .background-theme {
	color: var(--color-text);
    background-color: var(--color);
}

/* ICONS */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon > img {
    max-width: 100%;
}

.icon.star {
    background-image: url(../images/icon-star.svg);
}

.icon.cup {
    background-image: url(../images/icon-cup.svg);
}

.icon.search{
	background-image: url(../images/icon-search.svg);
}

.icon.note {
	background-image: url(../images/icon-note.svg);
}

.icon.youtube {
	width: 50px;
    height: 36px;
	background-image: url(../images/icons-white/icon-youtube.svg);
}

.icon.info {
	background-image: url(../../../common/images/icons/icon-information.png);
}

/* Promotion / relegation icons */
td.highlight .icon.star {
	background-image: url(../images/icons-white/icon-star-2.svg);
}
td.highlight .icon.arrowdown {
	background-image: url(../images/icon-dropdown.svg);
}
td.highlight .icon.arrowup {
	background-image: url(../images/icon-dropdown.svg);
	transform: rotate(180deg);
}

body.color-text-dark td.highlight .icon.star {
	background-image: url(../images/icon-star-2.svg);
}
body.color-text-dark td.highlight .icon.arrowdown {
	background-image: url(../images/icon-dropdown-arrow.svg);
}
body.color-text-dark td.highlight .icon.arrowup {
	background-image: url(../images/icon-dropdown-arrow.svg);
}

.icon.arrowleft {
	background-image: url(../images/icons-white/icon-dropdown.svg);
	transform: rotate(90deg);
}
.icon.arrowright {
	background-image: url(../images/icons-white/icon-dropdown.svg);
	transform: rotate(270deg);
}

.icon.arrowleft-dark {
    background-image: url(../images/icon-arrow.svg);
    transform: rotate(180deg);
}
.icon.arrowright-dark {
    background-image: url(../images/icon-arrow.svg);
}
.icon.arrowdown-dark {
    background-image: url(../images/icon-arrow.svg);
    transform: rotate(90deg);
}
.icon.arrowup-dark {
    background-image: url(../images/icon-arrow.svg);
    transform: rotate(-90deg);
}

/* Stats table icons */
th.top-level-th .icon.arrowup{
	width: 8px;
	height: 8px;
	background-image: url(../images/icon-dropdown-arrow.svg);
	transform: rotate(180deg);
}

table.vertical-headers-table th.rotate > div .icon.arrowright{
	width: 14px;
	height: 7px;
	background-image: url(../images/icon-dropdown-arrow.svg);
}

/* BORDERS */
.b-bottom,
.b-bottom-dark {
	border-bottom: 3px solid var(--color);
}
.b-bottom.thick,
.b-bottom-dark.thick {
	border-bottom: 6px solid var(--color);
}


/* BUTTONS */
.button,
input[type="submit"].button {
    display: inline-block;
    font-family: var(--font-stack);
    font-weight: 700;
    font-size: 16px;
    color: var(--black);
    background-color: white;
    padding: 10px 24px;
    text-decoration: none !important;
    border: 4px solid transparent;
    cursor: pointer;
}
.button:hover,
.button:focus,
input[type="submit"].button:hover,
input[type="submit"].button:focus {
    background-color: transparent;
    border-color: white;
    color: white;
}

body.color-text-dark .button {
	color: white;
    background-color: var(--black);
}
body.color-text-dark .button:hover {
    background-color: transparent;
    border-color: var(--black);
    color: var(--black);
}

.button.disabled,
.button.disabled:hover,
.button.disabled:focus {
	color: #ababab;
	background-color: #dedede;
	border-color: #dedede;
	cursor: not-allowed;
}
.card .button.disabled,
.card .button.disabled:hover,
.card .button.disabled:focus {
	color: #bcbcbc;
	background-color: #f7f7f7;
	border-color: #f7f7f7;
	cursor: not-allowed;
}


/* FORM INPUTS */
input[type="submit"],
button {
	font-family: var(--font-stack);
	font-size: 16px;
 	color: var(--black);
	padding: 0;
}

input[type="text"],
input[type="search"],
input[type="number"] {
	font-family: var(--font-stack);
	font-size: 16px;
	color: var(--black);
	background: white;
	padding: 0;
}

select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-stack);
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    height: 48px;
    padding: 0 30px 0 10px;
    background-color: white;
    background-image: url('../images/icon-dropdown-arrow.svg');
    background-size: 13px auto;
    background-position: calc(100% - 10px) center;
    background-repeat: no-repeat;
    border: 3px solid #ebebeb;
    margin-bottom: 30px;
    border-radius: 0;
}

.filters select:not(:first-child) {
    margin-left: 10px;
}

.secondary-filters {
	padding: 24px 0;
	border-top: 3px solid #ebebeb;
	border-bottom: 3px solid #ebebeb;
	margin-bottom: 20px;
}

.secondary-filters .dropdowns > div {
	border: 3px solid #ebebeb;
	background-color: #fff;
	padding-left: 10px;
	margin-bottom: 20px;
	margin-right: 10px; 
}
.secondary-filters .dropdowns > div:last-child {
	margin-right: 0; 
}
.secondary-filters .dropdowns > div > select {
	border: 0;
	border-left: 3px solid #ebebeb;
	font-weight: var(--regular);
	margin: 0;	
	margin-left: 10px;
}

.secondary-filters .dropdowns label{
	font-weight: bold;
}

.secondary-filters .radio-inline > label{
	margin-right: 24px;
}
.secondary-filters .radio-inline > ul > li{
	margin-right: 12px;
}

.secondary-filters input[type="submit"].button {
	color: var(--color-text);
	background: var(--color);
}
.secondary-filters input[type="submit"].button:hover,
.secondary-filters input[type="submit"].button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}

/* TABS */
.tabs-container {
	width: 100%;
	height: 57px;
	border-bottom: 7px solid #ebebeb;
	margin-bottom: 30px;
}

/* Scolling tab buttons */
.tabs-container.tabs-scroll-buttons {
    position: relative;
}

.tabs-scroll-left,
.tabs-scroll-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    padding: 0;
    background-color: #ebebeb;
    color: var(--black);
    font-size: 24px;
    font-weight: bold;
    line-height: 57px;
    text-align: center;
    cursor: pointer;
    z-index: 3;
    display: none;
    border: none;
    transition: background 0.3s ease;
}

/* Right button fades on the left */
.tabs-scroll-right {
    right: 0;
    background: linear-gradient(to left,
    #ebebeb 70%,
    rgba(255,255,255,0) 100%);
}

/* Left button fades on the right */
.tabs-scroll-left {
    left: 0;
    background: linear-gradient(to right,
    #ebebeb 70%,
    rgba(255,255,255,0) 100%);
}

.tabs-scroll-left:hover,
.tabs-scroll-right:hover {
    background-color: #ebebeb;
}

.tabs-scroll-left .icon,
.tabs-scroll-right .icon {
    width: 24px;
    height: 24px;
}
/* hide scroll buttons on smaller screens if needed */
@media screen and (max-width: 768px) {
    .tabs-scroll-left,
    .tabs-scroll-right {
        display: none !important;
    }
}

.tabs-container .tabs {
    width: 100%;
    height: 57px;
    color: var(--color);
    font-weight: bold;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
	-ms-overflow-style: -ms-autohiding-scrollbar;
}
.tabs-container .tabs::-webkit-scrollbar {
  display: none;
}

.tabs-container .tabs .tab {
    height: 57px;
    min-width: 170px;
    text-align: center;
    background-color: #ebebeb;
    font-weight: 700;
    color: var(--black);
    margin-right: 10px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.tabs-container .tabs .tab:not(.tab-active):hover {
    background-color: var(--black);
    color: white;
    border-bottom: 7px solid #ebebeb;
}

.tabs-container .tabs .tab a,
.tabs-container .tabs .tab input,
.tabs-container .tabs .tab button {
    display: block;
    height: 57px;
    line-height: 50px;
    padding: 0 24px;
    white-space: nowrap;
}

.tabs-container .tabs .tab input,
.tabs-container .tabs .tab button {
	color: inherit;
	background-color: transparent;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	height: 50px;
	white-space: nowrap;
}

.tabs-container .tabs .tab-active {
    border-bottom: 6px solid #ebebeb;
    color: var(--color-text);
    background-color: var(--color);
    font-weight: 900;
}

.tabs-container .tabs .tab-active input,
.tabs-container .tabs .tab-active .tab button {
	 font-weight: inherit;
}


/* TABLES */
.table-scroll:not(.clone-container) {
    overflow-x: auto;
}
/*
.table-scroll::-webkit-scrollbar {
    height: 5px;
}

.table-scroll::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.15);
}

.table-scroll::-webkit-scrollbar-thumb {
    background-color: var(--black);
}
*/

table {
	font-size: 16px;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    margin-bottom: 20px;
}

.promotion-separator-end td,
.relegation-separator-start td{
	border-bottom: 2px dotted #555555;
}
.champion-row td{
	background-color: #dedede;
}
.promoted-row td,
.relegated-row td{
	background-color: #ebebeb;
}

th {
    text-transform: uppercase;
    color: var(--black);
    font-size: 11px;
    text-align: center;
    border: 4px solid #f7f7f7;
}

th.top-level-th{
	background-color: #ebebeb;
	padding: 2px 0;
}

th > a.underline{
	color: #b0b0b0;
}

.fg-heading,
.time-heading {
	background-color: var(--color-secondary);
    color: var(--color-secondary-text);
    font-size: 16px;
    font-weight: 700;
    padding: 3px 8px;
    display: inline-block;
	text-align: left;
    text-transform: uppercase;
}
.fg-heading {
	font-size: 16px;
	margin: 10px 0 0 0;
}
.time-heading {
	font-size: 14px;
	margin: 5px 0 5px 0;
}

td {
    background-color: white;
    border: 4px solid #f7f7f7;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

td.highlight {
    font-weight: var(--bold);
    color: var(--color-text);
    background-color: var(--color);
}
td.highlight .icon {
    margin-right: 10px;
}

tr td:first-child {
    width: 50px !important;
    font-weight: 400;
}

td:not(.highlight) a {
    color: var(--black);
}

/* Stats table */
table.stats-table thead th:not(.top-level-th) {
	background-color: #f7f7f7;
}
/* Fake borders - scrollable fixed column tables can't have left / right borders */
table.stats-table th:not(:last-child):after, 
table.stats-table td:not(:last-child):after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    background-color: #f7f7f7;
}

table tr[data-match-href]:hover td {
	color: var(--color);
    background: #efefef;
}

/** Live standings indicator **/
.live-indicator {
    color: var(--liveResultColor);
    font-weight: bold;
    text-transform: uppercase;
}

.live-indicator::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--liveResultColor);
    border-radius: 50%;
    margin-right: 6px;
    /* Animation */
    animation: pulse 1.5s infinite ease-in-out;
}
/* Pulse animation keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* SECTIONS/CONTAINERS */
section {
    padding-top: 15px;
    padding-bottom: 15px;
}

.container {
    max-width: calc(100% - 20px);
}

/* TOOLTIP */
#tooltip{
	color: white;
    background: var(--black);
}
/* triangle decoration */
#tooltip:after {
    border-top-color: var(--black);
}
#tooltip.top:after{
    border-bottom-color: var(--black);
}


/* BREAKING NEWS */
.breaking-news-container{
	border-width: 3px;
}

/* CONTENT */
footer a:hover,
td a:hover,
.card-content a:hover {
    text-decoration: underline;
}

/* HEADER */
header {
    height: 100px;
}

header nav li {
    margin-bottom: 0;
    margin-right: 20px;
}

header nav li a {
    padding: 10px 14px;
    background-color: inherit;
    transition: background-color 0.2s ease-in-out;
}

header nav li a:hover {
    background-color: #ebebeb;
    transition: background-color 0.2s ease-in-out;
}

header nav li.active a {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);;
}

/* NAV */
#js--site-nav {
    width: 40px;
    height: 30px;
    background-image: url(../images/icon-menu.svg);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}

body.nav-open #js--site-nav {
    background-image: url(../images/icon-close.svg);
    background-size: 30px auto;
}

aside {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    z-index: 10;
    width: 280px;
    background-color: #5e5e5e;
    color: white;
    transition: right 0.3s ease-in-out;
    padding: 20px;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open aside {
    right: 0px !important;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

aside nav li {
    margin-bottom: 0;
    padding: 8px 0;
}

aside nav li a {
    display: block;
}

aside nav a:hover {
    color: var(--color);
    transition: color 0.5s ease-in;
}

aside nav ul > li:not(:last-child) {
    border-bottom: 1px dotted rgba(255,255,255,0.2);
}

aside nav li.dropdown {
    background-image: url(../images/icon-dropdown.svg);
    background-repeat: no-repeat;
    background-position: right 17px;
}

aside nav li.dropdown ul {
    display: none;
    padding-top: 10px;
    padding-left: 16px;
    padding-bottom: 10px;
}

aside nav li.dropdown.open > a {
    font-weight: 700;
    color: var(--color);
}

aside nav li.dropdown.open > ul {
    display: block;
    border-left: 2px solid var(--color);
}

/* INTRO */
#intro{
	min-height: 400px;
}

#intro:before {
    content: "";
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: -50% 50%;
    background-repeat: no-repeat;
}

#intro:after {
    content: "";
    display: block;
    width: 200px;
    height: 200px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: 20% 100%;
    background-repeat: no-repeat;
    transform: rotate(-180deg);
}

#intro-news {
    padding-top: 0;
    overflow: hidden;
}

#intro .content {
    margin: 60px;
    z-index: 1;
    color: var(--color-text);
}

#intro .content #logo img{
	background-color: white;
	padding: 10px;
}

#intro .content #logo.no-border img{
	background: none;
	padding: 0;
}

#intro .content h1,
#intro .content h2,
#intro .content h3{
    color: var(--color-text);
}

#intro .content h2{
	border: none;
	display: block;
	padding: 0;
	margin-bottom: 20px;
}

#intro .content a:not(.button) {
    color: var(--color-text);
	text-decoration: underline;
}
#intro .content ol {
    margin-bottom: 20px;
}
#intro .content ol li {
	list-style: decimal inside;
	margin-bottom: 10px;
}
#intro .content ul {
	margin-bottom: 20px;
}
#intro .content ul li {
	list-style: disc inside;
	margin-bottom: 10px;
}

/* NEWS */
#news {
    height: 100%;
}

.news-card {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-size 0.5s ease-in-out;
}

.news-card .news-category {
	color: var(--color-text);
    display: inline-block;
}

.news-card .news-category:hover {
    background-color: var(--black);
    color: var(--color);
    transition: all 0.3s ease-in-out;
}

.news-card .content {
    position: absolute;
    bottom: 0;
    margin: 20px 20px 40px 20px;
}

.news-card .news-date {
    display: inline-block;
    background-color: rgba(255,255,255,0.6);
    padding: 0 1px;
    margin-bottom: 4px;
}

.news-card .news-title a {
    background: var(--black);
    color: white;
    display: inline;
    line-height: 1.5em;
}

.news-card .news-title a:hover {
    color: var(--color);
}


/* LEAGUE STANDINGS CAROUSEL */
#league-standings .table {
	padding: 0 30px;
}

#league-standings table {
	margin-bottom: 5px
}

#league-standings .table-truncated-note {
	background: #ffffff;
	background: -moz-linear-gradient(0deg, rgba(247,247,247,1) 25%, rgba(255,255,255,1) 100%);
	background: -webkit-linear-gradient(0deg, rgba(247,247,247,1) 25%, rgba(255,255,255,1) 100%);
	background: linear-gradient(0deg, rgba(247,247,247,1) 25%, rgba(255,255,255,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f7f7f7",endColorstr="#ffffff",GradientType=1);
	border-top: 2px dashed #dedede;
}

.league-standings-carousel .owl-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
}

.league-standings-carousel .owl-nav button.owl-next, 
.league-standings-carousel .owl-nav button.owl-prev {
	display: inline-block;
	width: 40px;
	height: 40px;
	font-size: 30px;
	position: absolute;
	color: #ffffff;
	background-color: #999; 
	border: 1px solid #888;
}
.league-standings-carousel .owl-nav button.owl-next {
	right: -30px;
}
.league-standings-carousel .owl-nav button.owl-prev {
	left: -30px;
	margin-right: 10px;
}

.league-standings-carousel .owl-dots {
    padding-top: 4px;
    padding-bottom: 8px;
    text-align: center;
}

.league-standings-carousel .owl-dots span {
    display: none;
}

.league-standings-carousel button.owl-dot {
	display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #888888;
    margin: 0 2px;
}

.league-standings-carousel .owl-dot.active {
    background-color: var(--color);
}


/* MATCH HUB */
.match-hub-carousel-container {
	margin-right: 20px;
	margin-left: 20px;
}

.match-hub-carousel .item .match-counts > div {
    border-radius: 0; 
}

.match-hub-carousel .owl-nav button.owl-next, 
.match-hub-carousel .owl-nav button.owl-prev {
	display: inline-block;
	width: 40px;
	height: 40px;
	font-size: 30px;
	position: absolute;
	color: #ffffff;
	background-color: #999; 
	border: 1px solid #888;
}
.match-hub-carousel .owl-nav button.owl-next {
	right: -20px;
	bottom: -20px;
}
.match-hub-carousel .owl-nav button.owl-prev {
	left: -20px;
	bottom: -20px;
	margin-right: 10px;
}

/* Match Hub Recap expand */
.matchhub-recap-text::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0), #f7f7f7);
}
.matchhub-recap-toggle {
    background: #f7f7f7;
}


/* TOOGLE SWITCH */
.slider {
    border-radius: 0;
}
.slider:before {
	border-radius: 0;
}


/* FIXTURE GROUP HOME */
#fixture-group{
	padding-top: 0;
}
#fixture-group .card{
	color: var(--color-text);
	background-color: var(--color);
	overflow: hidden;
}
#fixture-group .card h1,
#fixture-group .card h2,
#fixture-group .card h3{
	color: var(--color-text);
}

#fixture-group .card:before {
    content: "";
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: -50% 50%;
    background-repeat: no-repeat;
}
#fixture-group .card:after {
    content: "";
    display: block;
    width: 200px;
    height: 200px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: 20% 100%;
    background-repeat: no-repeat;
    transform: rotate(-180deg);
}

#fixture-group .card > div{
	z-index: 1;
}

#fixture-group .card .b-bottom.thick{
	border-color: rgba(255,255,255, 0.6);
}


/* MATCH GROUPS */
#match-groups.grid-4 {
    grid-gap: 15px 10px;
}

#match-groups li {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
    min-height: 50px;
    display: flex;
    align-items: center;
    line-height: 1.125em;
}
#match-groups li a {
    display: flex;
    width: 100%;
    align-items: center;
}

#match-groups a:hover div,
#match-groups a:focus div  {
    background-color: var(--color);
}

#match-groups div {
    width: 50px;
    min-width: 50px;
    height: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}


/* SEARCH */
#search .card {
	background: none;
}

#search .search-box {
	background-color: #fff;
	border: 3px solid #ebebeb;
}

#search .search-result-list > a {
	background-color: #fff;
	border: 3px solid #ebebeb;
}
#search .search-result-list > a:hover,
#search .search-result-list > a:focus {
	border: 3px solid var(--color);
}

.image-caption {
	position: absolute;
	bottom: 0;
    margin: 20px;
    font-weight: bold;
}
.image-caption p{
	color: #FFFFFF;
	background: var(--black);
}
.image-caption p,
.image-caption p a {
    color: #FFFFFF;
}
.image-caption p a {
    text-decoration: none;
}


/* LATEST NEWS */
#latest-news h2 .button {
	font-size: 12px;
	line-height: 1;
	padding: 4px;
	margin-left: 15px;
	color: var(--color-text);
	background: var(--color);
}
#latest-news h2 .button:hover,
#latest-news h2 .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}


/* LATEST MEDIA */
#latest-media h2 .button {
	font-size: 12px;
	line-height: 1;
	padding: 4px;
	margin-left: 15px;
	color: var(--color-text);
	background: var(--color);
}
#latest-media h2 .button:hover,
#latest-media h2 .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}

.latest-media-carousel .latest-media-carousel-link{
	display: block;
}
.latest-media-carousel button.owl-dot {
	background-color: var(--black);
}
.latest-media-carousel .owl-dot.active {
    background-color: var(--color);
}

/* POPUP CONTAINERS */
.popup-image-container,
.popup-video-container {
	box-shadow: 0 2px 20px 0 rgba(0,0,0,0.5);
}
.pop-up-card-container {
	background-color: #FFFFFF;
	border: 3px solid #ebebeb;
	box-shadow: 0 2px 20px 0 rgba(0,0,0,0.5);
}

/* MESSAGE ME */
#message-me,
#message-me-success {
	background-color: #ffffff;
}

#message-me .form-row input[type='text'],
#message-me .form-row textarea {
	border: 3px solid #ebebeb;
}

#message-me .form-row .button {
	width: 100%;
	color: var(--color-text);
	background: var(--color);
}
#message-me .form-row .button:hover,
#message-me .form-row .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}


/* NEWS LIST */
#news-list .card {
	background: none;
}
#news-list .card > div{
	padding-right: 0;
	padding-left: 0;
}
#news-list .card .card-content h3 {
	color: var(--color);
}
#news-list .card .card-content p:last-child {
	background-color: var(--black);
	color: #ffffff;
	padding: 0 4px;
	display: inline-block;
}

/* LINKS */
#links .card .b-bottom {
	border-color: #ebebeb;
}


/* PHOTOS AND VIDEOS */
#photos-and-videos .card {
	background: none;
}
#photos-and-videos .card > div{
	padding-right: 0;
	padding-left: 0;
}


/* CONTACTS */
#contacts .card {
	border: 3px solid #ebebeb;
}


/* COMMITTEE */
#committee .card {
	border: 3px solid #ebebeb;
}


/* DOCUMENTS */
#documents .card {
	background: none;
}
#documents .card > .documents-container {
	padding-right: 0;
	padding-left: 0;
}


/* CUSTOM PAGE */
#custom-page .card {
	border-top: 3px solid var(--color);
}

#custom-page hr{
	border: 1px solid #ebebeb;
}

#custom-page table th{
	border-color: #dedede;
	background-color: #dedede;
}
#custom-page table td{
	background-color: #f7f7f7;
}



/* VENUES */
#venues .venue-details {
	padding-right: 24px;
	padding-left: 24px;
}
#venues .card {
	background: none;	
}
#venues .card > div{
	border: 3px solid #ebebeb;
	background-color: #fff;
}
#venues .card > div .venue-details > div:first-child {
	padding-top: 12px;
}


/* WEB STATS */
#web-stats-totals .daily-totals-list > div {
	color: var(--color-text);
	background-color: var(--color);
}
#web-stats-totals .daily-totals-list > div:before {
    content: "";
    display: block;
    width: 170px;
    height: 170px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: 20% 80%;
    background-repeat: no-repeat;
    background-size: 155% auto;
}
#web-stats-totals .daily-totals-list > div h3{
	color: var(--color-text);
}

#web-stats-pages .card {
	background: none;
	padding: 0;
}


/* CALENDAR */
#calendar .calendar-table a{
	color: var(--color);
}
#calendar .calendar-table .today .calendar-day{
	border-radius: 0;
}
#calendar .calendar-table .today.date_has_event .calendar-day{
	color: var(--color-text);
	background-color: var(--color);
}
#calendar .calendar-table .today.date_has_event a {
	color: inherit;
}


/* CALENDAR AGENDA */
#calendar-agenda .agenda-list {
	background-color: #fff;
}
#calendar-agenda .agenda-list .b-bottom {
	border-color: #ebebeb;
}
.calendar-event-time {
	display: inline-block;
	color: #fff;
	background-color: var(--black);
	padding: 6px;
	font-weight: var(--bold);
	line-height: 1;
}


/* CALENDAR EVENT */
#calendar-event .card {
	background: none;
}
#calendar-event .card > div{
	background-color: #fff;
}
#calendar-event .card > .calendar-event-title {
	padding-top: 24px;
}


/* REGISTRATIONS */
#registrations .card {
	border: 3px solid #ebebeb;
}


/* TEAM PAGE */
#team-players .card .card-content p {
	background: var(--black);
    color: white;
    display: inline;
    line-height: 1.5em;
    padding: 0 4px;
}


/* MATCH GRID */
#match-grid table td:not(.highlight) a{
	color: var(--color);	
}


/* MATCH PAGE */
#match-overview {
	color: var(--color-text);
	background-color: var(--color);
	margin-bottom: 15px;
}
#match-overview:before {
    content: "";
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: -50% 50%;
    background-repeat: no-repeat;
}
#match-overview:after {
    content: "";
    display: block;
    width: 200px;
    height: 200px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: 20% 100%;
    background-repeat: no-repeat;
    transform: rotate(-180deg);
}

#match-overview h2,
#match-overview h3{
	color: var(--color-text);
}

#match-overview h2{
	border-color: var(--color-text);
}

#match-overview .match-teams-and-score .score {
	color: var(--color);
	background-color: var(--color-text);
}

/* SECTION: Head to Head */
#head-to-head .stat-container .bar{
	background-color: #ebebeb;
}

/* SECTION: Recent matches */
#recent-matches a.match-link:hover,
#recent-matches a.match-link:focus{
	background-color: #ebebeb;
}

#recent-matches .teams-and-score h5{
	color: var(--color-secondary-text);
}

/* SECTION: Recent form */
#recent-form a.match-link:hover, 
#recent-form a.match-link:focus {
	background-color: #ebebeb;
}

#recent-form .team-name-and-logo h5 {
	color: var(--color-secondary-text);
	margin-bottom: 0;
}

/* SECTION: Venue */
.match-venue {
	background-color: #ffffff;
}
.match-venue .venue-details {
	padding-top: 24px;
}
.match-venue .venue-details .button {
	color: var(--color-text);
	background: var(--color);
}
.match-venue .venue-details .button:hover,
.match-venue .venue-details .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}


/* LIVE RESULTS MESSAGE */
#live-results-message {
	padding-top: 0;
	padding-bottom: 15px;
}

#live-results-message a {
	border-bottom: 6px solid #1e874b;
}

#live-results-message h2 {
	border: none;
}


/* Used in matches, results, filter change ajax */
.filter-change-message {
	background-color: #fff;
	border: 3px solid #ebebeb;
	padding: 24px;
	margin-bottom: 24px;
}
.filter-change-message .button {
	color: var(--color-text);
	background: var(--color);
}
.filter-change-message .button:hover,
.filter-change-message .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}


/* MESSAGES */
.message{
	padding: 8px;
	background: #fff;
	margin-bottom: 20px;
	border: 3px solid #f1c40f;
	border-left: 7px solid #f1c40f;
}
.message.error{
	border-color: #e74c3c;
}
.message.info{
	border-color: #3498db;
}
.message.success{
	border-color: #2ecc71;
}


/* SPONSORS */
#sponsors .sponsor {
    background-color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sponsors img {
    width: 100%;
    height: auto;
}

/* CARDS */

.card{
	background-color: white;
}

.card-news,
.card-widget,
.card-widget-placeholder {
    background-color: var(--color);
    top: 0;
    transition: top 0.3s ease-out;
}

.card-news-list,
.card-document-list,
.card-contact-list,
.card-committee-list {
	background-color: white;
    border: 3px solid #ebebeb;
    text-decoration: none;
}

.card-news-list:hover{
    border: 3px solid var(--color);
}

.card-news:hover {
    top: -5px;
    transition: top 0.3s ease-in;
}

.card .card-image {
	width: 100%;
}

.card-news .card-image,
.card-news-list .card-image{
    width: 100%;
    padding-bottom: 55%;
    overflow: hidden;
}

.card-news .card-image img,
.card-news-list .card-image img{
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
	transform: translateY(-50%);
}

.card .card-image img {
	width: 100%;
    height: auto;
    display: block;
}

.card .card-content {
	padding: 12px;
}

.card-news .card-content{
	color: var(--color-text);
}

.card-news h3{
	font-size: 16px;
	color: var(--color-text);
}

.card .button,
.card input[type="submit"].button,
.card-document-list .button,
.card-contact-list .button,
.card-committee-list .button,
.widget-contacts .button, 
#competition-chart .button {
	color: var(--color-text);
	background: var(--color);
}
.card .button:hover,
.card .button:focus, 
.card input[type="submit"].button:hover,
.card input[type="submit"].button:focus,
.card-document-list .button:hover,
.card-document-list .button:focus,
.card-contact-list .button:hover,
.card-contact-list .button:focus,
.card-committee-list .button:hover,
.card-committee-list .button:focus,
.widget-contacts .button:hover,
.widget-contacts .button:focus,
#competition-chart .button:hover, 
#competition-chart .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}

/* WIDGETS */
#widgets {
    margin-top: 20px;
}

.card-widget,
.card-widget-placeholder {
    background-color: white;
    min-height: 295px;
}

.card-follow-league.no-widgets {
	padding: 20px 10px;
	min-height: 0;
}

/* X / Twitter widget */
.card-widget-placeholder.widget-tweet .button {
	color: #000000;
	background-color: #FFFFFF;
}
.card-widget-placeholder.widget-tweet .button:hover,
.card-widget-placeholder.widget-tweet .button:focus {
	background-color: transparent;
    border-color: white;
    color: white;
}

.card-widget h3 {
	color: var(--color-text);
    background-color: var(--color);
    font-size: 18px;
    text-align: left;
    height: 50px;
    display: flex;
    padding: 0 14px;
    align-items: center;
}

.card-widget-placeholder h3{
	color: var(--color-text);
}

.card-news .card-content,
.card-news-list .card-content,
.card-widget .card-content,
.card-widget-placeholder .card-content {
    padding: 8px 10px;
}

.widget-facebook .card-content{
	padding: 0;
}

.card-widget.widget-facebook h3:before
.card-widget.widget-rss h3:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-size: contain;
}

.card-widget.widget-facebook h3:before {
    background-image: url(../images/icon-facebook.svg);
}

.card-widget.widget-rss h3:before {
    background-image: url(../images/icon-rss.svg);
}

.card-content-scroll {
    position: absolute;
    top: 50px;
    bottom: 0;
    overflow-y: auto;
}

.card-content-scroll::-webkit-scrollbar {
    width: 5px;
}

.card-content-scroll::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.15);
}

.card-content-scroll::-webkit-scrollbar-thumb {
    background-color: var(--black);
}

.card-widget.widget-advert h3 {
    display: none;
}

/* WIDGET: WEATHER */
.widget-weather {
    line-height: 1.1em;
}

.widget-weather .forecast-day {
    color: var(--black);
}

.widget-weather .card-content > div:not(.forecast) {
    padding-left: 10px;
    padding-right: 10px;
}

.widget-weather .current-weather img {
    width: 70%;
}

.widget-weather .card-content > p {
    font-weight: 700;
    text-transform: uppercase;
}

.widget-weather .card-content .flex:not(.forecast) {
    align-items: center;
}

.widget-weather .current-temp {
    color: var(--black);
    font-size: 5vh;
    font-weight: 700;
    text-align: left;
}

@media screen and (width: 768px) {
    .widget-weather .current-temp {
        font-size: 10vh;
    }
}

.widget-weather .current-temp sup {
    vertical-align: super;
    font-size: 50%;
}

.widget-weather .forecast {
    padding-top: 16px;
}

.widget-weather .forecast:before {
    content: '';
    height: 4px;
    background: #f7f7f7;
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
}

.widget-weather .forecast > div {
    width: 20%;
}

.widget-weather .forecast-icon {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.widget-weather .forecast-icon img {
    width: 24px;
    max-height: 24px;
}

/* WIDGET: IMAGE */
.widget-image > a{
	border-radius: inherit;
}

.widget-image .card-image img{
	width: 100%;
	height: auto;
}

.widget-image .card-content p{
	background: var(--color-secondary);
    color: var(--color-secondary-text);
    display: inline;
    line-height: 1.5em;
    font-weight: bold;
}

/* WIDGET: IMAGE CAROUSEL */
.widget-image-carousel .owl-dots {
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
}

.widget-image-carousel .owl-dots span {
    display: none;
}

.widget-image-carousel button.owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #888888;
    margin: 0 2px;
}

.widget-image-carousel .owl-dot.active {
    background-color: var(--color);
}


/* WIDGET: CONTACT LIST */
.widget-contacts .card-content {
	height: calc(100% - 50px - 8px);
}

.widget-contacts .contact{
	border-bottom: 4px solid #f7f7f7;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.widget-contacts .contact p{
	margin-bottom: 4px;
}

.widget-contacts .contact .contact-details{
	 min-width: 0;
	 width: 100%;
}

.widget-contacts .contact .email{
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* WIDGET: PLACEHOLDER */
.card-widget-placeholder:before {
    content: "";
    display: block;
    width: 170px;
    height: 170px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    background-image: url(../images/strips.svg);
    background-position: 20% 80%;
    background-repeat: no-repeat;
    background-size: 155% auto;
}


/* TEAM FORM */
td .team-form-box a {
	color: #ffffff;
}


/* STANDINGS PREDICTOR */
#standings-predictor .enter-scores {
	padding: 24px 10px;
}
#standings-predictor .enter-scores .button {
	color: var(--color-text);
	background: var(--color);
}
#standings-predictor .enter-scores .button:hover,
#standings-predictor .enter-scores .button:focus {
	color: var(--color);
	background: #ffffff;
	border-color: var(--color);
}

#standings-predictor .predictor-score-entry {
	padding-right: 10px; 
	padding-left: 10px;
}

#standings-predictor .predictor-score-entry .fixture .score-inputs input[type='text']{
	border: 3px solid #ebebeb;
}


/* PLAYER STATISTICS */
.played-games-percentage .percentage-input > div{
	border: 3px solid #ebebeb;
	background-color: #fff;
}


/* PLAYER PAGE */
#player-profile {
	padding-top: 0;	
}


/* HONOURS AND TIMELINE */
#honours-and-timeline .honours-type-container {
	background-color: #fff;
	padding: 24px;
	margin-bottom: 16px;
}

#honours-and-timeline .honours-type-container h2{
	display: block;
	font-size: 23px;
	padding: 0;
	border-bottom: 0;
	color: var(--color);
}

#honours-and-timeline .honours-list {
	padding: 0;
}

#honours-and-timeline .honours-list > div {
	padding: 12px;
	background-color: #fff;
}

#honours-and-timeline .timeline-container {
	background-color: #fff;
	padding: 24px;
	margin-bottom: 16px;
}

#honours-and-timeline .timeline-container h2 {
	display: block;
	font-size: 23px;
	padding: 0;
	border-bottom: 0;
	color: var(--color);
}


/* FOOTER */
footer {
    margin-top: 20px;
    background-color: var(--black);
    font-size: 14px;
    padding: 3px 0;
}

/* MOBILE ADJUSTMENTS */

@media screen and (max-width: 768px) {
    /* General */
    h1 {
        font-size: 21px;
    }

    h4 {
        margin-top: 20px;
    }

    header, #match-groups, #widgets, .tabs, .table h4, .filters, #sponsors {
        padding-left: var(--grid-gap);
        padding-right: var(--grid-gap);
    }

    .w50 {
        width: 100%;
    }

    /* Tabs */
    .tabs-container  {
        height: 45px;
        margin-bottom: 10px;
    }
    
    .tabs-container .tabs {
    	height: 45px;
    }

    .tabs-container .tabs .tab {
        min-width: unset;
        height: inherit;
    }

    .tabs-container .tabs .tab a,
    .tabs-container .tabs .tab input {
        padding: 0 16px;
        height: inherit;
        line-height: 40px;
    }
    
    .tabs-container .tabs .tab input {
        height: 40px;
    }

    /* Container */
    .container {
        max-width: 100%;
    }

    /* Table */
    table {
        margin-bottom: 0;
    }

    .table h4 {
        margin-left: var(--grid-gap);
        margin-right: var(--grid-gap);
    }

    /* Filters */
    .filters {
        margin-bottom: 10px;
    }

    .filters select {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    
    .secondary-filters {
		padding: 10px;
	}
	.secondary-filters .dropdowns {
		margin-bottom: 10px;	
	}
	.secondary-filters .dropdowns > div {
		width: 100%;
		padding: 0;
		margin-bottom: 10px;	
	}
	.secondary-filters .dropdowns > div:last-child {
		margin-bottom: 0;	
	}
	.secondary-filters .dropdowns > div label{
		display: block;
		text-align: left;
		padding: 10px 10px 0 10px;
	}
	.secondary-filters .dropdowns > div > select {
		width: 100%;
		margin: 0;
		border: none;
	}
	.secondary-filters .radio-inline {
		justify-content: flex-start;
	}

    /* Header/Nav */
    header {
        height: 60px;
    }

    header img {
        height: 45px;
    }

    header nav {
        width: 50%;
        text-align: center;
    }

    button#js--site-nav {
        width: 30px;
    }

    body.nav-open #js--site-nav {
        background-size: 20px auto;
        right: -5px;
    }

    /* Intro */
    #intro{
		min-height: 0;
	}
    
    #intro .content {
        margin: 16px 10px;
		text-align: center;
    }

    #intro .content h1,
    #intro .content > p:first-child {
        text-align: center;
    }
    
    #intro .content h2{
		font-size:18px;
	}

    #intro #logo img {
        max-width: 30%;
    }

    #intro-news > .container > .grid-2 {
        display: flex;
        flex-wrap: wrap;
    }

    #intro-news .owl-dots {
        padding-top: 8px;
        text-align: center;
    }

    #intro-news .owl-dots span {
        display: none;
    }

    #intro-news .owl-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        background-color: var(--black);
        margin: 0 2px;
    }

    #intro-news .owl-dot.active {
        background-color: var(--color);
    }

    #news.grid-2 {
        display: block !important;
    }

    #intro-news .owl-dots,
    #intro-news .owl-carousel .owl-stage-outer {
        width: 100vw;
    }
    
    /* Breaking news */
    .breaking-news-container{
    	margin-bottom: 0;
    }

    /* Match Groups */
    #match-groups li {
        padding-left: 5px;
        padding-right: 5px;
        text-align: center;
        font-size: 14px;
    }
    #match-groups li a {
        justify-content: center;
    }
    #match-groups li a div{
         display: none;
    }
    
    /* TABLES */
    table {
		font-size: 13px;
	}
	th.short:after {
	    content: none;
	}
	th.long:after {
	    content: none;
	}
	tr td:first-child {
	    width: auto !important;
	}
    td {
	    border: 1px solid white;
	    padding: 4px;
	}
	td.highlight:not(.nowrap) {
		white-space: normal;
	}
	
	/* LEAGUE STANDINGS CAROUSEL */
	#league-standings .table {
		padding: 0 35px;
	}
	.league-standings-carousel .owl-nav button.owl-next, 
	.league-standings-carousel .owl-nav button.owl-prev {
		width: 30px;
		height: 30px;
		font-size: 20px;
	}
	.league-standings-carousel .owl-nav button.owl-next {
		right: -25px;
	}
	.league-standings-carousel .owl-nav button.owl-prev {
		left: -25px;
	}
	
	/* MATCH HUB */
	#matchHub .filters .toggle-container:last-child {
	    margin-bottom: 10px;
	}
	#matchHub .match-hub-carousel-container {
	    margin: 0 20px 20px 20px;
	}
	.match-hub-carousel .owl-nav button.owl-next, 
	.match-hub-carousel .owl-nav button.owl-prev {
		width: 30px;
		height: 30px;
		font-size: 20px;
	}
	.match-hub-carousel .owl-nav button.owl-next {
		right: -15px;
	}
	.match-hub-carousel .owl-nav button.owl-prev {
		left: -15px;
	}
    
    /* PLAYER STATISTICS */
	.played-games-percentage{
		padding-bottom: 10px;
		border-bottom: 3px solid #ebebeb;
	}
	
	/* SEARCH */
	#search form {
		padding: 0 10px;
	}
	#search form .filters{
		padding: 0;
	}
	
	#search .search-results-container {
		padding: 0 10px;
	}

    /* Footer */
    footer .copyright {
        order: 2;
        font-size: 12px;
    }

    footer .logo {
        order: 1;
        margin-top: 8px;
    }
}

@media screen and (max-width: 1024px) {
    .news-card {
        padding-bottom: 100%;
    }
}

@media screen and (min-width: 500px) and (max-width: 768px) {
    #widgets .grid-2 > .grid-2 {
        grid-template-columns: repeat(2,1fr);
    }
}

/* Fixes for older browsers (Edge 15/16, Safari 10) */
@supports not (display: grid) {
    .grid-2 > * {
        width: calc(50% - 10px);
    }
    @media screen and (max-width: 768px) {
        #widgets .grid-2 {
            flex-direction: column;
            width: 100%;
        }
        #widgets .grid-2 .card-widget,
        #widgets .grid-2 .card-widget-placeholder {
            width: 100%;
            margin-bottom: 10px;
        }
    }
}

