/* Color Theme Swatches in Hex */
.night-1-hex { color: #585B8C; }
.night-2-hex { color: #343959; }
.night-3-hex { color: #111826; }
.night-4-hex { color: #D99F6C; }
.night-5-hex { color: #A6695B; }

/* Color Theme Swatches in HSLA */
.night-1-hsla { color: hsl(236deg, 22%, 44%); }
.night-2-hsla { color: hsl(230deg, 26%, 27%); }
.night-3-hsla { color: hsl(219deg, 38%, 10%); }
.night-4-hsla { color: hsl(28deg, 58%, 63%); }
.night-5-hsla { color: hsl(11deg, 29%, 50%); }

:root {
    --bulma-primary: var(--primary);
    --bulma-primary-h: 236deg;
    --bulma-primary-s: 22%;
    --bulma-primary-l: 44%;
    --primary: #585B8C;
    --bulma-primary-invert-l: 100%;
    --bulma-text-h: 246deg;
    --bulma-text-s: 14%;
    --bulma-text-l: 10%;
    --bulma-scheme-main: #eeecf5;
    --bulma-link-text: --primary;
}

.navbar {
    --bulma-navbar-item-background-l-delta: -5%;
    --bulma-navbar-item-background-a: 0;
    --bulma-navbar-item-color-l: 90%;
    --bulma-navbar-burger-color: var(--bulma-scheme-main);
}

.box {
    --bulma-box-color: var(--bulma-primary-dark);
    --bulma-box-background-color: var(--bulma-scheme-main);
}

.card {
    --bulma-card-color: var(--bulma-primary-dark);
    --bulma-card-background-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-invert-l));
}

h1, h2, .title, p, li {
    color: hsl(var(--bulma-text-h), var(--bulma-text-s), var(--bulma-text-l));
}

.navbar-link, a.navbar-item:hover {
    background-color: var(--primary);
}

.box .subtitle {
    color: var(--primary);
    font-weight: var(--bulma-weight-bold);
}

.footer {
    --bulma-footer-background-color: var(--bulma-scheme-main);
    --bulma-footer-color: false;
    --bulma-footer-padding: 3rem 1.5rem 1rem;
}

.footer a {
    text-decoration: underline;
}

.footer p {
    color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-text-l));
}

.footer p strong {
    color: var(--bulma-primary);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bulma-primary: var(--primary);
    --bulma-primary-h: 246deg;
    --bulma-primary-s: 14%;
    --bulma-primary-l: 10%;
    --primary: #eeecf5;
    --bulma-primary-invert-l: 80%;
    --bulma-text-h: 236deg;
    --bulma-text-s: 22%;
    --bulma-text-l: 44%;
    --bulma-scheme-main: #585B8C;
    --bulma-text-invert-l: 80%;
  }

  .navbar {
    --bulma-navbar-item-background-l-delta: -5%;
    --bulma-navbar-item-background-a: 0;
    --bulma-navbar-item-color-l: 90%;
    --bulma-navbar-burger-color: var(--primary);
  }

  .box {
    --bulma-box-color: var(--bulma-primary-dark);
    --bulma-box-background-color: var(--bulma-primary);
  }

  .card {
    --bulma-card-background-color: var(--bulma-primary);
  }

  h1, h2, .title, p, li {
    color: hsl(var(--bulma-text-h), var(--bulma-text-s), var(--bulma-text-invert-l));
  }

  .navbar-link, a.navbar-item:hover {
    background-color: var(--bulma-scheme-main);
  }

  .box .subtitle {
    color: var(--bulma-primary-dark);
  }

  .footer p {
    color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-text-invert-l));
  }

  .footer p strong {
    color: var(--bulma-primary);
  }
}

html, body {
    min-height: 100vh;
}

.navbar {
    padding-left: 2em;
    padding-right: 2em;
    border-bottom-left-radius: var(--bulma-radius-large);
    border-bottom-right-radius: var(--bulma-radius-large);
}

/* Bulma Utilities */
.b-checkbox.checkbox {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Box-shadow on hover */
.b-checkbox.checkbox {
    outline: none;
    display: inline-flex;
    align-items: center;
}

.b-checkbox.checkbox:not(.button) {
    margin-right: 0.5em;
}

.b-checkbox.checkbox:not(.button) + .checkbox:last-child {
    margin-right: 0;
}

.b-checkbox.checkbox input[type=checkbox] {
    position: absolute;
    left: 0;
    opacity: 0;
    outline: none;
    z-index: -1;
}

.b-checkbox.checkbox input[type=checkbox] + .check {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid #7a7a7a;
    transition: background 150ms ease-out;
    background: transparent;
}

.b-checkbox.checkbox input[type=checkbox]:checked + .check {
    background: #00d1b2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
    border-color: #00d1b2;
}

.b-checkbox.checkbox input[type=checkbox]:checked + .check.is-light {
    background: whitesmoke url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:rgba(0, 0, 0, 0.7)' d='M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
    border-color: whitesmoke;
}

.b-checkbox.checkbox input[type=checkbox]:indeterminate + .check, .b-checkbox.checkbox input[type=checkbox].is-indeterminate + .check {
    background: #00d1b2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Crect style='fill:%23fff' width='0.7' height='0.2' x='.15' y='.4'%3E%3C/rect%3E%3C/svg%3E") no-repeat center center;
    border-color: #00d1b2;
}

.b-checkbox.checkbox input[type=checkbox]:indeterminate + .check.is-light, .b-checkbox.checkbox input[type=checkbox].is-indeterminate + .check.is-light {
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Crect style='fill:%230a0a0a' width='0.7' height='0.2' x='.15' y='.4'%3E%3C/rect%3E%3C/svg%3E") no-repeat center center;
    border-color: whitesmoke;
}

.b-checkbox.checkbox input[type=checkbox]:focus + .check {
    box-shadow: 0 0 0.5em rgba(122, 122, 122, 0.8);
}

.b-checkbox.checkbox input[type=checkbox]:focus:checked + .check {
    box-shadow: 0 0 0.5em rgba(0, 209, 178, 0.8);
}

.b-checkbox.checkbox input[type=checkbox]:focus:checked + .check.is-light {
    box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.8);
}

.b-checkbox.checkbox .control-label {
    padding-left: calc(0.75em - 1px);
}

.b-checkbox.checkbox.button {
    display: flex;
}

.b-checkbox.checkbox[disabled] {
    opacity: 0.5;
}

.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled) + .check {
    border-color: #00d1b2;
}

.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled) + .check.is-light {
    border-color: rgba(122, 122, 122, 0.6);
}

.b-checkbox.checkbox.is-small {
    border-radius: 2px;
    font-size: 0.75rem;
}

.b-checkbox.checkbox.is-medium {
    font-size: 1.25rem;
}

.b-checkbox.checkbox.is-large {
    font-size: 1.5rem;
}

.signature-pad--body canvas {
    width: 100%;
    height: 200px;
    border: 1px solid #000;
    background-color: hsl(221, 14%, 100%);
}

.error-header {
    font-size: 19rem;
    font-weight: 700;
    line-height: 22rem;
}

.error-header span {
    position: relative;
    z-index: 8;
    right: -7rem
}

.error-header img + span {
    right: 7rem
}

.error-header img {
     width:18rem;
    z-index: 10;
    position: relative;
    bottom: -1rem;
}

.is-fullheight-100vh {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}