/************** General ***********/
/**********************************/
body { direction: rtl; font-family: Arial; font-size: 10pt; }
body, body * { max-height: 1000000px; } /* prevent font boosting */
a, a:visited { color: #00F; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a > img { border: 0; }
.TextLink { text-decoration:none; }
.TextLink:hover { text-decoration: underline; }
.LinksContainer a, div.ArticleContent a { text-decoration:none; }
.LinksContainer a:hover, div.ArticleContent a:hover { text-decoration:underline; }
div.MainContent { margin-top: 5px; }

.StatsTable { text-align: center; background-color: #F7F7F7; border-bottom: 1px solid #504F5A; border-left: 1px solid #504F5A; }
.StatsTable a, .StatsTable a:visited { text-decoration: none; }
.StatsTable a:hover { text-decoration: underline; color: #0000A0; }
.StatsTable td { border-top: 1px solid #504F5A; border-right: 1px solid #504F5A; padding: 2px; }
.StatsTable.full { width: 100%; }
.trStatsTableHeader { font-weight: bold; background: #BBB; } /* background-image: url('../../img/BgBlue1.gif'); }*/
.trStatsTableHeader td { text-align: center; }

div.SmallHeader { font-weight: bold; margin-bottom: 10px; }
.GeneralTitle td, div.GeneralTitle { background-color: #291FAA; color: white; font-weight:bold; -webkit-border-top-left-radius: 12px; -moz-border-radius-topleft: 12px; border-top-left-radius: 12px; }

div.Container { overflow: auto; overflow-y: hidden; }
div.GalleryTopBar, div.GalleryBottomBar { display: flex; justify-content: center; background-color: #DDDDDD; padding: 3px; text-align: center; font-weight: bold; }
div.GalleryTopBar { font-size: 15px; }
div.GalleryTopBar b { align-self: center; margin-left: 15px; margin-right: 15px; }
div.GalleryTopBar a, div.GalleryBottomBar a { text-decoration: none; }
div.GalleryTopBar a:hover, div.GalleryBottomBar a:hover { text-decoration: underline; }
div.GalleryTopBar img { border: 0px; margin: 3px 0 3px; }
a.Navigation { width: 45px; }

div.Paging { overflow: auto; margin-bottom: 3px; margin-top: 3px; }
div.Paging div { float: right; margin-left: 25px; }

tr.Event td { background-color: #FFFFFF; }
tr.Odd td { background-color: #DDDDDD; }
div.ui-tooltip { border: 0; padding: 0; position: absolute; }

h2, h3, h4 { margin-bottom: 5px; }

div.FacebookPageContainer { margin-top: 10px; }

/************** Main Page ***********/
/**********************************/
div.MainWrapper
{
	width: 900px;
	margin-left: auto;
	margin-right: auto;
	margin-top: -5px;
}

div.MainMenu, div.SubMainMenu
{
	overflow: hidden;
	background-image: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(0, #EDEDED),
	color-stop(0.83, #C8C8C8),
	color-stop(1, #CCCCCC),
	color-stop(1, #A6A6A6)
);
background-image: -o-linear-gradient(bottom, #EDEDED 0%, #C8C8C8 83%, #CCCCCC 100%, #A6A6A6 100%);
background-image: -moz-linear-gradient(bottom, #EDEDED 0%, #C8C8C8 83%, #CCCCCC 100%, #A6A6A6 100%);
background-image: -webkit-linear-gradient(bottom, #EDEDED 0%, #C8C8C8 83%, #CCCCCC 100%, #A6A6A6 100%);
background-image: -ms-linear-gradient(bottom, #EDEDED 0%, #C8C8C8 83%, #CCCCCC 100%, #A6A6A6 100%);
background-image: linear-gradient(to bottom, #EDEDED 0%, #C8C8C8 83%, #CCCCCC 100%, #A6A6A6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#EDEDED', endColorstr='#CCCCCC',GradientType=0 );
background-color: #EBEBEB;
}

ul.MainMenu { margin: 0px; overflow: hidden; }
ul.MainMenu > li { display: inline; float: right; margin: 0; border-left: 1px solid #ABABAB; }
ul.MainMenu > li:last-child { border: 0; }
ul.MainMenu > li a, div.SubMainMenu a { display: inline-block; padding: 4px 8px 4px 8px; text-decoration: none; font-size: 1.1em; color: #2a2a2a; }
div.SubMainMenu a { font-size: 1em; }

ul.MainMenu > li:hover, div.SubMainMenu div:hover { background-color: #0066FF; }
ul.MainMenu > li:hover a , div.SubMainMenu div:hover a { color: #FFF; }
ul.MainMenu > li span.Arrow { margin-right: 2px; background: url("/img/MainMenuArrow.png"); display: inline-block; height: 8px; width: 8px; background-repeat: no-repeat; margin-top: 4px; }
ul.MainMenu > li:hover span.Arrow { background: url("/img/MainMenuArrowHover.png"); background-repeat: no-repeat; }

div.SubMainMenu { position: absolute; display: none; width: 300px; z-index: 999; }
div.SubMainMenu div { border-bottom: 1px solid #9E9E9E; }
div.SubMainMenu a { text-decoration: none; }

.MainTable { width: 900px; margin-left: auto; margin-right: auto; }
.MainTable table { font-family: Arial; font-size: 10pt; }
.Headline { font-family: Arial; font-size: 20px; font-weight: bold; }
.Headline a { text-decoration: none; }
.Headline a:hover { text-decoration: underline; }

.MainPage { border: 1px solid black; border-top-width: 0; font-family: Arial; }
.MainPage1 { background-color: #99CCFF; }
.MainPage td { font-size: 11pt; }
.MainPageArticleHeadline a { color: blue; font-weight: bold; font-size: 13pt; text-decoration: none; }

div.MainPageContainer { width: 80%; margin-left: auto; margin-right: auto; margin-top: 10px; border-bottom: 1px solid #444; }
div.MainPageContainer div.ItemContainer { min-height: 140px; overflow: auto; padding: 7px; border-color: #444; border-style: solid; border-width: 1px 1px 0px 1px; }
div.MainPageContainer div.ItemContainer div.Content { overflow: hidden; }
div.MainPageContainer div.ItemContainer div.Content p.Headline { font-size: 14pt; margin-top: 10px; margin-bottom: 0px; }
div.MainPageContainer div.ItemContainer div.Content p.Preview { font-size: 11pt; line-height: 1.4rem; }
div.MainPageContainer div.ItemContainer div.ImageContainer { float: left; width: 210px; overflow: hidden; margin-right: 10px; }
div.MainPageContainer div.ItemContainer div.ImageContainer a { display: inline-block; float: left; }

div.MainPageContainer div.ItemContainer div.ImageContainer img { max-width: 200px; /*max-height: 140px;*/ }
div.MainPageContainer div.ItemContainer div.GamesToday { padding-top: 5px; }
div.MainPageContainer div.ItemContainer div.GamesToday div { margin-bottom: 3px; font-size: 11pt; }

/************** Main Menu ***********/
/**********************************/
.MenuContainer
{
	width: 110px;
	vertical-align:top;
	background-color: #0000FF;
}

div.MenuItem
{
	cursor: pointer;
	padding: 3px;
	border-bottom: 1px solid #6EAEB0;
	color: white;
	font-weight: bold;
}

div.MenuItem a
{
	display: inline-block;
	width: 100%;
}

div.MenuItem a:visited
{
	color: white;
	text-decoration: none;
	font-weight: bold;
}
div.MenuItem a:link
{
	color: white;
	text-decoration: none;
	font-weight: bold;
}
div.MenuSubTitle
{
	background-color:#CCCCCC;
	margin-top:15px;
	font-weight: bold;
	cursor: auto;
}

.Link
{
	color: blue;
	text-decoration: underline;
	cursor: pointer;
}
.SmallLink
{
	font-family: Arial;
	font-size: 9pt;
	color: blue;
	text-decoration: underline;
}

.SmallerLink
{
	font-family: Arial;
	font-size: 8pt;
	color: blue;
	text-decoration: underline;
}

.off
{
	background: #0000FF;
}

.on
{
	background: #0066FF;
	cursor: pointer;
}

/************** Comments ***********/
/**********************************/
div.CommentsContainer
{
	width: 60%;
	overflow: auto;
	margin-bottom: 5px;
}
div.CommentsContainer.Game
{
    width: 80%;
}
div.CommentsContainerHeader
{
	background-color: #E3E3E3;
	font-weight: bold;
	margin-top: 5px;
	margin-bottom: 3px;
	overflow: auto;
}
*div.CommentsContainerHeader
{
	height: 19px;
}
span.CommentsAdd
{
	float: left;
	font-weight: normal;
	margin-left: 3px;
	color: #0000FF;
	cursor: pointer;
}

div.Comment
{
	border: 1px solid #D7D7D7;
	margin-bottom: 3px;
	padding: 2px;
	background-color: #ECECEC;
}
div.CommentTitle
{
	overflow: auto;
	background-color: #D6E8E8;
}
span.CommentName
{
	float: right;
}
span.CommentDate
{
	float: left;
	font-size: 11px;
}
table.AddComment
{
	display: none;
}
table.AddComment textarea
{
	height: 70px;
	width: 300px;
}
table.AddComment td
{
	vertical-align: top;
}

/************** Players ***********/
/**********************************/
.PlayerPicture
{
	border: 1px solid blue;
}
.PlayerPictureHover
{
	border: 2px solid blue;
}

div.Coach, div.Player { float: right; min-height: 195px; margin-left: 25px;  text-align: center; }


/************** All Seasons ***********/
/**********************************/
div.AllSeasons { overflow: auto; }
div.AllSeasons h2, div.AllSeasonsStats h2, div.AllSeasons h3, div.AllSeasonsStats h3 { margin-top: 5px; margin-bottom: 5px; }
div.AllSeasons div.Season
{
    float: right;
    border: 1px solid #CCC;
    margin: 6px;
    padding: 5px;
    padding-top: 5px;
    width: 150px;
    border-radius: 0px;
    background-color: #F9F9F9;
    color: #464646;
    font-size: 1.3rem;
}

div.AllSeasons div.Season a { color: #464646; text-decoration: none; display: inline-block; width: 90px; padding-right: 5px; }
div.AllSeasons div.Season a:hover { background-color1: #0067BD; color: #0067BD; }
div.AllSeasons div.Season img { width: 18px; margin-right: 5px; float: left; margin-top: 2px; }

div.DialogGame a { text-decoration: none; }
div.DialogGame a:hover { color: #0067BD; }
div.ui-dialog-content > div { margin-bottom: 5px; }
div.ui-dialog-content table.SeasonStats { width: 90%; margin-bottom: 5px; }

table.SeasonStats { border-spacing: 0px; border-collapse: separate; border-collapse: collapse; }
table.SeasonStats thead tr { background-color: #CCC; }
table.SeasonStats td { padding: 2px; border: 1px solid #DDD; text-align: center; }

div.AllSeasonsStats h2 { margin-top: 10px; }
div.AllSeasonsStats table.SeasonStats { font-size: 16px; width: 80%; }
div.AllSeasonsStats table.SeasonStats td { padding: 4px; }

div.AllSeasonsStats table.SeasonStats.Events { width: 95%; font-size: 14px; }
div.AllSeasonsStats table.SeasonStats.Events td { text-align: right; }
div.AllSeasonsStats table.SeasonStats.Events a { text-decoration: none; }
div.AllSeasonsStats table.SeasonStats.Events a:hover { text-decoration: underline; }
.SelectedLink, .SelectedLink:visited { font-weight: bold; }

table.AllSeasons
{
	text-align: center;
	background-color: #F9F9F9;
	border-bottom: 1px solid #9E9E9E;
	border-left: 1px solid #9E9E9E;
}
table.AllSeasonsDiv
{
	font-size: 12px;
}
table.AllSeasons td
{
	border-top: 1px solid #9E9E9E;
	border-right: 1px solid #9E9E9E;
}
table.AllSeasons a, table.AllSeasons a:visited
{
	text-decoration: none;
	color: #2319A2;
}
#tdAllSeasonsDivHeader, #tdAllSeasonsHeader
{
	font-weight:bold;
	/*background-color:#95BEEF;*/
	background-image: url('../../img/BgBlue1.gif');
	background-repeat: repeat-x;
}
table.AllSeasons td:hover
{
	text-decoration: none;
	background-color: blue;
	cursor: pointer;
}
table.AllSeasons td:hover a:visited, table.AllSeasons td:hover a
{
	color: white;
}
#AllSeasonsHistoricMarks
{
	width: 100%;
	text-align: right;
}

table.ResultsSummary { border-collapse: collapse; text-align: center; margin-top: 5px; }
table.ResultsSummary td, table.ResultsSummary th { min-width: 15px; border: 1px solid #AAA; padding: 3px; font-size: 14px; }
table.ResultsSummary th { background-color: #F6F6F6; }
table.ResultsSummary td { font-size: 14px; }
table.ResultsSummary td.win { background-color: #BBF3BB; }
table.ResultsSummary td.draw { background-color: #FFFFBB; }
table.ResultsSummary td.loss { background-color: #FFBBBB; }


/********** Player Details ********/
/**********************************/
table.PlayerDetails
{
	border-right: 1px solid #99CCFF;
	border-top: 1px solid #99CCFF;
}
table.PlayerDetails td
{
	border-left: 1px solid #99CCFF;
	border-bottom: 1px solid #99CCFF;
	background-color: #F9F9F9;
	text-align: center;
	white-space: nowrap;
	padding-left: 10px;
	padding-right: 10px;
	min-width: 140px;
}

table.PlayerDetails td:first-child
{
	text-align: inherit;
	padding-right: 5px;
	padding-left: 3px;
	min-width: inherit;
}

table.PlayerDetails td.PlayerDetailsTitle
{
	font-weight:bold;
	background-color: #99CCFF;
	font-size: 1.1em;
	text-align: center;
}

div.PlayerStats { width: 374px; }
div.PlayerStats div.PlayerStatsData { width: 100%; }
div.PlayerStats div.PlayerStatsData > div > div:first-child { width: 105px; }
div.PlayerStats.ForTooltip { width: 290px; font-size: 13px; }
div.PlayerStats.ForTooltip.NoPhoto { width: 240px; }
div.PlayerStats.ForTooltip img { width: 75px; }
div.PlayerStats.ForTooltip div.PlayerStatsData { width: 214px; }
div.PlayerStats.ForTooltip.NoPhoto div.PlayerStatsData { width: 100%; }
div.PlayerStats.ForTooltip div.PlayerStatsData > div > div:first-child { width: 77px; }

div.PlayerStats { overflow: hidden; background-color: #F9F9F9; border: 1px solid #737373; }
div.PlayerStats > div { float: right; }
div.PlayerStats > div.PlayerStatsTitle { float: none; background-color: #D5E6F7; text-align: center; padding: 3px 0 3px 0; font-size: 105%; }
div.PlayerStats div.PlayerStatsData { border-right: 1px solid #CCC; }
div.PlayerStats div.PlayerStatsData > div { border-bottom: 1px solid #CCC; overflow: hidden; }
div.PlayerStats div.PlayerStatsData > div:last-child { border-bottom: 0; }
div.PlayerStats div.PlayerStatsData > div > div { float: right; padding: 2px 10px 2px 10px; }

div.PlayerStatsGraphContainer { float: right; margin-left: 50px; width: 100%; }
div.PlayerStatsGraphContainer.Narrow { width: 42%; }
div.PlayerStatsGraphContainer.GoalTypes { margin-left: 0px; width: 50%; }
div.StatsGraph.GoalTypes { height: 250px; }
/*div.PlayerStatsGraphContainer table.jqplot-table-legend { margin-right: 40px; }*/

PlayerDetailsTooltip
{
	border: 1px solid black;
}
.PlayerDetailsTooltip td
{
	border-left: 1px solid #99CCFF;
	border-bottom: 1px solid #99CCFF;
	background-color: #F9F9F9;
	text-align: center;
}
.SeasonDetailsTooltip
{
	border: 1px solid black;
}
.SeasonDetailsTooltip td
{
	border-left: 1px solid #99CCFF;
	border-bottom: 1px solid #99CCFF;
	background-color: #CCFFFF;
	text-align: center;
}

/********** Player Page ********/
/**********************************/
div.PlayerImage { margin-left: 30px; margin-right: 0px; margin-top: 10px; float: right; border: 0px solid black; }
div.PlayerImage img { max-height: 250px; }
div.PlayerData { max-width: 70%; margin-top: 10px; float: right; }
div.PlayerMain { margin-right: 10px; font-size: 0.95rem; color: #333; }
div.PlayerMain > p { width: 80%; }

div.PlayerMenuContainer { margin-top: 15px; margin-right: 0px; background-color: #007FD4; padding: 3px; padding-right: 20px; }
div.PlayerMenuContainer > div { color: #EEE; font-weight: bold; }
div.PlayerMenuContainer.Main > div { margin-left: 50px; float: right; }
div.PlayerMenuContainer > div:last-child { margin-left: 0px; }
div.PlayerMenuContainer > div a { color: #FFF;	text-decoration: none; }
div.PlayerMenuContainer > div a:hover {	color: #FFF; text-decoration: underline; }

div.PlayerMenuContainer.Seasons { padding: 3px; margin-bottom: 5px; }
div.PlayerMenuContainer.Seasons div.SeasonsTitle { float: right; width: 100px; margin: 3px; }
div.PlayerMenuContainer.Seasons div.SeasonsList { margin-right: 105px; }
div.PlayerMenuContainer.Seasons div.SeasonsList > div { display: inline-block; margin: 3px; width: 75px; }

div.PlayerImages img { margin-right: 20px; margin-bottom: 15px; }
div.PlayerImages span.AdditionalPhotos { position: relative; display: inline-block; }
div.PlayerImages span.AdditionalPhotos img { opacity: 0.5; }
div.PlayerImages span.AdditionalPhotos span { position: absolute; display: inline-block; top: 35px; left: 0; width: 85%; text-align: center; font-size: 30px; font-weight: bold; direction: ltr; color: #333; }

/********** Gallery ********/
/***************************/
.ImageTooltip
{
	text-align: center;
	background-color: #99CCFF;
	border-bottom: 1px solid #3300FF;
	border-left: 1px solid #3300FF;
	width: 300px;
}
.ImageTooltip td
{
	border-top: 1px solid #3300FF;
	border-right: 1px solid #3300FF;
}
.ImageTooltipHeader td
{
	font-weight: bold;
	background-color: #0099FF;
}

div.GalleryImage2 { float:right; width: 160px; text-align: center; height: 158px; padding: 15px; overflow: auto; }

div.GalleryContainer { display: flex; flex-wrap: wrap; justify-content: space-around; }

div.GalleryImage { display: flex; justify-content: center; max-width: 260px; max-height: 260px; margin-bottom: 50px; }

div.GalleryImage a, div.GalleryImage img { max-width: 100%; max-height: 100%; }


/********** Search ********/
/***************************/
div.SearchSection { background-color:#EEEEEE; border:1px solid #BBBBBB; padding: 7px 10px 10px 3px; }
div.SearchSection h2 { margin-top: 0; margin-bottom: 5px; }
div.SearchSection div.Row { line-height: 30px; overflow: auto; }
div.SearchSection div.Row.SearchButton { line-height: inherit; height: 40px; }
div.SearchSection div.Row > div, div.TimeRanges > div { float: right; }
div.TimeRanges > div { display: none; }
div.TimeRanges div#SpecificSeason, div.TimeRanges div#SpecificDate { margin-top: 5px; }
div.SearchSection input, div.SearchSection select { margin-left: 5px; }
input.SearchButton { margin-right: 15px; }
input#HapoelGoals, input#OppGoals { width: 50px; }

table.SearchStats { width: 80%; margin-bottom: 10px; }
table.SearchResults { border: 1px solid #DDDDDD; width: 85%; border-collapse: collapse; }
table.SearchResults td { border-bottom: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; padding: 4px; }
tr.SearchResultsHeader { background-color: #BBBBBB; }
table.SearchResults a { text-decoration: none; }
table.SearchResults a:hover { text-decoration: underline; }
table.SearchResults.Full { width: 100%; }
table.SearchResults td.Comments { max-width: 150px; }
table.SearchResults span.Substitute { font-size: 11px; display:inline-block; }
table.SearchResults span.Substitute span { vertical-align: top; }
table.SearchResults span.Substitute.Entering { margin-left: 5px; }
p.SearchStatsTitle { margin-bottom: 5px; }

input.SearchButton1
{
	width: 100px;
	height: 35px;
	font-size: 1.2em;
	font-weight1: bold;
	border-radius: 7px;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: 1px solid #C4C4C4;
}
input.SearchButton {
	-moz-box-shadow:inset 0px 1px 0px 0px #97c4fe;
	-webkit-box-shadow:inset 0px 1px 0px 0px #97c4fe;
	box-shadow:inset 0px 1px 0px 0px #97c4fe;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #3d94f6), color-stop(1, #1e62d0) );
	background:-moz-linear-gradient( center top, #3d94f6 5%, #1e62d0 100% );
	background-color:#3d94f6;
	-webkit-border-top-left-radius:15px;
	-moz-border-radius-topleft:15px;
	border-top-left-radius:15px;
	-webkit-border-top-right-radius:15px;
	-moz-border-radius-topright:15px;
	border-top-right-radius:15px;
	-webkit-border-bottom-right-radius:15px;
	-moz-border-radius-bottomright:15px;
	border-bottom-right-radius:15px;
	-webkit-border-bottom-left-radius:15px;
	-moz-border-radius-bottomleft:15px;
	border-bottom-left-radius:15px;
	text-indent:0;
	border:1px solid #337fed;
	display:inline-block;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	font-weight:bold;
	font-style:normal;
	height:35px;
	line-height:30px;
	width:100px;
	text-decoration:none;
	text-align:center;
	text-shadow:1px 1px 0px #1570cd;
}
input.SearchButton:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1e62d0), color-stop(1, #3d94f6) );
	background:-moz-linear-gradient( center top, #1e62d0 5%, #3d94f6 100% );
	background-color:#1e62d0;
}
input.SearchButton:active {
	position:relative;
	top:1px;
}

/********** Tooltip ********/
/***************************/
#tooltip {
	position: absolute;
	z-index: 3000;
	border: 0px solid #111;
}
#tooltip h3, #tooltip div { margin: 0; }



/********** Game ********/
/***************************/
a.PlayerLink {	text-decoration:none; font-weight:bold; }
.PlayerLink:hover { color: #0000A0; text-decoration: underline; }
table.GameDetails { background-color: #99CCFF;	border: 1px solid #808080; }

table.GameStats { border: 1px solid #808080; }
table.GameStats tr { background-color: #99CCFF; }
table.GameStats td { text-align: center; }

table.GameEvents { border-top: 1px solid #808080; border-left: 1px solid #808080; border-right: 1px solid #808080; }
.GameEvents td { border-bottom: 1px solid #808080; text-decoration: none; background-color: #99CCFF; }

table.GameTable { border-collapse: collapse; width: 100%; }
table.GameTable td { border: 1px solid #ccc; background-color: #F9F9F9; }
table.GameTable td.position { width: 11px; }
table.GameTable td.points { width: 17px; text-align:center; direction:ltr; }

table.GameTable tr.relegation td { border-bottom-color: #ff1f1f !important; }
table.GameTable tr.relegation-playoffs td { border-bottom-color: #ffa7a7 !important; }
table.GameTable tr.playoffs td { border-bottom-color: #4c4c4c !important; }
table.GameTable tr.promotion td { border-bottom-color: #2c8200 !important; }

table.GameTable .trGameTableHeader td { text-align: center; font-weight: bold; background-color: #99CCFF; }
.Shootout { width:180px; }

/************ Statistics **********/
div.StatsGraph { width:700px; height: 350px; font-size: 16px; }
div.StatsGraph { width: 95%; }
div.StatsGraph.Lower { height: 200px; }
div.StatsGraph.Narrow { width: 250px; }
div.StatsGraph.Narrow.WithLegend { width: 350px; }
div.ComebacksTotal { width:600px; height: 350px; font-size: 16px; }
div.ComebacksBySeason { width: 800px; height: 250px; font-size: 16px; }

#divStatBody { font-size: 1rem; }
table.AllOpponents td, p.AllOpponentsTitle { font-size: 0.9rem; }

table.referees tr td { min-width: 50px; }
table.referees tr td:first-child { width: 150px; }
table.referees tr td:last-child { width: 100px; }
table.referees tr td:nth-child(n+7):nth-last-child(n+2) { width: 70px; }


/************** Article ***********/
/**********************************/
img.ArticleImage { max-width: 550px; }

.ArticleHeader
{
	background-color: #1E4DF7;
	color: #ffffff;
	padding: 4px;
	font-size: 18px;
	margin-bottom:10px;
	margin-top: 5px;
}
div.ArticleContent
{
	border: 0px solid #eeaaaa;
	margin-bottom:10px;
	overflow:auto;
	font-size: 14px;
	line-height: 130%;
}
div.ArticleText
{
	border: 0px solid red;
	width: 70%;
	float:right;
	margin-left:20px;
	padding:0px;
}
div.ArticleText p
{
	margin: 5px;
}
div.ArticleBottom
{
	background-color: #1E4DF7;
	padding: 2px;
}
div.ArticleBottom a
{
	color:#ffffff;
	text-decoration: none;
	font-weight: bold;
}
div.ArticleBottom a:hover
{
	text-decoration: underline;
}
div.ArticleBottom span
{
	margin-left: 20px;
}
div.ArticleImagesContainer
{
	float:left;
	width: 205px;
	font-size: 12px;
	line-height: 110%;
}
div.ArticleImagesContainer img
{
	width: 200px;
	margin-left: 3px;
}
div.ArticleImageDesc
{
	width:200px;
	margin-bottom: 15px;
}
div.ArticleLinksTitle
{
	margin-top: 15px;
	padding-right: 5px;
}

iframe.Gfycat
{
	margin-top: -50px;
}



tr.Spacing
{
	height: 20px;
}
#tdImages, #tdText
{
	vertical-align: top;
}
#trLinks td
{
	width: 150px;
}
#tdBackToMain
{
	background-color: #C6CFD0;
}

table.Quote
{
	width: 100%;
}
td.Quote
{
	background-color: #ECECEC;
	width: 100%;
	border: 1px solid #D7D7D7;
	padding: 2px;
}

p.Text
{
	border: 1px solid #D7D7D7;
	padding: 3px;
	background-color: #E8EBFF;
}

div.TextContainer
{
	background-color: #ECECEC;
	border: 1px solid #D7D7D7;
	padding: 2px;
}


/********* All Players *******/
/*****************************/
.AllPlayersHeader
{
	background-color: #99CCFF;
	width: 88%;
}
p.AllPlayersTitle
{
    background-color: #EBEBEB;
    height: 22px;
    line-height: 20px;
    border-radius: 5px;
    padding: 3px;
}

span.PlayersLetter { margin-left: 20px; font-size: 22px; }

span.PlayersLetter a:link, span.PlayersLetter a:visited
{
	font-weight:bold;
	text-decoration: none;
}
span.PlayersLetter a:hover { color: #449BB3; }


/* Graphs */
div.SeasonPositions { height:350px; width: 100%; }
.jqplot-highlighter-tooltip, .jqplot-canvasOverlay-tooltip { z-index: 999999; }

/********/
/* Mobile */
/********/
.MobileOnly { display: none !important; }
@media (max-device-width :599px) {
    /* General */
	body { font-size: 1.5rem; }
    .NotMobile { display: none !important; }
    .MobileOnly { display: block !important; }
    span.MobileOnly, a.MobileOnly { display: inline !important; }
    .ui-widget { font-size: 1.5rem; }
    div.Headline { font-size: 2.5rem; }
    div.Headline > a > img { width: 2.5rem; vertical-align: text-bottom; }
    ul.ui-autocomplete li.ui-menu-item { font-size: 2.2rem; }
    div.GalleryTopBar, div.GalleryBottomBar { font-size: 2.5rem; padding: 0.8rem; }
	div.GalleryTopBar b { margin-left: 1.2rem; margin-right: 1.2rem; }
	a.Navigation { width: 45px; margin: 0; }
    div.SmallHeader { font-size: 1.5rem; }
    div.General { font-size: 1.5rem; }
    a.Navigation > img { height: 100%; }
    div#divMain h2 { font-size: 2rem; }
    p.Headline { font-size: 2rem; }
    div.LinksContainer { font-size: 1.5rem; }
	img.NavigationArrow { width: 2.5rem; }

    /* Main Page */
    div.MainPageContainer { width: inherit; }
    div.MainPageContainer div.ItemContainer div.Content p.Headline { font-size: 2.4rem; }
    div.MainPageContainer div.ItemContainer div.Content p.Preview { font-size: 2rem; margin-top: 0.5rem; margin-bottom: 0.5rem; line-height: 3rem; }
    div.MainPageContainer div.ItemContainer div.GamesToday div { font-size: 2rem; margin-bottom: 0.5rem; }

    /* Article */
    div.ArticleText { font-size: 2.2rem; line-height: 2.4rem; }
    div.ArticleImagesContainer { width: 26%; font-size: 1.5rem; }
    div.ArticleImagesContainer img { width: 99%; }
    div.ArticleText p { margin-bottom: 1rem; }
    div.ArticleText.NoMobileImages { width: 95%; }

    /* Menu */
    ul.MainMenu > li a, div.SubMainMenu a { font-size: 3rem; }
    ul.MainMenu > li { padding: 0 0.5rem 0 0.5rem }
    ul.MainMenu > li.MobileMenu { float: left; }
    img.MobileMenu { height: 3.5rem; margin-top: 0.35rem; }
    ul.MainMenu.MobileMenu { display: none; }

    /* Comments */
    div.CommentsContainer { width: 70%; font-size: 1.7rem; }
    div.CommentsContainer.Game { width: 90%; }
    span.CommentDate { font-size: 1.4rem; }
    div.CommentsContainer input, div.CommentsContainer textarea { font-size: 1.8rem; }
    div.CommentsContainer button { width: 7rem; font-size: 1.8rem; }

    div.PlayerImage img { height: auto !important; width: 18rem; max-height: inherit; }
    table.PlayerDetails td.PlayerDetailsTitle, div.PlayerData div.PlayerStatsTitle { font-size: 2.7rem; }
    div.PlayerData { max-width: 60%; }
    table.PlayerDetails, div.PlayerData { font-size: 2.3rem; }
    div.PlayerData, div.PlayerStats, div.PlayerStatsData { width: 100% !important; }
    div.PlayerStats div.PlayerStatsData > div > div:first-child { width: 14rem; }

    div.PlayerMain > p { width: 100%; font-size: 2.5rem; }
    div.PlayerMain { font-size: 2.2rem; }
    div.PlayerMenuContainer { font-size: 2.4rem; }
    div.PlayerMenuContainer.Seasons div.SeasonsTitle { width: 9rem; }
    div.PlayerMenuContainer.Seasons div.SeasonsList { margin-right: 9.5rem; }
    div.PlayerMenuContainer.Seasons div.SeasonsList > div { width: 13rem; }

    table.SeasonBottomMenu a { font-size: 1.5rem; }

    /* Players Search */
    p.Headline.AllPlayers { font-size: 2.7rem; margin-top: 1rem; margin-bottom: 0rem; }
    p.AllPlayersTitle { font-size: 2.3rem; padding: 0.8rem; border-radius: 0.8rem; }
    div.AllPlayersContent, div.AllPlayersContent input, div.AllPlayersContent select { font-size: 2.3rem; }
    div.AllPlayersContent input, div.AllPlayersContent select { font-size: 2.6rem; }
    span.PlayersLetter { font-size: 2.4rem; }

    /* Game Search */
    div.SearchSection { font-size: 2.5rem; padding: 7px 10px 10px 3px; }
    div.SearchSection > div { overflow: auto; }
    div.SearchSection div.Row { line-height: 4.8rem; float: right; }
    div.SearchSection div.Row.SearchButton { line-height: inherit; height: inherit; min-height: 6rem; }
    div.TimeRanges div#SpecificSeason { margin-top: 0.8rem; }
    div.SearchSection input, div.SearchSection select { font-size: 2.5rem; max-width: 18rem; margin-left: 0.5rem; }
    input#PlayerAct, input#Stadium { max-width: 16rem; margin-left: 0; }
    input#VideoOnly { min-width: 3rem; min-height: 2rem; }
    div.SearchSection input.SearchButton { font-size: 3rem; width: 10rem; height: 5rem; }
    input#HapoelGoals, input#OppGoals { width: 3.5rem; }
    a.NavigateToGame img { width: 2rem; }
    table.SearchStats, p.SearchStatsTitle { width: 100%; font-size: 2.2rem; margin-bottom: 0.5rem; }
    table.SearchResults { width: 100%; font-size: 1.85rem; }
	table.SearchResults td.Comments { max-width: 20rem; }
    table.StatsTable.SearchStats { margin-bottom: 1rem; }

    /* Gallery */
	div.GalleryImage { max-width: 100%; max-height: 100%; margin-top: 1.5rem; margin-bottom: 1.5rem; }
    div.GalleryImage > a > img { width: 100%; }

    /* All Seasons */
    div.AllSeasons h2, div.AllSeasonsStats h2 { font-size: 4rem; }
    div.AllSeasons h3, div.AllSeasonsStats h3 { font-size: 2.7rem; }
    div.AllSeasons div.Season { font-size: 3.8rem; width: inherit; margin: 1rem; }
    div.AllSeasons div.Season a { width: 100%; }
    div.AllSeasonsStats table.SeasonStats, div.AllSeasonsStats table.SeasonStats.Events { font-size: 2.3rem;}
	
	table.ResultsSummary { overflow-x: auto; display: block; }
	table.ResultsSummary th, table.ResultsSummary td { font-size: 1.7rem; }
	table.ResultsSummary td.Result { font-size: 2.2rem; }

    /* Players Page */
    div.Coach, div.Player { font-size: 1.5rem; width: 11.5rem; height: 17rem; padding: 1rem; margin-left: 0; }
    div.Coach img, div.Player img.PlayerPicture { width: 100%; }
    div.SmallHeader.PlayersPageHeader { font-size: 2.5rem; }
    div.SmallHeader.PlayersPageHeader img { width: 2rem; }

	/* Player */
	div.PlayerStatsGraphContainer.Narrow { width: 90%; margin-left: 1rem; }
	div.PlayerStatsGraphContainer.Narrow div.StatsGraph { width: 75%; }
	div.PlayerStatsGraphContainer.Narrow div.StatsGraph.WithLegend { width: 95%; }
	div.PlayerStatsGraphContainer.GoalTypes { width: 95%; }
	div.StatsGraph.GoalTypes { height: 20rem; }
	PlayerStatsGraphContainer table.jqplot-table-legend { margin-right: 0; }
	table.SearchResults span.Substitute span { font-size: 1.5rem; }
	table.SearchResults td.PlayerEvent img { width: 1.5rem; }

	div.PlayerImages img { margin-right: 3rem; margin-bottom: 2rem; min-height: 14rem; }
	div.PlayerImages span.AdditionalPhotos span { top: 5.5rem; left: 0; width: 75%; font-size: 3rem; }

    /* Statistics */
    div.ArticleBottom { font-size: 1.5rem; }
    p.ArticleHeader { font-size: 2rem; }
    #divStatBody { font-size: 2.3rem; }
    #divStatMainImages { display: none; }
	div.StatsGraph { width: 95%; height: 28rem; font-size: 2rem; }
	div.StatsGraph.Narrow { width: 40%; }
	div.StatsGraph.Lower { height: 22rem; }
	div.ComebacksTotal { width: 95%; height: 28rem; font-size: 2rem; }
	div.ComebacksBySeason { width: 95%; height: 12rem; font-size: 2rem; }

    /* All Opponents */
    table.AllOpponents td, p.AllOpponentsTitle { font-size: 1.9rem; }

    /* Graphs */
    div.jqplot-xaxis-tick { font-size: 1.2rem; }

	/* Artciel */
	img.ArticleImage { max-width: inherit; width: 65%; }
	div.ArticleContent { font-size: 2rem; }

    /* Legacy */
    table.LegacySeasonMenu { font-size: 2rem; }
    table.LegacySeasonMenu a { padding-left: 0.8rem; }

    div.SeasonPositions { height:25rem; width: 100%; }
	table.international-article { font-size: 2.1rem; }
}


/********* Google Ads *******/
/*****************************/
div.GoogleAdsContainer
{
	border: 1px solid red;
}

ul { padding: 0px; }

h2 { color: #15187A; }