* {
  box-sizing: border-box;
}
.hidden { display: none; }
[data-ready="no"] .hide-until-ready { display: none; }
[data-lang]:not([data-lang="en"]) .lang-en { display: none; }
[data-lang]:not([data-lang="es"]) .lang-es { display: none; }
[data-initmode]:not([data-initmode="drop"]) .initmode-drop { display: none; }
[data-initmode]:not([data-initmode="evip"]) .initmode-evip { display: none; }
[data-initmode]:not([data-initmode="pick"]) .initmode-pick { display: none; }
[data-initmode="drop"] .evip-button { display: none; }
[data-initmode="evip"] .drop-button { display: none; }
[data-mode]:not([data-mode="drop"]) .mode-drop { display: none; }
[data-mode]:not([data-mode="evip"]) .mode-evip { display: none; }
[data-mode]:not([data-mode="pick"]) .mode-pick { display: none; }
[data-state]:not([data-state="az"]) .state-az { display: none; }
[data-state]:not([data-state="mi"]) .state-mi { display: none; }
[data-state]:not([data-state="nv"]) .state-nv { display: none; }
[data-state]:not([data-state="pa"]) .state-pa { display: none; }
[data-state]:not([data-state="wi"]) .state-wi { display: none; }

html, body {  /* enable body.scrollTo() */
  height: 100%;
  overflow: auto;
}
body {
  margin: 0;
  color: #e8e8e8;
  background: #383355;
  line-height: 1.4;
}
b {
  color: #fff;
  text-shadow: 0 0 1px #fff;
}
a, :link {
  color: #95e;
}
:link:hover,
.place .directions:hover,
.popup-close:hover {
  opacity: 0.7;
}
body, input, select, option, button {
  font-family: "open sans";
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
section {
  margin: 1em 0 2em;
  padding: 0 2em;
  max-width: 100%;
}
input, select, option, button {
  background: #e8e8e8;
  border-radius: 6px;
  padding: 9px 12px;
}
select {  /* force Safari to respect our styling */
  -webkit-appearance: none;
  padding-right: 2em; /* make space for the chevron */
}
.select-container::after { /* draw the dropdown chevron */
  font-size: 20px;
  color: #aaa;
  content: '\2304';
  position: relative;
  right: 1.2em;
  bottom: 0.2em;
  pointer-events: none;
}
button {
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  border: 1px solid #ccc;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  background: #447;
  color: #ddd;
  padding: 8px 8px;
  margin: 0.2em 0;
}
button:hover {
  background: #669;
}
@media (hover: none) {
  [data-mode="drop"] button.drop-button,
  [data-mode="evip"] button.evip-button {
    background: #e8e8e8;
    color: #406;
    border: 1px solid #fff;
  }
}

header {
  margin: 12px 0;
  padding: 4px 0;
}

[data-lang="en"][data-state="all"] header {
  background: no-repeat right/contain url(america-votes-logo.png);
}
[data-lang="en"][data-state="az"] header {
  background: no-repeat right/contain url(az-votes-logo.png);
}
[data-lang="en"][data-state="mi"] header {
  background: no-repeat right/contain url(mi-votes-logo.png);
}
[data-lang="en"][data-state="nv"] header {
  background: no-repeat right/contain url(nv-votes-logo.png);
}
[data-lang="en"][data-state="pa"] header {
  background: no-repeat right/contain url(pa-votes-logo.png);
}
[data-lang="en"][data-state="wi"] header {
  background: no-repeat right/contain url(wi-votes-logo.png);
}

[data-lang="es"][data-state="all"] header {
  background: no-repeat right/contain url(america-vota-logo.png);
}
[data-lang="es"][data-state="az"] header {
  background: no-repeat right/contain url(az-vota-logo.png);
}
[data-lang="es"][data-state="mi"] header {
  background: no-repeat right/contain url(mi-vota-logo.png);
}
[data-lang="es"][data-state="nv"] header {
  background: no-repeat right/contain url(nv-vota-logo.png);
}
[data-lang="es"][data-state="pa"] header {
  background: no-repeat right/contain url(pa-vota-logo.png);
}
[data-lang="es"][data-state="wi"] header {
  background: no-repeat right/contain url(wi-vota-logo.png);
}

header h1 {
  font-size: 36px;
  line-height: 31px;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
header h2 {
  text-transform: none;
  font-size: 18px;
  font-weight: normal;
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 12px;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.container {
  max-width: 50em;
  margin: auto;
}
form {
  display: flex;
  flex-wrap: wrap;
  justify-content: full;
  gap: 1em;
  max-width: 48em;
}
#address {
  flex-basis: 24em;
  flex-grow: 1;
}
[data-ready="no"] #title-city, [data-ready="no"] #title-state, [data-ready="no"] #where {
  display: none;
}

#working, #when, #which, #sorry, #drop-alternate-lookup, #evip-alternate-lookup, #eday-alternate-lookup, #plan, #place-actions, #bready {
  display: none;
}
.texting-consent {
  display: none;
}
aside {
  margin: 1em 0;
}
.spinner {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin-left: 0.25em;
}
#calendar {
  display: grid;
  grid-template-columns: 4em repeat(7, 3em);
}
#calendar .day, #calendar .weekday {
  text-align: center;
}
#calendar .weekday {
  padding: 0.5em 0;
  opacity: 0.5;
}
#calendar .day, #calendar .month, .place {
  padding: 0.5em;
  border-radius: 0.25em;
}
#calendar .month {
  text-align: left;
  font-weight: bold;
}
#selected-date, #plan-date, #plan-location, #plan-hours {
  font-weight: bold;
}
#columns {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}
#places {
  flex-basis: 24em;
  flex-grow: 1;
  max-width: 30em;
}
#map {
  flex-basis: 320px;
  flex-grow: 1;
  height: 360px;
  max-height: 50vh;
  border-radius: 6px;
}
.place {
  padding: 0.5em 1em;
  display: flex;
  margin: 0.1em 0 1em;
  background: #434;
}
.place h3 {
  color: #fff;
}
.day:hover, .place:hover, .month.hovered {
  cursor: pointer;
  background: #534;
  box-shadow: 0px 0px 12px #c68;
}
.day.selected, .place.selected, .month.selected {
  background: #845;
  box-shadow: 0px 0px 12px #634;
}
.place input[type="radio"] {
  transform: scale(1.5);
  margin: 4px 12px 0 0;
  align-self: start;
}
.place .details {
  flex-grow: 1;
}
.place .pin {
  float: right;
  padding: 0 0 6px 6px;
  opacity: 1:
}
.place .directions-outline {
  fill: #444;
}
.place .directions-diamond {
  fill: #666;
}
.place.selected .directions-outline {
  fill: #fff;
}
.place.selected .directions-diamond {
  fill: #58e;
}
button[disabled] {
  background: #aaa; color: #666;
}
#place-actions {
  margin: 1em 0;
  color: #000;
  background: #e0dcff;
  padding: 12px;
  border-radius: 6px;
}
#place-actions h2 {
  margin-bottom: 0;
}
#place-actions button {
  margin: 1em 0;
}
#plan-summary, #bring {
  margin-bottom: 1em;
}
.row {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 1em;
}
#phone-field {
  margin-top: 12px;
  margin-right: 1em;
  width: 12em;
}
.popup {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}
.popup#bready {
  padding-top: 96px;
}
.popup-content {
  margin: auto;
  max-width: 600px;
  padding: 24px;
  line-height: 1.5;
  color: #406;
  background: #eee;
  box-shadow: 3px 3px 12px 6px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.popup-close {
  float: right;
  margin: 0 0 12px 12px;
  font-family: monospace;
  font-weight: bold;
  font-size: 32px;
  line-height: 16px;
  text-shadow: 0 0 1px black;
  cursor: pointer;
}
.popup h3 {
  margin: 1em 0;
}
.popup hr {
  margin: 24px -24px;
}
.popup ul {
  padding-left: 2em;
}
.popup h3 {
  margin-top: 0.5em;
  font-weight: normal;
}
.popup .note {
  padding: 12px 18px;
  background: #e0dcff;
  border: 1px solid #d0c0ff;
}

footer {
  width: 100%;
  padding: 2em 1em;
  font-size: 10px;
  color: #fff;
  opacity: 0.5;
  z-index: -1;
}

footer a, footer a:visited, footer a:link {
  color: #fff;
  text-decoration: none;
}

.footer-top {
  text-align: center;
  width: 200px;
  margin: 0 auto;
  padding: 20px;
}

.logo-footer {
  height: 45px;
  margin-top: 25px;
}

.footer-container.texting-consent {
  margin-bottom: 2em;
}

.footer-container {
  text-align: center;
  margin: auto;
  width: 80%;
}

.footer-container ul {
  display: inline-block;
  height: 100%;
  vertical-align:top;
  padding: 5px 40px 40px 40px;
  text-align: left !important;
}

.footer-list {
  color:white;
  display:inline-block;
  height: 100%;
  vertical-align:top;
  padding: 20px;
}

.footer-list-item {
  list-style:none;
  padding-bottom: 5px;
  color:white;
}

.footer-list-item a {
  color:white;
  text-decoration: none;
}

.footer-list-title {
  color:white;
  text-decoration: none;
  list-style: none;
  font-size: 10px;
  font-weight:600;
  margin-bottom:5px;
}

@media only screen and (max-width:480px) {
  section {
    padding: 0 1em;
  }
  body, select, option, h3 {
    font-size: 14px;
  }
  h2 {
    font-size: 16px;
    margin: 0.7em 0;
  }
  .place {
    padding: 0.5em;
  }
  #map {
    max-height: 30vh;
  }
  .popup, .popup-content {
    padding: 16px;
  }
  .popup-content {
    max-height: calc(100vh - 64px);
  }
  .popup hr {
    margin: 16px -16px;
  }
  .footer-container {
    width: 100%;
  }
  .footer-container ul {
    margin: 15px auto;
    width: 33% !important;
    display: block;
  }
  #phone-field {
    margin-right: 0.75em;
    width: 10em;
  }
  .row {
    flex-wrap: wrap;
  }
}
