/* Styles for NFL Colour Rush Simulation Activity */

/* Team list: */
#teamlist p.confname {
	margin: .5em 0em 0em;
	text-align: center;
	font-size: 300%;
	font-family: monospace;
}
#teamlist_afc .confname {
	color: #FF3333;
}
#teamlist_nfc .confname {
	color: #0066FF;
}
#teamlist .divisionlist {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(10em,1fr));
	gap: .8em .5em;
	margin: .8em 0em 0em;
}
#teamlist .division {
	min-width: 10em;
	border: .16em ridge #606060;
	background-color: #000000;
}
#teamlist .divname {
	margin: 0px;
	padding: .2em .3em;
	border-bottom: .16em ridge #606060;
	text-align: center;
	font-family: monospace;
	font-size: 150%;
}
#teamlist_afc .divname {
	background-color: #400D0D;
	color: #FF3333;
}
#teamlist_nfc .divname {
	background-color: #001A40;
	color: #0066FF;
}
#teamlist .division > div {
	padding: 0em .5em;
}
#teamlist button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: .4em 0em;
	border: .16em outset #606060;
	padding: .2em .4em;
	text-align: left;
	background-color: #000000;
	font-family: inherit;
	font-weight: bold;
	cursor: pointer;
}
#teamlist button:hover {
	background-color: #202020;
	color: #C0C0C0;
}
#teamlist button.sel {
	border-style: inset;
	background-color: #004040;
	color: #00FFFF;
}

/* Kit displays: */
#outerkitframe {
	margin: 3em 0em .8em;
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	overflow-x: auto;
}
#kitframe {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	gap: 1.4em;
	border: .16em ridge #606060;
	padding: .2em .8em;
	background-image: linear-gradient(to bottom,#103018 40%,#206030);
}
#kitframe button {
	font-size: inherit;
}
#kitframe .teamnamefld button {
	display: block;
	width: 18em;
	box-sizing: border-box;
	border: .16em outset transparent;
	padding: .2em .5em;
	text-align: center;
	background-color: transparent;
	color: #00C000;
}
#kit_away .teamnamefld button {
	margin: 0em 0em .8em auto;
}
#kit_home .teamnamefld button {
	margin: 0em auto .8em 0em;
}
#kitframe .teamnamefld button:not([disabled]) {
	border-color: #C0C0C0;
	background-color: #000000;
	color: #00FF00;
	cursor: pointer;
}
#kitframe .teamnamefld button:not([disabled]):hover,
#kitframe .teamnamefld button:not([disabled]):focus {
	background-color: #202020;
	color: #C0C0C0;
}
#kitframe .teamnamefld button:not([disabled]):active {
	background-color: #004040;
	color: #00FFFF;
}
#kitframe .teamnamefld .homeaway {
	margin: 0em;
	font-size: 250%;
}
#kitframe .teamnamefld .teamloc,
#kitframe .teamnamefld .teamname {
	overflow-x: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#kitframe .teamnamefld .teamloc {
	font-size: 160%;
	margin: .5em 0em 0em;
}
#kitframe .teamnamefld .teamname {
	margin: 0em 0em .2em;
	font-size: 180%;
}
#kitframe .teamkit {
	display: grid;
	gap: 0em 1.4em;
	margin: 0em 0em .8em;
	text-align: center;
}
#kit_away .teamkit {
	grid-template-columns: 1fr auto;
}
#kit_home .teamkit {
	grid-template-columns: auto 1fr;
}
#kitframe .teamkit p {
	margin: 0em;
}
#kit_away p.helmetimg,
#kit_away p.kitimg {
	margin-left: auto;
}
#kit_home p.helmetimg,
#kit_home p.kitimg {
	margin-right: auto;
}
#kitframe .helmetimg {
	grid-row: 2;
	width: 12em;
	height: 6em;
}
#kit_away .helmetimg {
	background: url("/_images/activity/colourrush/helmet_blank_r.png") 58% center/contain no-repeat;
	grid-column: 2;
}
#kit_home .helmetimg {
	background: url("/_images/activity/colourrush/helmet_blank_l.png") 42% center/contain no-repeat;
	grid-column: 1;
}
#kitframe .kitimg,
#kitframe .kitcolours {
	grid-row: 3;
}
#kitframe .kitimg {
	width: 12em;
	height: 27em;
	background: url("/_images/activity/colourrush/kit_blank.png") center/contain no-repeat;
}
#kit_away .kitimg {
	grid-column: 2;
}
#kit_home .kitimg {
	grid-column: 1;
}
#kitframe .helmetcolours,
#kitframe .kitcolours {
	display: flex;
	gap: .3em;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: start;
}
#kitframe .helmetcolours {
	grid-row: 1;
	flex-flow: row nowrap;
	justify-content: center;
	padding-bottom: .4em;
}
#kitframe .kitcolours {
	flex-flow: column nowrap;
	justify-content: start;
}
#kit_away .helmetcolours {
	grid-column: 2;
}
#kit_away .kitcolours {
	grid-column: 1;
	align-items: end;
}
#kit_home .helmetcolours {
	grid-column: 1;
}
#kit_home .kitcolours {
	grid-column: 2;
	align-items: start;
}
#kitframe .helmetcolours button,
#kitframe .kitcolours button {
	display: block;
	box-sizing: border-box;
	border: .16em outset #606060;
	padding: .2em;
	background-color: #202020;
	cursor: pointer;
}
#kitframe .helmetcolours button:hover, #kitframe .helmetcolours button:active,
#kitframe .kitcolours button:hover, #kitframe .kitcolours button:active {
	border-color: #C0C0C0;
	background-color: #404040;
}
#kitframe .helmetcolours button.sel,
#kitframe .kitcolours button.sel {
	border-style: inset;
	border-color: #C0C0C0;
	background-color: #004040;
	cursor: default;
}
#kitframe .helmetcolours .colourbox,
#kitframe .kitcolours .colourbox {
	display: block;
	border: .1em solid #C0C0C0;
}
#kitframe .helmetcolours .colourbox {
	width: 1.2em;
	height: 1em;
}
#kitframe .kitcolours .colourbox {
	width: 2.4em;
	height: 1.6em;
}

/* General options: */
#optionsframe {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	margin: .8em auto;
}
#options {
	display: flex;
	flex-flow: row nowrap;
	align-items: start;
	gap: 1.4em;
	border: .16em ridge #606060;
	padding: .8em 1.6em;
	background-color: #000000;
}
#seasonsel {
	width: 6em;
	font-size: 130%;
}
#seasonsel [disabled] {
	color: #808080;
}
#cvdbtns {
	display: flex;
	flex-flow: column nowrap;
	font-weight: bold;
	gap: .3em;
}
#cvdbtns label {
	display: flex;
	flex-flow: row nowrap;
	gap: .3em;
}
#cvdbtns p {
	margin: 0em;
}

/* Mobile styles: */
@media(max-width: 44em) {
	#kitframe {
		font-size: 60%;
	}
	#kitframe .teamnamefld button {
		width: 20em;
	}
	#kitframe .teamnamefld .teamname {
		font-size: 220%;
	}
	#kitframe .teamkit {
		grid-template-columns: auto;
	}
	#kitframe .helmetimg {
		width: 17.2em;
		height: 8.6em;
	}
	#kitframe .kitimg {
		width: 17.2em;
		height: 40em;
	}
	#kitframe .helmetimg {
		grid-row: 2;
		grid-column: 1;
	}
	#kitframe .kitimg {
		grid-row: 3;
		grid-column: 1;
	}
	#kitframe .helmetcolours,
	#kitframe .kitcolours {
		gap: 1em;
	}
	#kitframe .helmetcolours .colourbox,
	#kitframe .kitcolours .colourbox {
		width: 1.8em;
		height: 2.4em;
	}
	#kitframe .helmetcolours {
		grid-row: 1;
		grid-column: 1;
		padding-bottom: .8em;
	}
	#kitframe .kitcolours {
		flex-flow: row nowrap;
		align-items: start;
		justify-content: center;
		grid-row: 4;
		grid-column: 1;
		padding-top: .8em;
	}
}
