body {
    font-size: 14px;
    line-height: 24px;
    font-family: 'Open Sans', sans-serif;
    color: #444444;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 2rem;
}

#main-content-wrapper {
    max-width: 900;
}

table {
    margin: 1em 1px;
    width: 99%;
    font-size: 1em;
    border-collapse: collapse;
    border: 1px solid #E5E5E5;
}

table th {
    background-color: #EFEFEF;
    color: #666;
    font-weight: bold;
    padding: 0.4em;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #E5E5E5;
}

table tr:hover td {
    background: #F8F8F8;
}

table td {
    padding: 0.4em;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #E5E5E5;
    vertical-align: top;
}

table td.centered {
    text-align: center;
}

a {
    color: #2d5793;
}

h2 {
    font-weight: bold;
    color: #2d5793;
    margin-top: 14px;
}

select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    display: block;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

select:invalid, select.invalid, textarea:invalid, textarea.invalid, input:invalid, input.invalid {
    border: 1px solid red;
}

.form-field {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px 0;
    max-width: 40em;
}

input[type="submit"] {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 4px;
    color: #fff;
    background-color: #337ab7;
    transition: background-color 0.15s ease, color 0.15s ease;
}

input[type="submit"]:hover {
    border-color: #06487b;
    background-color: #06487b;
    color: #fff;
}

input[type="submit"].disabled {
    background-color: #d0d7dd;
    border-color: #d0d7dd;
    color: #999797;
    cursor: not-allowed;
}

input[type="radio"]:disabled + label {
    color: #aaa;
}

#birthdate-warning {
    display: none;
}

#birthdate-warning.visible {
    display: unset;
}

@media only screen and (max-width: 767px) {
  tbody tr:first-child {
    display: none;
  }

  table tr {
    border: 1px solid #ccc;
  }

  table tr td {
    --title-width: max(30%, 150px);

    position: relative;
    width: calc(100% - var(--title-width) - 0.4em);
    display: inline-block;
    padding-left: var(--title-width);
  }

  table tr td::before {
    content: attr(data-title);
    position: absolute;
    left: 0.4em;
    font-weight: bold;
  }

  .form-field {
    flex-direction: column;
  }
}
