/* ================================= INFO ================================= */
/* ------------------------------------------------------------------------ */

/*
   These are styles specific to the application Voter Information Lookup, on
   top of styles from the Cerulean19 theme. See the Cerulean19 styles and
   documentation for more.
 */


/* ================================ COLORS ================================ */
/* ------------------------------------------------------------------------ */

/* Voter identifier */
.VR.VIL .Page-VoterDetails .VoterIdentifierArea {
	background-color: #052387;
}

/* Tab layout */
@media screen {

	/* Navigation menu */
	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab {
		background: #052387;
		background-image: linear-gradient(0deg, #052387 0%, #1432AA 100%); 

		color: white;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab.active {
		background: #01659D;
		background-image: linear-gradient(0deg, #01659D 0%, #0285CE 100%);
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab + .Tab {
		border-left-color: #337AB7;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Highlight {
		background-color: #4BA0D2;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tooltip .Icon {
		background-color: white;

		color: black;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .VoterIdentifierArea {
		background-color: #E1E1E1;

		color: #052387;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.UpcomingElections .Election h2,
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election h2 {
		background-color: #E1E1E1;

		color: #052387;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election h2:hover {
		background-color: #D2D2EA;
	}
}

@media screen and (max-width: 980px) {

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab + .Tab {
		border-top-color: #337AB7;
	}
}

.VR.VIL .Page-VoterDetails .PageSection.CurrentElections > .Heading {
	background-color: #E1E1E1;

	color: #052387;
}

.VR.VIL .Page-VoterDetails .Election .BallotStatusProgression .VoterActionRequiredNotice {
	background-color: #B40023;

	color: white;
}


/* ================================ GENERAL =============================== */
/* ------------------------------------------------------------------------ */

.VR.VIL #google_translate_element {
	margin-bottom: 0.5rem;
}


/* =========================== VOTER SEARCH FORM ========================== */
/* ------------------------------------------------------------------------ */

.VR.VIL .Page-VoterSearch #google_translate_element {
	margin-bottom: 1.25rem;
}

.VR.VIL .Page-VoterSearch .RegistrationLink {
	margin-bottom: 1.25rem;

	font-size: 0.8em;
}

.VR.VIL .Page-VoterSearch form {
	margin-bottom: 1.5rem;
}

.VR.VIL .Page-VoterSearch .UnderstandAndAgree{
	background: lightgray;
	border-radius: 5px;
	padding: 10px;
	margin: 10px 0px;
}

@media screen and (min-width: 600px) {

	.VR.VIL .Page-VoterSearch #SubmissionButtons {
		margin-left: 18ex;
	}
}

/* Fixes zoom issue on safari captcha */
@supports (-webkit-touch-callout: none) {
	select,
	textarea,
	input {
		font-size: 16px;
	}
}

/* ============================ VOTER DETAILS ============================= */
/* ------------------------------------------------------------------------ */

.VR.VIL .Page-VoterDetails .PageContent {
	position: relative;

	padding-bottom: 3.0rem;
}

/* New Search */
.VR.VIL .Page-VoterDetails #NewSearchButton {
	position: absolute;
	top: 1.5rem;
	right: 0;
}

/* Voter identifier */
.VR.VIL .Page-VoterDetails .VoterIdentifierArea {
	display: flex;
	align-items: center;
}

.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea {
	flex-grow: 1;

	font-size: 0.6em;
	text-align: right;
}

.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea .Label {
	font-weight: bold;
}

.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea .Label:after {
	content: ':';
}

.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea .Value {
}

@media screen and (max-width: 759px) {

	.VR.VIL .Page-VoterDetails .VoterIdentifierArea {
		display: block;
	}

	.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterName {
		display: block;
	}

	.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea {
		display: block;

		margin-top: 0.5em;

		text-align: left;
		line-height: 1.3;
	}
}

@media screen and (max-width: 480px) {

	.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea .Label:after {
		content: '';
	}
	
	.VR.VIL .Page-VoterDetails .VoterIdentifierArea .VoterNumberArea .Value {
		display: block;
	}
}

/* Election sections, column layout */
@media screen and (min-width: 1600px) {

	.VR.VIL .Election .PageSectionGroup {
		display: flex;
	}

	.VR.VIL .Election .PageSectionGroup > .PageSection.Subsection {
		flex-basis: 50%;
	}
}

@media screen and (min-width: 1280px) and (max-width: 1599px) {

	.VR.VIL .Election .PageSectionGroup {
		display: flex;
	}

	.VR.VIL .Election .PageSectionGroup > .PageSection.Subsection:nth-child(2n+1) {
		flex-basis: 50%;
		flex-grow: 1;
	}

	.VR.VIL .Election .PageSectionGroup > .PageSection.Subsection:nth-child(2n) {
		flex-grow: 1;
	}
}

@media screen and (max-width: 1279px) {

	.VR.VIL .Election .PageSectionGroup {
		display: block;
	}

	.VR.VIL .Election .PageSectionGroup > .PageSection.Subsection:nth-child(odd) {
		margin-right: 0;
	}

	.VR.VIL .Election .PageSectionGroup > .PageSection.Subsection:nth-child(even) {
		margin-top: 1.875rem;
		margin-left: 0;
	}

	.VR.VIL .Election .ContentGroup.Address .Photos {
		text-align: center;
	}

	.VR.VIL .Election .ContentGroup.Address .Photos img {
		max-width: 65vw;
		max-height: 60vh;
	}
}

/* Current Elections heading */
.VR.VIL .Page-VoterDetails .PageSection.CurrentElections > .Heading {
	margin: 2.0rem -1.5rem 1.25rem -1.5rem;
	padding: 1.0rem 1.5rem;

	border-bottom: none;

	font-size: 1.85rem;
	font-weight: normal;
	line-height: 1;
}

.VR.VIL .Page-VoterDetails .PageSection.CurrentElections .CurrentElection + .CurrentElection {
	margin-top: 2.0rem;
}

/* Service unavailable, like for sample ballots */
.VR.VIL .Page-VoterDetails .ExternalServiceUnavailable {
	font-style: italic;

	opacity: 0.8;
}

/* Sample ballot unavailable */
.VR.VIL .Page-VoterDetails .SampleBallotUnavailable {
	margin-top: 1.0em;
}

/* Ballot progress */
@media (min-width: 1280px) {

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic {
		width: 560px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage {
		height: 65px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage:last-child {
		margin-right: 1.25em;
	}
}

@media (min-width: 760px) and (max-width: 1279px) {

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic {
		width: 530px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage {
		height: 62px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage .Title {
		font-size: 0.9em;
	}
}

@media (min-width: 481px) and (max-width: 759px) {

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic {
		width: 400px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage {
		height: 46px;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage .Title {
		font-size: 0.75em;
	}
}

@media (max-width: 480px) {

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic {
		width: 75vw;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage {
		height: 9vw;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .InsetLabel {
		font-size: 8vw;
	}

	.VR.VIL .Page-VoterDetails .Progression .ProgressGraphic .Stage .Title {
		font-size: 0.65em;
	}
}

/* Ballot status text */
.VR.VIL .Page-VoterDetails .Election .BallotStatusProgression .VoterActionRequiredNotice {
	position: absolute;
	top: -2.125em;
	left: 0;

	padding: 0.125em 0.5em;

	border-radius: 0.25em;

	font-size: 0.75em;
	font-weight: bold;
	font-variant: small-caps;
}

.VR.VIL .Page-VoterDetails .Election .BallotStatusProgression .NotCountedReason {
	font-style: italic;
}

.VR.VIL .Page-VoterDetails .Election .BallotStatusProgression .ReturnedUndeliverableSentToLabel {
	margin-top: 0.75em;
	margin-bottom: 0.25em;

	font-weight: bold;
}

/* Previous elections */
@media screen and (min-width: 760px) {

	.VR.VIL .Page-VoterDetails .Election.PreviousElection .PrimaryDetails {
		width: 50%;
	}
}

/* Tab layout */
@media screen {

	/* Navigation menu */
	.VR.VIL .Page-VoterDetails .PageNavigation {
	}

	.VR.VIL.noJS .Page-VoterDetails .PageNavigation {
		display: none;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs {
		display: flex;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab {
		display: block;
		flex-basis: 33.3%;

		position: relative;

		padding: 1.25em 0;

		font-size: 1.25rem;
		font-weight: normal;
		text-align: center;
		line-height: 1;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab.active {
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab + .Tab {
		border-left-width: 2px;
		border-left-style: solid;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs a {
		color: inherit;
		text-decoration: none;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Label {
		position: relative;

		text-transform: uppercase;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);

		z-index: 10;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Highlight {
		position: absolute;
		top: 0;
		left: 0;

		width: 100%;
		height: 100%;

		opacity: 0;
		z-index: 1;

		transition-property: opacity;
		transition-duration: 350ms;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab:hover .Label {
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab:hover .Highlight {
		opacity: 0.25;

		transition-duration: 250ms;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tooltip .Icon {
		font-size: 0.65em;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.TopLevel {
		display: none;

		margin-top: 0;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.TopLevel.active {
		display: block;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .VoterIdentifierArea {
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.UpcomingElections > h1 {
		display: none;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections > h1 {
		display: none;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.UpcomingElections .Election h2,
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election h2 {
		margin: 0 -1.5rem 1.75rem -1.5rem;
		padding: 1.0rem 1.5rem;

		border-bottom: none;

		font-size: 1.85rem;
		font-weight: normal;
		line-height: 1;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.UpcomingElections .Election h2 .Title,
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election h2 .Title {
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election h2 {
		transition-property: background-color;
		transition-duration: 350ms;
	}
	
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.UpcomingElections h1 + .Election,
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections h1 + .Election {
		margin-top: 0;
	}
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election + .Election {
		margin-top: 0;
	}
	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election > .Heading {
		margin-bottom: 0.5rem;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election.expanded {
		padding-bottom: 1.5rem;
	}

	.VR.VIL:not(.noJS) .Page-VoterDetails .PageSection.PreviousElections .Election .PrimaryDetails {
		margin-bottom: 1.5rem;
	}
}

@media screen and (max-width: 980px) {

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs {
		display: block;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab {
		display: block;

		padding: 0.5em 0;
	}

	.VR.VIL .Page-VoterDetails .PageNavigation .Tabs .Tab + .Tab {
		border-top-width: 2px;
		border-top-style: solid;
		border-left: none;
	}
}
