/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');
@import url('/shared/styles/header.css');
@import url('/shared/styles/home.css');

/* Core Styles */
body { margin: 0; font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 28px; min-height: auto !important; font-weight: 300; }
a, a:hover, a:visited, a:active { color: #2F4357; }
a:hover { text-decoration: none; color: #000; }
img, a img { border: 0; }
.printHeader { display: none; }

h1, h2, h3, h4, b { font-weight: 600; }

/* Buttons */
a.button { background: none; display: inline-block; padding: 6px 16px; border-radius: 5px; border: 2px solid #ce676a; color: #000; text-decoration: none; font-weight: 700; }
a.button:hover { background: #ce676a; transition: 1s;  }

.graphFill { background: #2F4357 !important; }

/* General Styles */
.container_first { margin-top: 100px !important; }
.container { width: calc(100% - 40px); max-width: 1440px; margin: 0 auto; }
.container_alt { width: 1250px; max-width: calc(100% - 40px); margin: 0 auto; }
.container_event { width: 1100px; max-width: calc(100% - 40px); margin: 0 auto; }
.container_sm { width: 1000px; max-width: calc(100% - 40px); margin: 0 auto; }
.clear { clear: both; }

/* Alerts Bar */
#headerAlert { width: calc(100% - 30px); padding: 15px; background: #B82925; color: #FFF; text-align: center; font-size: 20px; line-height: 28px; font-weight: 700; }
#headerAlert a { color: #FFF; text-decoration: none; display: block; }

/* Page Content */
#pageContent { padding: 1em 0; }
#pageContent .introduction, .electionPage .introduction { font-size: 20px; color: #666; line-height: 30px; display: block; border-bottom: 1px solid #DDD; padding-bottom: 1em; margin-bottom: 1em; }
.electionPage .introduction { margin-top: 1em; padding-top: 1em; }
#pageContent h2 { color: #000; margin: 1.5em 0 1em; }
#pageContent img { max-width: 100%; height: auto !important; }
.electionPage h3 { color: #2F4357; }

/* Elected Officials */
.officialDirectory { width: calc(((100% - 40px)/ 3) - 20px); float: left; margin: 0 20px 20px 0; padding: 5px 10px; text-align: center; border-top: 5px solid #DDD; background: #F6F6F6; min-height: 210px; }
.officialDirectory:hover { border-top: 5px solid #EEEEEE; background: #EEEEEE; }
.officialDirectory.right { margin-right: 0; }
.officialDirectory h2 { margin: 1em 0 !important; }
.officialDirectory h2 a { color: #2F4357; text-decoration: none; }

/* Official Listings */
.offRow { width: 100%; border-bottom: 1px solid #DDD; padding: 4px 0; margin: 2px 0; position: relative; }
.offRowLast { border-bottom: 0; }
.offInfo { width: 66.6%; float: left; padding: 1px 0; }
.offInfo4x { width: 75%; float: left; padding: 1px 0; }
.offTerm { width: 33.4%; float: right; text-align: right; }
.offTerm4x { width: 25%; float: right; text-align: right; }
.offName { width: 50%; float: left; }
.offContact { width: 50%; float: right; text-align: center; }
.offContact4x { width: 33.3%; float: left; text-align: center; }
.offContactName { text-align: left; }
.offContact a { font-size: 14px; }
.offTopDivider { margin-top: 10px; border-top: 1px solid #000; padding-top: 10px; }

.cityList, .leftNav { width: 260px; float: left; }
.cityList h3, .leftNav h3 { padding: 5px; display: block; margin: 1.5em 0 10px; }
.cityList ul, .leftNav ul { margin: 0; padding: 0; list-style-type: none; }
.cityList ul li a:hover { background: #F6F6F6; }
.leftNav ul li a:hover, .leftNav ul li a:hover { background: #DDD; }
.cityList ul li a { display: block; border-bottom: 1px solid #DDD; padding: 5px; cursor: pointer; text-decoration: none;}
.leftNav ul li a { display: block; border-bottom: 1px solid #000; padding: 5px; cursor: pointer; text-decoration: none; }
.cityList ul li a:hover { background: #F6F6F6; }
.leftNav h3 a { color: #000; text-decoration: none; }
.rightContent, .officialDetails, .rightContentForm { float: right; width: calc(100% - 280px); }
.officialDetails input[type="text"], .rightContent input[type="text"], .precinct input[type="text"] { display: block; border: 2px solid #EEEEEE; width: calc(100% - 14px); padding: 5px; font-size: 18px; font-family: 'Poppins', sans-serif; margin: 30px 0; border-radius: 5px; }
.precinctPage input[type="text"] { width: 100% !important; }
.cityDetails h2, .officialDetails h2 { background: #2F4357; color: #FFF; padding: 10px; border-radius: 10px 10px 0 0; margin: 1em 0 0; line-height: 1.5em; }
.cityDetails h2 a, .officialDetails h2 a { color: #FFF; }
.officialDetails h2 i { font-size: 20px; margin-left: 5px; }
.cityInfo, .officialInfo, .officialInfo { padding: 10px; }
.officialColumn { float: left; width: 25%; }
.officialColumn a i, .officialColumn3 a i, .fedColumn1 a i, .officialColumn3 i { margin: 0 3px; text-decoration: none; }
.officialRight a i { margin: 0; }
.officialColumn3 { float: left; width: 33.33%; padding: 1px 0; }
.officialRow { margin-bottom: 5px; padding: 2px 0; border-bottom: 1px solid #DDD; }
.fedColumn1 { float: left; width: 33.33%; }
.fedColumn2 { float: left; width: calc(100% - 150px - (100% / 3)); }
.fedColumn3 { float: left; width: 150px; }
.cityContact { float: left; width: 50%; }
.cityContact.numbers { text-align: right; }
.cityContact.numbers a i { margin-left: 5px; text-decoration: none; }
.positionTitle { float: none; width: 100%; font-weight: 700; padding: 3px 0; }
.positionName { float: left; width: 33.33%; padding: 3px 0; border-bottom: 1px solid #DDD; }
.positionEmail { float: left; width: 33.33%; text-align: center; padding: 3px 0; border-bottom: 1px solid #DDD; }
.termEnds { float: left; width: 33.33%; text-align: right; padding: 3px 0; border-bottom: 1px solid #DDD; }
.positionName.school { width: 30%; border-bottom: 0; }
.positionEmail.school { width: 40%; border-bottom: 0; }
.positionName.schoolA, .positionEmail.schoolA, .termEnds.schoolA { border-bottom: 0 !important; }
.termEnds.school { width: 30%; border-bottom: 0; }

.officialsCity { margin-top: 10px; border-top: 1px solid #000; padding-top: 10px; }
.officialDetails .filterDiv { background: #F6F6F6; border-radius: 0 0 10px 10px; }
.officialCenter { text-align: center; }
.officialRight { text-align: right; position: relative; }
.officialBreak { clear: both; height: 20px; }
.officialParty { width: 16px; display: inline-block; border-radius: 50%; text-align: left; height: 22px; line-height: 22px; padding-left: 6px; }
.officialPartyR { color: #C00; border: 1px #C00 solid; }
.officialPartyD { color: #00F; border: 1px #00F solid; }
.officialPartyAlt { width: 12px; display: inline-block; text-align: center; height: 16px; line-height: 17px; color: #FFF; }
.officialPartyAltR { background: #C00; }
.officialPartyAltD { background: #00F; }
.officialPartyAltI, .officialPartyAltO { background: #666; }
.officialPartyAltL { background: #FFDF00; color: #000; }

.termLengthDescription { display: none; position: absolute; z-index: 100; background: #DDD; border: 2px solid #BBB; border-radius: 5px; padding: 4px; text-align: center; right: 0; }
a.termLengthInfo { cursor: pointer; }
a:hover.termLengthInfo + div.termLengthDescription { display: block; }
.officialInfoDescription { display: none; position: absolute; width: 165px; z-index: 100; background: #DDD; border: 2px solid #BBB; border-radius: 5px; padding: 4px; text-align: center; }
a.officialInfoDescriptionInfo { cursor: pointer; }
a:hover.officialInfoDescriptionInfo + div.officialInfoDescription { display: block; }

/* FAQ */
.rightContent h2 { margin: 1.5em 0 1em; color: #2F4357; }
.faqLabel { float: left; width: 40px; font-size: 24px; color: #2F4357; text-align: center; padding-top: 15px; }
.faqText { float: left; width: calc(100% - 40px); }
.faqTextQ { font-weight: 700; }
.faqQA { border-bottom: 1px solid #DDD; padding-bottom: 1em; margin-bottom: 1em; }
.faqLast { border-bottom: none; }
.faqSection input[type="text"] { border: 2px solid #EEEEEE; width: calc(100% - 162px); padding: 5px; font-size: 18px; font-family: 'Poppins', sans-serif; margin: 1.5em 0; border-radius: 5px; }
.faqSection h2.faqFirst { margin-top: .5em; }

/* App */
.appLinks a { display: block; width: 25%; float: left; text-align: center; text-decoration: none; }
.appLinks a i { font-size: 40px; display: block; margin: 0 auto; line-height: 60px; }

/* Elections */
.electionYear h2 { margin: 1.5em 0 1em; color: #2F4357; }
.electionDetails { margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #DDD; }
.electionDetails b, .precinct b.lead, .precinctAlt b.lead { display: block; font-size: 18px; padding: 0 0 5px; }
.electionInfo { float: left; width: 50%; }
.electionLinks { float: right; width: 50%; }
.electionLinks a { display: block; font-weight: 700; }
.precinct a, .precinctAlt a { font-weight: 700; }
.electionLinks a i, .precinct a i, .precinctAlt a i { text-decoration: none; margin-right: 5px; }
.electionTypeDescription { display: none; position: absolute; width: calc(50% - 20px); z-index: 100; background: #DDD; border: 2px solid #BBB; border-radius: 5px; padding: 10px; }
a.electionTypeInfo { cursor: pointer; }
a:hover.electionTypeInfo + div.electionTypeDescription { display: block; }
a.precinctInfoIcon { cursor: pointer; }
a:hover.precinctInfoIcon + div.precinctInfoDescription { display: block; }

/* Elections - Detail Page */
.electionPage h3 { margin: 1.5em 0; font-size: 20px; }
.electionResults h3 { margin: 2em 0 1.5em; }
.resultsLink, .resultsCount { width: calc((100% - 60px) / 2); margin: 10px; float: left; padding: 20px 5px; background: #EEEEEE; border-radius: 5px; text-align: center; font-weight: 700; }
.resultsLink a { text-decoration: none; display: block; }
.resultsLink a i { margin-left: 10px; }
.resultsLink:hover { background: #DDD; }
.sampleBallots input[type="text"] { border: 2px solid #EEEEEE; width: calc(100% - 14px); padding: 5px; font-size: 18px; font-family: 'Poppins', sans-serif; margin-bottom: 40px; border-radius: 5px; }
.electionsBack { margin: 2em 0 0; text-align: center; }
#ballots:before { height: 80px; display: block; content: ''; margin-top: -80px; }
/* .electionGraph h3 { margin: 2em 0 1.5em; } */
.electionGraph .graphCat, .electionGraph .graphCatS, .electionGraph .graphNum, .electionGraph .graphNumS { height: 30px; line-height: 30px; float: left; font-weight: 700; font-size: 14px; }
.electionGraph .graphCat { width: 160px; text-align: right; margin-right: 5px; }
.electionGraph .graphCatS { width: 95px; text-align: right; margin-right: 5px; }
.electionGraph .graphNum { width: 55px; text-align: left; margin-left: 5px; }
.electionGraph .graphGraph { width: calc(100% - 225px); height: 20px; margin: 5px 0; float: left; background: #EEEEEE; }
.electionGraph .graphGraphS { width: calc(100% - 160px); height: 20px; margin: 5px 0; float: left; background: #EEEEEE; }
.electionGraph strong { color: #666; font-size: 18px; display: block; margin: 30px 0 5px; }
.graphSpacing { margin: 10px 0; }

.voterReg { margin: 0 auto; padding: 20px 0 50px; border-top: 1px solid #DDD; }
.voterReg .registerToVote { text-align: center; }
.voterReg .registerToVote a i { text-decoration: none; margin-right: 5px; }
.voterReg h3 { text-align: center; }
.voterReg .graphSpacing { margin: 10px auto 30px; max-width: 800px; }
.graphFill { height: 20px; float: left; }
.graphMetric { height: 30px; margin: -5px 5px; line-height: 30px; float: left; font-weight: 700; }
.graphDivider { height: 10px; margin-bottom: 10px; border-bottom: 1px solid #DDD; }
.graphHeader { margin: 2em 0 1em; font-size: 14px; }
.graphHeader h4 { margin: 0; font-size: 16px; }

/* Precincts */
.precinctList { display: flex; flex-wrap: wrap; width: calc(100% + 10px); margin: 0 -5px; }
.precinct { width: calc(50% - 20px); padding: 5px; margin: 5px; background: #EEE; }
.precinct:hover { background: #DDD; }
.mapLink.right { margin-right: 0; }
.precinctLocation { float: left; width: 50%; }
.precinctInfo { float: right; width: 50%; }
.precinctLocation { float: left; width: 50%; }
.precinctInfo { float: right; width: 50%; }
.pollingLocation { width: 100%; margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px dotted #DDD; }
.pollingLocation h4 { margin: 0; }
.pollingLocationPrecincts { margin-top:10px; }
.corePrecinctInfo a i { margin-right: 5px; text-decoration: none; }

/* News */
.newsItem { padding: 20px 0; border-bottom: 1px solid #DDD; }
.newsItem h3 { margin-top: 0; }
.newsDetail h1 { line-height: 38px; }
.newsItem.last { padding-bottom: 0; border-bottom: 0; }
.newsPhoto img { width: 100%; max-width: 600px; display: block; margin: 0 auto; height: auto; }
.newsVideoContainer { width: 100%; max-width: 800px; display: block; margin: 30px auto 20px; }
.newsVideo { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.newsVideo iframe, .newsVideo object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Forms */
.leftForm { float: left; width: calc(100% - 260px); }
.leftForm i, #pollForm i { font-style: normal; color: #C00; font-weight: 700; }
.leftForm ol, #pollForm ol { margin: 0; list-style-type: none; padding: 0; }
.leftForm ol label, #pollForm ol label { display: block; font-size: 14px; }
.leftForm ol input[type="text"], #pollForm ol input[type="text"], #pollForm ol input[type="email"] { font-family: 'Poppins', sans-serif; font-size: 16px; width: calc(100% - 12px); padding: 5px; border: 1px solid #DDD; margin-bottom: 1em; }
.leftForm ol input[type="submit"], #pollForm ol input[type="submit"] { display: block; width: 150px; font-family: 'Poppins', sans-serif; font-size: 16px; color: #FFF; text-align: center; border: 0; background: #2F4357; padding: 10px 0; margin: 1.5em 0 0; }
.leftForm ol select, #pollForm ol select { font-family: 'Poppins', sans-serif; font-size: 16px; width: 100%; pading: 5px; border: 1px solid #DDD; margin-bottom: 1em; }
.leftForm ol textarea, #pollForm ol textarea { font-family: 'Poppins', sans-serif; font-size: 16px; width: calc(100% - 12px); padding: 5px; border: 1px solid #DDD; margin-bottom: 1em; }
.contactInfo { float: right; width: 240px; margin-top: -1em; }

/* Bring into Other Sites */
#pollForm li.width50 { width: 49%; float: left; margin-right: 1%; }
#pollForm li.width40 { width: 39%; float: left; margin-right: 1%; }
#pollForm li.width33 { width: 32.3%; float: left; margin-right: 1%; }
#pollForm li.width30 { width: 29%; float: left; margin-right: 1%; }
#pollForm li.width25 { width: 24%; float: left; margin-right: 1%; }
#pollForm li.width20 { width: 19%; float: left; margin-right: 1%; }
#pollForm li.width50.right { width: 50%; margin-right: 0%; }
#pollForm li.width40.right { width: 40%; margin-right: 0%; }
#pollForm li.width33.right { width: 33.3%; margin-right: 0%; }
#pollForm li.width30.right { width: 30%; margin-right: 0%; }
#pollForm li.width25.right { width: 25%; margin-right: 0%; }
#pollForm li.width20.right { width: 20%; margin-right: 0%; }
#pollForm hr { margin-block-start: 10px; }

@media screen and (max-width: 600px) {
  #pollForm li.width50, #pollForm li.width40, #pollForm li.width33, #pollForm li.width30, #pollForm li.width25, #pollForm li.width20, #pollForm li.width40.right, #pollForm li.width33.right, #pollForm li.width30.right, #pollForm li.width25.right, #pollForm li.width20.right {
    width: 100% !important;
    margin: 0 !important;
    float: none;
  }
}
/* End Bring into Other Sites */

/* Maps */
.mapLink { float: left; width: calc(((100% - 40px) / 3) - 20px); float: left; margin: 0 20px 20px 0; padding: 25px 10px; background: #EEEEEE; border-radius: 5px; text-align: center; }
.ballotLink { float: left; width: calc((100% - 90px) / 3); margin: 10px; padding: 20px 5px; background: #EEEEEE; border-radius: 5px; text-align: center; }
.mapLink a, .ballotLink a { text-decoration: none !important; display: block; }
.mapLink a i, .ballotLink a i { display: block; font-size: 30px; line-height: 30px; margin-bottom: 10px; }
.mapLink:hover, .mapLink.right:hover, .ballotLink:hover { background: #DDD; }

/* Ballots */
.ballotRow { width: 100%; padding: .5em 0; border-bottom: 1px dotted #DDD; font-size: 14px; }
.ballotRow a { display: block; font-size: 16px; }
.ballotRow a i { text-decoration: none; margin-right: 5px; }

/* Filter */
.filterDiv { display: none; }
.show { display: block; }
.show.precinctList { display: flex; }
.listHidden { display: none !important; }
.active { background: #EEEEEE; }
.leftNav input[type="text"] { border: 1px solid #DDD; width: calc(100% - 10px); padding: 4px; font-size: 16px; font-family: 'Poppins', sans-serif; }

/* Footer */
#footer { border-top: 2px solid #000; padding: 20px 0; margin-top: 30px; font-size: 14px; line-height: 20px; }
.footerLeft { width: 25%; float: left; }
.footerCenter { width: 25%; float: left; text-align: center; }
.footerRight { width: 25%; float: left; text-align: right; }
#subFooter { background: #EFEFEF; width: 100%; font-size: 12px; }
#poweredBy { padding: 10px; width: 110px; float: none; height: 30px; line-height: 30px; margin: 0 auto; }
#poweredBy img { height: 30px; width: auto; float: right; margin-left: 6px; }
#poweredBy a { text-decoration: none !important; color: #413335 !important; }

/* Screen Sizes */
@media screen and (max-width: 1120px) {
  .container_first { margin-top: 90px !important; }
}

@media screen and (max-width: 1250px) {
  /* Maps */
  .mapLink, .mapLink.right, .officialDirectory, .officialDirectory.right { width: calc(((100% - 20px) / 2) - 20px); margin: 0 20px 20px 0; }
  .ballotLink { width: calc((100% - 60px) / 2); }
  .mapLink.even, .officialDirectory.even { margin-right: 0; }
}
@media screen and (max-width: 1075px) {
  .precinct { width: calc(100% - 20px); margin: 0 5px 20px; }
}
@media screen and (max-width: 1050px) {

  .offInfo, .offInfo4x { width: calc(100% - 160px); }
  .offContact, .offContact4x, .offName { width: 100%; float: none; text-align: left; }
  .offContact i, .offContact4x i { display: none; }
  .offContact.collapse, .offContact.collapse { display: none; }
  .offTerm, .offTerm4x { width: 160px; }

  /* Listings */
  .officialColumn3 { width: 66.6%; float: left; }
  .officialCenter i { display: none; }
  .officialCenter { text-align: left; }
  .officialCenter.collapse { display: none; }
  .officialRight { width: 33.3%; float: right; }

  /* Page Content */
  .cityList, .leftNav { width: 200px; }
  .rightContent, .officialDetails, .rightContentForm { width: calc(100% - 220px); }
  .faqSection input[type="text"], .officialDetails input[type="text"], .rightContent input[type="text"], { width:calc(100% - 172px); }



  /* Maps */
  .mapLink, .mapLink.right, .mapLink.even, .officialDirectory, .officialDirectory.right, .officialDirectory.even { width: calc(100% - 20px); margin: 0 0 20px; }
  .officialDirectory, .officialDirectory.right, .officialDirectory.even { min-height: 0; padding-bottom: calc(1em + 10px); }

  /* Footer */
  .footerLeft, .footerCenter { width: 33.33%; text-align: center; }
  .footerRight { width: 100%; float: none; margin-top: 20px; text-align: center; }
  .footerRight a i { margin: 0; }
  .clearMobile { clear: both; }
}
@media screen and (max-width: 900px) {
  .cityList { display: none; }
  .officialDetails { width: 100%; }
  .precinct, .precinct.even, .precinct.right { width: calc(100% - 20px); margin: 0 0 20px; }
  .positionEmail { width: 40%; }
  .positionName, .termEnds { width: 30%; }
}
@media screen and (max-width: 790px) {
  .officialColumn, .officialColumn3, .fedColumn1, .fedColumn2, .fedColumn3 { width: 100%; text-align: left; }
  .fedColumn1, .fedColumn2 { margin-bottom: 1em !important; }
  .officialColumn.collapse, .officialColumn3.collapse { height: 0; }
}
@media screen and (max-width: 700px) {
  body { font-size: 14px; line-height: 25px; }

  /* Officials Listings */
  .offInfo, .offInfo4x { width: 100%; }
  .offTerm, .offTerm4x { width: 160px; position: absolute; right: 0; }

  .resultsLink, .resultsCount { width: calc(100% - 10px); margin: 5px 0; }

  .container, .container_alt, .container_sm { width: calc(100% - 20px); max-width: calc(100% - 20px); }

  .precinct { margin-bottom: 10px; }

  /* Page Content */
  #pageContent .introduction, .electionPage .introduction { font-size: 16px; line-height: 24px; }
  .leftNav { display: none; }
  .rightContent, .rightContentForm { width: 100%; }

  /* Forms */
  .leftForm, .contactInfo { float: none; width: 100%; }
  .contactInfo { margin-top: 20px; padding-top: 1px; border-top: 1px solid #EEE; }

  /* Footer */
  .footerLeft, .footerCenter { width: 100%; float: none; padding-bottom: 20px; }
}
@media screen and (max-width: 550px) {

  .newsItem img { float: none; max-width: 100%; margin: 0 0 20px 0; }
  .slicknav_menu .slicknav_icon, .slicknav_menu .slicknav_icon-bar { width: 30px !important; }

  /* Highlighted Races */
  .electionGraph .graphCat { width: 100%; text-align: left; margin: 0; line-height: 20px; height: 20px; }
  .electionGraph .graphNum { width: 55px; text-align: left; margin-left: 5px; margin-bottom: 5px; }
  .electionGraph .graphGraph { width: calc(100% - 60px); margin-bottom: 5px; }
  .electionGraph .graphDivider { height: 5px; }

  /* News */
  .newsDetail img { display: block; margin: 15px auto; max-width: 400px !important; width: 100%; height: auto; float: none; }
}
@media screen and (max-width: 420px) {
  .faqSection input[type="text"], .officialDetails input[type="text"], .rightContent input[type="text"] { width: calc(100% - 14px); }
}

/* Election Detail Page */
.electionResults { text-align: center; }
.electionSection { background: #F6F6F6; padding: 10px 10px 0; border-radius: 0 0 5px 5px; margin: 20px 0 0; }
.electionSection p:last-child { margin-bottom: 0; }
.electionSection h2 { background: #2F4357; color: #FFF; padding: 10px; border-radius: 5px 5px 0 0; margin: -10px -10px 0; }
.electionSection h2 a { color: #FFF; text-decoration: none; display: block; }
.electionContent { padding: 0 0 10px; }
