/* ASCII Art-inspired design */

body {
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

pre {
  font-family: "Courier New", monospace !important;
  font-size: 16px !important;
  color: white !important;
  background-color: transparent !important;
}

/* VSCode Look and Feel */

body,
input,
button,
select,
textarea {
  font-family: "Consolas", "Monaco", monospace;
}

/* Dark and Light Mode */

body.dark-mode {
  background-color: #1e1e1e;
  color: #d4d4d4;
}

.dark-modal {
  background-color: #1e1e1e !important;
  color: #d4d4d4 !important;
}

.btn-close {
  color: #d4d4d4 !important;
}

body.dark-mode .navbar {
  background-color: #252526;
}

body.dark-mode pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
}

body.dark-mode h2 {
  color: #d4d4d4 !important;
}

.results-text {
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

body.dark-mode .results-text {
  color: #d4d4d4;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

body.dark-mode .dashboard-numbers {
  color: #d4d4d4;
}

body.dark-mode .dashboard-label {
  color: #d4d4d4;
}

body.dark-mode .field-description {
  color: white;
  border-color: #ffffff;
}

body.dark-mode hr {
  border-color: #ffffff !important;
  border-bottom-color: #ffffff;
}

.background-orange {
  background-color: #fd7e14 !important;
  opacity: 0.85;
}

.background-white {
  background-color: white !important;
  opacity: 0.85;
}

.text-orange {
  color: #fd7e14 !important;
}

.text-green {
  color: #5fba7d;
}

body.dark-mode .text-green {
  color: #87ffaf;
}

.text-yellow {
  color: #f0e68c;
}

.text-purple {
  color: #c38ec7;
}

.text-blue {
  color: "rgb(36, 114, 200)";
}

.text-brown {
  color: #f7a35c!important;
}

/* change card background to be transparent but with slight opacity */
.card {
  background-color: rgba(255, 255, 255, 0.05);
}

.card-title {
  color: #d4d4d4;
}

/* Custom success color */
:root {
  --bs-success: #5fba7d;
}

/* Update the color of the text for .text-success */
.text-success {
  color: var(--bs-success) !important;
}

/* Update the background color of .bg-success */
.bg-success {
  background-color: var(--bs-success) !important;
}

/* Update the border color of .border-success */
.border-success {
  border-color: var(--bs-success) !important;
}

/* Update the background color and border color of .btn-success */
.btn-success {
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
}

/* Update the background color and border color of .btn-success:hover, .btn-success:focus, .btn-success:active, and .btn-success:disabled */
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:disabled {
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
}

footer.site-footer {
  background-color: rgba(143, 143, 143);
  color: white;
}

.hide-row {
  display: none;
}

.returns_table {
  overflow-x: auto;
  max-height: 500px; /* adjust this value based on your desired maximum height */
}
.returns_table table {
  width: auto; /* Override the default 100% width */
  margin: 0 auto; /* Center the table within the container */
}

.returns_table td {
  white-space: nowrap; /* Prevent text wrapping */
  padding: 0.25rem 0.5rem; /* Adjust cell padding */
}

.returns_table th {
  white-space: normal; /* Allow text wrapping in table headers */
  padding: 0.25rem 0.5rem; /* Adjust cell padding */
  text-align: center; /* Center the text in the header cells */
}

.content-section {
  opacity: 0.9;
  padding: 10px 10px 10px 10px;
  border: 1px solid ##5fba7d !important;
  border-left: 6px solid ##5fba7d !important;
  border-radius: 8px;
  margin-bottom: 20px;
}

.disclaimer {
  font-size: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding-bottom: 24px;
}

.content-section.dark-mode {
  background: #121212;
  opacity: 0.8;
  padding: 10px 10px 10px 10px;
  border: 1px solid #ffffff;
  border-left: 6px solid #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.code-block {
  background: darkgrey;
  opacity: 0.8;
  padding: 10px 10px 10px 10px;
  border: 1px solid #ffffff;
  border-left: 6px solid green;
  border-radius: 8px;
  margin-bottom: 20px;
}

.light-background {
  background: white !important;
}

.standout {
  opacity: 1 !important;
  z-index: 1000 !important;
  text-shadow: 0.05em 0 white, 0 0.05em white, -0.05em 0 white, 0 -0.05em white,
    -0.05em -0.05em white, -0.05em 0.05em white, 0.05em -0.05em white,
    0.05em 0.05em white;
}

.tooltip-inner {
  font-size: 100%;
  max-width: 400px !important;
  /* If max-width does not work, try using width instead */
}

#icon {
  cursor: arrow;
  user-select: none;
}

#hi_principal {
  position: fixed;
  bottom: -100%; /* Initial position, hidden out of the screen */
  right: -100%; /* Initial position, hidden out of the screen */
  opacity: 0;
  transition: all 1s ease-in-out;
}

#hi_principal.visible {
  bottom: 40px; /* Final position, visible on the screen */
  right: 20px; /* Final position, visible on the screen */
  opacity: 0.8;
}

.number-metric {
  font-size: 110%;
  vertical-align: middle;
}

.table-compact {
  font-weight: lighter !important;
  border-collapse: collapse; /* Ensures borders are collapsed for a clean look */
  line-height: 1.1;
}

.table-compact td,
.table-compact th {
  padding-top: 10px; /* Adjust this value to increase or decrease cell padding as needed */
  padding-bottom: 0px;
  vertical-align: middle; /* Aligns content vertically at the center of the cell */
}

.more-info {
  cursor: arrow;
  color: white;
}

.table-wrapper {
  position: relative;
  padding-bottom: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.table-responsive thead {
  position: sticky;
  top: 0;
  background-color: inherit;
  z-index: 10;
}

.task-progress {
  margin: 1rem 0;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 16px;
  overflow: hidden;
}

.rotate-icon {
  transition: transform 0.4s;
}
.rotate-icon.rotate {
  transform: rotate(90deg);
}

.editable {
  cursor: pointer;
  color: lightblue !important;
}

#map-container {
  background-image: url(../images/world.svg);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: relative;
}

#swan-container {
  position: relative;
}

.table-container {
  display: flex;
  justify-content: left;
  align-items: left;
  height: 100%;
}

#country-table {
  border-collapse: collapse;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.country-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 130px;
  height: 85px;
  border: 1px solid grey;
  border-radius: 10px;
  padding: 5px;
  background-color: rgba(33, 33, 33, 0.8);
  text-align: left;
  margin: 2px;
  font-size: 10px;
  overflow: hidden;
}

.flag {
  position: relative;
  top: -0px;
  left: 90px;
  width: 25px;
  height: auto;
  opacity: 0.5;
}

.country-text {
  position: relative;
  top: -15px;
  left: 0px;
}

.asset-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
  flex-grow: 1;
  height: 170px;
  border: 1px solid grey;
  border-radius: 8px;
  padding: 5px;
  background-color: rgba(33, 33, 33, 0.8);
  text-align: left;
  margin: 2px;
  font-size: 14px;
  overflow: hidden;
}

.asset-text {
  position: relative;
  top: 0px;
  left: 0px;
}
.asset-icon {
  position: relative;
  top: 10px;
  left: 140px;
  width: 25px;
  height: auto;
  opacity: 0.5;
}

.highlight {
  animation: pulse 2s linear;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.chart-border {
  background-color: white;
  opacity: 0.8;
  border: 1px solid #ffffff;
  border-left: 8px solid darkgray;
  border-radius: 8px;
}

#asset-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.countdown-item {
	color: #FBFBFB;  /* Snow */
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	line-height: 30px;
	margin: 4px;
	padding-top: 10px;
	position: relative;
	width: 100px;
	height: 100px;
}

.countdown-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.countdown-item span {
	color: #00B050;  /* Primary Yellow */
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.countdown-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100px;
	height: 100px;
}

.display-center {
  display: flex;
	align-items: center;
	justify-content: center;
}

.chart-box {
  border: 1px solid grey;
  border-radius: 8px;
  padding: 5px;
  margin: 2px;
  font-size: 14px;
}

.btn-tight {
  padding: 0.1rem 0.1rem !important;
  font-size: 70% !important;
  line-height: 1.1 !important;
  border-radius: 0.1rem !important;
}

.btn-outline-orange {
  color: #f0ad4e;
  background-color: transparent;
  border-color: #f0ad4e;
  height: 82%;
  width: 100%;
}

.left-border {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.button_load_portfolio {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-padding {
  padding-left: 40px !important;
  padding-right: 15px !important;
}

.extra-padding-sides {
  padding-left: 60px !important;
  padding-right: 60px !important;
}

.search-results {
  color: white;
  line-height: 1;
  max-height: 500px;
  overflow-y: auto;
  position: absolute;
  width: 80%;
  z-index: 999;
  background: #212529;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search-result-item {
  cursor: pointer;
  padding: 8px;
}

.search-result-item:hover {
  background: #eee;
  color: black;
}
