/* global styles and resets */

html {
  margin: 0;
  padding: 0;
  height: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  max-width: 100%;
  margin: 0;
  border-top: 5px solid #00bce4;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

strong {
  font-weight: bold;
}

input,
button {
  transition: .3s;
}

a {
  text-decoration: none;
  color: #00bce4;
}

a:hover {
  text-decoration: underline;
}


::-moz-focus-inner {
  padding: 0;
  border: 0;
}

h1 {
  color: #646464;
  font-family: 'Open Sans Bold', Verdana, Helvetica, sans-serif;
  font-size: 2.2em;
}

h2, * {
  font-family: 'Open Sans', Verdana, Helvetica, sans-serif;
}

/* custom TurboVote fonts */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local("Open Sans Bold"), local("OpenSans-Bold"), url("https://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzKRDOzjiPcYnFooOUGCOsRk.woff") format("woff");
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local("Open Sans Light"), local("OpenSans-Light"), url("https://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTaRDOzjiPcYnFooOUGCOsRk.woff") format("woff");
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local("Open Sans Semibold"), local("OpenSans-Semibold"), url("https://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSqRDOzjiPcYnFooOUGCOsRk.woff") format("woff");
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url("https://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
}

.container {
  min-height: 100%;
  position: relative;
}

#app {
  max-width: 1024px;
  padding-bottom: 260px;
  margin: 0 auto;
}

#app p {
  max-width: 536px;
  color: #646464;
}

#app .online-voter-registration-step p {
  max-width: 536px;
}

#app .online-voter-registration-step .button-wrapper {
  display: inline-block;
}

header {
  max-width: 1024px;
  margin: 0 auto;
  height: 50px;
}

header ul {
  list-style-type: none;
  right: 0;
  display: block;
  float: right;
}

header ul li {
  float: left;
  display: block;
  padding: 0 10px;
  line-height: 14px;
  border-right: 1px solid #00bce4;
}

header ul li:last-of-type {
  border-right: none;
}

header ul li a {
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  color: #00bce4;
}

footer {
  bottom: 0;
  left: 0;
  height: 200px;
  position: absolute;
  margin-bottom: 0;
  margin-top: 80px;
  width: 100%;
  background-color: #00bce4;
  color: #ffffff;
}

div#app footer .footer-container {
  max-width: 1024px;
  margin: 0 auto;
}

div#app footer ul {
  list-style-type: none;
  float: left;
  padding-left: 0;
  margin-right: 50px;
  font-size: 13px;
}

div#app footer ul li {
  line-height: 24px;
}

div#app footer a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

div#app footer p.legal {
  float: right;
  font-size: 13px;
  color: #ffffff;
}

/* language toggle settings */

ul.languages li {
  text-transform: uppercase;
}

.inline ul.languages {
  list-style-type: none;
}

.inline ul.languages li {
  display: inline;
  font-size: 13px;
}

.inline ul.languages li.selected {
  color: #b9bcc3;
}

.inline ul.languages li:before {
  color: #000000;
  content: " | ";
}

.inline ul.languages li:first-child:before {
  content: none;
}

footer ul.languages li.selected {
  color: #646464;
}

/* The following are the recommended styles for visually hiding content that will be read by a screen reader.
 reference: http://webaim.org/techniques/css/invisiblecontent/ */
.hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  top: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #646464;
}

h1#logo {
  background-repeat: no-repeat;
  color: #ff3232;
  display: block;
  font-family: 'Open Sans', Verdana, Helvetica, sans-serif;
  font-size: 54px;
  font-weight: 300;
  height: 90px;
  letter-spacing: normal;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  padding-left: 60px;
  width: 400px;
}

h1#logo span.logo-vote {
  font-weight: 600;
  color: #2463af;
}

h2 {
  font-weight: normal;
}

.welcome-step h2 {
  font-size: 36px;
  line-height: 42px;
  font-weight: 300;
  color: #9d9d9d;
}

.welcome-step h3 {
  font-weight: 300;
  font-size: 20px;
  line-height: 25px;
  color: #646464;
}

div.progress {
  height: 0;
}

button {
  text-transform: uppercase;
  font-size: 14px;
  background-color: #00bce4;
  border: none;
  height: 40px;
  color: white;
  width: 258px;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline;
  margin-right: 20px;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

button.disabled {
  background-color: #9d9d9d;
}

button#continuebutton {
  background-position: 80% 50%;
  background-repeat: no-repeat;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAYAAACwXJejAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIFJREFUeNpiYEACX759NwBiAQZcAKrgPRCfx6oQScF%2FKEZRyAjl3AdidN0XgNiRh4vzAxOIAHIKsbjAAIj3gwxhRLIyAUjNx6L4AiOa2%2FYDKQd0VUxICuZjUwAEC%2BAKkHyGjMHWM0F9Z4DNBKCnEpHdIgANGxQTsAUoTCGGAoAAAwDVLXvDwZjF7gAAAABJRU5ErkJggg%3D%3D);
}

.continueloading {
    display:block;
    width: 1024px;
    padding-left: 285px;
    padding-bottom: 2px;
    height: 40px;
    color: #646464;
    font-size: 14px;
    vertical-align: middle;
}

.continueloading img {
    padding-top: 5px;
    max-width: 30px;
    max-height: 30px;
    margin-right: 7px;
    float: left;
}

.continueloading span {
    line-height: 40px;
}

button#backbutton {
  color: #646464;
  background-color: #f1f2f4;
}

.multiple-choice button {
  width: 536px;
}

.input-row, .checkbox-wrap {
  margin-bottom: 16px;
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 536px;
  color: #00bce4;
  border: none;
  font-size: 24px;
  line-height: 24px;
  height: 50px;
  padding-left: 19px;
  font-weight: 300;
  background-color: #f1f2f4;
  box-sizing: border-box;
  max-width: 100%;
}

input#firstname {
  width: 382px;
  margin-right: 20px;
}

input#middlename {
  width: 134px;
}

input#city {
  width: 382px;
  margin-right: 20px;
}

input.validation-error {
  border: 2px solid red;
}

.checkbox-border.validation-error, select.validation-error {
  border: 2px solid red;
}

.checkbox-border {
  display: inline-block;
}

p.validation-error {
  margin-bottom: 0;
}

.vertical-spacer {
  display: inline-block;
  vertical-align: top;
}

select {
  border: none;
  color: #00bce4;
  font-size: 24px;
  line-height: 24px;
  height: 50px;
  background-color: #f1f2f4;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: 110px 50%;
  background-repeat: no-repeat;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAALCAYAAABPhbxiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIdJREFUeNpiYCATMCJzdu45kgCk%2BoHY0d3F5gKSuACQ2g%2FEF4DiiSgaoZrmQ7kfYJqRNBlA5RaANDNi0cSApDkQ6gIDNLkFLFBGPxZvwGzCBhKYoAxHqA3EgkRkPxpAbRAgpAnoxwXooUpIM1gTRnQQ0AzXhFUjDs0omnBqRNNciK4JBAACDAAoNDc3XBJt7QAAAABJRU5ErkJggg%3D%3D);
  border-radius: 0;

}

div.campus-addresses {
  margin-bottom: 40px
}

div.campus-addresses select {
  width: 380px;
  padding-left: 18px;
  background-position: 355px 50%
}

div.campus-addresses div.button-wrapper {
  display: inline-block;
  position: relative;
  left: 5px;
  top: -4px;
}

div.campus-addresses div.button-wrapper button {
  height: 50px;
  width: 150px;
}

select.placeholder {
  color: #646464;
}

select#state {
  height: 50px;
  width: 134px;
  padding-left: 18px;
  font-weight: 300;
  max-width: 100%;
  padding-bottom: 0px;

}

select#party {
  height: 50px;
  width: 536px;
  font-weight: 300;
  margin-bottom: 16px;
  padding-bottom: 9px;
  max-width: 100%;
  background-position: 512px 50%;
  padding: 0 24px 0 8px;
  line-height: 50px;
}

::-webkit-input-placeholder {
  color: #646464;
  padding-top: 4px;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #646464;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #646464;
}

:-ms-input-placeholder {
  color: #646464;
  padding-top: 4px;
}

.party-selection-step select.placeholder, .party-selection-step ::-webkit-input-placeholder {
  color: #646464;
  padding-top: 4px;
}

.party-selection-step :-moz-placeholder {
  /* Firefox 18- */
  color: #646464;
}

.party-selection-step ::-moz-placeholder {
  /* Firefox 19+ */
  color: #646464;
}

.party-selection-step :-ms-input-placeholder {
  color: #646464;
  padding-top: 4px;
}

.absentee-excuse-step .excuse {
    margin-top: 1em;
}

.absentee-excuse-step-excuse-label {
  vertical-align: top;
  width: 40em;
  max-width: 90%;
  margin-left: 0.5em;
  position: static;
  text-transform: none;
  letter-spacing: normal;
  display: inline-block;
}

.vertical-spacer {
  display: inline-block;
  vertical-align: top;
}

.back-continue-button-wrap {
  margin-top: 20px;
  display: -webkit-box;
  display: -moz-box;
  -moz-placeholder-flex-direction: row-reverse;
  -moz-justify-content: flex-end;
  -moz-flex-wrap: wrap;
  display: -ms-flexbox;
  -ms-flex-direction: row-reverse;
  -ms-flex-pack: end;
  -ms-flex-wrap: wrap;
  display: -webkit-flex;
  -webkit-flex-direction: row-reverse;
  -webkit-justify-content: flex-end;
  -webkit-flex-wrap: wrap;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.date-row {
  width: 536px;
}

.date-row input {
  width: 30%;
}

.date-row-spacer {
  width: 5%;
  text-align: center;
  display: inline-block;
  font-size: 24px;
}

span.v {
  background-image: url("../img/blue-heart.png");
  height: 12px;
  width: 14px;
  display: inline-block;
  background-position: 0px 0px;
}

.done-step ol {
  list-style-image: url(../img/blue-heart-bullet.png);
}

.done-step ol li {
  margin-bottom: 20px;
}

@media all and (max-width: 1024px) and (min-width: 601px) {
  header {
    padding: 0 20px;
  }
  div#app {
    max-width: 1024px;
    padding-bottom: 260px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
  }
  .footer-container {
    padding: 0 20px;
  }
}

@media all and (max-width: 600px) {
  div#app {
    margin-left: 20px;
    margin-right: 20px;
  }
  header {
    margin-left: 20px;
    margin-right: 20px;
    height: 30px;
  }
  footer {
    bottom: 0;
    height: 200px;
    position: absolute;
    margin-bottom: 0;
    margin-top: 80px;
    background-color: #00bce4;
  }
  .footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: absolute;
    width: 100%;
    background-color: #00bce4;
    color: #ffffff;
  }
  .footer ul {
    float: none;
    display: inline;
  }
  div#app footer ul.social {
    float: none;
    margin-right: 0;
  }
  div#app footer ul.legal {
    float: none;
    margin-right: 0;
  }
  div#app footer ul.languages {
    float: none;
    margin-right: 0;
  }
  footer ul:last-of-type {
    margin-right: 0;
  }
  footer ul li {
    line-height: 20px;
  }
  input#firstname, input#middlename, input#lastname, input#nickname {
    width: 100%;
    margin-right: 0;
  }
  h1#logo {
    margin-top: 30px;
    width: 80%;
    background-size: contain;
  }
  button {
    width: 100%;
    margin-bottom: 20px;
    margin-right: 0;
  }
  .are-you-registered-to-vote-step button {
    width: 100%;
  }
  .communication-pref-step input[type="text"], .communication-pref-step input[type="tel"], .communication-pref-step input[type="email"] {
    width: 100%;
    margin-bottom: 0;
    margin-right: 0;
  }
  input#city {
    margin-right: 0px;
    width: 100%;
  }
  select#party {
    background-position: calc(100% - 10px) 50%;
  }
  select#state {
    height: 50px;
    width: 100%;
    font-size: 24px;
    line-height: 24px;
    font-weight: 300;
    background-color: #f1f2f4;
    border: none;
    padding-right: 20px;
    background-position: calc(100% - 10px) 50%;
  }
  input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    -webkit-appearance: none;
    border-radius: 0;
  }
  .vertical-spacer {
    display: block;
    margin-bottom: 20px;
  }
  .multiple-choice button, select#party, .date-row {
    width: 100%;
  }
  .dob-step input[type="text"] {
    width: 30%;
  }
  div.campus-addresses select {
    font-size: 5vw;
    min-width: 77%;
    width: 77%;
    text-overflow: ellipsis;
  }

  div.campus-addresses div.button-wrapper button {
    width: 100%;
  }
  form.desired-registration-address-step input[type="text"], form.desired-registration-address-step select {
    font-size: 5vw;
  }
}

.loading {
  background-image: url("../img/loading.gif");
  height: 50px;
  width: 50px;
  display: block;
}

input.ca-disabled, select.ca-disabled {
  color: #646464;
}
