@font-face {
    font-family: 'RobotoFlex';
    src: url('../RobotoFlex.ttf');
}

:root {
    --bs-light-rgb: 255, 255, 255;
    --bs-primary: #337ab7;
    --bs-primary-rgb: 51, 122, 183;
    --bs-secondary: #d8f2ff;
    /*--bs-warning: #ffa720;*/
    --bs-dark-rgb: 0,55,129;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
    z-index: 0;
}

.navbar.bg-body-tertiary {
    background-color: #003781 !important;
}

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: #fff;
    --bs-navbar-disabled-color: #fff;
    --bs-navbar-active-color: #faff59;
    --bs-navbar-brand-padding-y: 0.3125rem;
    --bs-navbar-brand-margin-end: 1rem;
    --bs-navbar-brand-font-size: 1.25rem;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-focus-width: 0;
    color: #fff;
    font-weight: bold;

}

.navbar .dropdown-menu {
    --bs-dropdown-color: #fff;
    --bs-dropdown-bg: #003781;
    --bs-dropdown-link-color: #fff;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #0062e6;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #0d6efd;
    --bs-dropdown-border-color: #3a8eff;
    --bs-dropdown-border-width: .15rem;
}


@media (min-width: 1400px) {
    .nav-item > .nav-link{
        border-bottom: 0 !important;
        border-top:0 !important;
    }
}
@media (max-width: 576px){
    #navbarSupportedContent{
        width: 100%;
    }
    .input-group.radio-group, .input-group.radio-group>label{
        display: block;
    }
}

@media (max-width: 576px){
  .submit-buttons .btn-primary {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
     .mobile-container{
        margin: 1rem;
    }
}
.sub-label-block>label{
    display:block;
}


/* Navbar Transition animation Start*/
.navbar-toggler span {
  display: block;
  background-color: var(--bs-navbar-color);
  height: 3px;
  width: 25px;
  margin-top: 5px;
  margin-bottom: 5px;
  position: relative;
  left: 0;
  opacity: 1;
  transition: all 0.35s ease-out;
  transform-origin: center left;
}

.navbar-toggler span:nth-child(1) {
  transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(2) {
  opacity: 1;
}

.navbar-toggler span:nth-child(3) {
  transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(1) {
  margin-top: 0.3em;
}

.navbar-toggler.close-btn span:nth-child(1) {
  transform: translate(15%, -33%) rotate(45deg);
}

.navbar-toggler.close-btn span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.close-btn span:nth-child(3) {
  transform: translate(15%, 33%) rotate(-45deg);
}


/* Navbar Transition animation End */

.btn {
    /* Unselected buttons*/
    --bs-btn-bg: #f7f7f7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-color: #000;

    /* Selected buttons */
    --bs-btn-active-bg: #337ab7;
    --bs-btn-active-border-color: #122740;
    --bs-btn-active-color: #fff;

    /* Hover buttons */
    --bs-btn-hover-border-color: initial;

}

.btn-primary {
    /* unselected buttons*/
    --bs-btn-bg: #337ab7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-color: #fff;

    /*    Selected buttons */
    --bs-btn-active-bg: #204666;
    --bs-btn-active-border-color: #2e6da4;
    --bs-btn-active-color: #fff;
    font-weight: bold;
}

.btn-warning {
    --bs-btn-bg: #ffa720;
    --bs-btn-border-color: #ffa720;
    --bs-btn-hover-bg: #ffca2c;
    --bs-btn-hover-border-color: #ffc720;
    --bs-btn-focus-shadow-rgb: 255, 167, 32;
    --bs-btn-active-bg: #ffcd39;
    --bs-btn-active-border-color: #ffc720;
    --bs-btn-disabled-bg: #ffa720;
    --bs-btn-disabled-border-color: #ffa720;
    font-weight: bold;
}

.accordion {
    --bs-accordion-btn-bg: var(--bs-secondary);
    --bs-accordion-active-bg: var(--bs-primary);
    --bs-accordion-active-color: #fff;
    --bs-border-color: #2e6da4;

    --bs-accordion-btn-padding-y: 0rem;
}

.person-form .input-group > .btn-group {
    margin: auto 0 auto auto !important;
}

.form-check-input.deletion:checked {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.form-switch.form-check-reverse {
    text-align: center;
}

.form-check .form-check-input {
    float: initial;
}

label {
    font-weight: bold;
}

.form-floating > label {
    font-weight: inherit;
    color: rgba(var(--bs-body-color-rgb), .65);
    --bs-gutter-x: 1rem;
}

.text-left {
    text-align: left;
}


/* tom-select padding in form-select component */
.ts-wrapper.multi > .ts-control {
    padding-top: 1.6rem  !important;
    border: none;
}
.ts-control {
    border: none;
}

.form-floating > .form-select.ts-wrapper {
    height: inherit;
    padding-bottom: 0;
}

.form-floating > .form-select.ts-wrapper.multi {
    height: inherit;
    padding: 0;
}

.form-floating > textarea.form-control {
    height: initial;
}

/* table display */
.striped-rows div.row:nth-of-type(1) {
    background-color: var(--bs-primary);
    color: #fff;
}

.striped-rows div.row:nth-of-type(odd):not(:nth-of-type(1)) {
    background-color: var(--bs-secondary);
}

.striped-rows div.row:nth-of-type(even):not(:nth-of-type(1)) {
    background-color: #fff;
}

.rows-outline div.row:not(:first-child) {
    border-top: 1px;
}

.striped-rows > .row, .rows-outline > .row {
    margin-left: 0;
    margin-right: 0;
}


html, body, #aragorn-container {
    height: 100%;
    font-family: 'RobotoFlex', 'TypoPRO Roboto', sans-serif;
}

body {
    margin: 0;
    font-weight: 400;
}

body > #aragorn-container {
    height: auto;
    min-height: 100%;

}

#aragorn-child-container,
#aragorn-wiki-child-container {
    padding-top: 7em;
}

#aragorn-child-container.mobile,
#aragorn-wiki-child-container.mobile {
    padding-top: 3em;
}

#aragorn-child-container-no-nav,
#aragorn-wiki-child-container-no-nav {
    padding-bottom: 60px;
    padding-top: 4em;
}

a {
    color: #0049ab;
    font-weight: 500;
    text-decoration: none;
}

img {
    max-width: 100%;
}

img.wwc {
    width: 30em;
}

h1 {
    font-size: 2.8em;
    font-weight: bolder;
    margin: auto;
}

h2 {
    margin-bottom: 0;
    font-size: 2em;
    line-height: 1.3em;
}

h3 {
    margin-bottom: 0.1rem;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
}

table td, table th {
    text-align: center;
    border-bottom: 0;
}

table.with-borders td, table.with-borders th, table.vertical-borders th {
    border: thin solid #898989;
    padding: 1.4rem;
}

table.vertical-borders {
    border-top: thin solid #898989;
    border-bottom: thin solid #898989;
}

table.vertical-borders td {
    border-top: none;
    border-bottom: none;
    border-left: thin solid #898989;
    border-right: thin solid #898989;
}

table.horizontal-borders td {
    border-top: thin solid #898989;
    border-bottom: thin solid #898989;
    border-left: none;
    border-right: none;
}

table.horizontal-borders td.last {
    border: none;
}

th, td {
    padding: 12px 15px;
    /*vertical-align: middle;*/
}

.inline {
    display: inline-block;
}

.aragorn-hidden {
    display: none !important;
}

.striped:nth-child(even) {
    background-color: #f0f0f0;
}

.border-box {
    border-top: thin solid black;
}

.border-box-all {
    border: thin solid black;
    border-radius: .5em;
}

.border-box-float, .border-box-crispy {
    display: inline-block;
    border: thin solid black;
    border-radius: .5em;
    vertical-align: top;

}

.border-box-crispy {
    /*width: 100%;*/
    /*max-width: 500px;*/
}

@media (min-width: 1400px) {
    .col-xxl-4 {
        flex: 0 0 auto;
        width: 33%;
    }
}

/* Long btn-groups */
.btn-group.long-btn-group {
    display: block;
}

.no-borders {
    border: 0 !important;
}

.formScrollWrap {
    display: block;
    max-width: 100%;
    overflow: auto;
}

.displayTable {
    display: table;
    margin: auto;
    border-collapse: collapse;
}

.displayTable > .formRow, .displayTable > .formhead,
.displayTable > .tableRow, .displayTable > .tablehead {
    display: table-row;
    border: 1px solid #000;
}

.displayTable.no-borders > .formRow, .displayTable.no-borders > .formhead,
.displayTable.no-borders > .tableRow, .displayTable.no-borders > .tablehead {
    display: table-row;
    border: 0px;
}

.formhead, .tableHead {
    font-weight: bold;
}

.displayTable > .formRow > .formCell, .displayTable > .formhead > .formCell,
.displayTable > .tableRow > .tableCell, .displayTable > .tablehead > .tableCell {
    display: table-cell;
    padding: 1em;
    vertical-align: middle;
}

.displayTable.no-padding > .formRow > .formCell, .displayTable.no-padding > .formhead > .formCell,
.displayTable.no-padding > .tableRow > .tableCell, .displayTable.no-padding > .tablehead > .tableCell {
    padding: 0;
}

.displayTable.no-padding > .formRow > .formCell.small-padding, .displayTable.no-padding > .formhead > .formCell.small-padding,
.displayTable.no-padding > .tableRow > .tableCell.small-padding, .displayTable.no-padding > .tablehead > .tableCell.small-padding {
    padding: 1em;
}

.smallCell {
    width: 6em;
}

.largeCell {
    width: 20em;
}

.person-marking .btn-group {
    max-width: 25rem;
}

.border-box-float-marking {
    margin: 2rem 2rem;
    max-width: 36em;
}

.border-box-float-marking img {
    max-width: 12em;
    max-height: 12em;
}

.border-box:last-child {
    border-bottom: thin solid black;
}

.barcode-container {
    width: 400px;
    max-width: 95%;
}

.marking-box {
    max-width: 35em;
}

.marking-buttons {
    padding: 2rem;
}

.small-padding, .small-padding > span {
    padding: 1em;
}

.small-margin {
    margin: 1em;
}

.small-margin-desktop {
    margin: 1em;
}

#update {
    width: 20em;
    max-width: 90%;
    margin: 0 auto;
    bottom: 0;
    height: 50px;
    opacity: 0.92;
}

#update .button {
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: #E5E5E5;
    color: #000;
    font-size: 1.5rem;
}

.aragorn-button {
    -webkit-appearance: none;
    margin: 0;
    display: inline-block;
    padding: 0 1em;
    text-align: center;
    line-height: 2.5em;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    background-color: #337ab7;
    border: 1px solid #2e6da4;
    font-weight: 700;
    color: #fff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: initial;
}

.aragorn-button:hover, .aragorn-button-small:hover {
    background-color: #286090;
    border-color: #204d74;
    color: #fff;
}

.aragorn-button:focus, .aragorn-button-small:focus {
    background-color: #6eac2c;
}

.aragorn-button-small {
    -webkit-appearance: none;
    margin: 0;
    display: inline-block;
    padding: 0 1em;
    text-align: center;
    line-height: 2.5em;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    background-color: #337ab7;
    border: 1px solid #2e6da4;
    font-weight: 700;
    color: #fff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: initial;
}

.user-form-field div, .user-form-field {
    display: inline-block;
}

.user-form-field div, .user-form-field-emergency div {
    margin: 0;
    padding: 0;
}

.user-form-field div label, .user-form-field div input {
    width: auto !important;
}

.user-form-field-emergency div, .user-form-field-emergency div label {
    width: auto !important;
    text-align: right;
    padding: .5em;
    font-weight: bold;
}

.user-form-field-emergency div input {
    width: 20em !important;
    padding: .5em;
}

#div_id_additional_person {
    text-align: inherit;
}

.border-box-person img {
    max-width: 50%;
}

ol, ul {
    padding-left: 0;
    margin-top: 0;
}

li {
    margin-bottom: inherit;
    list-style-position: inside;
}

/*  error and message handling */
li.messages, .errorlist li {
    list-style: none;
}

.error, input.error {
    border: thin solid red !important;
}

.errorField {
    text-align: center;
    color: red;
}

li.success, li.error, li.info, li.warning {
    font-weight: bold;
    list-style: none;
    margin-bottom: 0;
    min-height: 2em;
    line-height: 2em;
}

li.success {
    background-color: green;
    color: white;
}

li.warning {
    background-color: #ffa720;
    color: black;
}

li.info, li.info a {
    background-color: #87C9F5;
    color: black;
}

li.error {
    background-color: red;
    color: white;
    margin-bottom: 0;
}

.errorlist {
    color: red;
    font-weight: bold;
}

.label-danger {
    color: red;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.colour-green {
    color: green;
}

.colour-red {
    color: red;
}

.colour-grey {
    color: grey;
}

.colour-orange {
    color: orange;
}

/*GREEN*/
.colour1 {
    background-color: #CCFFCC;
}

/*YELLOW*/
.colour2 {
    background-color: #AAD2FF;
}

/*BLUE*/
.colour3 {
    background-color: #FEFFA7;
}

/*RED*/
.colour4 {
    background-color: #FF6969;
}

/*ORANGE*/
.colour5 {
    background-color: #FFB76A;
}

/*PINK*/
.colour6 {
    background-color: #FF99CC;
}

/*light orange*/
.colour7 {
    background-color: #FFD3A5;
}

/*grey-blue*/
.colour8 {
    background-color: #557b9b
}

/*green-blue*/
.colour9 {
    background-color: #1f7d93;
}

.grayed-out, .grayed-out > i {
    color: lightgray !important;
}

th:last-child:not(.ui-datepicker-week-end, .mce-grid-cell), td:last-child:not(.ui-datepicker-week-end, .mce-grid-cell) {
    padding: 15px;
}

#footer {
    background-color: #003781;
    min-height: 60px;
    width: inherit;
    bottom: 0;
    color: #fff;
    clear: both;
    position: relative;
    z-index: 1;
    text-align: center;
}

#footer a, #footer a.visited {
    color: #fff;
}

.text-muted.password_strength_info.hidden, .label.label-danger.hidden, .hidden.password_strength_info {
    display: none;
}

.ui-helper-reset {
    margin: auto;
}

.sortable {
    margin: auto;
    display: inline-block;
}

.sortable > .sortable-object {
    width: auto !important;
    list-style: none;
    background-color: #a6c9e2;
    margin: 3px 0;
    padding: 0 3em 0 1em;
}

.drag {
    position: relative;
    padding-left: 1.5em;
    display: inline;
}

.drag:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1em;
    height: 0.15em;
    background: #444444;
    box-shadow: 0 0.25em 0 0 #444444,
    0 0.5em 0 0 #444444;
}

/* Shop things here*/
.shop-item {
    width: 80%;
    border-bottom: thin solid #000;
    margin: auto;
    min-height: 160px;
    display: table;
}

.shop-item div {
    vertical-align: middle;
}

.shop-item-image {
    width: 160px;
    height: 160px;
    margin-left: 0;
    display: table-cell;
    vertical-align: middle;
}

.shop-item-details {
    margin-left: 3em;
    padding: 0;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}

.shop-item-price {
    font-size: 2rem;
    font-weight: bolder;
}

.shop-item-cart {
    text-align: right !important;
    margin-right: 2em;
    min-height: 160px;
}

.directory .content-left, .directory .content-right {
    display: table-cell;
    padding: 1em;
}

.directory .content-left {
    text-align: right;
    width: 10em;
}

.directory .content-right {
    text-align: left;
    width: 30em;
}

.directory .content-row {
    display: block;
    margin: auto;
    width: 42em;
}

@media only screen and ( max-width: 50em ) {
    .shop-item {
        width: 80%;
    }

    .directory .content-left, .directory .content-right {
        display: table-cell;
        padding: 1em 0;
    }

    .directory .content-left {
        text-align: left;
        width: 6em;
    }

    .directory .content-right {
        text-align: left;
        width: initial;
    }

    .directory .content-row {
        display: block;
        margin: auto;
        width: initial;
        max-width: 100%;
    }
}

.hide-label > label {
    display: none !important;
}

.button-group {
    display: inline-block;
    margin: 0.2em .5em;
}


.accordion dd {
    background-color: #fff;
    margin: 0;
}


/* MOBILE RESPONSIVE DESIGN THINGS HERE */
/* This is navbar stuff */
/* partially adapted from http://osvaldas.info/drop-down-navigation-responsive-and-touch-friendly */

.pinToBottom {
    position: fixed !important;
    width: 100%;
    bottom: 0 !important;
    background-color: #FFFFFF;
    box-shadow: 0 0 7em 3em #FFFFFF;
    z-index: 5;
}

@media only screen and ( max-width: 60em ) {
    html {
        font-size: 75%;
    }

    .border-box-float {
        padding: 0;
        margin: .5rem .5rem;
    }

    .border-box-all {
        max-width: 100%;
    }


    .aragorn-button, input[type="submit"], input[type="reset"], input[type="button"], #submit-buttons > .btn {
        width: 85%;
        font-size: 1em;
        height: initial;
        padding: 1.4em 1em;
        line-height: initial;
        margin-top: .5em !important;
        margin-bottom: .5em !important;
    }

}
.full-width {
    width: 100% !important;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}


/* TinyMCE override */

.mce-btn button, .mce-window-head .mce-close {
    all: initial;
}

.mce-path {
    display: none !important;
}

body.mce-content-body {
    font-size: 1.2em !important;
}


/* font awesome override */
.fa, .fab, .fal, .far, .fas {
    line-height: inherit;
}

/* Flatpickr modifications */
.flatpickr-calendar.inline {
    margin: auto;
}


/* DataTables modifications */

table.dataTable {
    width: initial;
    margin-bottom: 2em;
}

.dataTables_wrapper > .ui-widget-header {
    background: inherit !important;
}

table.dataTable tbody th, table.dataTable tbody td, table.dataTable thead th {
    border: thin solid #898989;
    padding: 1.4rem;
}

table.dataTable th, table.dataTable thead th, table.dataTable tfoot th {
    border: 1px solid #c5c5c5;
    background: #f6f6f6;
    font-weight: normal;
    color: #454545;
    padding-right: 3rem;
}

.dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: center;
}

table.dataTable td.control {
    padding-left: 3em;
}

table.dataTable.dtr-column > tbody > tr > td.control::before {
    margin-left: 1em;
    left: 0;
}

.dataTables_wrapper .dataTables_info {
    float: unset;
}



.fileInput {
    width: 100%;
    border-bottom: 1px solid;
    display: block;
    text-align: center;
}

.fileInput label {
    width: initial;
}


/* schedule style */
.fc-minor:nth-child(2n) {
    background-color: #ececec;
}

.fc-body {
    border: solid 1px #ececec;
}

.fc th, .fc td {
    border-style: none !important;
}

.fc td .fc-time.fc-axis {
    border-right: solid 1px #c6c6c6 !important;
    font-weight: bold;
}

body .fc {
    font-size: 2rem !important;
    margin: auto;
}

.fc-event {
    line-height: 1em !important;
}

.fc-toolbar h2, .fc-header-toolbar, .fc-button, .fc td .fc-time.fc-axis {
    font-size: 1rem !important;
}

.fc-time-grid .fc-slats td {
    height: 2.5em !important;
}

/**************************\
  Basic Modal Styles
\**************************/

.modal {
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__header .modal__close:before {
    content: "\2715";
}

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
}


/**************************\
  Modal Animation Style
\**************************/
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
    z-index: 6000;
}
