:root {
  --coreblue: #211d53;
  --lightgray: #e8ecf2;
  --mediumgray: #d3dae6;
  --backgroundgray: #f6f7fa;
  --blue1: #c2e5f9;
  --blue2: #94c5e8;
  --blue3: #5090c9;
  --blue4: #0e69a7;
  --blue5: #074784;
  --blue6: #022851;
  --yellow1: #ffefbe;
  --yellow2: #f4d685;
  --yellow3: #e7bf52;
  --yellow4: #c49434;
  --yellow5: #906d22;
  --yellow6: #604b19;
  --red1: #f8c9c8;
  --red2: #e99b9e;
  --red3: #d75e5e;
  --red4: #c0383b;
  --red5: #902426;
  --red6: #681918;
}

@font-face {
  font-family: "Raleway";
  src: url("/static/Raleway-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "DREAMS";
  src: url("/static/DREAMS.ttf") format("truetype");
}

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

body {
  display: flex;
  flex-direction: column;
}

.main-container {
  display: flex;
  flex: 1;
}

#sidenav-placeholder {
  color: black;
  flex-shrink: 0;
  width: 280px;
  padding: 32px;
  box-shadow: 0px 4px 4px rgba(33, 31, 82, 0.15);
}

.page-content {
  background: no-repeat top left
    radial-gradient(
      at top left,
      rgba(44, 83, 131, 0.2) 0%,
      rgba(44, 83, 131, 0) 70%
    );
  flex-grow: 1;
}

.code-container {
  background-color: black;
  color: black;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: monospace;
}

/* Homepage */
.homepage_main {
  margin: 48px;
}

.homepage_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.homepage_card_container {
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
}

.homepage_card {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.homepage_card h2 {
  margin: 0;
}

.homepage_gradient_container {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 4px;
  border-radius: 8px;
  background: linear-gradient(to right, #5090c9, #d75e5e, #e7bf52);
  display: inline-block;
  cursor: pointer;
}

.homepage_gradient_button {
  background-color: var(--lightgray);
  color: black !important;
  padding: 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.homepage_gradient_container:hover .homepage_gradient_button {
  background-color: transparent;
  color: #fff !important;
}

/* End of Homepage */

/* Finance planning */

.about-us-finance-simulation {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

/* Finance planning end */

.code-line {
  display: block;
  white-space: nowrap;
}
.card-content {
  display: none;
}

.card-content.active {
  display: block;
}

.about-us-card {
  padding: 26px !important;
  padding-top: 20px !important;
  margin-top: 0px !important;
  border-radius: 0 8px 8px 8px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  background-color: white !important;
  gap: 0px !important;
}

.live-card {
  padding: 26px !important;
  padding-top: 20px !important;
  margin-top: 0px !important;
  border-radius: 0 8px 8px 8px !important;
  /* display: grid !important; */
  background-color: white !important;
  gap: 0px !important;
}

.about-us-div {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 18px;
}

.about-us-div-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-us-div-right {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr;
}

.about-us-uas-movie {
  display: block;
  margin: 24px auto 0;
  max-width: 100%;
  height: auto;
}

* {
  font-family: "Raleway", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: black;
  background-color: white;
}

#landing_chart {
  margin-top: 30px;
  background-color: white;
}

#landing_chart .apexcharts-marker {
  color: inherit;
  /* filter: drop-shadow(0 0 2px currentColor); */
}

.apexcharts-legend-marker {
  filter: none !important;
  box-shadow: none !important;
  background: white !important;
}

.gradient-text {
  max-width: 90%;
  font-size: 5.5vw;
  background: linear-gradient(
    to right,
    var(--blue3),
    var(--red3),
    var(--yellow3)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* PROGRESS BARS */
.progress-container {
  width: 100%;
  height: 30px;
  background-color: var(--lightgray);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #5090c9;
  transition: width 0.5s;
}

.progress-bar-red {
  height: 100%;
  width: 0%;
  background-color: #d75e5e;
  transition: width 0.5s;
}

.progress-div {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 12px;
}

.header_link {
  font-family: "Raleway", sans-serif;
  /* font-weight: 500; */
  font-size: 14px;
  color: #211d53;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 24px;
  box-shadow: 0px 4px 8px rgba(33, 31, 82, 0.15);
  background-color: white;
}

.page_content {
  background: red;
}

footer {
  color: black;
  background: #e8ecf2;
  padding: 36px;
  /* margin-top: 24px; */
}

.card {
  /* outline: 1px white solid; */
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: 5%;
  margin-right: 5%;
  padding: 16px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
  display: grid;
  grid-template-columns: 1fr 3fr;
  justify-content: space-around;
  flex-direction: row;
  gap: 16px;
}

.selector {
  margin-top: 24px;
  margin-left: 5%;
  margin-right: 5%;
  width: 25%;
  min-width: 520px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 8px 8px 0 0;
  background-color: white;
  color: black;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
  display: flex;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-around;
  gap: 8px;
  border-bottom: 1px #e6e0e9 solid;
  overflow: auto;
  text-wrap: nowrap;
}

/* Legend for Mission Planning Map */
.legend {
  padding: 10px 10px;
  font: 14px Arial, Helvetica, sans-serif;
  background: #d3dae6e5;
  border-radius: 5px;
  line-height: 20px;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
  outline: 1px black solid;
  overflow-y: auto;
  max-height: 60vh;
}
.legend h4 {
  text-align: center;
  margin-bottom: 8px;
  margin-top: 0;
}
.legend h5 {
  margin-bottom: 8px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.legend i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  float: left;
  margin-right: 8px;
  margin-top: 0px;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.legend span {
  display: inline-block;
  vertical-align: middle;
  line-height: 28px;
}

/* Custom scrollbar for webkit browsers */
.legend::-webkit-scrollbar {
  width: 10px;
}
.legend::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.legend::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.legend::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.logo {
  cursor: pointer;
  margin-right: auto;
  height: 40px;
  width: auto;
}

.nav_links {
  list-style: none;
  list-style-type: none;
}

.nav_links li {
  display: inline-block;
  padding: 0px 16px;
}

.nav_links li a {
  transition: all 0.3s ease 0s;
}

.nav_selected {
  position: relative;
  display: inline-block;
  padding-bottom: 25px;
}

.nav_selected::after {
  content: "";
  position: absolute;
  left: 12.5%;
  bottom: 0;
  top: 33px;
  width: 75%;
  height: 4px;
  background-color: #211d53;
  border-radius: 8px 8px 0 0;
}

.live_demo_left {
  padding: 24px;
  border-radius: 8px;
  color: black;
  background-color: #f6f7fa;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
  display: flex;
  flex-direction: column;
  flex: 1;
  grid-column: 1;
}

.live_demo_right {
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  grid-column: 2;
  overflow: hidden;
}

.landing-section {
  background-color: #f6f7fa;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.landing-box {
  /* outline: 1px white solid; */
  height: 150px;
  width: 100%;
  padding: 12px;
  border-radius: 8px 8px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.landing-name {
  border-radius: 0px 0px 8px 8px;
  /* outline: 1px white solid; */
  color: black;
  background-color: white;
  padding: 4px;
  font-weight: 600;
  text-align: center;
}

.options {
  margin-top: 8px;
  margin-bottom: 8px;
}

.chart {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.boost_section {
  padding: 8px;
}

.boost_section:first-child {
  padding-right: 18px;
  border-right: 1px solid #ccc;
}

/* ACCORDION */

.faqs-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background-color: var(--backgroundgray);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #374151;
  transition: background-color 0.2s ease-in-out;
}

.faq-question:hover {
  background-color: var(--lightgray);
}

details > summary::-webkit-details-marker {
  display: none;
}

.arrow-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

.faq-item[open] .arrow-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.25rem 1.25rem;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
}

.faq-answer:hover {
  background-color: var(--lightgray);
}

/* BUTTONS */

.button-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  white-space: nowrap;
  padding: 10px 24px;
  background-color: #211d53;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  margin-left: 26px;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  max-width: 110px;
  font-size: 14px;
  font-weight: 400;
}

.button-reset {
  height: 48px;
  margin-top: auto;
  padding: 10px 24px;
  white-space: nowrap;
  background-color: hsl(218, 28%, 86%);
  background-color: #e8ecf2;
  color: black;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  text-align: left;
}

.button-submit {
  height: 48px;
  margin-top: auto;
  padding: 10px 24px;
  white-space: nowrap;
  /* background-color: #e8ecf2; */
  background-color: #d3dae6;
  color: black;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.button-try-demo {
  height: 60px;
  width: 100%;
  margin-top: auto;
  padding: 10px 24px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 18px;
  background: linear-gradient(to right, #5090c9, #d75e5e, #f4d685);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.button-try-demo:hover {
  background: linear-gradient(to right, #447fb2, #c25151, #e2c77b);
}

.button-expand {
  height: auto;
  padding: 8px 16px;
  background-color: transparent;
  color: #212d53;
  white-space: nowrap;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: none;
  text-align: left;
  font-weight: bold;
}

.button-expand:hover {
  background-color: #f0f0f0;
}

.button-contact:hover {
  opacity: 0.8;
}
.button-reset:hover {
  background-color: rgb(193, 199, 210);
}
.button-submit:hover {
  background-color: #b7bcc2;
}

.button-about {
  position: absolute;
  bottom: 8px;
  right: 8px;
  margin-top: auto;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 18px;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  text-align: center;
  background: linear-gradient(to right, #5090c9, #94c5e8);
}

.button-about.disabled {
  cursor: not-allowed;
  background: linear-gradient(to right, #c8cbcd, #e5e8ea);
  opacity: 0.8;
  pointer-events: none;
}

.selector-button {
  display: inline-block;
  position: relative;
  padding: 20px 20px;
  cursor: pointer;
  overflow: hidden;
  font-weight: 600;
}

.selector-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 4px;
  background-color: var(--blue4);
  visibility: hidden;
  transition: visibility 0s, opacity 0.3s linear;
  white-space: nowrap;
  border-radius: 4px 4px 4px 4px;
}

.selector-button.button-active::after {
  visibility: visible;
  opacity: 1;
}

.selector-button.button-active {
  color: var(--blue4) !important;
}

/* TABLES */

.boost-table {
  width: 100%;
  border-collapse: collapse;
  color: black;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  /* outline: 1px white solid; */
  margin-bottom: 4px;
}

.boost-table th,
.boost-table td {
  padding: 8px 12px;
  text-align: left;
}

.boost-table th {
  background-color: #2e2e39;
  color: black;
}

.boost-table tr:nth-child(even) {
  background-color: #2e2e39;
  color: black;
}

.boost-table tr:hover {
  background-color: #141414;
}

select {
  background-color: white;
  color: black;
}

/* HTML: <div class="loader"></div> */
.loader {
  position: relative;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: none;
  width: 75px;
  aspect-ratio: 2;
  --_g: no-repeat
    radial-gradient(circle closest-side, rgb(33, 29, 83, 1) 90%, #ffffffcf);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }
  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }
  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }
  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}

/* Skeleton Loader */
#loader_qml {
  margin: 18px;
  display: none;
}

.br {
  border-radius: 8px;
}
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 90%);
  }
  100% {
    background-color: hsl(200, 20%, 95%);
  }
}

.skeleton_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skeleton {
  background-color: var(--lightgray);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--mediumgray),
    transparent 100%
  );
  background-size: 200% 100%;
  background-position-x: -100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  to {
    background-position-x: 100%;
  }
}

/* End of Skeleton */

input {
  width: 100%;
  height: 36px;
  padding-left: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* PYTHON CODE */
pre {
  background-color: #000000;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}
code {
  font-family: "Roboto Mono", Consolas, Monaco, "Andale Mono", "Ubuntu Mono",
    monospace !important;
  color: #ffffff;
}

/* LEAFLET */

#map {
  z-index: 1;
  height: 100%;
  width: 100%;
  border-radius: 8px;
}

.map-container {
  z-index: -2;
  width: 100%;
  height: auto;
  position: relative;
}

.leaflet-dragging {
  cursor: default;
}

.leaflet-dragging .leaflet-grab {
  cursor: move;
}

.leaflet-container {
  background-color: rgb(255, 255, 255) !important;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
}

.live_demo_right_uas {
  height: 60vh;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 2;
  overflow: hidden;
}
/* QML Data Box */
.data-container {
  margin-top: 12px;
  gap: 12px;
}
.data-top {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 4;
  flex-basis: auto;
  gap: 8px;
}
.data-top-small {
  height: 150px;
  width: auto;
  background-color: var(--red3);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.data-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-top-small {
  flex-basis: calc(50% - 4px);
  flex-grow: 1;
  background-color: var(--red3);
}

.data-bottom {
  /* border-radius: 8px; */
  height: 200px;
  width: auto;
  background-color: var(--red3);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.center-text {
  color: white !important;
  font-size: clamp(24px, 4vw, 60px);
  z-index: 1;
  padding-bottom: 12px;
  margin: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-text {
  color: white !important;
  position: absolute;
  bottom: 8px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.data-top-small::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.2) 0%,
    transparent 80%
  );
  pointer-events: none;
}
.data-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 80%
  );
  pointer-events: none;
}

/* CSS for Modal */
.modal-bubble {
  position: absolute;
  display: none;
  z-index: 999;
}

.modal-content {
  position: relative;
  background-color: white;
  color: black;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  max-width: 300px;
  width: 100%;
}

.close-modal {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.info-icon {
  font-size: 18px; /* bigger size */
  cursor: pointer;
}

.modal-content::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid white;
}

/* New Modal Items */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  /* outline: 1px white solid; */
  color: black;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  max-width: 1000px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-right: 10px;
}

.modal-use-case-image {
  flex: 1 1 300px;
  min-width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 18px;
}

.modal-use-case-text {
  flex: 2 1 300px;
  min-width: 250px;
  line-height: 1.6;
  color: black;
  margin-top: 18px;
}

.left-column img {
  width: 75%;
}

.right-column {
  flex: 1;
  min-width: 200px;
}
.right-column img {
  width: 75%;
}

.red {
  color: #e99b9e;
  font-weight: 600;
}

.blue {
  color: #94c5e8;
  font-weight: 600;
}

/* Mission Planning */
.mission_planning_card {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  background-color: white;
  /* outline: 1px white solid; */
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.mission_planning_card_left {
  border-right: 1px black solid;
}

.zone-tooltip {
  font-weight: bold;
  font-size: 1.5em;
  white-space: nowrap;
}

.leaflet-tooltip.zone-tooltip {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1;
}

.leaflet-tooltip.zone-tooltip.leaflet-tooltip-top:before,
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-bottom:before,
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-left:before,
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-right:before {
  border-color: transparent !important;
}

.mission_planning_card {
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  background-color: #333;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.mission_planning_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mission_planning_card.button-active {
  border: 1px solid #c2e5f9;
  background-color: var(--lightgray);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.mission_planning_card.disabled,
.button-submit.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mission Planning World Q Description */
.review_box {
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 24px;
}

ul,
ol {
  margin-left: 24px;
  list-style-position: inside;
}
/* Container div for centering and background */
.review_button {
  border: none;
  border-radius: 8px;
  background: var(--gradient);
}
.review_button {
  position: relative;
  z-index: 1;
  height: 48px;
  margin-top: auto;
  padding: 10px 24px;
  background-color: #e8ecf2;
  color: black;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  text-align: left;
}
.review_button::before {
  content: "";
  position: absolute;
  inset: 0.15em;
  /* background-color: black; */
  z-index: -1;
}

.mission_planning_border_gradient {
  border: 10px solid;
  border-radius: 8px;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(to right, #5090c9, #d75e5e, #e7bf52);
}
.mission_planning_gradient_container {
  width: 100%;
  position: relative;
  padding: 4px;
  border-radius: 8px;
  background: linear-gradient(to right, #5090c9, #d75e5e, #e7bf52);
  display: inline-block;
  cursor: pointer;
}

.mission_planning_gradient_button {
  background-color: var(--lightgray);
  padding: 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mission_planning_gradient_container:hover .mission_planning_gradient_button {
  background-color: transparent;
  color: #fff;
}

.mission_planning_gradient_button_white {
  color: black;
  background-color: var(--lightgray);
  padding: 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mission_planning_gradient_container:hover
  .mission_planning_gradient_button_white {
  background-color: transparent;
  color: #fff;
}

#mission_planning_run_button.disabled {
  /* background: black; */
  cursor: not-allowed;
  opacity: 0.2;
  pointer-events: none;
}

#mission_planning_reset_button.disabled {
  /* background: black; */
  cursor: not-allowed;
  opacity: 0.2;
  pointer-events: none;
}

.mission_planning_unit {
  animation: pulsate 2s ease-out;
  animation-iteration-count: infinite;
  -webkit-animation: pulsate 2s ease-out;
  -webkit-animation-iteration-count: infinite;
  opacity: 0.25;
}

@keyframes pulsate {
  0% {
    transform: opacity(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: opacity(0);
  }
}

.mission_planning_location {
  /* Add styling to locations here if needed */
}

.leaflet-pane .zone-circle {
  cursor: default;
}

/* LOADER / SPINNER */
#spinner-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000;
  gap: 12px;
  display: none;
}

#spinner-text {
  font-size: larger;
}
/* Spinner CSS */
.loader2 {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #5090c9;
}
.loader2:before,
.loader2:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}
.loader2:after {
  color: #d75e5e;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: 0.2em 0px 0 0px currentcolor;
  }
  12% {
    box-shadow: 0.2em 0.2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 0.2em 0 0px currentcolor;
  }
  37% {
    box-shadow: -0.2em 0.2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -0.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -0.2em -0.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0px -0.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: 0.2em -0.2em 0 0 currentcolor;
  }
}

/* MONTE CARLO */

h1#title {
  outline: 2px red dotted !important;
  font-size: 5em;
  background: linear-gradient(45deg, #5090c9, #d75e5e, #e7bf52);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  display: inline-block;
}
div.demo-area {
  /* margin: 24px 0; */
  border-radius: 0 8px 8px 8px;
  box-shadow: 4px 4px 10px rgba(33, 29, 83, 0.15);
  background: var(--backgroundgray);
  padding: 24px;
  display: block;
  float: left;
  width: calc(100% - 40px);
  border: 1px solid white;
}
/* div.input-container {
  display: block;
  float: left;
  background: var(--backgroundgray);
  width: 240px;
  padding: 23px;
  border-radius: 8px;
  box-shadow: 4px 4px 10px rgba(33, 29, 83, 0.15);
  border: 1px solid white;
} */

div.inputs {
  position: relative;
}
div.results-container {
  float: left;
  display: block;
  margin: 0px;
  padding: 0px;
  margin-top: 0;
  padding-top: 0;
  /* width: calc(100% - 368px); */
}
div#results {
  margin-bottom: 12px;
}
#myChart {
  background: white;
}
div.header {
  width: 100%;
  background: white;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 4px 4px 10px rgba(33, 29, 83, 0.15);
  border-bottom: 1px solid white;
}
#logo {
  width: 120px;
  margin: 8px;
  margin-left: 48px;
}
div.examples {
  width: 240px;
  height: 240px;
  background: white;
  margin: 16px;
  float: left;
  border-radius: 8px;
  box-shadow: 4px 4px 10px rgba(33, 29, 83, 0.15);
}
hr.break {
  width: 100%;
  margin-top: 24px;
}
/* canvas {
  background: #F6F3ED;
	padding: 12px;
	width:calc(100% - 40px);
} */

.slider-value {
  position: absolute;
  top: 34px;
  background: #5090c9;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
}

.tab-container {
  display: flex;
  border-bottom: 2px solid #ccc;
  background-color: var(--backgroundgray);
  width: 400px;
  color: white;
  border: 1px solid white;
  border-radius: 8px 8px 0 0;
}

.tab {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 8px 8px 0 0;
  color: white;
  padding: 24px 32px;
}

.tab:hover {
  background-color: var(--backgroundgray);
}

.tab.active {
  border-bottom: 4px solid #d75e5e;
  font-weight: bold;
  background-color: var(--backgroundgray);
  color: #d75e5e;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.about-area {
  max-width: 30%;
  float: left;
  position: relative;
  z-index: 1;
}

.graphic-area {
  width: 60%;
  float: left;
  display: flex;
  justify-content: center;
  margin: 24px;
}
img#monte {
  max-width: 1200px;
  margin: auto;
}

/* MEDIUM SCREEN SIZE */
@media (max-width: 1199px) {
  .selector {
    margin-top: 24px;
    margin-left: 24px;
    margin-right: 24px;
    width: unset;
    min-width: unset;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 8px 8px 0 0;
    background-color: white;
    color: black;
    box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
    display: flex;
    grid-template-columns: 1fr 1fr;
    justify-content: space-around;
    gap: 8px;
    border-bottom: 1px #e6e0e9 solid;
    overflow: auto;
    text-wrap: nowrap;
  }

  .picture-container {
    grid-template-columns: 1fr 1fr !important;
  }

  .about-us-card {
    width: unset;
    margin-right: 24px;
    margin-left: 24px;
    padding: 26px;
    padding-top: 20px;
    margin-top: 0px;
    border-radius: 0 0 8px 8px !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .live-card {
    width: unset;
    margin-right: 24px;
    margin-left: 24px;
    padding: 26px;
    padding-top: 20px;
    margin-top: 0px;
    border-radius: 0 0 8px 8px !important;
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
  }

  .about-us-div {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-us-div-right {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .main-container {
    flex-direction: column;
  }

  #sidenav-placeholder {
    display: none;
  }

  .gradient-text {
    font-size: 64px;
  }

  .homepage_main {
    margin: 24px;
  }

  .chart {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .boost_section:first-child {
    padding-right: unset;
    border-right: unset;
  }

  .legend {
    padding: 5px 5px;
    font: 14px Arial, Helvetica, sans-serif;
    background: #d3dae6e5;
    border-radius: 5px;
    line-height: 20px;
    overflow-y: auto;
    max-height: 25vh;
  }
}

/* Mobile Styles */
@media (max-width: 599px) {
  .gradient-text {
    font-size: 48px;
  }

  .picture-container {
    grid-template-columns: 1fr !important;
  }

  .about-us-finance-simulation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-us-uas-movie {
    margin: 0;
  }

  header .nav_links,
  header .button-contact {
    display: none;
  }

  header {
    padding: 8px 16px;
  }

  .card,
  .modal-content-row,
  .mission_planning_card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .homepage_container {
    grid-template-columns: 1fr;
  }

  .live_demo_left,
  .live_demo_right,
  .about-area,
  .graphic-area {
    grid-column: 1;
    width: 100%;
    float: none;
    max-width: 100%;
    margin: 12px 0;
  }

  .mission_planning_card_left {
    border-right: none;
    border-bottom: 1px #ccc solid;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .results-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  div.demo-area {
    width: 100%;
    padding: 12px;
  }

  h1#title {
    font-size: 12vw;
  }

  body {
    font-size: 16px;
  }

  .card,
  footer,
  .live_demo_left,
  .live_demo_right {
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .button-contact {
    margin-left: 0;
  }

  .data-top-small {
    flex-basis: 100%;
  }

  .about-us-div-right {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .selector {
    margin-top: 24px;
    margin-left: unset;
    margin-right: unset;
    width: 100%;
    min-width: unset;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 8px 8px 0 0;
    background-color: white;
    color: black;
    box-shadow: 0px 4px 4px 0 rgba(33, 29, 83, 0.25);
    display: flex;
    grid-template-columns: 1fr 1fr;
    justify-content: space-around;
    gap: 8px;
    border-bottom: 1px #e6e0e9 solid;
    overflow: auto;
    text-wrap: nowrap;
  }

  .legend {
    padding: 5px 5px;
    font: 14px Arial, Helvetica, sans-serif;
    background: #d3dae6e5;
    border-radius: 5px;
    line-height: 20px;
    overflow-y: auto;
    max-height: 15vh;
  }
}

/* Hamburger Menu */
.hamburger-button {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-button .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--coreblue);
  transition: all 0.3s ease-in-out;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .nav_links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mobile-nav .nav_links li {
  padding: 20px 0;
  width: 100%;
  text-align: center;
}

.mobile-nav .header_link {
  font-size: 20px;
  font-weight: 600;
}

.mobile-nav .nav_selected::after {
  display: none;
}

.mobile-nav .button-contact {
  margin-top: 30px;
  margin-left: 0;
  transform: scale(1.2);
}

/* Sidebar Menu */
.sidebar-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  margin-right: 24px;
}

.sidebar-button .bar {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background-color: var(--coreblue);
  transition: all 0.3s ease-in-out;
}

.sidebar-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: lab(100% 0.01 -0.01 / 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.sidebar-nav.is-open {
  display: flex;
}

.sidebar-nav .nav_links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar-nav .nav_links li {
  padding: 20px 0;
  width: 100%;
  text-align: center;
}

.sidebar-nav .header_link {
  font-size: 20px;
  font-weight: 600;
}

.sidebar-nav .nav_selected::after {
  display: none;
}

.sidebar-nav .button-contact {
  margin-top: 30px;
  margin-left: 0;
  transform: scale(1.2);
}

@media (max-width: 1199px) {
  header > nav,
  header > .button-contact {
    display: none;
  }

  /* Show the hamburger button */
  .hamburger-button {
    display: block;
  }

  .sidebar-button {
    display: block;
  }
}

/* Sidebar */

aside {
  margin: -32px;
}

aside h2 {
  margin: 16px 0px;
  padding: 0px 32px;
}

.sidebar-items {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  padding: 8px 16px 8px 32px;
  justify-content: space-between;
}

a.sidebar-item {
  text-decoration: none;
  font-size: 14px;
  color: black; /* Set a default link color */
}

.sidebar-item.active {
  background-color: rgba(33, 29, 83, 0.08);
}

.sidebar-item:hover {
  background-color: var(--backgroundgray);
}

.sidebar-item.active:hover {
  background-color: rgba(24, 21, 64, 0.189);
}

.sidebar-demo span {
  margin-left: 16px;
}
