/* NAV BAR */
.navbar {
  background-color: var(--primary-dark) !important;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.dropdown-menu {
  background-color: var(--primary-dark) !important;
}

.bg-navColor {
  background-color: var(--primary-dark) !important;
}

.navbar-brand {
  color: var(--card-bg) !important;
  font-size: 1.5rem;
} /* Text color */

.logoStart {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
} /* First half of logo font */

.logoEnd {
  font-family: sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
} /* Second half of logo font */

.navbar-toggler {
  border-color: var(--card-bg);
} /* Mobile toggler border */

.navbar-custom:active {
  border-color: var(--card-bg);
  border-radius: 5px;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(246,241,241, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
} /* Mobile toggler image */

.custom-toggler.navbar-toggler {
  border-color: var(--card-bg);
}  /* Mobile toggler color */

a {
  color: var(--card-bg) !important;
  text-decoration: none;
} /* Navbar title + links color */

/* Right Links Styling */
.right-links {
  display: flex; /* Align items horizontally */
  align-items: left; /* Center items vertically */
  gap: 15px; /* Space between items */
  margin-left: auto; /* Align right-links to the right */
}

.social-icons {
  display: flex; /* Align items horizontally */
  align-items: left; /* Center items vertically */
  gap: 20px; /* Space between items */
  font-size: 1.3rem; /* Increase the size of the icons */
}

.share-button {
  display: flex; /* Ensure the share button is flex */
  align-items: left; /* Center items vertically */
  font-size: 1.3rem; /* Increase the size of the share icon */
  gap: 10px;
}

/* Change hover color of dropdown items */
.dropdown-item:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

/* Add hover effect for links */
a:hover {
  color: var(--primary-light) !important;
}

/* Center the right-links when the navbar collapses */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: left;
    width: 100%;
  }
  .right-links {
    justify-content: left;
    width: 100%;
  }
  .right-links .social-icons, .right-links .share-button {
    justify-content: left;
    width: auto;
  }
}

/* Center the right-links when the navbar collapses */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: left;
    width: 100%;
  }
  .right-links {
    justify-content: left;
    width: 100%;
  }
  .right-links .social-icons, .right-links .share-button {
    justify-content: left;
    width: auto;
  }
}

.navbar-brand {
  display: block;
  text-align: center;
}

.powered-by {
  display: block;
  font-size: 0.5em;
  margin-top: 0.5px;
}

/* Notice */
.notice {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #2b99ff;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #003b00;
  font-family: 'Courier New', monospace;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: auto;
}

.notice-button {
  background-color: #003b00;
  color: #105dcf;  /* Matrix green */
  border: 1px solid #003b00;
  box-shadow: 0 0 10px #2293fd;
  padding: 5px 15px;
  margin-left: 10px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.notice-button:hover {
  background-color: rgba(0, 255, 65, 0.3);
  color: #0075c4;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  border-color: #0080f8;
}

.notice-button:active {
  transform: scale(0.98);
}

/* Moving text inside the notice */
.notice .scrolling-text {
  display: inline-block;
  white-space: nowrap; /* Prevent the text from wrapping */
  animation: slide-in 15s linear infinite; /* Animate the text */
  max-width: 100%;
}

@keyframes slide-in {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .notice {
    font-size: 14px; /* Smaller font size for better readability on small screens */
    padding: 5px; /* Reduce padding for smaller screens */
  }
}

.console-overlay {
  width: 100%;
  max-width: 600px;  /* Maximum width on larger screens */
  background-color: #000;
  border: 2px solid #0f0;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 59, 0, 0.3);
  font-family: 'Courier New', monospace;
  margin: 20px auto;  /* Center the console */
  position: relative; /* For absolute positioning of timer */
  animation: consolePulse 2s ease-in-out infinite;
}

.console-output {
  color: #0f0;  /* Change to match progress bar color */
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-bottom: 0;
  height: 400px;
  max-height: 400px;
  
  /* Custom scrollbar styling */
  scrollbar-width: thin;  /* For Firefox */
  scrollbar-color: #0f0 #001100;  /* For Firefox */
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.console-output::-webkit-scrollbar {
    width: 8px;
}

.console-output::-webkit-scrollbar-track {
    background: #001100;
    border: 1px solid #0f0;
}

.console-output::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.console-header {
  background-color: #0f0;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f0;  /* Change header text color to match */
}

.console-title {
  color: #000;
  font-weight: bold;
}

.console-close {
  background: none;
  border: none;
  color: #000;
  font-size: 20px;
  cursor: pointer;
}

.console-content {
  padding: 15px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  background-color: #001100;
  height: 20px;
  margin-bottom: 15px;
  border: 1px solid #0f0;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #0f0;
  transition: width 0.5s ease;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.console-output::after {
  content: "_";
  animation: blink 1s infinite;
}

.matrix-button {
  background-color: #b9d0fb;
  color: #060606;  /* Matrix green */
  border: 1px solid #002e3b;
  box-shadow: 0 0 10px rgba(0, 38, 255, 0.3);
  padding: 5px 15px;
  margin-left: 10px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.matrix-button:hover {
  background-color: rgb(251, 251, 251);
  color: #003b00;
  box-shadow: 0 0 10px rgb(0, 89, 255);
  border-color: #003b00;
}

.matrix-button:active {
  transform: scale(0.98);
}

/* Red theme for active tracking state */
.matrix-button.tracking-active {
  background-color: #3b0000;
  color: #ff4141;
  border: 1px solid #3b0000;
  box-shadow: 0 0 10px rgba(255, 65, 65, 0.3);
}

.matrix-button.tracking-active:hover {
  background-color: rgba(255, 65, 65, 1);
  color: #3b0000;
  box-shadow: 0 0 10px rgba(255, 65, 65, 1);
  border-color: #3b0000;
}

/* Add responsive font sizing */
@media (max-width: 768px) {
  .console-output {
    font-size: 12px;  /* Slightly smaller font on mobile */
    margin-bottom: 10px;
    height: 250px;      /* Taller on mobile */
    max-height: 250px;  /* Maximum height on mobile */
  }
  
  .console-overlay {
    margin: 10px 20px;  /* Add even margins on both sides */
    width: auto;        /* Allow width to adjust with margins */
    max-width: calc(100% - 40px); /* Ensure it doesn't overflow */
  }

  .console-content {
    padding: 15px;      /* Keep consistent padding */
  }
}

/* Update the timestamp and coordinates format for better wrapping */
.console-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#timer-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  padding: 8px 15px;
  border-top: 1px solid #003b00;
  color: #0f0;
  display: flex;
  justify-content: space-between;
  font-family: 'VT323', 'Courier New', monospace;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;  /* Increased from default */
}

#data-points-counter {
  color: #0f0;
  font-weight: bold;
}

/* Add responsive adjustments for very narrow screens */
@media (max-width: 768px) {
  .console-output {
    font-size: 12px;
    margin-bottom: 10px;
    height: 400px;      /* Taller on mobile */
    max-height: 400px;  /* Maximum height on mobile */
  }
  
  #timer-line {
    font-size: 14px;  /* Slightly smaller on mobile but still larger than before */
  }
}

@keyframes consolePulse {
    0% {
        border-color: #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    50% {
        border-color: #00ff41;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    }
    100% {
        border-color: #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
}

/* CRT screen effect */
@keyframes textShadow {
    0% {
        text-shadow: 0.1389924193300864px 0 1px rgba(0, 30, 255, 0.5),
                     -0.1389924193300864px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
    5% {
        text-shadow: 0.7928974010788217px 0 1px rgba(0,255,0,0.5),
                     -0.7928974010788217px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
    100% {
        text-shadow: 0.1389924193300864px 0 1px rgba(0,255,0,0.5),
                     -0.1389924193300864px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(400px);
    }
}

.console-overlay {
    /* ... existing styles ... */
    position: relative;
    overflow: hidden;
    animation: consolePulse 2s ease-in-out infinite;
}

.console-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 255, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

/* Scanning line effect */
.console-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(0, 255, 0, 0.15);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.console-output {
    /* ... existing styles ... */
    animation: textShadow 1.6s infinite;
    font-family: 'VT323', 'Courier New', monospace;
    letter-spacing: 0.5px;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Add slight blur effect */
.console-content {
    /* ... existing styles ... */
    filter: blur(0.3px);
}

/* Add slight chromatic aberration */
.console-output {
    /* ... existing styles ... */
    text-shadow: 1px 0 0 rgba(0, 255, 0, 0.5),
                -1px 0 0 rgba(0, 255, 0, 0.3);
}

/* CRT and Retro Effects for entire console */
.console-overlay {
    position: relative;
    overflow: hidden;
    animation: consolePulse 2s ease-in-out infinite;
    filter: blur(0.3px);
}

.console-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 255, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.console-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(0, 255, 0, 0.15);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Apply retro effects to header */
.console-header {
    position: relative;
    font-family: 'VT323', 'Courier New', monospace;
    text-shadow: 1px 0 0 rgba(0, 255, 0, 0.5),
                -1px 0 0 rgba(0, 255, 0, 0.3);
    animation: textShadow 1.6s infinite;
}

/* Apply effects to timer line */
#timer-line {
    position: relative;
    font-family: 'VT323', 'Courier New', monospace;
    text-shadow: 1px 0 0 rgba(0, 255, 0, 0.5),
                -1px 0 0 rgba(0, 255, 0, 0.3);
    animation: textShadow 1.6s infinite;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Adjust existing animations for consistency */
@keyframes textShadow {
    0% {
        text-shadow: 0.1389924193300864px 0 1px rgba(0,255,0,0.5),
                     -0.1389924193300864px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
    5% {
        text-shadow: 0.7928974010788217px 0 1px rgba(0,255,0,0.5),
                     -0.7928974010788217px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
    100% {
        text-shadow: 0.1389924193300864px 0 1px rgba(0,255,0,0.5),
                     -0.1389924193300864px 0 1px rgba(0,255,0,0.3),
                     0 0 3px;
    }
}

/* Make the actual time digits slightly larger than the labels */
#system-timer, #data-points-counter {
    font-size: 18px;  /* Even larger for the numbers */
    font-weight: bold;
}

/* Adjust mobile view if needed */
@media (max-width: 768px) {
    #timer-line {
        font-size: 14px;  /* Slightly smaller on mobile but still larger than before */
    }
    
    #system-timer, #data-points-counter {
        font-size: 16px;  /* Adjust the numbers size for mobile */
    }
}

/* Adjust main container to account for fixed notice */
.container {
    position: relative;
    z-index: 1;
    margin-top: 0px;
}

/* Ensure the notice text stays contained */
.notice .scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: slide-in 15s linear infinite;
    max-width: 100%;
}



