html {
  /* Make sure the footer stays at the bottom of the page */
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

body {
    margin-bottom: 170px; /* Margin bottom by footer height */
    height: 100%;
}

h1, h2, h3, h4, h5 {
  color: #432460;
}

a {
  color: #4f3388;
}

a:hover {
  color: #9e9e9e;
}

/*=============================================================================
    Everything on header page
=============================================================================*/

#logoContainer {
  width: 100%;
  background-color: rgba(79,51,136, 1);
}

#logo {
  padding: 16px 20px 8px 5px;
  max-width: 100%;
}

#logo1 {
  max-width: 20%;
}

#logo2 {
  max-width: 80%;
}

a.skip-main {
  opacity: 0;
  margin-left: auto;
  margin-right: auto;
}

a.skip-main:not(:focus):not(:hover) {
  opacity: 0;
  font-size: 0;
}

a.skip-main:focus {
  opacity: 1;
}

#headerContainer {
  background-color: #3C1D58;
  margin-bottom: 20px;
}

#header {
  font-size: calc(16px + 0.3vw);
  padding: 5px 0px 5px 5px;
}

#header, .footertext {
  color: #FFFFFF;
}

.nav-link, #header a {
  color: rgba(255,255,255,.7) !important;
}

.nav-link:hover, #header a:hover {
  color: rgba(255,255,255,1) !important;
}

.nav-item{
  justify-content: end;
}

.navbar-toggler {
  color: rgba(255,255,255,1) !important;
}

#main-menu-navlink-top, #skip-menu-navlink-top {
  display: none !important;
}
#main-menu-navlink-collapse, #skip-menu-navlink-collapse {
  display: inline !important;
}

/* #main-menu-navlink-collapse a, #skip-menu-navlink-collapse a {
  color: rgba(255,255,255,1) !important;
} */


#skip-menu-navlink-collapse {
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

@media (min-width: 992px) {
  #main-menu-navlink-top, #skip-menu-navlink-top {
    display: inline !important;
    font-size: 1.2em !important;
  }
  #main-menu-navlink-collapse, #skip-menu-navlink-collapse {
    display: none !important;
  }
}

.container-fluid {
  height: 100%;
}

/*=============================================================================
    Below header page but still near top
=============================================================================*/

.noscript {
  width: 100%;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: indianred;
  color: white;
  font-weight: bold;
}

#printHeader {
  display: none;
}

#reportHeader {
  /* display: inline; */
  max-width: 70%;
}

#login-greeting-container {
  vertical-align: middle;
}

.login-greeting {
  padding: 0px 0px 0px 0px;
}

#message {
  color: #0055DD;
  background: white;
  width: 100%;
}

#message a {
  color: rebeccapurple;
}

/* Server-side errors */
.errors {
  color: red;
  background: #FFFFFF;
  width: 100%;
  list-style: inside;
}

.errors ul {
  margin-bottom: 0;
  padding-left: 1em;
  background: #FFFFFF;
}

/*=============================================================================
    Global styles for forms and buttons
=============================================================================*/

#form_container {
  padding: 0;
}

input, select, textarea {
  border: 1px solid #4f3388 !important;
}

input:required {
  box-shadow: none;
}

input:-internal-autofill-selected  {
    background-color: white !important;
    color: #495057 !important;
}

input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #432460 !important;
  opacity: 1 !important; /* Firefox */
}

label {
  font-weight: bold;
}

option {
  max-width: 100%;
}

.custom-select {
  color: black;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #432460 !important;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #432460 !important;
}

.btn-primary,
.btn-primary:active,
.btn.active,
.btn-lg:active,
.show > .btn-primary:focus,
.show > .btn-primary:active {
  background-color: #724cb5;
  border: none;
  box-shadow: none;
}

.btn-secondary {
  /* background-color: rgba(114, 76, 181, 0.85);
  border-color: #724cb5; */
}

.btn-secondary:hover {
  /* background-color: #724cb5;
  border-color: #724cb5; */
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #4d288f;
}

.dropdown-item.active {
  background-color: #8e75ba;
}

input:not(:focus), button:not(:focus), select:not(:focus) {
  box-shadow: none;
}

.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Client-Side Error styles */

.invalid {
  /* box-shadow: 0 0.15em 0.15em -0.1em rgba(4, 4, 4, 0.1); */
  border: 2px solid #ff6666 !important;
}

.invalid:focus {
  box-shadow: 0 0 4px red;
}

.error {
  display: none;
  color: darkred;
  font-size: 0.9em;
}

.invalid + .error {
  display: block;
}

.excelButton {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #4f3388;
  margin-bottom: 1rem;
}

.excelButton:hover {
  color: #9e9e9e;
  text-decoration: underline;
}

/*=============================================================================
    Form for selecting records to display
=============================================================================*/

.dt-length {
  margin-right: 20px;
}

.columnSearch {
  min-width: 200px;
}

.flexbox {
  flex-wrap: wrap;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-item {
  margin-right: 10px;
  margin-bottom: 5px;
  max-width: 100%;
  min-width: 250px;
}

.input-group-text {
  color: black;
  border: 1px solid #8156cf;
  background-color: #e6e5f7;
  width: 85px;
}

.flex-button {
  min-width: 0px;
  max-width: 120px;
}

.pagination-container {
  width: 70%;
  float:left;
}

.pagination {
  margin: 0;
}

.pagination li:hover{
  cursor: pointer;
}

/*=============================================================================
    Table styles
=============================================================================*/

table th {
    width: auto !important;
}

/* Button to show details on smaller screens */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
  background-color: rebeccapurple;
}

#genealogyTable > tbody > tr:nth-of-type(2n+1), #highlighted {
  --bs-table-accent-bg: none !important;
}

.table thead th {
  border-bottom: 2px solid #8156cf;
  border-top: 1px solid #8156cf;
}

.table {
  border-bottom: 2px double #8156cf;
}

.hiddenColumn {
  display: none;
}

/* .table-striped tbody tr:nth-of-type(2n+1) {
  background-color: #d9e8fc !important;
} */


.table-striped tbody td {
  border-top: 1px solid #c8ddfa !important;
  border-bottom: none !important;
}

.table-striped tr:hover {
  background-color: #b0ccf2 !important;
  border-top: 1px solid #d9e8fc !important;
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background-color: #b0ccf2 !important;
  border-top: 1px solid #d9e8fc !important;
}

.editbutton, .modifybutton {
  padding: 0;
}

.editbutton:hover, .modifybutton:hover {
  padding: 0;
}

.editbutton .fa-pencil-alt:hover {
  background-color: royalblue;
  color: white;
  border: 1px solid #2c59e0;
}

.editbutton .fa-pencil-alt {
  color: royalblue;
  background-color: #F5F5F5;
  padding: 5px;
  border-radius: .2rem;
  border: 1px solid #a7a1a1;
}

.fa-pen-alt {
  color: #027002;
  background-color: #F5F5F5;
  padding: 5px;
  border-radius: .2rem;
  border: 1px solid #a7a1a1;
}

.fa-pen-alt:hover {
  background-color: #008000;
  color: white;
  border: 1px solid #037303;
}

.fa-trash-alt {
  color: #CD5C5C;
  background-color: #F5F5F5;
  padding: 5px 6px 5px 6px;
  border-radius: .2rem;
  border: 1px solid #a7a1a1;
}

.fa-trash-alt:hover {
  background-color: #CD5C5C;
  color: white;
  border: 1px solid #cc4a4a;
}

#highlighted, #highlighted td {
  background-color: #fff1b9 !important;
}

#highlighted td {
  border-top: 1px solid #f9d772 !important;
  border-bottom: 1px solid #f9d772 !important;
}

#highlighted > * {
  box-shadow: none;
}

.invisible, .highlight-row {
  display: none;
}

table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
  box-shadow: inset 0 0 0 9999px #dfedff;
}

/*=============================================================================
    Inline Table Edit Fields
=============================================================================*/

@media (min-width: 900px) {
  .admin-table .inline-edit-cell:hover {
    color: mediumblue;
  }
}
.inline-edit-form {
  display: inline;
}

.inline-edit-field {
  display: none;
  border-radius: .2rem;
  margin-right: 0 !important;
}

/* .surname-edit-cell {
  border-right: 1px solid dodgerblue;
} */

.surname_edit_field {
  width: 75%;
}

.folder-edit-field {
  width: 82%;
}

#folder-edit-cell-text {
  min-width: 200px;
}

.folder-edit-cell {
  min-width: 200px;
}

.inline-save {
  visibility: hidden;
  background-color: #75cc89;
  border: 1px solid darkgreen !important;
  border-radius: .2rem;
}

.inline-save:hover {
  background-color: #2bb84b;
}

.inline-edit-icon {
  display: none;
}

.fa-pencil-alt {
  color: mediumblue;
}

/*=============================================================================
      Update Page
=============================================================================*/

#vBody {
  color: #3C1D58;
}

/*=============================================================================
      Login Page
=============================================================================*/

#loginContainer {
  margin-top: 7%;
}

#username, #password {
  outline: 0 !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}

.form-signin {
  width: 100%;
  max-width: 370px;
  padding: 50px;
  background-color:#ebe4f7;
  border-radius: .3rem;
  border: 1px solid rebeccapurple;
}

.form-signin h2 {
  margin-bottom: 1rem !important;
}

.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #c9b0f5;
}

.form-signin input[type="text"] {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-signin input[type="submit"] {
  margin-top: .5rem;
  margin-bottom: 10px;
  display: block;
  width: 100%;
}

/*=============================================================================
      Bottom of pages
=============================================================================*/

/* Datatables pagination */
.page-link {
  color: #4f3686;
  border: 1px solid #4f3388;
}

.page-link:hover,
.disabled > .page-link {
  border: 1px solid #4f3686 !important;
}

.disabled > .page-link {
  color: #6c757d !important;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #4f3686;
    border-color: #4f3686;
}

/* .dt-info {
  text-align: right;
}
*/

.dt-paging {
  float: right;
} 

footer {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 70px;
  max-height: 170px;
  line-height: 70px;
  background-color: rgba(79,51,136, 1);
}
