/**
 * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, hr,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
main, article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

main, article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  text-align: left;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  text-align: inherit;
}

li {
  list-style-type: none;
}

a {
  color: inherit;
  text-decoration: inherit;
  outline: 0;
}

input,
textarea,
button,
select {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

input,
textarea {
  -moz-user-select: text;
}

textarea {
  line-height: inherit;
  resize: none;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  background: none;
  text-shadow: inherit;
}

a,
button,
select,
input[type=submit],
input[type=checkbox] {
  cursor: pointer;
}
a:disabled,
button:disabled,
select:disabled,
input[type=submit]:disabled,
input[type=checkbox]:disabled {
  cursor: auto;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

[hidden] {
  display: none !important;
}

td[hidden] {
  display: table-cell !important;
  visibility: hidden;
}

fieldset {
  min-width: 0;
}

@-moz-document url-prefix() {
  fieldset {
    display: table-cell;
  }
}
@font-face {
  font-family: "Aino";
  font-weight: normal;
  font-style: normal;
  src: url("/assets/aino-regular.eot");
  src: url("/assets/aino-regular.woff") format("woff"), url("/assets/aino-regular.woff2") format("woff2"), url("/assets/aino-regular.otf") format("opentype");
}
@font-face {
  font-family: "Aino";
  font-weight: bold;
  font-style: normal;
  src: url("/assets/aino-bold.eot");
  src: url("/assets/aino-bold.woff") format("woff"), url("/assets/aino-bold.woff2") format("woff2"), url("/assets/aino-bold.otf") format("opentype");
}
@font-face {
  font-family: "Museo Sans Cyrl";
  font-weight: 100;
  font-style: normal;
  src: url("/assets/3084E9_0_0.eot");
  src: url("/assets/3084E9_0_0.eot?#iefix") format("embedded-opentype"), url("/assets/3084E9_0_0.woff2") format("woff2"), url("/assets/3084E9_0_0.woff") format("woff"), url("/assets/3084E9_0_0.ttf") format("truetype");
}
@font-face {
  font-family: "Museo Sans Cyrl";
  font-weight: 300;
  font-style: normal;
  src: url("/assets/3084E9_1_0.eot");
  src: url("/assets/3084E9_1_0.eot?#iefix") format("embedded-opentype"), url("/assets/3084E9_1_0.woff2") format("woff2"), url("/assets/3084E9_1_0.woff") format("woff"), url("/assets/3084E9_1_0.ttf") format("truetype");
}
@font-face {
  font-family: "Museo Sans Cyrl";
  font-weight: 500;
  font-style: normal;
  src: url("/assets/3084E9_2_0.eot");
  src: url("/assets/3084E9_2_0.eot?#iefix") format("embedded-opentype"), url("/assets/3084E9_2_0.woff2") format("woff2"), url("/assets/3084E9_2_0.woff") format("woff"), url("/assets/3084E9_2_0.ttf") format("truetype");
}
@font-face {
  font-family: "Museo Sans Cyrl";
  font-weight: bold;
  font-style: normal;
  src: url("/assets/3084E9_3_0.eot");
  src: url("/assets/3084E9_3_0.eot?#iefix") format("embedded-opentype"), url("/assets/3084E9_3_0.woff2") format("woff2"), url("/assets/3084E9_3_0.woff") format("woff"), url("/assets/3084E9_3_0.ttf") format("truetype");
}
@font-face {
  font-family: "Museo Sans Cyrl";
  font-weight: 900;
  font-style: normal;
  src: url("/assets/3084E9_4_0.eot");
  src: url("/assets/3084E9_4_0.eot?#iefix") format("embedded-opentype"), url("/assets/3084E9_4_0.woff2") format("woff2"), url("/assets/3084E9_4_0.woff") format("woff"), url("/assets/3084E9_4_0.ttf") format("truetype");
}
body {
  background-color: white;
  color: #323334;
  font-family: Aino, sans-serif;
  font-size: 1.6rem;
  color: black;
}

strong {
  font-weight: bold;
}

.centered {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 6rem;
}
@media only screen and (max-width: 599px) {
  .centered {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
@media only screen and (max-width: 399px) {
  .centered {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }
}

section.centered {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page-heading {
  font-size: 3.6rem;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  color: black;
  line-height: 1.5;
}

.page-paragraph {
  white-space: pre-line;
  line-height: 1.5;
}
.white-button, .cyan-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  line-height: 1.3;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  font-weight: bold;
  font-size: 1.6rem;
  padding: 0 2.5rem;
  height: 4rem;
  line-height: 4.1rem;
  text-align: center;
}
.white-button:focus, .cyan-button:focus {
  outline-style: dashed;
  outline-width: 0.1rem;
  outline-offset: 0.2rem;
  -moz-outline-radius: 0.7rem;
}
.white-button:active, .cyan-button:active {
  outline: none;
}
.white-button:disabled, .cyan-button:disabled {
  cursor: auto;
  background: #f2f2f2;
  border-color: #d9d9d9;
  color: #aaa;
}

.link-button, #update-election-page main .candidates td .delete-button,
#update-election-page main .candidates td .restore-button,
#update-election-page main .candidates td .add-button, .page-paragraph a {
  cursor: pointer;
  color: #0078ff;
  -moz-outline-radius: 2px;
  text-decoration: underline;
}
.link-button:focus, #update-election-page main .candidates td .delete-button:focus,
#update-election-page main .candidates td .restore-button:focus,
#update-election-page main .candidates td .add-button:focus, .page-paragraph a:focus {
  outline-style: dashed;
  outline-width: 0.1rem;
  outline-offset: 0.2rem;
  outline-color: #0078ff;
  -moz-outline-radius: 0.7rem;
}

.cyan-button {
  background: #a9e8fa;
  color: black;
  border-radius: 5rem;
  box-shadow: 0 3px 4px 1px rgba(0, 0, 0, 0.06);
  text-transform: uppercase;
}
.cyan-button:focus {
  outline-color: black;
}
.cyan-button:active:focus:hover {
  box-shadow: inset 0 0.3rem 0.1rem rgba(0, 0, 0, 0.3);
}

.white-button {
  background: #f8f8f8;
  color: black;
  border-radius: 5rem;
  box-shadow: 0 3px 4px 1px rgba(0, 0, 0, 0.06);
  text-transform: uppercase;
}
.white-button:focus {
  outline-color: black;
}
.white-button:active:focus:hover {
  box-shadow: inset 0 0.3rem 0.1rem rgba(0, 0, 0, 0.3);
}

.form-label {
  display: block;
  font-weight: bold;
  line-height: 1.5;
}
.form-label + .form-input {
  margin-top: 0.5rem;
}
.form-label ~ .form-label {
  margin-top: 2rem;
}

.form-description {
  line-height: 1.5;
  white-space: pre-wrap;
}
.form-description + .form-input {
  margin-top: 0.5rem;
}

.form-input {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid silver;
  line-height: 1.4;
}
.form-input:focus {
  border-color: #0078ff;
  box-shadow: inset 0 0 2px #0078ff;
}
.form-input + .form-checkbox {
  margin-top: 2rem;
}

.form-checkbox {
  display: flex;
  line-height: 1.5;
  align-items: start;
}
.form-checkbox input[type=checkbox] {
  margin-top: 0.5rem;
  margin-right: 1rem;
}

textarea.form-input {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.form-fields + .form-submit {
  margin-top: 0.5rem;
}

.form-buttons {
  margin-top: 2rem;
}

#nav {
  padding: 4rem 0 2rem;
  line-height: 3rem;
  color: black;
  background: #96e97f;
  overflow: hidden;
}
#nav .home {
  font-weight: bold;
  font-size: 2rem;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  display: inline-block;
  vertical-align: middle;
}
#nav .home img {
  vertical-align: middle;
}
#nav .home:focus {
  outline: 1px dashed black;
}
#nav menu {
  display: inline-block;
}
#nav menu li {
  display: inline-block;
}
#nav .pages {
  margin-left: 2rem;
}
#nav .account {
  float: right;
}
#nav .account .account-name {
  font-weight: bold;
}
#nav .account form {
  display: inline-block;
}
#nav .account form button {
  line-height: inherit;
}
#nav menu a,
#nav menu form {
  margin-left: 0.5rem;
}
#nav menu a,
#nav menu button {
  border-radius: 0.3rem;
  border: 1px solid transparent;
  font-size: 1.3rem;
  display: inline-block;
  padding: 0 1rem;
}
#nav menu a.selected,
#nav menu button.selected {
  color: black;
  background-color: white;
  font-weight: bold;
}
#nav menu a:focus,
#nav menu button:focus {
  border: 1px dashed rgba(255, 255, 255, 0.8);
}
#nav menu a:hover,
#nav menu button:hover {
  border-color: white;
}

.vali-table {
  width: 100%;
  border-collapse: separate;
  line-height: 1.5;
}
.vali-table th {
  font-weight: bold;
  padding: 0.5rem 1rem;
}
.vali-table td {
  border: 1px solid #f0f1f2;
}
.vali-table td + td {
  border-left: none;
}
.vali-table tr + tr td {
  border-top: none;
}
.vali-table tr:first-child td:first-child {
  border-top-left-radius: 0.5rem;
}
.vali-table tr:first-child td:last-child {
  border-top-right-radius: 0.5rem;
}
.vali-table tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
.vali-table tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

.eid-view .tabs .tab {
  display: inline-block;
  background-color: #fbfbfb;
  border: 0.1rem solid #f0f1f2;
  line-height: 4.9rem;
  padding: 0 2rem;
  font-size: 1.6rem;
  margin-bottom: -0.1rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
}
.eid-view .tabs .tab img {
  max-height: 2rem;
  vertical-align: middle;
  pointer-events: none;
}
.eid-view .tabs .tab + .tab {
  margin-left: -0.1rem;
}
.eid-view .tabs .tab:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.eid-view .tabs .tab:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.eid-view.centered .tabs {
  text-align: center;
}
.eid-view.centered form {
  text-align: center;
}
.eid-view.centered form label {
  text-align: left;
}
.eid-view form {
  padding: 2rem 2rem 1rem;
  display: none;
  border: 0.1rem solid #f0f1f2;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  line-height: 1.5;
}
.eid-view form label {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 1.6rem;
}
.eid-view form input {
  display: block;
  margin-top: 0.5rem;
  max-width: 30rem;
  height: 3.6rem;
  line-height: 3.6rem;
}
.eid-view form p {
  line-height: 1.5;
}
.eid-view form button {
  position: relative;
  vertical-align: bottom;
  margin-bottom: 1rem;
  height: 3.6rem;
  line-height: 3.6rem;
}
.eid-view form button .spinner {
  display: none;
}
.eid-view form.pending button:disabled {
  color: transparent;
  cursor: wait;
}
.eid-view form.pending button:disabled .spinner {
  display: block;
  color: #bfbfbf;
}
.eid-view form .spinner {
  position: absolute;
  top: 0%;
  left: 0%;
  right: 0%;
  bottom: 0%;
  text-align: center;
}
.eid-view form .spinner span {
  display: inline-block;
  vertical-align: text-bottom;
  background: currentColor;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  animation: scale-of-3-children 1.6s infinite ease-in-out;
  animation-fill-mode: both;
}
.eid-view form .spinner span + span {
  margin-left: 1rem;
}
.eid-view form .spinner span:nth-child(2) {
  animation-delay: 0.3s;
}
.eid-view form .spinner span:nth-child(3) {
  animation-delay: 0.6s;
}
.eid-view form output {
  display: block;
  margin-bottom: 1rem;
  white-space: pre-line;
  font-size: 1.6rem;
}
.eid-view form output:empty {
  display: none;
}
.eid-view form .id-card-form output {
  margin-top: 1rem;
}
.eid-view form label + button {
  margin-top: 1rem;
}
body.no-js .eid-view .id-card-form button {
  display: none;
}
.eid-view input[name=method][value=id-card]:checked ~ .tabs .id-card-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
.eid-view input[name=method][value=id-card]:checked ~ .tabs .tab:first-child {
  border-bottom-left-radius: 0;
}
.eid-view input[name=method][value=id-card]:checked ~ .tabs .tab:last-child {
  border-bottom-right-radius: 0;
}
.eid-view input[name=method][value=id-card]:checked ~ .id-card-form {
  display: block;
  background: white;
}
.eid-view input[name=method][value=mobile-id]:checked ~ .tabs .mobile-id-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
.eid-view input[name=method][value=mobile-id]:checked ~ .tabs .tab:first-child {
  border-bottom-left-radius: 0;
}
.eid-view input[name=method][value=mobile-id]:checked ~ .tabs .tab:last-child {
  border-bottom-right-radius: 0;
}
.eid-view input[name=method][value=mobile-id]:checked ~ .mobile-id-form {
  display: block;
  background: white;
}
.eid-view input[name=method][value=smart-id]:checked ~ .tabs .smart-id-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
.eid-view input[name=method][value=smart-id]:checked ~ .tabs .tab:first-child {
  border-bottom-left-radius: 0;
}
.eid-view input[name=method][value=smart-id]:checked ~ .tabs .tab:last-child {
  border-bottom-right-radius: 0;
}
.eid-view input[name=method][value=smart-id]:checked ~ .smart-id-form {
  display: block;
  background: white;
}
@media only screen and (max-width: 549px) {
  .eid-view form label {
    display: block;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
  .eid-view form label input {
    width: 100%;
  }
}
@media only screen and (max-width: 499px) {
  .eid-view .tabs .tab {
    padding: 0 1.3rem;
    line-height: 4rem;
  }
  .eid-view .tabs .tab img {
    max-height: 1.7rem;
  }
}
@media only screen and (max-width: 350px) {
  .eid-view .tabs .tab {
    padding: 0 1rem;
  }
  .eid-view .tabs .tab img {
    max-height: 1.6rem;
  }
}

#header {
  padding: 4rem 0 4rem;
  color: black;
  background: #96e97f;
}
#header .breadcrumbs {
  line-height: 1.5;
  font-size: 2.4rem;
  font-weight: 700;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  margin-bottom: 1rem;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
#header h1 {
  line-height: 1;
  font-weight: 900;
  font-size: 4.8rem;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
@media only screen and (max-width: 375px) {
  #header h1 {
    font-size: 4rem;
  }
}

#creating-session-page main p {
  line-height: 1.5;
}
#creating-session-page main .verification-code {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#elections-page main #header {
  overflow: hidden;
}
#elections-page main #header p {
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  margin-top: 2rem;
  font-size: 1.8rem;
  line-height: 1.5;
}
#elections-page main #header img {
  width: 40rem;
  max-width: 50%;
  float: right;
  margin-left: 4rem;
}
@media only screen and (max-width: 950px) {
  #elections-page main #header img {
    max-width: 40%;
  }
}
@media only screen and (max-width: 790px) {
  #elections-page main #header img {
    max-width: 30%;
  }
}
@media only screen and (max-width: 700px) {
  #elections-page main #header img {
    display: none;
  }
}
#elections-page main #header menu {
  margin-top: 2rem;
}
#elections-page main #header menu .cyan-button {
  min-width: 25rem;
}
#elections-page main .elections {
  margin-top: 4rem;
}
#elections-page main .elections h2 {
  font-size: 3rem;
  font-family: "Museo Sans Cyrl", "Museo Sans", sans-serif;
  color: #0000F0;
  line-height: 1.5;
}
#elections-page main .elections .election + .election {
  margin-top: 2rem;
}

#election-page main #organizer-menu {
  margin-bottom: 2rem;
}
#election-page main #organizer-menu a + a {
  margin-left: 1rem;
}
#election-page main .election-description {
  margin-bottom: 2rem;
}
#election-page main #preview .candidates {
  margin-top: 1rem;
  border: 1px solid #f0f1f2;
  border-radius: 0.5rem;
}
#election-page main #preview .candidates li {
  line-height: 1.5;
  padding: 1rem 1.5rem;
}
#election-page main #preview .candidates li + li {
  border-top: 1px solid #f0f1f2;
}
#election-page main #voting-view .candidates {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #f0f1f2;
  border-radius: 0.5rem;
}
#election-page main #voting-view .candidates label {
  display: block;
  cursor: pointer;
  padding: 1rem;
  line-height: 1.5;
}
#election-page main #voting-view .candidates input[name=candidateId] {
  margin-left: 0.5rem;
  margin-top: 0.2rem;
  display: block;
  float: left;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  line-height: 3rem;
}
#election-page main #voting-view .candidates .name {
  margin-left: 4rem;
  font-size: 1.8rem;
  line-height: 1.5;
}
#election-page main #voting-view .signing-view .signature-methods .tab {
  display: inline-block;
  background-color: #fcfcfc;
  border: 0.1rem solid #f0f1f2;
  line-height: 4.9rem;
  padding: 0 2rem;
  font-size: 1.6rem;
  margin-bottom: -0.1rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
}
#election-page main #voting-view .signing-view .signature-methods .tab img {
  max-height: 2rem;
  vertical-align: middle;
}
#election-page main #voting-view .signing-view .signature-methods .tab + .tab {
  margin-left: -0.1rem;
}
#election-page main #voting-view .signing-view .signature-methods .tab:first-child {
  border-top-left-radius: 0.5rem;
}
#election-page main #voting-view .signing-view .signature-methods .tab:last-child {
  border-top-right-radius: 0.5rem;
}
#election-page main #voting-view .signing-view fieldset {
  padding: 2rem;
  display: none;
  border: 0.1rem solid #f0f1f2;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
#election-page main #voting-view .signing-view fieldset label {
  display: inline-block;
  margin-right: 1rem;
}
#election-page main #voting-view .signing-view fieldset label span {
  font-weight: 400;
  font-size: 1.4rem;
}
#election-page main #voting-view .signing-view fieldset input {
  display: block;
  margin-top: 0.5rem;
  max-width: 30rem;
  height: 3.5rem;
}
#election-page main #voting-view .signing-view fieldset button {
  height: 3.5rem;
  line-height: 3.5rem;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
}
#election-page main #voting-view .signing-view fieldset p {
  margin-top: 1rem;
  line-height: 1.5;
}
#election-page main #voting-view .signing-view fieldset output {
  display: block;
  margin-top: 1rem;
}
#election-page main #voting-view .signing-view #signature-method-tab-id-card:checked ~ #id-card-tab {
  display: block;
}
#election-page main #voting-view .signing-view #signature-method-tab-id-card:checked ~ .signature-methods .id-card-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
#election-page main #voting-view .signing-view #signature-method-tab-mobile-id:checked ~ #mobile-id-tab {
  display: block;
}
#election-page main #voting-view .signing-view #signature-method-tab-mobile-id:checked ~ .signature-methods .mobile-id-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
#election-page main #voting-view .signing-view #signature-method-tab-smart-id:checked ~ #smart-id-tab {
  display: block;
}
#election-page main #voting-view .signing-view #signature-method-tab-smart-id:checked ~ .signature-methods .smart-id-tab {
  background: white;
  border-bottom-color: white;
  color: black;
}
#election-page main #results-view .candidates {
  margin-top: 2rem;
}
#election-page main #results-view .candidates th, #election-page main #results-view .candidates td {
  padding: 0.5rem 1rem;
}

#create-election-page main input[name=title] {
  font-size: 2rem;
  height: 5rem;
  width: 100%;
  max-width: 60rem;
}
#create-election-page main textarea[name=candidates] {
  width: 100%;
  max-width: 60rem;
  min-height: 10rem;
  resize: vertical;
}

#update-election-page main input[name=title] {
  font-size: 2rem;
  height: 5rem;
  width: 100%;
  max-width: 60rem;
}
#update-election-page main fieldset {
  margin-top: 2rem;
}
#update-election-page main fieldset + button {
  margin-top: 4rem;
}
#update-election-page main textarea[name=voter_personal_ids] {
  width: 100%;
  max-width: 60rem;
  resize: vertical;
}
#update-election-page main .candidates .candidate.deleting {
  text-decoration: line-through;
  color: silver;
}
#update-election-page main .candidates td {
  padding: 0.8rem 1rem;
}
#update-election-page main .candidates td.buttons-column {
  text-align: right;
  border-left: 0;
  max-width: 8rem;
}
#update-election-page main .candidates td .delete-checkbox:checked ~ .delete-button,
#update-election-page main .candidates td .delete-checkbox:not(:checked) ~ .restore-button {
  display: none;
}
#update-election-page main .candidates .add-row td {
  padding: 0.5rem 1rem;
  text-align: center;
}
#update-election-page main .candidates .add-row td #new-candidates-toggle:checked + label,
#update-election-page main .candidates .add-row td #new-candidates-toggle:not(:checked) ~ p,
#update-election-page main .candidates .add-row td #new-candidates-toggle:not(:checked) ~ textarea {
  display: none;
}
#update-election-page main .candidates .add-row td p {
  margin-top: 1rem;
}
#update-election-page main .candidates .add-row td textarea {
  width: 100%;
  max-width: 60rem;
  min-height: 10rem;
  resize: vertical;
  margin-bottom: 1rem;
}
#update-election-page main .candidates tr:first-child td:first-child input {
  border-top-left-radius: 0.5rem;
}
#update-election-page main .candidates tr:last-child td:first-child input {
  border-bottom-left-radius: 0.5rem;
}
#update-election-page main textarea[name=description],
#update-election-page main textarea[name=organizer-personal-ids],
#update-election-page main textarea[name=voter-personal-ids] {
  width: 100%;
  max-width: 60rem;
  min-height: 10rem;
  resize: vertical;
}

#candidate-page main header .personal-id {
  display: block;
  margin-top: 1rem;
}
#candidate-page main #organizer-menu {
  margin-bottom: 2rem;
}
#candidate-page main #organizer-menu a + a {
  margin-left: 1rem;
}
#candidate-page main img {
  max-width: 60rem;
  display: block;
  margin-bottom: 2rem;
}

#update-candidate-page main header .personal-id {
  display: block;
  margin-top: 1rem;
}
#update-candidate-page main input[name=name] {
  font-size: 2rem;
  height: 5rem;
  width: 100%;
  max-width: 60rem;
}
#update-candidate-page main textarea[name=description] {
  width: 100%;
  max-width: 60rem;
  min-height: 16rem;
  resize: vertical;
}
#update-candidate-page main img {
  max-width: 60rem;
  display: block;
  margin: 1rem 0;
}

#votes-page main #organizer-menu {
  margin-bottom: 2rem;
}
#votes-page main #votes td {
  padding: 0.5rem 1rem;
}
#votes-page main #votes .overvoted {
  text-decoration: line-through;
  color: silver;
}
#votes-page main #paper-votes {
  margin-top: 4rem;
}
#votes-page main #paper-votes td {
  padding: 0.5rem 1rem;
}
#votes-page main #paper-votes .edit-button {
  color: #0078ff;
  display: inline-block;
  cursor: pointer;
}
#votes-page main #paper-votes .edit-row td {
  padding: 0.5rem 1rem;
  text-align: center;
}
#votes-page main #paper-votes .edit-row td #edit-paper-votes-toggle:checked + label,
#votes-page main #paper-votes .edit-row td #edit-paper-votes-toggle:not(:checked) ~ form {
  display: none;
}
#votes-page main #paper-votes .edit-row td form {
  margin: 1rem 0;
}
#votes-page main #paper-votes .edit-row td textarea {
  display: block;
  margin: 0.5rem auto;
  width: 100%;
  max-width: 60rem;
  min-height: 10rem;
  resize: vertical;
}
#votes-page main #paper-votes .edit-row td button {
  margin: 0.5rem auto;
  display: block;
}
#votes-page main #unsigned-voters {
  margin-top: 4rem;
}
#votes-page main #unsigned-voters p {
  margin-top: 0.5rem;
}
#votes-page main #unsigned-voters td {
  padding: 0.5rem 1rem;
}

#error-page main p {
  margin-top: 2rem;
}

@keyframes scale-of-3-children {
  0%, 50%, 100% {
    transform: scale(0);
  }
  25% {
    transform: scale(1);
  }
}
