/*
    WP-Clanwars
    (c) 2011 Andrej Mihajlov

    This file is part of WP-Clanwars.

    WP-Clanwars is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    WP-Clanwars is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with WP-Clanwars.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * Global
 */

@-webkit-keyframes wp-clanwars-pulse {
	0% {
		background-color: #7a4a77;
	}
	50% {
		background-color: #6492ac;
	}
	100% {
		background-color: #7a4a77;
	}
}

@-moz-keyframes wp-clanwars-pulse {
	0% {
		background-color: #7a4a77;
	}
	50% {
		background-color: #6492ac;
	}
	100% {
		background-color: #7a4a77;
	}
}

@keyframes wp-clanwars-pulse {
	0% {
		background-color: #7a4a77;
	}
	50% {
		background-color: #6492ac;
	}
	100% {
		background-color: #7a4a77;
	}
}

.wp-clanwars-list {
	margin: 0 0 1em 0;
	padding: 0;
	list-style: none;
}

.wp-clanwars-list li {
	padding: 1em 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.wp-clanwars-list .wrap {
	margin: 0 0 0 30px;
	padding: 0;
	position: relative;
}

.wp-clanwars-list .opponent-team {
	font-size: 1em;
}

.wp-clanwars-list .date {
	color: #333333;
	font-size: 1em;
}

.wp-clanwars-list .icon {
	position: absolute;
	left: -30px;
	top: 0.5em;
	width: 16px;
	height: 16px;
}

.wp-clanwars-list .maplist {
	display: inline-block;
}

.wp-clanwars-list .match-link {
	font-size: 1em;
	padding: 0 21px 0 5px;
	background: transparent url('../images/page_url.gif') 98% 50% no-repeat;
	margin-right: 5px;
	float: right;
}

.wp-clanwars-pagination {
	text-align: right;
	overflow: hidden;
}

.wp-clanwars-pagination .displaying-num {
	float: left;
}

.wp-clanwars-pagination .page-numbers {
	display: inline-block;
	min-width: 30px;
	text-align: center;
	border: 0;
	outline: 0;
}

.wp-clanwars-pagination .page-numbers.current {
	background-color: rgba(0,0,0,0.05);
	border-radius: 3px;
}

.wp-clanwars-list .scores,
.wp-clanwars-list .upcoming,
.wp-clanwars-list .live {
	float: right;
	text-align: center;
	min-width: 20px;
	padding: 5px 5px;
	font-size: 0.8em;
	font-weight: normal;
	letter-spacing: 0.5px;
}

.wp-clanwars-list .scores.win
{
	color: #fff;
	background-color: #567632; /*#5f6e43;*/
}

.wp-clanwars-list .scores.draw
{
	color: #fff;
	background-color: #c87800;
}

.wp-clanwars-list .scores.loose,
.wp-clanwars-list .scores.loss
{
	color: #fff;
	background-color: #c00;
}

.wp-clanwars-list .upcoming {
	color: #fff;
	background-color: #7a4a77;
	letter-spacing: 0;
}

.wp-clanwars-list .live {
	color: #fff;
	background-color: #6492ac;
	letter-spacing: 0;
	-webkit-animation: wp-clanwars-pulse 2s ease-in-out 0s infinite;
	-moz-animation: wp-clanwars-pulse 2s ease-in-out 0s infinite;
	animation: wp-clanwars-pulse 2s ease-in-out 0s infinite;
}

.wp-clanwars-filter {
	margin: 0 0 1em !important;
	padding: 0;
	display: block;
	list-style: none;
}

.wp-clanwars-filter li {
	display: inline-block;
	padding: 0;
	margin: 0;
}

.wp-clanwars-filter li.selected {
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 3px;
}

.wp-clanwars-filter li a {
	text-decoration: none;
	border: 0;
	display: block;
	padding: 5px 12px;
	outline: 0;
}

/*
 * Match shortcode CSS
 */

.wp-clanwars-match-card {
	position: relative;
	padding: 0;
	margin: 0 0 1em 0;
}

.wp-clanwars-match-card-page-curl {
	position: absolute;
	top: 0px;
	right: 0px;
	color: #fff;
	text-decoration: none;
	border-left: 10px solid rgba(255,255,255,0.2);
	border-bottom: 10px solid rgba(255,255,255,0.2);
	border-top: 10px solid transparent;
	border-right: 10px solid transparent;
	z-index: 2;
}

.wp-clanwars-match-card-meta {
	position: absolute;
	top: 0;
	left: 0;
	right: 30px;
	font-size: 0.9em;
	font-family: monospace;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.5);
	padding-right: 10px;
	padding-top: 2px;
	padding-bottom: 2px;
	text-indent: 40px;
	text-align: center;
	z-index: 1;
}

.wp-clanwars-match-card-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
	justify-content: space-evenly;
	padding: 20px;
	margin: 0;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	background-color: #222;

	/*
	Overlap by 1% to tackle subpixel rendering issues on Chrome
	*/
	-webkit-clip-path: polygon(
		0% 0%,
		calc(100% - 20px) 0%,
		100% 20px,
		100% 101%,
		0% 101%);
	clip-path: polygon(
		0% 0%,
		calc(100% - 20px) 0%,
		100% 20px,
		100% 101%,
		0% 101%);
}

.wp-clanwars-match-card-header-item {
	padding: 0;
	margin: 0;
}

.wp-clanwars-match-card-header-item + .wp-clanwars-match-card-header-item {
	margin-left: 10px;
}

.wp-clanwars-match-card-header-item-no-logo-team-wrap {
	position: relative;
}

.wp-clanwars-match-card-header-item-team-name {
	display: flex;
	align-items: center;
  justify-content: center;
	text-align: center;
	font-size: 0.8em;
	line-height: 1.2em;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}

.wp-clanwars-match-card-home-team-score,
.wp-clanwars-match-card-visiting-team-score,
.wp-clanwars-match-card-status-caption {
	font-size: 1.25em;
	white-space: nowrap;
}

.wp-clanwars-match-card-meta a {
	color: rgba(255, 255, 255, 0.5);
	border-bottom: 0;
	text-decoration: underline;
}

.wp-clanwars-match-card-meta a:hover {
	color: rgba(255, 255, 255, 0.6);
}

.wp-clanwars-scores-table {
	margin: 0;
	padding: 0;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	border: 0;
	color: #fff;
	background-color: #333;
}

.wp-clanwars-scores-table-column-heading {
	border: 0;
	margin: 0;
	padding: 5px;
	text-align: center;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	width: 40px;
}

.wp-clanwars-scores-table-row-heading {
	border: 0;
	margin: 0;
	padding: 5px;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wp-clanwars-scores-table-row {
	border: 0;
}

.wp-clanwars-scores-table-row-even {
	background: rgba(0, 0, 0, 0.5);
}

.wp-clanwars-scores-table-cell {
	border: 0;
	margin: 0;
	padding: 5px;
	text-align: center;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.wp-clanwars-scores-table-visual {
	position: relative;
	display: inline-block;
}

.wp-clanwars-scores-table-image {
	object-fit: contain;
	height: auto;
}

.wp-clanwars-scores-table-image-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2px 5px;
	background-color: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	font-weight: normal;
	font-size: 0.7em;
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
}

.wp-clanwars-match-description {
	padding: 20px 20px;
	font-size: 1.25em;
}