/*-------------------------------------------------------------------------- 
 * MSTW Bracket Builder  Stylesheet [mstw_sb-styles.css]
 *
 *	MSTW Wordpress Plugins (http://shoalsummitsolutions.com)
 *	Copyright 2016-22 Mark O'Donnell (mark@shoalsummitsolutions.com)
 *
 *	This program 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.
 *
 *	This program 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 details. <http://www.gnu.org/licenses/>
 *-------------------------------------------------------------------------*/

/*
 *   Bracket lines between games;  these are really background
 */
	
div.relative {
	position: relative;
}

div.bracket-lines-1,
div.bracket-lines-2,
div.bracket-lines-3,
div.bracket-lines-4,
div.bracket-lines-5 
{
	z-index:     1;
	position:    absolute;
	left:        85px;
	border:      1px solid #ccc;
	border-left: none;
	border-right: 1px solid red;
	border-top: 1px solid red;
	border-bottom: 1px solid red;
}
	
div.bracket-lines-1 {
	/*top:         45px;*/
	/*height:      176px;*/
	/*width:       215px;*/

    top: 53px;
    height: 142px;
    width: 158px;
    left: 243px;
}

div.bracket-lines-2 {
	/*top:         45px;*/
	/*height:      310px;*/
	/*width:       130px;*/

    top: 100px;
    height: 260px;
    width: 120px;
    left: 268px;
}

div.bracket-lines-3 {
	/*top:         45px;*/
	/*height:      590px;*/
	/*width:       130px;*/

	top: 146px;
    height: 650px;
    width: 135px;
    left: 288px;
}

div.bracket-lines-4 {
	top:         45px;
	height:      1145px;
	width:       130px;
}

div.bracket-lines-5 {
	top:         45px;
	height:      2250px;
	width:       130px;
}

/*
 *   Rounds
 */

.mstw_tournament_bracket .round {
	float:        left;
	margin-right: 20px;
	margin-left:  10px;
	width:        180px;
  }

/* NCAA-style 4-region layout */
.mstw_tournament_bracket--ncaab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	max-width: 100%;
}

/* NCAA Pro styling */
.mstw_tournament_bracket--ncaab {
	--mstw-bb-white: #ffffff;
	--mstw-bb-blue: #0b1d3a;
	--mstw-bb-blue-soft: #162a52;
	--mstw-bb-orange: #f28b22;
	--mstw-bb-border: #e6e9ef;
	--mstw-bb-shadow: 0 10px 24px rgba(11, 29, 58, 0.12);
	--mstw-bb-shadow-soft: 0 6px 16px rgba(11, 29, 58, 0.08);
	--mstw-bb-radius: 10px;
	color: var(--mstw-bb-blue);
}

.mstw_tournament_bracket--ncaab * {
	box-sizing: border-box;
}

.mstw_tournament_bracket--ncaab .mstw_bb_regions {
	display: flex;
	flex-direction: column;
	gap: 60px;
	align-self: flex-start;
}

.mstw_tournament_bracket--ncaab .mstw_bb_region {
	display: flex;
	align-items: flex-start;
}

.mstw_tournament_bracket--ncaab .mstw_bb_region-content {
	display: flex;
	align-items: flex-start;
	/*position: relative;*/
}

.mstw_tournament_bracket--ncaab .round {
	float: none;
	margin: 0 12px 0 0;
	width: 140px;
}

.mstw_tournament_bracket--ncaab li.game {
	width: 110px !important;
	height: 70px !important;
	background: var(--mstw-bb-white);
	border: 1px solid var(--mstw-bb-border);
	border-radius: var(--mstw-bb-radius);
	box-shadow: var(--mstw-bb-shadow-soft);
	overflow: hidden;
}

.mstw_tournament_bracket--ncaab ul.game li.game_home,
.mstw_tournament_bracket--ncaab ul.game li.game_away {
	height: 20px;
	line-height: 20px;
	padding: 0 4px;
	background: #f6f8fb;
	color: var(--mstw-bb-blue);
	border-top: 1px solid #edf0f5;
}

.mstw_tournament_bracket--ncaab ul.game li.game_status,
.mstw_tournament_bracket--ncaab ul.game li.game_location {
	padding: 0 4px;
	line-height: 15px;
	font-size: 10px;
	background: var(--mstw-bb-blue);
	color: var(--mstw-bb-white);
}


.mstw_tournament_bracket--ncaab .round_3,
.mstw_tournament_bracket--ncaab .round_4,
.mstw_tournament_bracket--ncaab .round_5,
.mstw_tournament_bracket--ncaab .round_6 {
	margin-left: 0;
}

.mstw_tournament_bracket--ncaab .bracket-lines-1,
.mstw_tournament_bracket--ncaab .bracket-lines-2,
.mstw_tournament_bracket--ncaab .bracket-lines-3,
.mstw_tournament_bracket--ncaab .bracket-lines-4 {
	display: none;
}

.mstw_tournament_bracket--ncaab .mstw_bb_center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding-top: 0;
	align-self: center;
}

.mstw_tournament_bracket--ncaab .mstw_bb_center .round {
	margin: 0;
}

.mstw_bb_region--mirrored {
	transform: scaleX(-1);
}

.mstw_bb_region--mirrored li.game {
	transform: scaleX(-1);
}

.mstw_bb_region--mirrored .round_header {
	display: inline-block;
	transform: scaleX(-1);
}

.mstw_bb_finalfour {
	display: flex;
	align-items: flex-start;
	align-self: center;
}

.mstw_bb_finalfour--mirrored {
	transform: scaleX(-1);
}

.mstw_bb_finalfour--mirrored li.game {
	transform: scaleX(-1);
}

.mstw_bb_finalfour--mirrored .round_header {
	display: inline-block;
	transform: scaleX(-1);
}

.mstw_bb_region-header {
	font-weight: bold;
	font-size: 18px;
	text-align: center;
	margin: 0 auto 8px;
	color: var(--mstw-bb-blue);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	background: var(--mstw-bb-white);
	border: 2px solid var(--mstw-bb-orange);
	border-radius: 999px;
	padding: 6px 14px;
	box-shadow: var(--mstw-bb-shadow-soft);
	max-width: 140px;
}

.mstw_tournament_bracket--ncaab .mstw_bb_region {
	align-items: center;
	flex-direction: column;
}

.mstw_tournament_bracket--ncaab h2.round_header {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--mstw-bb-blue-soft);
	margin-bottom: 8px;
}

.mstw_tournament_bracket--ncaab .mstw_bb_center .round_6 li.game {
	width: 150px !important;
	height: 96px !important;
	border: 2px solid var(--mstw-bb-orange);
	box-shadow: var(--mstw-bb-shadow);
}

.mstw_tournament_bracket--ncaab .mstw_bb_center .round_6 li.game .game_home,
.mstw_tournament_bracket--ncaab .mstw_bb_center .round_6 li.game .game_away {
	background: #fff4e8;
	border-top: 1px solid #ffd9b3;
	color: var(--mstw-bb-blue);
}

.mstw_tournament_bracket--ncaab .mstw_bb_center .round_6 li.game .game_status {
	background: var(--mstw-bb-orange);
	color: var(--mstw-bb-white);
	font-weight: 700;
}

.mstw_bb_region--mirrored .mstw_bb_region-header {
	display: inline-block;
	transform: scaleX(-1);
}

@media (max-width: 768px) {
	.mstw_tournament_bracket {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		display: flex;
		gap: 12px;
	}

	.mstw_tournament_bracket--ncaab {
		display: flex;
	}

	.mstw_tournament_bracket--ncaab .mstw_bb_regions,
	.mstw_tournament_bracket--ncaab .mstw_bb_center,
	.mstw_tournament_bracket--ncaab .mstw_bb_finalfour {
		display: flex;
		gap: 0;
	}

	.mstw_tournament_bracket ul.round_2,
	.mstw_tournament_bracket ul.round_3,
	.mstw_tournament_bracket ul.round_4,
	.mstw_tournament_bracket ul.round_5 {
		margin-top: 0;
	}

	.mstw_tournament_bracket ul.round_2 li.game,
	.mstw_tournament_bracket ul.round_3 li.game,
	.mstw_tournament_bracket ul.round_4 li.game,
	.mstw_tournament_bracket ul.round_5 li.game {
		margin-bottom: 0;
	}
}
	
.mstw_tournament_bracket h2.round_header {
	text-align  : center;
	font-weight : bold;
	font-style  : italic;
	font-size   : 16px;
	margin-top  : 10px;
	margin-bottom : 10px;
	}

/* 
 *  GAMES - layout
 */

/* All games */

.mstw_tournament_bracket li.game {
	position: relative;
	z-index: 2;
}

/* for some themes that mess with <ul> rules */
.mstw_tournament_bracket ul.round-games.round_1 {
	margin-left: 0;
}

/* Round 1 games */

.mstw_tournament_bracket ul.round_1 li.game {
	margin-top:       10px;
	margin-bottom:    10px;
}

/* Round 2 games */

.mstw_tournament_bracket ul.round_2 {
	margin-top: 82px;
}
	
.mstw_tournament_bracket ul.round_2 li.game {
	margin-bottom: 148px;
	}

/* Round 3 games */
	
.mstw_tournament_bracket .round_3 {
	margin-left: -40px;
}

.mstw_tournament_bracket ul.round_3 {
	margin-top: 218px; /* 187*2 */
}

.mstw_tournament_bracket ul.round_3 li.game {
	margin-bottom: 424px;
}

/* Round 4 games */

.mstw_tournament_bracket .round_4 {
	margin-left: -50px;
}

.mstw_tournament_bracket ul.round_4 {
	margin-top: 490px; /* 187*2 */
}

.mstw_tournament_bracket ul.round_4 li.game {
	margin-bottom: 980px;
}

/* Round 5 games */

.mstw_tournament_bracket .round_5 {
	margin-left: -80px;
}

.mstw_tournament_bracket ul.round_5 {
	margin-top: 1040px;
}

.mstw_tournament_bracket ul.round_5 li.game {
	margin-bottom: 2085px;
}

/* Round 6 games */

.mstw_tournament_bracket .round_6 {
	margin-left: -100px;
}

.mstw_tournament_bracket ul.round_6 {
	margin-top: 2145px;
}


/* Keeps margins off bottom of bracket for next element spacing */
.mstw_tournament_bracket ul.round_1 li.game.last_game,
.mstw_tournament_bracket ul.round_2 li.game.last_game,
.mstw_tournament_bracket ul.round_3 li.game.last_game,
.mstw_tournament_bracket ul.round_4 li.game.last_game,
.mstw_tournament_bracket ul.round_5 li.game.last_game,
.mstw_tournament_bracket ul.round_6 li.game.last_game 
{
    margin-bottom: 0;
}

/* 
 *  GAMES - block styling
 */

.mstw_tournament_bracket ul.round_games,
.mstw_tournament_bracket ul.game {
	list-style    : none;
	/* For themes that mess with <ul>  */
	margin-left   : 0;
	margin-bottom : 0;
	padding-left  : 0;
	}
	
.mstw_tournament_bracket ul.round_games li,
.mstw_tournament_bracket ul.game li {
	margin-left:  0;
	padding-left: 0;
	}

.mstw_tournament_bracket li.game {
	background-color: #fff;
	width:            200px;
	height:           126px;
	border:           solid lightgray 1px;
	position:         relative;
	}
	
.mstw_tournament_bracket ul.game li {
	color:       navy;
	line-height: 14px;
	font-size:   12px;
	font-family: sans-serif;
	padding:     5px;
	overflow:    hidden;
	white-space: nowrap;
    }

	
/* Game block line styles */

.mstw_tournament_bracket ul.game li.game_home,
.mstw_tournament_bracket ul.game li.game_away {
	background-color: #e9e9e9;
	line-height     : 28px;
	/*height          : 28px*/
	line-height: 18px;
}

.mstw_tournament_bracket ul.game li.game_home {
	margin-bottom: 2px;
}

.mstw_tournament_bracket ul.game li.game_home.winner,
.mstw_tournament_bracket ul.game li.game_away.winner {
	font-weight: bold;
}

.mstw_tournament_bracket ul.game li.game_status {
	background-color: gray;
	color:            white;
}

.mstw_tournament_bracket ul.game li.game_location {
	background-color: #b1b1b1;
	color:            white;
	/*height:           14px;*/
}

.mstw_tournament_bracket ul.game li a,
.mstw_tournament_bracket ul.game li a:visited,
.mstw_tournament_bracket ul.game li a:active,
.mstw_tournament_bracket ul.game li a:hover {
	color: navy;
}
	
.mstw_tournament_bracket .game_score {
	float:right;
}

img.bb-team-name-logo {
    vertical-align: middle;
    margin-right:   5px;
}

/*
 *    TOURNAMENT TABLES
 */
.mstw_tournament_table {
	width: 100%;
}

.mstw_tournament_table .round_header {
	background-color: gray;
	color:            white;
}
	
.mstw_tournament_table tr.round_header td,
.mstw_tournament_table tr.table_headers td,
.mstw_tournament_table tr.game td
 {
	padding-left:  5px;
	padding-top: 6px;
	padding-bottom: 6px;
	line-height: 24px;
}

.mstw_tournament_table tr.table_headers td.nbr_title {
	text-align: center;
}

.mstw_tournament_table td.game_nbr {
	text-align: center;
}

.mstw_tournament_table tbody tr:nth-child(even) {
	background: #FFF;
}

.mstw_tournament_table tbody tr:nth-child(odd) {
	background: #EEE;
}

.mstw_tournament_table td.game_home {
	text-align: right;
}

.mstw_tournament_table td.game_away {
	text-align: left;
}

.mstw_tournament_table td.game_score {
	text-align: center;
}

.mstw_tournament_table img.bb-team-name-logo {
	margin-left: 5px;
}

.mstw_tournament_bracket--ncaab ul.round_1 li.game {
	margin-top: 6px;
	margin-bottom: 6px;
}

.mstw_tournament_bracket--ncaab ul.round_2 {
	margin-top: 40px;
}

.mstw_tournament_bracket--ncaab ul.round_2 li.game {
	margin-bottom: 70px;
}

.mstw_tournament_bracket--ncaab ul.round_3 {
	margin-top: 104px;
}

.mstw_tournament_bracket--ncaab ul.round_3 li.game {
	margin-bottom: 214px;
}

.mstw_tournament_bracket--ncaab ul.round_4 {
	margin-top: 273px;
}

.mstw_tournament_bracket--ncaab ul.round_4 li.game {
	margin-bottom: 545px;
}

.mstw_tournament_bracket--ncaab ul.round_5 {
	margin-top: 0;
}

.mstw_tournament_bracket--ncaab ul.round_6 {
	margin-top: 0;
}

/* ////////////////////////////////////////////////////////// */
/* ////////////////  vaseto css fixes /////////////////////// */
/* ////////////////////////////////////////////////////////// */

.mstw_tournament_bracket--ncaab li.game {
	border-radius: 6px;
	outline: 1px solid var(--mstw-bb-orange);
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
	
.mstw_tournament_bracket--ncaab ul.round_1 li.game {
	border-radius: 6px;
	outline: 1px solid var(--mstw-bb-orange);
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.mstw_tournament_bracket--ncaab .bracket-lines-1,
.mstw_tournament_bracket--ncaab .bracket-lines-2,
.mstw_tournament_bracket--ncaab .bracket-lines-3,
.mstw_tournament_bracket--ncaab .bracket-lines-4,
.mstw_tournament_bracket--ncaab .bracket-lines-5 {
	display: none;
	/*display: block;*/
}

/* disable old bracket-lines */
div.bracket-lines-1,
.mstw_tournament_bracket--ncaab .bracket-lines-1 {
	/*display: block;*/
}
div.bracket-lines-2,
.mstw_tournament_bracket--ncaab .bracket-lines-2 {
	/*display: block;*/
}
div.bracket-lines-3,
.mstw_tournament_bracket--ncaab .bracket-lines-3 {
	/*display: block;*/
}
div.bracket-lines-4,
.mstw_tournament_bracket--ncaab .bracket-lines-4 {
	/*display: block;*/
}
div.bracket-lines-5,
.mstw_tournament_bracket--ncaab .bracket-lines-5 {
	/*display: block;*/
}

.mstw_tournament_bracket--ncaab .mstw_bb_region {
	/*border: 1px solid green;*/
}

.mstw_bb_region-header {
	/*border: 1px solid blue;*/
}

.mstw_tournament_bracket--ncaab .mstw_bb_region-content {
	/*border: 1px solid orange;*/
}

.mstw_tournament_bracket--ncaab .round {
	/*border: 1px solid blueviolet;*/
}

.mstw_tournament_bracket--ncaab li.game,
.mstw_tournament_bracket li.game {
	width: auto !important;
	height: auto !important;
}

.mstw_tournament_bracket--ncaab .round {
    float: none;
    margin: 0 20px 0px 6px;
    width: 140px;
}

.mstw_tournament_bracket .round_3 {
    margin-left: 0px;
}

.mstw_tournament_bracket .round_4 {
    margin-left: 0px;
}

.mstw_tournament_bracket--ncaab {
	/*text-align: center;*/
}

.mstw_tournament_bracket--ncaab ul.round_1,
.mstw_tournament_bracket--ncaab ul.round_2,
.mstw_tournament_bracket--ncaab ul.round_3,
.mstw_tournament_bracket--ncaab ul.round_4,
.mstw_tournament_bracket--ncaab ul.round_5 {
	/*position: relative;*/
}

.mstw_tournament_bracket--ncaab .region-position-bottom-left .bracket-lines-3,
.mstw_tournament_bracket--ncaab .region-position-bottom-right .bracket-lines-3 {
	display: none;
}

div.bracket-lines-1,
div.bracket-lines-2,
div.bracket-lines-3,
div.bracket-lines-4,
div.bracket-lines-5 {
	border-right: 2px dashed red;
    border-top: 2px dashed red;
    border-bottom: 2px dashed red;
}

.bracket-lines-after {
	z-index: 1;
	z-index: -1;
    position: absolute;
    left: 85px;
    border: 1px solid #ccc;
    border-left: none;

    border-right: 2px solid green;
    border-top: 2px solid green;
    border-bottom: 2px solid green;

    border-right: 2px dashed var(--mstw-bb-orange);
    border-top: 2px dashed var(--mstw-bb-orange);
    border-bottom: 2px dashed var(--mstw-bb-orange);
}

.bracket-lines-after-1 {
	width: 100px;
    height: 100px;
    left: 85px;
    top: -56px;
}

.bracket-lines-after-2 {
	width: 112px;
    height: 87px;
    left: 128px;
    top: -44px;
}

.bracket-lines-after-3 {
	width: 147px;
    height: 138px;
    left: 86px;
    top: -104px;
}

.bracket-lines-after-4 {
	width: 149px;
    height: 253px;
    left: 76px;
    top: -218px;
}

.bracket-lines-after-5 {
	width: 142px;
    height: 290px;
    left: 116px;
    top: -30px;
    border-bottom: none;
    z-index: 1;
}

.bracket-lines-after-6 {
	width: 120px;
    height: 323px;
    left: -54px;
    top: -4px;
    border-top: none;
    z-index: 1;
}

.bracket-lines-after-7 {
	width: 280px;
    height: 2px;
    left: -65px;
    top: -43px;
    border-right: none;
    border-bottom: none;
}

.mstw_tournament_bracket--ncaab ul.round_2 {
    /*margin-top: 112px;*/
}

.mstw_tournament_bracket--ncaab ul.round_2 li.game {
    margin-bottom: 70px;
}

.mstw_tournament_bracket--ncaab ul.round_3 {
    margin-top: 112px;
}

.mstw_tournament_bracket--ncaab ul.round_3 li.game {
    margin-bottom: 190px;
}

.mstw_tournament_bracket--ncaab ul.round_4 {
    margin-top: 232px;
}

.mstw_tournament_bracket--ncaab .region-position-top-left {
	/*background-color: red;*/
}

.mstw_tournament_bracket--ncaab .region-position-top-right {
	/*background-color: blue;*/
}

.mstw_tournament_bracket--ncaab .region-position-bottom-left {
	/*background-color: yellow;*/
}

.mstw_tournament_bracket--ncaab .region-position-bottom-right {
	/*background-color: orange;*/
}

.mstw_tournament_bracket--ncaab .region-position-top-left .bracket-lines-after-5 {
	/*display: none;*/
} 

.mstw_tournament_bracket--ncaab .region-position-top-right .bracket-lines-after-5 {
	/*display: none;*/
} 

.mstw_tournament_bracket--ncaab .region-position-bottom-left .bracket-lines-after-5 {
	display: none;
}

.mstw_tournament_bracket--ncaab .region-position-bottom-right .bracket-lines-after-5 {
	display: none;
}

.mstw_tournament_bracket--ncaab li.game, 
.mstw_tournament_bracket li.game {
	z-index: 3;
}

.mstw_tournament_bracket--ncaab .round .round_header {
	text-align: center;
}
.mstw_tournament_bracket .round .round_header {
	text-align: center;
}

@media (max-width: 768px) {
	.mstw_tournament_bracket {
		/*overflow: scroll;*/
		/*overflow-x: scroll;*/
		/*overflow-y: scroll;*/
	}
}

.neve-main {
	/*position: relative;*/
    /*overflow: visible;*/
    /*flex: 0 0 auto;*/
}

.mstw_tournament_bracket--ncaab {
	/*overflow: scroll;*/
	/*overflow-x: scroll;*/
	/*overflow-y: scroll;*/
}

.mstw_tournament_bracket--ncaab > * {
  /*flex: 0 0 auto; */
}

/* this fixes scroll to the left of the  page */
.mstw_tournament_bracket--ncaab {
	justify-content: space-evenly;
}

.mstw_tournament_bracket--ncaab .mstw_bb_region {
	z-index: 4;
}

.mstw_bb_finalfour--mirrored {
	z-index: 4;
}

.mstw_tournament_bracket ul.round_4 li.game.last_game {
	z-index: 5;
}

.mstw_tournament_bracket ul.game li.game_status {
	text-align: center;
}

.mstw_tournament_bracket ul.round_5 li.game {
	z-index: 5;
}

.mstw_bb_finalfour .mstw_bb_finalfour--mirrored {
	z-index: 5;
}

.mstw_bb_finalfour--mirrored {
	z-index: 6;
}

.mstw_tournament_bracket ul.round_4 li.game.last_game {
	z-index: 6;
}

/* hmmmm */
.mstw_tournament_bracket--ncaab .mstw_bb_regions {
	/*align-self: flex-start;*/
}

.mstw_tournament_bracket--ncaab .mstw_bb_regions--left {
	/*border: 1px solid red;*/
	/*align-self: flex-start;*/
}

.mstw_tournament_bracket--ncaab .mstw_bb_regions--right {
	/*border: 1px solid red;*/
	/*align-self: flex-start;*/
}

.mstw_tournament_bracket--ncaab .mstw_bb_region-content {
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}

/* Use flex instad of margins */

/*.mstw_tournament_bracket ul.round_games.round_1 {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 580px;
}

.mstw_tournament_bracket ul.round_games.round_2 {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 480px;
}

.mstw_tournament_bracket ul.game {
	
}*/