/* Start: Root Variables */
:root {
  --bs-card-bg: #fff;
}

/* End: Root Variables */

/* Start: Body and HTML */
html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  color: var(--bs-body-color);
  font-family: "Libre Franklin", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6rem;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] body {
  background-color: #1d1d1d !important;
  text-shadow: 0 .05rem .05rem rgba(0, 0, 0, .5);
}

[data-bs-theme="light"] body {
  background-color: #fff !important;
}

/* For pages that should not scroll */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

body.no-scroll ~ html {
  overflow: hidden;
}

/* End: Body and HTML */

/* Start: Cards */
.card {
  border: 0px solid var(--bs-card-border-color) !important;
  background-color: transparent !important;
}

.card-body {
  background-color: transparent !important;
  padding: 0px !important;
}

[data-bs-theme="dark"] .card-header-space,
[data-bs-theme="dark"] .card-header-space-2 {
  background-color: #1c1c1c;
  color: var(--bs-card-cap-color);
}

[data-bs-theme="light"] .card-header-space,
[data-bs-theme="light"] .card-header-space-2 {
  background-color: var(--bs-card-cap-bg);
  color: var(--bs-card-cap-color);
  border-bottom-color: var(--bs-card-border-color);
}

/* End: Cards */

/* Start: Buttons */
[data-bs-theme="light"] .card-header-space .btn-outline-light,
[data-bs-theme="dark"] .card-header-space .btn-outline-light {
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
}

[data-bs-theme="light"] .card-header-space .btn-outline-light:hover,
[data-bs-theme="light"] .card-header-space .btn-outline-light:focus,
[data-bs-theme="dark"] .card-header-space .btn-outline-light:hover,
[data-bs-theme="dark"] .card-header-space .btn-outline-light:focus {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

/* End: Buttons */

/* Start: Navigation Links */
.nav-link {
  color: var(--bs-nav-link-color);
}

.nav-masthead .active {
  color: var(--bs-nav-link-active-color);
  border-bottom-color: var(--bs-nav-link-active-color);
}

/* End: Navigation Links */

/* Start: Headers and Footers */
header.d-flex.justify-content-between.align-items-center {
  width: 100%;
  padding: 30px;
  margin: 0 0 5px 0;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid #303030;
  box-sizing: border-box;
  z-index: 1000;
}

footer {
  margin-top: auto;
  text-align: center;
}

[data-bs-theme="dark"] .footer {
  color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="light"] .footer {
  color: rgba(0, 0, 0, 0.5);
}

/* End: Headers and Footers */

/* Start: Input Groups */
.input-group .input-group-text {
  border: 0;
  background: transparent;
  position: absolute;
  right: 10px;
  top: 3px;
  z-index: 1;
}

.custom-input-group {
  display: flex;
  align-items: center;
}

.custom-input-group .custom-form-control {
  flex: 1;
  background-color: #1c1c1c;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 38px;
}

.custom-input-group .custom-btn {
  flex: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

/* End: Input Groups */

/* Start: Lists */
.list-group-item {
  border-color: rgb(0, 0, 0);
  background-color: #1d1d1d;
}

[data-bs-theme="light"] .list-group-item {
  background-color: #fff;
}

#searchResults .list-group-item.active,
#searchResults .list-group-item:hover {
  cursor: pointer;
  background-color: #3d3d3d !important;
}

.section-header {
  color: #fff;
  padding: 5px;
  margin-left: 5px;
  background-color: rgba(20,20,20,0.8);
}


[data-bs-theme="light"] #searchResults .list-group-item.active,
[data-bs-theme="light"] #searchResults .list-group-item:hover {
  background-color: #f3f3f3;
  color: #3d3d3d;
}

#searchResults .list-group-item .text-container {
  display: flex;
  align-items: center;
}

#searchResults .list-group-item .company-name {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
  margin-left: 0;
}

#searchResults .list-group-item .icon {
  margin-left: 5px;
}

#searchResults .list-group-item .description {
  margin-left: 0;
}

#searchResults .list-group-item .details {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: block;
}

#searchResults .list-group-item .ticker {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  display: inline-block;
}

#searchResults .list-group-item .description {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
}

#searchResults .list-group-item .ticker {
  font-size: 12px;
  font-weight: 400;
  color: #b4b4b4;
  margin-bottom: 2px;
}

#searchResults .list-group-item .icon {
  width: 24px;
  margin-right: 5px;
  display: inline-block;
}

/* End: Lists */

/* Start: Search Components */
#liveSearch-index,
#liveSearch {
  background-color: var(--bs-form-control-bg) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color);
}

#searchResults {
  width: 688px !important;
  z-index: 1000;
  list-style: none;
  padding: 0;
  transform: translate(-50px, 0) rotateY(-90deg);
  opacity: 0;
  transition: transform 0.1s, opacity 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 100%;
  left: 0px !important;
}

#searchResults.show {
  transform: translate(0, 0) rotateY(0);
  opacity: 1;
}

.top-search {
  max-width: 500px;
}

.search-container {
  position: relative;
}

#notificationSearch {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #notificationSearch {
  border: 1px solid #444;
  background-color: #1c1c1c;
  color: #fff;
}

[data-bs-theme="light"] #notificationSearch {
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #000;
}

#notificationSearch:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* End: Search Components */

/* Start: Ticker and Prices */
.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.price.green {
  color: green;
}

.price.red {
  color: red;
}

/* End: Ticker and Prices */

/* Start: Chat Components */
.chat-footer {
  background-color: #f8f9fa;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}

.chat-bubble {
  padding: 15px;
  margin: 5px 0;
  border-radius: 15px;
  max-width: 75%;
  opacity: 100;
  transition: opacity 0.5s ease-in-out;
}

.human {
  align-self: flex-end;
  background-color: var(--bs-primary);
  color: var(--bs-light);
}

.bot {
  align-self: flex-start;
  background-color: var(--bs-secondary);
  color: var(--bs-light);
}

.chat-bubble.specialchart {
  padding-left: 50px;
  padding-right: 50px;
}

#chatMessagesContainer {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* End: Chat Components */

/* Start: Custom Components */
.glow {
  filter: drop-shadow(0 0 10px #777);
}

.clickable {
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px;
}

.clickable:hover {
  border-color: lightgrey;
}

.clickable a {
  color: inherit;
  text-decoration: none;
}

.fade-out,
.transparent {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.more-link {
  text-decoration: none;
  cursor: pointer;
  color: blue;
}

.more-link:hover {
  text-decoration: underline;
}

/* End: Custom Components */

/* Start: Miscellaneous Styles */
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider,
.b-example-vr {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.custom-card {
  height: calc(100vh - 150px);
}

.fade-in-word {
  animation: fadeIn 0.3s linear;
  display: inline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.custom-slider {
  outline: 0;
  border: 0;
  border-radius: 500px;
  width: 100%;
  margin: 24px 0 16px;
  transition: box-shadow 0.2s ease-in-out;
  height: 40px;
  -webkit-appearance: none;
  background-color: #333;
}

.custom-slider::-webkit-slider-runnable-track {
  height: 40px;
  color: #444;
}

.custom-slider::-webkit-slider-thumb {
  width: 40px;
  height: 40px;
  cursor: ew-resize;
  background: #fff;
  border-radius: 50%;
  transition: box-shadow 0.2s ease-in-out;
  position: relative;
}

.custom-slider:active::-webkit-slider-thumb {
  background: #fff;
  box-shadow: -10px 0 0 10px #1597ff, inset 0 0 0 3px #1597ff;
}

.slider-container {
  width: 400px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

#custom-h4-container {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
}

#custom-h4-subcontainer {
  width: 100%;
  position: relative;
}

#custom-h4-subcontainer h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -50px;
  width: 40px;
  height: 40px;
  color: #fff !important;
  font-size: 12px;
  transform-origin: center -10px;
  transform: translateX(-50%);
  transition: margin-top 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

#custom-h4-subcontainer h4 span {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #1597ff;
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  z-index: -1;
}

.custom-slider:not(:active)+#custom-h4-container h4 {
  opacity: 0;
  margin-top: -50px;
  pointer-events: none;
}

/* End: Miscellaneous Styles */

/* Start: Modal and Popups */
.modal-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(80% - 1rem);
}

.modal-fadeIn .modal-dialog {
  opacity: 0;
}

.modal-fadeIn.show .modal-dialog {
  opacity: 1;
}

.modal-custom-width .modal-dialog {
  max-width: 800px;
  margin: auto;
  height: 100%;
}

main.modal-blurred {
  filter: blur(1px);
}

.modal .modal-content {
  background-color: var(--bs-modal-bg) !important;
  border: 1px solid var(--bs-modal-border-color);
}

.modal .modal-popup,
.modal .modal-header,
.modal .modal-footer {
  background-color: var(--bs-modal-bg) !important;
  border: none;
  padding: 4px;
  margin-left: 5px;
}

/* End: Modal and Popups */


/* Start: Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination-button {
  background-color: transparent;
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  margin: 0 2px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.pagination-button.current-page {
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  animation: subtle-blue-glow 3s ease-in-out infinite;
}

@keyframes subtle-blue-glow {

  0%,
  100% {
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.2), 0 0 4px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
  }

  50% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3), 0 0 7px rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
  }
}

.pagination-button.current-page:hover {
  transform: translateY(-1px);
  animation: subtle-blue-glow 2s ease-in-out infinite;
}

/* End: Pagination */

/* Start: Animations */
@keyframes highlightAnimation {

  0%,
  50% {
    background-color: rgba(234, 234, 5, 0.85);
  }

  100% {
    background-color: rgba(0, 0, 0, 0);
  }
}

.highlight {
  animation: highlightAnimation 1s ease-out forwards;
  font-style: italic;
  text-decoration-color: rgb(221, 221, 178);
  background-color: rgba(234, 234, 5, 0.85);
  padding: 2px 4px;
  border-radius: 2px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #495057;
  animation: spin 1s ease infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* End: Animations */

/* Start: Containers */
.cover-container {
  max-width: 80em;
}

.top-container {
  min-height: 640px;
}


.relatedStocks {
  min-height: 500px;
  border-radius: 8px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[data-bs-theme="dark"] .relatedStocks {
  border: 0 solid #495057;
}

[data-bs-theme="light"] .relatedStocks {
  border: 0px solid #e0e0e0;
}

.parent-container {
  height: 70vh;
  display: flex;
  flex-direction: column;
}

/* .row>.col.custom-col {
  flex: 11em 0 0;
  padding: 0 2px 0 0;
}

.row>.col.custom-col a {
  margin-left: 5px;
  padding-right: 0;
  display: block;
} */

/* End: Containers */

/* Start: BD Mode Toggle */
.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

/* End: BD Mode Toggle */

/* Start: Example and Miscellaneous */
.b-example-divider,
.b-example-vr {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

/* End: Example and Miscellaneous */