@import url('https://api.mapbox.com/mapbox-gl-js/v3.1.2/mapbox-gl.css');

turbo-frame {
  display: block;
}

turbo-frame[busy] {
  opacity: 0.7;
  transition: opacity 150ms ease-in-out;
}

/* Ensure frame content stays visible during updates */
#routes {
  min-height: 200px; /* Adjust based on your content */
}
.white_text {
  color: black;
}

[data-bs-theme="dark"] .white_text {
  color: white;
}

.nav-tabs {
  --bs-nav-tabs-border-color: transparent;
}

.user-uploaded-img {
  max-width: 100%;
  height: auto;
}


.red_underline {
  text-decoration-color: red;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
}

.blue_underline {
  text-decoration-color: #114592;
  text-decoration-line: underline;
  text-decoration-thickness: 9px;
}

.green_underline {
  text-decoration-color: #28A745,
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
}

.nav-tabs .nav-link {
    margin-bottom: calc(-1* var(--bs-nav-tabs-border-width));
    border: var(--bs-nav-tabs-border-width) solid transparent;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    color: #c72112
}

.hw-combobox__option {
  background-color: white !important;
  color: #333 !important;
  padding: var(--hw-padding--slim) var(--hw-padding--thick);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #ddd;
}

.hw-combobox__option:hover {
  background-color: #f8f9fa !important;
  color: #114592 !important;
}

.hw-combobox__option[aria-selected="true"] {
  background-color: #114592 !important;
  color: white !important;
}

.hw-combobox__main__wrapper {
  width: 480px;
}

.hw-combobox__dialog__listbox {
  background-color: white !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  
  [role="option"] {
    border-radius: var(--hw-border-radius);
    padding: var(--hw-padding--thick);
    background-color: white !important;
    color: #333 !important;
    border-bottom: 1px solid #f1f3f4;
  }
  
  [role="option"]:hover {
    background-color: #f8f9fa !important;
    color: #114592 !important;
  }
  
  [role="option"][aria-selected="true"] {
    background-color: #114592 !important;
    color: white !important;
  }
}

.hw-combobox input {
  display: block;
  width: 460px;
  font-size: 1rem;
  font-weight: 400;
  color: #495057;
  background-color: white;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.hw-combobox input:focus {
  border-color: #114592;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(17, 69, 146, 0.25);
}

/* Dark mode support for combobox */
[data-bs-theme="dark"] .hw-combobox__option {
  background-color: #2d3748 !important;
  color: #e2e8f0 !important;
  border-color: #4a5568 !important;
}

[data-bs-theme="dark"] .hw-combobox__option:hover {
  background-color: #4a5568 !important;
  color: #90cdf4 !important;
}

[data-bs-theme="dark"] .hw-combobox__option[aria-selected="true"] {
  background-color: #114592 !important;
  color: white !important;
}

[data-bs-theme="dark"] .hw-combobox__dialog__listbox {
  background-color: #2d3748 !important;
  border-color: #4a5568 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
  
  [role="option"] {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-bottom-color: #4a5568;
  }
  
  [role="option"]:hover {
    background-color: #4a5568 !important;
    color: #90cdf4 !important;
  }
  
  [role="option"][aria-selected="true"] {
    background-color: #114592 !important;
    color: white !important;
  }
}

[data-bs-theme="dark"] .hw-combobox input {
  background-color: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .hw-combobox input:focus {
  border-color: #90cdf4;
  box-shadow: 0 0 0 0.2rem rgba(144, 205, 244, 0.25);
}


.btn-primary {
  background-color: #114592 !important;
  border-color: #114592 !important;
  /* Optional: Match the border color */
}

.btn-danger {
  background-color: #6F0D04 !important;
  border-color: #6F0D04 !important;
  /* Optional: Match the border color */
}

/* pagy buttons */
.active>.page-link,
.page-link.active {
  background-color: #114592;
}

.hw-combobox__listbox {
  &:has([role="option"]:not([hidden])) {
    border-color: var(--hw-border-color);
    z-index: 999;
  }
}


blockquote {
  font-family: Georgia, serif;
  position: relative;
  margin: 0.5em;
  padding: 0.5em 2em 0.5em 3em;
}
blockquote:before {
  font-family: Georgia, serif;
  position: absolute;
  font-size: 6em;
  line-height: 1;
  top: 0;
  left: 0;
  content: "\201C";
}
blockquote:after {
  font-family: Georgia, serif;
  position: absolute;
 /* display: block; don't use this, it raised the quote too high from the bottom - defeated line-height? */
  float:right;
  font-size:6em;
  line-height: 1;
  right:0;
  bottom:-0.5em;
  content: "\201D";
}
blockquote footer {
  padding: 0 2em 0 0;
  text-align:right;
}
blockquote cite:before {
  content: "\2013";
}

h1, .cursive {
  font-family: Bebas Neue;
}

h2, p, .form-label, h3, span, .nav-word, .trix-content, label {
  font-family: Special Elite;
}

.nav-word:hover {
  text-decoration: underline;
}

.trix-content .attachment--preview .attachment__caption {
  display: none;
}

trix-editor {
  height: 200px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

@media (prefers-color-scheme: dark) {
  trix-toolbar .trix-button--icon {
    -webkit-filter: invert(50%);
  }
}


.firstcharacter {
  color: #903;
  float: left;
  font-family: Georgia;
  font-size: 75px;
  line-height: 60px;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 3px;
}

html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

.footer {
  margin-top: auto;
  margin-bottom: 0 !important;
}

.tall_page {
  min-height: 65vh;
}

.container {
  max-width: 720px;
  overflow-wrap: break-word;
}

.navbar-custom-color {
  background-color: #114592;
}

.custom-red {
  background-color: #700D04;
}

body::before {
  display:block;
  content: '';
  height:30px; /* or whatever */
}

/* Limit text to two lines. */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* For narrow forms, like authentication. */
.mw-400 {
  max-width: 400px !important;
}

/* Ensure embedded map fills screen. */
iframe {
  width: 100%;
  height: calc(100vh - 120px); /* Magic number for height of navbar. */
}

a.nav-link{
  color: white;
}


/* Mapbox map styling */
#map {
  height: 500px;
  width: 100%;
}
