:root {
	--background-light: rgba(147, 197, 219, 0.3);
	--background-light-hover: rgba(172, 230, 255, 0.35);
	--background-dark: rgba(0, 0, 0, 0.1);

	--background-extra-dark: rgba(0, 0, 0, 0.3);
	--background-dark-hover: rgba(75, 75, 75, 0.1);
	--yellow: 255, 196, 0;
	--red: 207, 31, 0;
	--blue: 0, 170, 255;
	--green: 33, 232, 134;
	--gray: 200, 200, 200;
	--white: 255, 255, 255;
	--black: 0, 0, 0;

	--green2: 85, 181, 92;
	--blue2: 52, 169, 227;
	--green-yellow2: 174, 191, 35;
	--cyan2: 51, 183, 165;
	--orange2: 255, 152, 78;
	--red2: 217, 45, 45;
	--yellow2: 235, 179, 84;
	--gray2: 120, 120, 120;
	--dark-gray: 60, 60, 60;

	--yellow3: 200, 200, 40;

	--green4: 64, 233, 118;
	--green-yellow4: 162, 232, 124;
	--yellow4: 230, 230, 130;
	--orange4: 240, 160, 97;
	--red4: 215, 48, 39;

	--background-red: rgba(var(--red), 0.15);
	--background-blue: rgba(var(--blue), 0.15);
	--background-green: rgba(var(--green), 0.15);
	--background-yellow: rgba(var(--yellow), 0.15);
	--background-gray: rgba(var(--gray), 0.2);

	--glass-border-strong: 1px solid rgba(255, 255, 255, 0.08);
	--glass-border-light: 1px solid rgba(255, 255, 255, 0.05);

	--text-white: #fff;
	--text-tranparent: rgba(255, 255, 255, 0.8);

    --size: 6rem;
    --transition-duration: 500ms;
    --transition-easing: ease-out;

	--xxs: 380px;
	--xs: 576px;
	--sm: 768px;
	--md: 992px;
	--lg: 1200px;
	--xl: 1400px;
	--xxl: 1660px;
}

body {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	z-index: -1;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

.layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-wrapper {
	flex: 1;
}


.background {
	position: fixed;
	height: 100vh;
	width: 100vw;
	background-color: #2f3a59; /* Fallback color */
}

.background::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: url("/static/background-small.jpg") center no-repeat;
	background-size: cover;
	-webkit-background-size: cover;
	opacity: 0;
	transition: opacity 400ms ease-in-out;
	-webkit-transition: opacity 400ms ease-in-out;
	z-index: -1;
	filter: blur(6px) brightness(90%);
	-webkit-filter: blur(6px) brightness(90%);
	overflow: hidden;
	transform: scale(1.03);
}

.background.show-image::after {
	opacity: 1;
}

.content {
	padding-top: 68px;
}

.content-row {
	margin-top: 20px;
}

.container {
	position: relative;
}

.card-wrapper {
	padding-bottom: 20px;
}

.card {
	background: var(--background-dark);
	color: white;
	border-radius: 16px;
	backdrop-filter: blur(100px);
	-webkit-backdrop-filter: blur(100px);
	border: var(--glass-border-strong);
	overflow: hidden;
}

.card .card-title {
	margin: 0px;
	padding: 20px;
    background: rgba(0, 0, 0, 0.15);
	border-bottom: var(--glass-border-strong);
}

.card .card-title h5 {
	margin: 0;
}

.card .card-content {
	padding: 20px;
	overflow: auto;
	overflow-wrap: break-word;
}

.card .card-content.card-content-chart {
	padding-bottom: 0;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5 {
	font-weight: 700;
}

.card p {
	color: var(--text-tranparent);
}

.card.profile-card {
	padding: 0;
	background: var(--background-dark);
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(36, 191, 238, 0.1) 100%), radial-gradient(at top center, rgba(170, 33, 33, 0.4) 0%, rgba(0,0,0, 0.4) 120%)#000; */
    /* color: white; */
}

.profile img {
	border-radius: 11px;
    margin: 5px;
	width: calc(100% - 10px);
	aspect-ratio: 1 / 1;
	-o-object-fit: cover;
	   object-fit: cover;
	border: var(--glass-border-strong);
}

.profile {
	background: var(--background-dark);
	border-bottom: var(--glass-border-light);
}

a.profile {
	text-decoration: none;
	cursor: pointer;
}

.card .profile>* {
	color: white;
	text-decoration: none;
}

.card.profile-card .profile .profile-card-title {
	padding: 10px 20px 5px 20px;
	text-align: center;
}

.card.profile-card .profile .profile-card-title h5 {
	margin: 0;
}

.card .profile .profile-name {
	font-weight: 900;
	font-size: 20px;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
    color: white;
}

.card.profile-card .main-stats {
	text-align: center;
}

.card.profile-card .main-stats table tr th {
	padding-top: 20px;
	font-size: 1em;
	font-weight: 700;
    /* color: var(--yellow); */
}

.card.profile-card .main-stats table tr td {
    font-size: 2em;
	font-weight: 400;
}

.card.profile-card .main-stats .bottom-table {
	padding-bottom: 20px;
}


.gray-background .card {
	background: var(--background-gray);
}

.blue-background .card {
	background: var(--background-blue);
}

.green-background .card {
	background: var(--background-green);
}

.red-background .card {
	background: var(--background-red);
}

.yellow-background .card {
	background: var(--background-yellow);
}

.gray-text {
	color: rgb(var(--gray));
}

.blue-text {
	color: rgb(var(--blue));
}

.green-text {
	color: rgb(var(--green));
}

.red-text {
	color: rgb(var(--red));
}

.yellow-text {
	color: rgb(var(--yellow));
}

.black-text {
	color: black;
}

.white-text {
	color: white;
}


a.button {
	color: white;
	line-height: 40px;
	text-decoration: none;
	font-size: 16px;
	padding: 10px 25px;
	border-radius: 50px;
	background-color: var(--background-light);
	border: var(--glass-border-strong);
}

a.button .icon {
	display: inline;
	margin-right: 10px;
}

a.button .icon svg {
	padding: 0 0 3px 0;
}

a.button:hover {
	/* color: #2aa4d4; */
	/* background: rgba(75, 75, 75, 0.5); */
	background: var(--background-light-hover);
}

.card-content.card-content-table {
	padding: 0;
}

.table {
	color: white;
	overflow: hidden;
	margin-bottom: 0;
	font-size: 16px;
	line-height: 28px;
}

.table td {
	border-bottom: var(--glass-border-strong);
	color: var(--text-tranparent);
	text-wrap: nowrap;
	white-space: nowrap;
}

/*

.table td, .table th {
    border-left:solid black 1px;
    border-top:solid black 1px;
}

.table th {
    background-color: blue;
    border-top: none;
}

.table td:first-child, .table th:first-child {
     border-left: none;
} */

.table>:not(:last-child)>:last-child>* {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table>* .highlight-green {
	background: rgba(var(--green), 0.4) !important;
}

.table>* .highlight-green-mid {
	background: rgba(var(--green), 0.3) !important;
}

.table>* .highlight-green-light {
	background: rgba(var(--green), 0.15) !important;
}

.table>* .highlight-yellow {
	background: rgba(var(--yellow), 0.4) !important;
}

.table>* .highlight-yellow-light {
	background: rgba(var(--yellow), 0.15) !important;
}

.table>* .highlight-red {
	background: rgba(var(--red), 0.4) !important;
}

.table>* .highlight-red-mid {
	background: rgba(var(--red), 0.3) !important;
}

.table>* .highlight-red-light {
	background: rgba(var(--red), 0.15) !important;
}

.table>* .highlight-normal {
	background: var(--background-dark) !important;
}

.table>* .highlight-normal-dark {
	background: rgba(0, 0, 0, 0.2) !important;
}

.table>* .highlight-blue {
	background: rgba(var(--blue), 0.4) !important;
}

.table>* .highlight-blue-light {
	background: rgba(var(--blue), 0.15) !important;
}

.table>* .highlight-gray {
	background: rgba(var(--gray), 0.4) !important;
}

.table>* .highlight-gray-light {
	background: rgba(var(--gray), 0.15) !important;
}

.table>* .highlight-green1 {
	background: rgba(43, 147, 72, 0.9) !important;
}

.table>* .highlight-green2 {
	background: rgba(43, 147, 72, 0.75) !important;
}

.table>* .highlight-green3 {
	background: rgba(43, 147, 72, 0.6) !important;
}

.table>* .highlight-green4 {
	background: rgba(43, 147, 72, 0.4) !important;
}

.table>* .highlight-green5 {
	background: rgba(43, 147, 72, 0.2) !important;
}

.table>* .highlight-red1 {
	background: rgba(197, 30, 30, 0.9) !important;
}

.table>* .highlight-red2 {
	background: rgba(197, 30, 30, 0.75) !important;
}

.table>* .highlight-red3 {
	background: rgba(197, 30, 30, 0.6) !important;
}

.table>* .highlight-red4 {
	background: rgba(197, 30, 30, 0.4) !important;
}

.table>* .highlight-red5 {
	background: rgba(197, 30, 30, 0.2) !important;
}



/*
.table>*>tr.top-1-row:nth-child(2n) {
	background: var(--background-yellow);
} */

.table>*>:nth-child(2n) {
	background: var(--background-dark);
}

.table>:first-child {
	background: var(--background-extra-dark);
}

.table>*>:last-child>* {
	border: none;
}

/* .table>*>*>:first-child {
	padding-left: 20px;
} */

.table a {
	color: inherit;
	text-decoration: none;
	/* font-weight: 700; */
}

.table a:hover {
	color: rgb(var(--blue));
}

.card ::-webkit-scrollbar-track
{
	background-color: rgba(255, 255, 255, 0.2);
}

.card ::-webkit-scrollbar
{
	width: 8px;
	height: 8px;
	background-color: rgba(255, 255, 255, 0.3);
}

.card ::-webkit-scrollbar-thumb
{
	border-radius: 4px;
	background-color: rgba(255, 255, 255, 0.6);
}

.header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.header.glass {
	background: var(--background-dark);
	color: white;
	backdrop-filter: blur(100px);
	-webkit-backdrop-filter: blur(100px);
	border-bottom: var(--glass-border-strong);
	overflow: hidden;
}

.header .container {
	padding-left: 20px;
	padding-right: 20px;
}

.header .top-row {
	background: rgba(0, 0, 0, 0.3) !important;
	border-bottom: var(--glass-border-strong);
}

.header .bottom-row {
	padding-top: 3px;
	padding-bottom: 3px;
}

.header .top-row .container h5 {
	line-height: 40px;
	margin-bottom: 0;
	font-weight: 900;
	color: white;
}

.header .bottom-row .container h5 {
	line-height: 40px;
	font-size: 18px;
	margin-bottom: 0;
}

.text-wrapper {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.header .bottom-row .container .season-tag {
	display: inline;
	background-color: rgba(var(--white), 0.25);
	color: rgba(var(--white), 0.9);
	padding: 3px 6px;
	font-weight: 900;
	border-radius: 4px;
	margin-left: 10px;
}

.header .bottom-row .container .season-button {
	width: 100px;
	/* background: red; */
	padding-right: 23px;
	background-repeat: no-repeat;
}

.header .bottom-row .container .season-button:hover {
	background-color: rgba(var(--white), 0.4);
}


.season-button-disabled {
	background-color: rgba(var(--black), 0.25) !important;
}

.header .bottom-row .container .season-button.season-next {
	background-position: right 10px center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.41' height='12' viewBox='0 0 7.41 12'%3E%3Cpath d='M10,6,8.59,7.41,13.17,12,8.59,16.59,10,18l6-6Z' transform='translate(-8.59 -6)' fill='%23fff'/%3E%3C/svg%3E");
}

.header .bottom-row .container .season-button.season-prev {
	background-position: left 10px center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.41' height='12' viewBox='0 0 7.41 12'%3E%3Cpath d='M8.59,12l4.59-4.59L11.76,6,6,12l5.76,6,1.41-1.41Z' transform='translate(-6 -6)' fill='%23fff'/%3E%3C/svg%3E");
}



@media (max-width: 575.98px) {
	.header .bottom-row .container .season-text {
	    display: none;
  	}
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

#team-stats .img-wrapper img.img-fluid.team_b {
	display: block;
	margin: 0 auto;
	padding-right: 10px;
	max-height: 100px;
}

#team-stats .img-wrapper img.img-fluid.team_a {
	display: block;
	margin: 0 auto;
	padding-left: 10px;
	max-height: 100px;
}

#team-stats .top-part {
	background:rgba(0, 0, 0, 0.15);
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	border-bottom: var(--glass-border-strong);
}

#team-stats .top-part .score h1 {
	text-align: center;
	font-size: 3em;
}

#team-stats .bottom-part h5, #team-stats .bottom-part p {
	line-height: 40px;
	margin: 0;
	text-wrap: nowrap;
	white-space: nowrap;
}

@media (max-width: 575.98px) {
	#team-stats .top-part .score h1 {
		font-size: 2em;
	}

	/* this is a hack for GOALS per HOUR */
	#team-stats .bottom-part p {
		margin-left: -20px;
		margin-right: -20px;
	}
}

#team-stats .bottom-part .row {
	padding-left: 10px;
	padding-right: 10px;
}

#team-stats .bottom-part .row:nth-child(2) {
	border-top: var(--glass-border-strong);
	border-bottom: var(--glass-border-strong);
}

@media (min-width: 575.98px) {
	.featured-card .card-content {
		position: relative;
		height: 100%;
	}

	.featured-card table {
		position: absolute;
 		bottom: 0;
	}
}

.featured-card table {
	overflow: hidden;
	white-space: nowrap;
}

.featured-card table tr td {
	padding-left: 0 !important;
}

.featured-card table tr td.score {
	font-weight: 900;
}

.featured-card table tr td img {
	height: 40px;
	margin-left: 10px;
	margin-right: 5px;
}

.featured-card table tr td {
	padding: 0;
	line-height: 60px;
}

.featured-card .profile {
	height: 100%;
	border-bottom: none;
	border-right: var(--glass-border-strong);
}

.featured-card .card-content {
	padding: 0;
}

.featured-card .card-content table tr {
	border-radius: 0 !important;
}

@media (max-width: 575.98px) {
	.featured-card .profile {
		border-right: none;
		border-bottom: var(--glass-border-strong);
	}
}


#carouselExampleIndicators {
	padding-bottom: 25px;
}

.carousel-indicators {
	bottom: 0px;
}

#past-matches table tr {
	line-height: 30px;
}

#past-matches .kit-img {
	height: 30px;
	margin-left: 10px;
	margin-right: 10px;
}

#past-matches .score-tag {
	display: inline-block;
	background: rgba(var(--gray2), 0.8);
	/* border: 1px solid rgba(0, 0, 0, 0.2); */
	/* box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 1px 0 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(0, 0, 0, 0.2); */
	color: rgb(50, 50, 50);
	padding: 3px 6px;
	border-radius: 4px;
	font-weight: 900;
	margin-right: 5px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 25px;
    position: relative;
}

#past-matches .score-tag::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

#past-matches .score-tag.team_a {
	background: rgba(var(--blue), 0.7);
	color: white;
}

#past-matches .score-tag.team_b {
	background: rgb(255, 255, 255);
	color: rgb(var(--blue));
}

#past-matches .score-tag.W {
	background: rgba(var(--green2), 0.9);
	color: white;
}

#past-matches .score-tag.L {
	background: rgba(var(--red2), 0.9);
	color: white;
}

#past-matches .score-tag.D {
	background: rgba(var(--gray), 0.9);
	color: rgb(20, 20, 20);
}

#past-matches .score-tag.draw {
	background: rgba(var(--gray), 0.9);
	color: rgb(20, 20, 20);
}

#past-matches .score-tag.square {
	height: 25px;
	width: 25px;
	line-height: 25px;
	margin-right: 0;
	padding: 0;
}

#past-matches table {
	white-space: nowrap;
}

.rounded-number {
	display: inline-block;
	font-size: 14px;
	line-height: 28px;
	height: 28px;
	width: 28px;
	border-radius: 100%;
	text-align: center;
	font-weight: 900;
	color: white;
	background: rgba(255, 255, 255, 0.2);
}

#top_players_table td {
	padding: 5px;
}

#top_players_table tr:nth-last-child(5) .rounded-number,
#top_players_table tr:nth-last-child(4) .rounded-number {
	background: rgba(var(--orange2), 0.9);
	color: white;
}

#top_players_table tr:nth-last-child(3) .rounded-number,
#top_players_table tr:nth-last-child(2) .rounded-number,
#top_players_table tr:nth-last-child(1) .rounded-number {
	background: rgba(var(--red2), 0.9);
	color: white;
}

#top_players_table tr:nth-child(1) .rounded-number,
#top_players_table tr:nth-child(2) .rounded-number,
#top_players_table tr:nth-child(3) .rounded-number {
	background: rgba(var(--green2), 0.9);
	color: white;
}

#top_players_table tr:nth-child(4) .rounded-number,
#top_players_table tr:nth-child(5) .rounded-number {
	background: rgba(var(--yellow3), 0.9);
	color: white;
}

.match-history-widget {
	padding: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	text-align: center;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 900;
	display: inline-block;
	font-size: 0;
	line-height: 0;
	text-wrap: nowrap;
	white-space: nowrap;
	margin-bottom: -9px;
}

.match-history-widget .match {
    width: 28px;
    height: 28px;
	font-size: 16px;
	line-height: 28px;
	display: inline-block;
}

.match-history-widget .match {
    margin: 0;
}

.match-history-widget .match.win {
	background: rgba(var(--green2), 0.9);
}

.match-history-widget .match.draw {
	background: rgba(var(--yellow2), 0.9);
}

.match-history-widget .match.lose {
	background: rgba(var(--red2), 0.9);
}

.form-level-img {
	height: 25px;
	aspect-ratio: 1 / 1;
	background: rgba(0, 0, 0, 0.75);
	padding: 2px 1px;
	border-radius: 2px;
	margin-bottom: 1px;
}


#stats .card-content {
	padding: 5px 0 0 0;
}

#stats .stats-table h5 {
	margin: 10px 0 15px 20px;
}

#stats .stats-table .rank {
	margin: 13px 18px 0 0;
	font-weight: 700;
	font-size: 14px;
	display: block;
	float: right;
}

#stats .stats-table:not(:last-child) {
	border-bottom: rgba(var(--black), 0.1)
}

.player-stats {
    list-style-type: none;
    /* padding-left: 5%; */
	padding-left: 0;
    margin: 0px;
}

.player-stats li {
	line-height: 36px;
}

.player-metric {
	width: 50%; /* Adjust the width as needed */
	display: inline-block;
}

.player-metric-value {
	text-align: right;
	font-weight: 900;
	display: inline-block;
	min-width: 20%; /* Adjust the width as needed */
}

.rank-top .player-metric-value {
	color: rgb(var(--yellow4));
}

.player-rank-tag {
	display: inline;
	float: right;
	text-align: center;
	line-height: 26px;
	min-width: 54px;
	text-wrap: nowrap;
	white-space: nowrap;
	padding-right: 10px;
	padding-left: 10px;
	margin-right: 10px;
	margin-top: 5px;
	border-radius: 30px;
	color: white;
	background: rgba(var(--black), 0.3);
}

.player-rank-tag b {
	font-weight: 900;
}

#stats li {
	padding-left: 20px;
	position: relative;
}

#stats li.rank-top {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--green4), 0.6));}
#stats li.rank-good {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--green-yellow4), 0.6));}
#stats li.rank-normal {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--yellow4), 0.6));}
#stats li.rank-poor {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--orange4), 0.6));}
#stats li.rank-terrible {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--red4), 0.6));}
#stats li.rank-unknown {background: linear-gradient(to right, transparent, transparent 10%, rgba(var(--white), 0.3));}

#stats li::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(var(--black), 0.1);
}

.player-rank-tag .symbol {
	display: inline;
}

.player-rank-tag .total {
	display: inline;
}

.font-weight-900 {
	font-weight: 900;
}

.card-wrapper.equal,
.card-wrapper.equal .card {
	height: 100%;
}

.card-wrapper.center-content .card .card-content {
    height: 100%;
}

.card-wrapper.center-content .card .card-content {
	display: flex;
	align-items: center;
	justify-content: center;
}


.player-info {
    list-style-type: none;
    /* padding-left: 5%; */
	padding-left: 0;
    margin: 0px;
}

.player-info li {
	line-height: 36px;
}

.player-info-metric {
	text-align: left;
	display: inline-block;
	/* width: 50%; */
}

.player-info-value {
	text-align: right;
	float: right;
	/* font-weight: 900; */
	display: inline-block;
	/* min-width: 20%; Adjust the width as needed */
}

#profile-card .form-value .form-level-img {
	height: 32px;
	margin-bottom: 8px;
}

.player-metric-value .form-level-img {
	margin-bottom: 3px;
}

#basic-info .player-info-value {
	font-weight: 700;
}


/* Container for the slider (toggle switch) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Width of the outside container */
    height: 22px; /* Height of the outside container */
}

/* Hide the actual checkbox input */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style for the slider */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px; /* Circular borders for the slider */
}

/* Circle inside the slider */
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Height of the inside circle */
    width: 18px; /* Width of the inside circle */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%; /* Make it round */
}

/* Move the slider to the right on check */
input:checked + .switch-slider {
    background-color: #2196F3; /* Slider color when toggled */
}

input:checked + .switch-slider:before {
    transform: translateX(18px); /* Move the circle to the right */
}

/* Optional: CSS for additional effects like shadows on toggle */
.switch-slider:active:before {
    width: 20px;
}

/* Animations for table filtering based on toggle */
table#top_players_table {
    transition: height 0.5s ease-out; /* Transition for table height */
}

tr[filter="True"] {
    transition: opacity 0.5s ease-out; /* Transition for row opacity */
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}


/* Button to open the modal */
#openModalBtn {
	/* display: inline-block; */
	background-color: rgb(214, 67, 67);
	color: white;
	border: none;
	width: 30px;
	height: 30px;
	line-height: 28px;

	display: inline-flex;
	justify-content: center;
  	align-items: center;

	margin-right: 5px;
	border-radius: 30px;
	cursor: pointer;
}

#openModalBtn:hover {
	background-color: rgb(231, 92, 92);
}

/* Fullscreen modal overlay */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Transparent black background */
	backdrop-filter: blur(40px);
	-webkit-backdrop-filter: blur(40px);
	z-index: 1000; /* Ensure it's above other elements */
	justify-content: center;
	align-items: center;
}

/* Modal content container */
.modal-content {
	position: relative;
	width: 80%;
	max-height: 80%;
	max-width: 800px;
	background: rgba(255, 255, 255, 0.2);
	background: transparent;
	border: none;
}

/* Close button */
.close-btn {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 24px;
	font-weight: bold;
	color: white;
	cursor: pointer;
	background: none;
	border: none;
}

/* Hover effect for close button */
.close-btn:hover {
	color: rgba(255, 255, 255, 0.5);
}

/* Show modal when it has the active class */
.modal.active {
	display: flex; /* Show modal using flexbox */
}

.no-scroll {
    overflow: hidden;
}

.hidden {
	display: none;
}


/* Main pitch container */
.pitch-field-wrapper {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(67, 114, 69, 0.5);
	border-radius: 8px;
	width: 100%;

	padding: 30px;
	overflow: hidden;

	backdrop-filter: blur(100px);
	-webkit-backdrop-filter: blur(100px);
	border: var(--glass-border-strong);
}

.pitch-field {
	border-radius: 4px;
	width: 100%;
	aspect-ratio: 1.7 / 1;

	margin: 0;
	box-sizing: border-box;
	overflow: hidden;
	background: url('/static/pitch.svg') no-repeat center/cover;
	background-color: rgb(91, 151, 94, 0.6);
}

.pitch-field-players {
	display: block;
}
.pitch-field-players-rotated {
	display: none;
}

/* Mobile rotation */
@media (max-width: 767.98px) {
	.pitch-field-wrapper {
		position: relative;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: rgba(67, 114, 69, 0.5);
		border-radius: 8px;
		width: 100%;

		padding: 5px;
		overflow: hidden;

		backdrop-filter: blur(100px);
		-webkit-backdrop-filter: blur(100px);
		border: var(--glass-border-strong);
	}

	.pitch-field {
		border-radius: 4px;
		height: 100%;
		aspect-ratio: 1 / 1.7;

		margin: 0;
		box-sizing: border-box;
		overflow: hidden;
		background: url('/static/pitch-rotated.svg') no-repeat center/cover;
		background-color: rgb(91, 151, 94, 0.6);
	}

	.pitch-field-players {
		display: none;
	}
	.pitch-field-players-rotated {
		display: block;
	}
}


/* Teams */
.pitch-team {
	display: flex;
	gap: 7%;
	height: 100%;
}

.pitch-player {
	position: relative;
	width: 120px;
	height: 60px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pitch-field .pitch-player {
	position: absolute;
	transform: translate(-50%, -50%);
}

.pitch-player-photo {
	position: relative;
	width: 60px;
	height: 60px;
	background: #ccc;
	color: #000;
	font-weight: bold;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.8);
	background: rgba(0, 0, 0, 0.2);
	padding: 2px;
	text-align: center;
	line-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;

	aspect-ratio: 1 / 1;
	-o-object-fit: cover;
		object-fit: cover;
}

.pitch-player a {
	border-radius: 50%;
}

.pitch-team-a .pitch-player-photo {
	border: 3px solid rgba(34, 34, 34, 0.8);
}

.pitch-player-photo:hover {
	border: 3px solid rgba(255, 255, 0, 0.8);
}

/* Name tag below the circle */
.pitch-player-name {
	position: absolute;
	top: 110%; /* Push below the circle */
	left: 50%;
	transform: translateX(-50%);
	color: rgba(223, 252, 225, 1);
	font-size: 14px;
	padding: 2px 6px;
	line-height: 18px;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	min-width: 100%;
}

.pitch-player-form {
	position: absolute;
	bottom: -15%;
	right: 0;
	transform: translateX(-50%);
	color: rgba(223, 252, 225, 1);
	font-size: 14px;
	padding: 2px 6px;
	line-height: 18px;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	z-index: 15;
}

.pitch-bench {
	margin-top: 40px;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 40px;
}

.pitch-score {
	margin-top: 40px;
	margin-bottom: 20px;
}

.pitch-field-wrapper.no-bench {
	margin-bottom: 80px;
}

@media (max-width: 991.98px) {
	.pitch-field-wrapper .pitch-player {
		transform-origin: center;
		transform: translateX(-50%) translateY(-50%) scale(0.8);
	}
}

#match-overview .match-date {
	background: rgba(255, 255, 255, 0.3);
	font-weight: bold;
	padding: 3px 6px;
	margin: 6px 3px;
	border-radius: 4px;
}

#match-overview .match-play-time {
	background: rgba(0, 0, 0, 0.3);
	padding: 0 4px;
	border-radius: 4px;
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
}

#match-overview .score-tag {
	display: inline-block;
	background: rgba(var(--gray2), 0.8);
	color: rgb(50, 50, 50);
	padding: 3px 6px;
	border-radius: 4px;
	font-weight: 900;
	margin-right: 3px;
	margin-left: 3px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 25px;
    position: relative;
}

#match-overview .score-tag::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

#match-overview .score-tag.team_a {
	background: rgba(var(--blue), 0.7);
	color: white;
}

#match-overview .score-tag.team_b {
	background: rgb(255, 255, 255);
	color: rgb(var(--blue));
}

#match-overview .score-tag.W {
	background: rgba(var(--green2), 0.9);
	color: white;
}

#match-overview .score-tag.L {
	background: rgba(var(--red2), 0.9);
	color: white;
}

#match-overview .score-tag.D {
	background: rgba(var(--gray), 0.9);
	color: rgb(20, 20, 20);
}

#match-overview .score-tag.draw {
	background: rgba(var(--gray), 0.9);
	color: rgb(20, 20, 20);
}

.bench .pitch-player {
	margin-bottom: 15px;
}

.bench .pitch-player-name {
	position: absolute;
	top: 50%; /* Push below the circle */
	right: 0;
	transform: translateX(40%) translateY(-50%);
	color: rgba(223, 252, 225, 1);
	font-size: 14px;
	padding: 2px 6px;
	line-height: 18px;
	border-radius: 4px;
	font-weight: bold;
	text-align: left;
	min-width: 100%;
}

.pitch-bench .bottom-part .row {
	border-top: var(--glass-border-strong);
}

.pitch-bench .bottom-part .row:nth-child(1) {
	border-top: none;
}

.pitch-bench .bottom-part .row:nth-child(2) {
	border-bottom: none !important;
}
