html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

#navbar {
  background-color: #fff;
  padding: .5em 2em;
  margin: 0;
  border-bottom: 1px solid #dddddd;
  box-shadow: #dddddd 0 10px 10px;

  display: flex;
  flex-direction: row;
  align-items: center;
}

#navbar #navbarLeft,
#navbar #navbarRight {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-grow: 1;
  gap: 10px;
}

#navbar #navbarRight {
  justify-content: flex-end;
}

#navbar img#imgNavLogo {
  height: 100px;
}

#navbar a {
  color: #585858;
  text-decoration: none;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  white-space: nowrap;
  padding: 2em;
  background-color: #fff;
  color: #929292;
  border-top: 1px solid #eee;
}

.footer a {
  color: #0d6efd;
  text-decoration: none;
}

.footer span {
  position: inline-block;
  margin: 0 1em;
}

main {
  padding: 1em 2em 6em 2em;
  margin: 2em 10% 1em 10%;
  border-radius: 3px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #fff;
  box-shadow: #dddddd 0 10px 10px;
}

/* home page */

.heroImage {
  position: relative;
  background-image: url('/img/hero.png');
  background-size: cover;
  background-position: center;
  height: 400px;
}

.heroImageBlock {
  margin: 2em;
  background-color: rgba(50, 50, 50, 0.75);
  position: absolute;
  top: 5%;
  left: 5%;
  max-width: 400px;
  padding: 1em;
}

.heroImageBlockTitle {
  font-size: 24pt;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.heroImageBlockContent {
  font-size: 16pt;
  color: #ffffff;
  margin: 1em 0;
}

.heroButton {
  margin: 1em 0;
  padding: 1em;
  display: inline-block;
  height: 100px;
  background-color: #cfe2ff;
  border: 1px solid #585858;
  font-size: 18pt;
  box-shadow: #dddddd 0 10px 10px;
  cursor: pointer;
}

.heroButton:hover {
  background-color: #fff;
}

/* type */

h1 {
  font-size: 30px;
  color: #585858;
  font-weight: 200;
  margin: .4em 0;
  text-transform: uppercase;
}

h2 {
  font-size: 22px;
  color: #585858;
  font-weight: 200;
  margin: .3em 0;
  text-transform: uppercase;
}

em {
  font-style: italic;
  color: #929292;
}

a {
  color: #0d6efd;
}

#calendar a {
  color: #000;
}

a.danger {
  color: #B94A48;
}

.validation-summary-errors ul {
  color: #B94A48;

  transition: all .3s ease-in;
  -o-transition: all .3s ease-in;
  -moz-transition: all .3s ease-in;
  -webkit-transition: all .3s ease-in;
}

.messageContainer {
  font-weight: bold;
  font-size: 16px;
  margin: 1em 0;
  padding: 1em;
  background-color: #f8f9fa;
  border-radius: 3px;
}

.messageContainerInfo {
  border: 1px solid #929292;
}

.messageContainerError {
  border: 1px solid #B94A48;
  background-color: #fff0ec;
}

.messageContainerWarning {
  background-color: #ffe6ca;
  border: 1px solid #ffca8d;
}

.dataItemContainer {
  padding: .5em 1em;
  margin: 1em 0;
  background-color: #ffffff;
  border: 1px solid #929292;
  border-radius: 5px;
}

.placeholderMessage {
  color: #8f8f8f;
  font-style: italic;
}

.sectionTitle {
  margin-top: 2em;
  font-size: 18px;
  color: #585858;
  font-weight: 200;
  border-bottom: 1px solid #929292;
  text-transform: uppercase;
}

.loadingIndicator {
  font-size: 20pt;
  text-align: center;
  padding: 1em;
  color: #585858;
}

.centerText {
  text-align: center;
}


/* controls */

label {
  font-weight: bold;
  color: #585858;
}

input[type='text'],
input[type='email'] {
  padding: 8px;
  font-size: 14px;
}

input[type='text'].toolInput {
  padding: 5px;
  font-size: 13px;
}

input[type='text']:read-only {
  background-color: #f8f9fa;
  color: #585858;
}

button {
  font-size: 15px;
  background-color: #cfe2ff;
  color: #0d6efd;
  padding: 0.7em 1em;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

button.toolButton {
  font-size: 14px;
  padding: 0.5em 0.7em;
  background-color: #e5e7f9;
  color: #4650dd;
}

button:disabled {
  background-color: #d1dae9;
  color: #7299d4;
  cursor: not-allowed;
}

span.iconButton {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #0d6efd;
}

span.iconButton.disabled {
  color: #cfe2ff;
  cursor: not-allowed;
}

.buttonRow {
  display: flex;
  justify-content: space-between;
  margin: 1em 0;
}

form.inlineForm {
  display: inline-block;
}

select {
  border: 1px solid dimgray;
  background-color: #fff;
  padding: 8px;
  font-size: 14px;
}


/* tables */

table.simpleTable {
  border-collapse: collapse;
  margin: 10px 0;
}

table.simpleTable>thead>tr>th {
  padding: 10px 10px 10px 0;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid #dddddd;
}

table.simpleTable>thead>tr>th[data-sortfield] {
  cursor: pointer;
}

table.simpleTable>thead>tr>th[data-sortfield].sorted {
  text-decoration: underline;
}

table.simpleTable>tbody>tr>td {
  padding: 5px 1em 5px 0;
  border-bottom: 1px solid #dddddd;
  background-color: #fff;
}

table.simpleTable>tbody>tr:nth-child(even)>td {
  background-color: #f8f9fa;
}


/* forms */

div.fieldsContainer {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-gap: 8px;
  margin: 1em 0;
  align-items: center;
}

div.fieldsContainer label {
  text-align: right;
}

div.collapsible {
  cursor: pointer;
}

/* misc */

.dashboardEventStep {
  display: inline-block;
  padding: .3em .5em;
  margin: 0 .4em .4em 0;
  background-color: #f8f9fa;
  border-radius: 3px;
  font-size: 14px;
}

.dashboardEventStepLabel {
  display: inline-block;
  margin: 0 .5em .5em 0;
  color: #585858;  
}

.dashboardEventStep.complete {
  background-color: #d7f0dd;
}

.dashboardEventStep .complete {
  font-weight: bold;
  color: #35b653;
  font-size: 18px;
}

.dashboardEventStep a {
  text-decoration: none;
  color: #000;
}

.endContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
  margin: 1em 0;
}

.endContainer:last-child {
  text-align: right;
}

/* calendar overrides */

:root {
  --fc-today-bg-color: rgba(255, 255, 255, 0.15);
  --fc-bg-event-color: #f8f9fa;
  --fc-bg-event-opacity: 1.0;
}

.fc .fc-bg-event {
  display: flex;
  place-content: center;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fc .fc-bg-event .fc-event-title {
  font-size: 20px;
  font-style: normal;
  color: #fff;
  background-color: #929292;
  padding: 5px 10px;
  border-radius: 3px;
}

/* https://stackoverflow.com/a/48745301/19036 */
.fc-event-title {
  white-space: normal;
}

.fc .fc-header-toolbar button {
  font-size: 14px;
  padding: 0.5em 0.7em;
  background-color: #e5e7f9;
  color: #4650dd;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.fc .fc-header-toolbar button:hover {
  background-color: #e5e7f9;
  color: #4650dd;
}

/* Parsley.js */

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
  color: #B94A48;
  background-color: #F2DEDE;
  border: 1px solid #EED3D7;
}

.parsley-errors-list {
  margin: 5px 0;
  padding: 0;
  list-style-type: none;
  opacity: 0;
  color: #B94A48;

  transition: all .3s ease-in;
  -o-transition: all .3s ease-in;
  -moz-transition: all .3s ease-in;
  -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
  opacity: 1;
}

/* tabs */

#simpleTabStrip {
  border-bottom: 1px solid #dee2e6;
}

#simpleTabStrip .simpleTab {
  font-size: 16px;
  display: inline-block;
  color: #0d6efd;
  text-align: center;
  padding: 12px 18px;
  cursor: pointer;
}

#simpleTabStrip .simpleTab.activeTab {
  border-bottom: 5px solid #0d6efd;
  font-weight: bold;
}

.simpleTabContents {
  padding: 12px 18px;
  background-color: #fff;
  border-bottom: 1px solid #dddddd;
  box-shadow: #dddddd 0 10px 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* quill.js editor */

.ql-editor {
  font-size: 16px;
  color: #585858;
}

/* modal dialog box */

.md-modal {
  position: fixed;
  left: 50%;
  top: 35%;
  -moz-transform: translate(-50%, -35%);
  -ms-transform: translate(-50%, -35%);
  -o-transform: translate(-50%, -35%);
  -webkit-transform: translate(-50%, -35%);
  transform: translate(-50%, -35%);
  min-width: 560px;
  z-index: 2000;
  visibility: hidden;
  -moz-box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.25);
}

.md-show {
  visibility: visible;
}

.md-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  visibility: hidden;
  top: 0;
  left: 0;
  z-index: 1000;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
}

.md-show~.md-overlay {
  opacity: 1;
  visibility: visible;
}

.md-content {
  background: #fff;
  position: relative;
  border-radius: 15px;
  margin: 0 auto;
}

.md-content h3 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: bolder;
  background-color: #dddddd;
  border-radius: 15px 15px 0 0;
  padding: 10px;
}

.md-content>div {
  padding: 15px;
  margin: 0;
}

.md-content div.modalButtonContainer {
  padding-top: 1.5em;
  text-align: center;
}

.md-effect-fadeandscale .md-content {
  opacity: 0;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
}

.md-show.md-effect-fadeandscale .md-content {
  opacity: 1;
}