:root {
  --joeys: rgb(182, 85, 24);
  --cubs: rgb(255, 200, 46);
  --scouts: rgb(0, 174, 66);
  --venturers: rgb(158, 27, 50);
  --rovers: rgb(220, 41, 30);
  --sa-purple: rgb(38, 38, 97);
  --sa-navy-blue: rgb(38, 38, 97);
  --sa-medium-blue: rgb(61, 92, 146);
  --sa-dark-blue: rgb(26, 65, 111);
  --grey: #7f3f98;
  --error-fg: #2e235e;
  --body-bg: #ffffff;
}

.btn-relationship-scouts {
  --relationship-button-colour: var(--scouts);
  --relationship-button-focus: rgba(0, 174, 66, 0.5);
}

.btn-relationship-guardian {
  --relationship-button-colour: var(--sa-medium-blue);
  --relationship-button-focus: rgba(61, 92, 146, 0.5);
}

.btn.btn-relationship-scouts,
.btn.btn-relationship-guardian {
  color: var(--relationship-button-colour);
  background-color: transparent;
  border-color: var(--relationship-button-colour);
}

.btn.btn-relationship-scouts:hover,
.btn.btn-relationship-scouts:focus,
.btn.btn-relationship-scouts:active,
.btn.btn-relationship-guardian:hover,
.btn.btn-relationship-guardian:focus,
.btn.btn-relationship-guardian:active {
  color: #fff;
  background-color: var(--relationship-button-colour);
  border-color: var(--relationship-button-colour);
}

.btn.btn-relationship-scouts:focus,
.btn.btn-relationship-guardian:focus {
  box-shadow: 0 0 0 0.2rem var(--relationship-button-focus);
}

.nav-link:hover {
  font-weight: 800;
}

/* Sticky footer styles
https://getbootstrap.com/docs/4.0/examples/sticky-footer/ and modified
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
  background-color: #b7e3ee;
}

body {
  min-height: 100vh;
  margin: 0;
  isolation: isolate;
  background-color: #b7e3ee;
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

button,
input,
select,
textarea,
.btn,
.form-control {
  font-family: inherit;
}

/* Keep the image on a viewport-sized layer as the content scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #b7e3ee url("../img/sunrays-blue.de61e7646bdc.svg") center / cover no-repeat;
}

.footer {
  bottom: 0;
  width: 100%;
  background-color: var(--grey);
  color: #f2eef6;
  font-weight: 500;
}

.feature-img {
  width: 0;
  min-width: 100%;
  min-height: 100%;
}

.main-container {
  height: 100vh;
  min-height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* --- */

header {
  padding: 25px;
  background-color: #2e235e;
}

hr {
  border-top: 2px solid #7f3f98;
}

.navbar {
  background: #7f3f98;
  font-family: inherit;
  font-weight: bold;
}

button.navbar-toggler {
  color: #f2eef6;
}

.bg-opaque-08 {
  background: rgba(255, 255, 255, 0.8);
}

.bg-opaque-10 {
  background: rgba(255, 255, 255, 1);
}

ul.dropdown-menu {
  background-color: #7f3f98;
}

@media only screen and (max-width: 800px) {
  /* Force table to not be like tables anymore */
  #no-more-tables table,
  #no-more-tables thead,
  #no-more-tables tbody,
  #no-more-tables th,
  #no-more-tables td,
  #no-more-tables tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  #no-more-tables thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  #no-more-tables tr {
    border: 1px solid #ccc;
  }

  #no-more-tables td {
    /* Behave like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
  }

  #no-more-tables td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  /*
    Label the data
    */
  #no-more-tables td:before {
    content: attr(data-title);
  }
}

.row-striped:nth-of-type(odd) {
  background-color: #efefef;
}

.row-striped:nth-of-type(even) {
  background-color: #f8f8f8;
}

.special_diets_section {
  /*visibility: collapse;*/
  display: none;
}

#adjusted_diet_radio:checked ~ .special_diets_section {
  /*visibility: visible;*/
  display: block;
}

.errornote {
  font-size: 0.875rem;
  font-weight: 700;
  display: block;
  padding: 10px 12px;
  margin: 0 0 10px 0;
  color: var(--error-fg);
  border: 1px solid var(--error-fg);
  border-radius: 4px;
  background-color: var(--body-bg);
  background-position: 5px 12px;
  overflow-wrap: break-word;
}

/*Section spacing for padding desktop elements */
.section-spacer {
    margin-top: 100vh;
    margin-bottom: 100vh;
    padding-top: 5vh;
    scroll-margin-top: 2rem;
}

/* Address fieldsets can share a row; controls must shrink with their columns. */
#application-step-form .flow-fields,
#application-step-form [data-flow-field] {
  min-width: 0;
}

#application-step-form .flow-fields .form-control {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Wrap ID photo examples before their captions become cramped. */
.unacceptable-photo-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 1rem;
  max-width: 48rem;
  margin-bottom: 1rem;
}

.unacceptable-photo-examples figure {
  min-width: 0;
  margin: 0;
}

.unacceptable-photo-examples img {
  height: 8rem;
  object-fit: contain;
}

/* Give long email addresses room without stretching across the whole form. */
input[type="email"],
#application-step-form .flow-fields input[type="email"].form-control {
  width: 48ch;
  max-width: 100%;
  min-width: 0;
}

/* Size to the current address where supported, including while editing. */
@supports (field-sizing: content) {
  input[type="email"],
  #application-step-form .flow-fields input[type="email"].form-control {
    field-sizing: content;
    width: auto;
    min-width: min(100%, 32ch);
    max-width: 100%;
  }
}
