@media (min-width: 1200px) {
	.container {
		width: 1170px;
	}

	.banner-img {
		height: 450px;
		background-position: 50% 25%;
		background-size: cover;
	}
}

@media screen and (max-width: 767px) {
	.navbar-header {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		width: 100%;
	}

	.navbar-header::before,
	.navbar-header::after {
		display: none;
	}

	.navbar-header .navbar-toggle {
		order: 3;
		flex: 0 0 auto;
		float: none;
		margin-left: 8px;
		margin-right: 0;
	}

	.navbar-header > .navbar-brand:not(.nav-group-name) {
		order: 1;
		flex: 0 0 auto;
		float: none;
	}

	.navbar-header .nav-group-name {
		order: 2;
		flex: 1 1 auto;
		min-width: 0;
		float: none;
		padding: 15px 8px 15px 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

    .breadcrumbs {
       font-size: 11px;
    }
}

html {
	width: 100%;
	height: 100%;
	background-color: #f6f6f6;
}

body {
	width: 100%;
	min-height: 100%;
	background-color: #f6f6f6;
	display: flex;
	flex-direction: column;
}

body > .site-footer {
	margin-top: auto;
}

/* Bootstrap .container uses margin-left/right: auto. On a column flex container (body),
   a child with width:auto can shrink-to-fit its content instead of stretching. Pages whose
   main content is intrinsically narrow (e.g. players grid) then look like a thin centered
   card. Below sm, Bootstrap does not set a fixed .container width - force full width. */
@media screen and (max-width: 767px) {
	body > .container {
		width: 100%;
	}
}

.banner-buffer {
	margin-top: -200px !important;
}

.banner-img {
	height: 600px;
	background-position: 50% 25%;
	background-size: cover;
}

.base-container {
	/* Flex ancestors (e.g. body) use min-width: auto by default; without this, wide
	   tables stretch the layout instead of scrolling inside .table-responsive. */
	min-width: 0;
	max-width: 100%;
	margin-bottom:100px;
	margin-top:80px;
	padding-top: 15px;
	padding-bottom: 10px;
	background-color:white;
	border-radius: 5px;
}

/* Bootstrap .table { max-width: 100% } keeps the grid from exceeding the wrapper, so
   overflow-x on .table-responsive never engages. Let the table grow with nowrap cells. */
.base-container .table-responsive {
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.base-container .table-responsive > .table {
	max-width: none;
	width: auto;
	min-width: 100%;
}

.footer-space {
	margin-bottom: 30px;
}

.site-footer {
	background-color: #222;
	color: #999;
	padding: 25px 0;
	font-size: 13px;
}

.site-footer a {
	color: #ccc;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer .footer-links {
	text-align: left;
}

.site-footer .footer-separator {
	margin: 0 8px;
	color: #555;
}

.site-footer .footer-copyright {
	text-align: right;
}

@media screen and (max-width: 768px) {
	.site-footer .footer-links,
	.site-footer .footer-copyright {
		text-align: center;
		margin-bottom: 5px;
	}
}

#home-header-link {
	color: white;
}

#home-header-link:focus {
	text-decoration: None;
}

.custom-responsive-img {
	height: 100px;
	width: 100px;
}

.icon-flipped {
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
}

.nav-group-name {
	color: #fff !important;
}

.navbar-fixed-top
.navbar-collapse {
	max-height: 300px;
}

a:hover {
 cursor:pointer;
}

.required label:after {
	content:"*";
}

.panel-default {
  border-color: grey;
}

.game-nibblet {
	padding: 5px;
}

.game-nibblet tr td.game-title {
	text-align: center;
}

.game-nibblet tr td.team-name {
	padding-right: 10px;
}

.game-nibblet tr td.team-score {
	text-align: right;
}

.navbar{
	border-radius: 0px;
}

.jumbotron{
	/*background-color:#2196F3;*/
	margin-bottom:20px;
	margin-top:40px;
	color: black;
	padding-bottom:15px;
	padding-top:15px;
}

.top_5_table{
	width:100%;
	margin-top:15px;
	margin-right:20px;
}

ul.messages li {
	text-align:center;
	list-style-type: none;
	padding: 15px;
}

.page-header {
	margin-top:0px;
}
.accent {
	font-weight: bold;
	padding-left:10px;
	border-left:4px solid #F44336;
}
.header-accent {
	display: inline;
	font-weight: bold;
	padding-left:10px;
	border-left:4px solid #F44336;
}

.btn-primary {
  color: #fff;
  /*
  background-image: none;
  background-color: #2196F3;
  border-color: #2196F3;
  */
}

.clickable {
	color: blue;
}
.clickable:hover {
	text-decoration: underline;
	cursor: pointer;
}

/* Editing plays */
.play-item {
	transition:0.5s linear all;
	margin: 5px 0px;
	padding: 0px 0px 5px 10px;
	position: relative;
}
.play-item.ng-leave {
	opacity: 1;
}
.play-item.ng-leave.ng-leave-active {
	opacity: 0;
}

.play-item.ng-enter {
	opacity: 0;
}
.play-item.ng-enter.ng-enter-active {
	opacity: 1;
}

.play-wizard-button {
	margin-top: 5px;
	margin-bottom: 5px
}

.cropArea {
  background: #E4E4E4;
  overflow: hidden;
  width:500px;
  height:350px;
}

.tableFixHead          { overflow: auto; height: 900px;}
.tableFixHead thead th { position: sticky; top: 0; z-index: 1; }

@media screen and (min-width: 375px) and (max-width: 768px) {
	.tableFixHead {
		height: 600px;
	}
}

@media screen and (max-width: 768px) {
	.custom-responsive-img {
	    height: 76px !important;
			width: 76px !important;
	}

	.banner-img {
		height: 450px;
		background-position: 50% 25%;
		background-size: cover;
	}
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
	.custom-responsive-img {
	    height: 95px !important;
			width: 95px !important;
	}

	.banner-img {
		height: 450px;
		background-position: 50% 25%;
		background-size: cover;
	}
}

.fade-out.ng-hide {
	opacity: 0;
}

.fade-out.ng-hide-add {
	transition: all linear 0.5s;
}

.seek-message {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5em;
	color: white;
	z-index: 999;
}


table[id="team-comparison"] td[data-stat] {
  text-align: center;
}
table[id="team-comparison"] td[data-stat].strong-weight {
	font-weight: bold;
	background-color: #d9edf7;
}
table[id="team-comparison"] td[data-stat].strongest-weight {
	font-weight: bold;
	background-color: #7fc7f7;
}

/* ===== Mobile Play Entry ===== */

.mobile-play-entry {
	max-width: 600px;
	margin: 0 auto;
	padding: 0 8px 40px;
}

.mpe-scoreboard {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 10px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.mpe-score-team {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.mpe-score-team:last-child {
	justify-content: flex-end;
}

.mpe-team-name {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100px;
}

.mpe-score {
	font-size: 28px;
	font-weight: 700;
	min-width: 32px;
	text-align: center;
}

.mpe-score-divider {
	font-size: 20px;
	color: #999;
	padding: 0 10px;
}

/* Last play bar */
.mpe-last-play {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f0f0f0;
	border-radius: 4px;
	padding: 6px 10px;
	margin-bottom: 10px;
	font-size: 13px;
}

.mpe-last-play-label {
	flex: 1;
	color: #555;
}

.mpe-undo-btn {
	margin-left: 8px;
	white-space: nowrap;
}

/* Toast */
.mpe-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(80px);
	background: #333;
	color: #fff;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 14px;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
}

.mpe-toast-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Progress indicator */
.mpe-progress {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 0;
	margin-bottom: 6px;
	border-bottom: 1px solid #eee;
}

.mpe-progress-tag {
	display: inline-block;
	background: #e8e8e8;
	color: #333;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
}

.mpe-progress-action {
	background: #337ab7;
	color: #fff;
}

.mpe-progress-player {
	background: #5cb85c;
	color: #fff;
}

.mpe-start-over {
	font-size: 12px;
	color: #d9534f;
	margin-left: auto;
	padding: 0;
	vertical-align: baseline;
}

/* Section headers */
.mpe-section {
	margin-bottom: 12px;
}

.mpe-section-header {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
}

/* Action button grid */
.mpe-button-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mpe-action-btn {
	flex: 0 0 calc(20% - 7px);
	min-width: 56px;
	padding: 14px 4px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	border: 2px solid transparent;
	text-align: center;
	transition: background-color 0.1s, transform 0.1s;
}

.mpe-action-btn:active {
	transform: scale(0.95);
}

.mpe-btn-make {
	background: #5cb85c;
	color: #fff;
	border-color: #4cae4c;
}

.mpe-btn-make:hover, .mpe-btn-make:focus {
	background: #4cae4c;
	color: #fff;
}

.mpe-btn-miss {
	background: #f0ad4e;
	color: #fff;
	border-color: #eea236;
}

.mpe-btn-miss:hover, .mpe-btn-miss:focus {
	background: #eea236;
	color: #fff;
}

.mpe-btn-neutral {
	background: #5bc0de;
	color: #fff;
	border-color: #46b8da;
}

.mpe-btn-neutral:hover, .mpe-btn-neutral:focus {
	background: #46b8da;
	color: #fff;
}

/* Two-column player layout */
.mpe-two-col {
	display: flex;
	gap: 12px;
}

.mpe-col {
	flex: 1;
	min-width: 0;
}

.mpe-col-header {
	font-weight: 600;
	font-size: 13px;
	text-decoration: underline;
	margin-bottom: 6px;
}

/* Player buttons */
.mpe-player-btn {
	display: block;
	width: 100%;
	margin-bottom: 6px;
	padding: 10px 6px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform 0.1s;
}

.mpe-player-btn:active {
	transform: scale(0.96);
}

/* Single column for secondary/assist when only one team shows */
.mpe-single-col {
	max-width: 300px;
}

.mpe-single-col .mpe-player-btn {
	width: 100%;
}

/* Skip / No-action buttons */
.mpe-skip-row {
	margin-bottom: 8px;
}

.mpe-skip-btn {
	padding: 8px 20px;
	font-size: 14px;
	border-radius: 6px;
	font-weight: 500;
}

/* Extras (fastbreak/putback) */
.mpe-extras-buttons {
	display: flex;
	gap: 10px;
}

.mpe-extra-btn {
	flex: 1;
	padding: 12px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	max-width: 150px;
}

/* Misc play description */
.mpe-description-input {
	margin-top: 8px;
	resize: vertical;
	font-size: 16px;
}

.mpe-description-actions {
	margin-top: 10px;
}

.mpe-description-save {
	width: 100%;
	max-width: 200px;
	padding: 10px 16px;
	font-weight: 600;
}

/* Saving state */
.mpe-saving {
	text-align: center;
	padding: 16px;
	font-size: 16px;
	color: #337ab7;
}

/* Responsive: wider screens get more columns */
@media (min-width: 768px) {
	.mobile-play-entry {
		max-width: 700px;
	}

	.mpe-action-btn {
		flex: 0 0 calc(16.66% - 7px);
		padding: 16px 6px;
		font-size: 15px;
	}

	.mpe-team-name {
		max-width: 160px;
		font-size: 16px;
	}

	.mpe-score {
		font-size: 34px;
	}

	.mpe-single-col {
		max-width: 400px;
	}
}

/* Small phones */
@media (max-width: 360px) {
	.mpe-action-btn {
		flex: 0 0 calc(25% - 6px);
		padding: 12px 2px;
		font-size: 12px;
	}

	.mpe-player-btn {
		font-size: 13px;
		padding: 8px 4px;
	}

	.mpe-team-name {
		max-width: 70px;
		font-size: 12px;
	}
}
