
/* slate color scheme */
[data-md-color-scheme="slate"] {
  --gradient-start: #1b2735;
  --gradient-end: #3a6073;
  --text-color: #e0e6ed;
  --highlight-color: #047180;
  --button-hover: #008ba3;
  --button-bg: #243b4a;
  --button-bg-hover: #345d6f;
  --modal-bg: #1e2e39;
  --command-bg-color: white;
  --command-text-color: black;
  --code-text-color: #e0e6ed;
  --code-bg-color: #0f1a1d; /* Dark green-blue-gray for command examples */
  --notification-success-bg: rgb(75, 117, 90);
  --notification-error-bg: rgb(139, 60, 60);
  --notification-warning-bg: rgb(151, 151, 47);
}

/* light color scheme */
[data-md-color-scheme="light"] {
  --gradient-start: white;
  --gradient-end: #4D81A7;
  --text-color: #102a43; /* Dark blue with high contrast for legibility */
  --highlight-color: #4D81A7; /* Vibrant sea green for accents */
  --button-hover: #78bef0; /* Light sea green for hover states */
  --button-bg: #dfeffa; /* Bright orange for buttons */
  --button-bg-hover: #f7eae9; /* Darker orange for button hover states */
  --modal-bg: #ffffff; /* Pure white for a clean modal background */
  --command-bg-color: #f0fff4; /* Very pale green, almost white */
  --command-text-color: #234e52; /* Dark slate green */
  --code-text-color: #1a202c; /* Very dark gray-blue */
  --code-bg-color: #cbd5e0; /* Light blue-gray for code blocks */
  --notification-success-bg: rgb(158, 240, 158);
  --notification-error-bg: rgb(245, 158, 158);
  --notification-warning-bg: lightyellow;
}




/* only applies to slate theme unless marked !important */
.md-content h1, 
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6,
.md-tabs,
.md-header,
.md-footer,
.md-nav__title {
  color: var(--text-color) !important;
}


/* BEGIN CUSTOM SLATE THEME */
.md-main {
  background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end)) !important;
  color: var(--text-color) !important;
}
  

/* slate color scheme borders */
.md-tabs,
.md-header,
.md-footer,
.md-nav,
.md-nav__title {
  background-color: var(--gradient-start) !important;  /* Force override */
}


.md-source{
  background-color: var(--gradient-start) !important;
}

.md-clipboard.md-icon {
  color: var(--text-color);
}
/* END SLATE CUSTOM THEME, BEGIN LIGHT THEME CUSTOMIZATION */
[data-md-color-scheme="light"] .logo {
  opacity: 0.7; 
}


.md-clipboard.md-icon {
  display: block;
  margin-top: -25px;
  margin-right: -23px;
}

#toc-toggle {
  width: 100%;
  padding: 4px;
  margin-top: 10px;
  background-color: var(--button-bg); 
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
  text-transform: uppercase;
}


/* no longer needed, gets applied to modal directly in js */
/* .content-custom{
  text-align: center;
  padding: 20px;
  color: var(--text-color);
  position: relative;
} */


.content table {
  margin-left: auto;
  margin-right: auto;
}


.button-container {
  display: flex;
  justify-content: center; /* This will center the buttons within the container */
  flex-wrap: wrap; /* Allows buttons to wrap to the next line on smaller screens */
  position: relative;
}

.btn-cyber {
  background-color: var(--button-bg);
  color: var(--text-color) !important;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s;
  margin: 10px;
}



/* .btn-close {
  display: inline-block; 
  float: right;
  margin-right: -15px;
  margin-top: -15px;
} */

.btn-cyber.btn-close {
  float: right; /* Aligns the icon to the right */
  margin-right: -20px;
  margin-top: -20px;
  color: inherit; /* Inherits color from parent, or specify your desired color */
  font-size: 18px; /* Adjust the font size smaller or as needed */
}


/* Media queries to adjust button sizing on smaller screens */
@media (max-width: 830px) {
  .btn-cyber {
    padding: 0px 10px;  /* Slightly smaller padding */
    font-size: 14px;  /* Smaller font size to fit more easily */
  }
}

.btn-cyber:hover {
  background-color: var(--button-bg-hover);
}

/* BEGIN MODALS */
.modal-content {
  display: none;
  background: var(--modal-bg);
  color: var(--text-color);
  max-width: 1250px;
  overflow: auto; /* This will contain the floated elements */
  /* text-align: center; */
}

@media (min-width: 992px) { /* Desktops and up */
  .modal-content {
    width: 60%;  /* Slightly wider for normal desktops */
  }
}

@media (min-width: 1200px) { /* Large desktops */
  .modal-content {
    width: 60%;  /* More appropriate width for large desktops */
    max-width: 1000px;  /* Increase max width for very large screens */
  }
}

@media (min-width: 1600px) { /* Extra large desktops */
  .modal-content {
    width: 60%;  /* Consistent width for extra large desktops */
    max-width: 1200px;  /* Allow a larger maximum width */
  }
}

/* Style for displaying code snippets */
.modal-content code {
  display: block;
  white-space: pre; /* Maintains whitespace formatting */
  background-color: var(--code-bg-color); /* Light background to highlight code */
  color: var(--code-text-color); /* Ensures text is easily readable */
  padding: 10px;
  margin: 10px 0; /* Adds space above and below the code block */
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace; /* Monospaced font for code */
  overflow-x: auto; /* Adds horizontal scrolling if code is too long */
}

.modal-content p.command-example {
  font-style: italic;
  background-color: var(--command-bg-color);
  padding: 10px;
  border-radius: 5px;
  color: var(--command-text-color);
}

.code-script-left-align {
  text-align: left !important; /* Aligns the text to the left */
}

/* horizontal line */
.styled-hr {
  border: 0;
  height: 2px;
  background-image: linear-gradient(to right, var(--gradient-end), var(--gradient-start), var(--gradient-start));
  margin-top: 20px;
  margin-bottom: 20px;
}


.section-title {
  text-align: left;
  font-style: italic;
}


button {
  display: block;
  margin-top: 20px;
}

/* modify logo */
.logo {
  width: 15vw; /* vw units represent a percentage of the viewport width */
  height: auto; /* maintains the aspect ratio */
  opacity: 0.4; 
  border-radius: 50%;
}
.md-logo svg {
  display: none !important; /* Hides the SVG */
}
.md-logo {
  display: inline-block; /* Ensures the anchor behaves like an image */
  width: 1.5vw; /* vw units represent a percentage of the viewport width */
  height: 1.5vw; /* maintains the aspect ratio */
  background-image: url('../images/logo.png'); /* Path to new logo image */
  background-size: cover; /* Cover the entire area of the tag */
  background-position: center; /* Center the background image */
  opacity: 0.7; 
  border-radius: 50%;
}
/* end modify logo */


/* BEGIN NOTIFCATIONS */

.feedback-notification {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  color: var(--text-color);
  text-align: center;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  font-size: 15px;
  background-color: var(--gradient-start);
  opacity: 0; /* Start invisible */
  visibility: hidden; /* Ensures it doesn't interfere when not active */
  transition: visibility 0s, opacity 0.6s linear;
}

.feedback-notification.show {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s 0s, opacity 0.1s linear;
}

.feedback-notification.hide {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 3s, opacity 0.6s linear;
}

.feedback-notification.success {
  background-color: var(--notification-success-bg);
}

.feedback-notification.error {
  background-color: var(--notification-error-bg);
}

.feedback-notification.warning {
  background-color: var(--notification-warning-bg);
}

/* END NOTIFCATIONS */

/* icons */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(./MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* You can adjust the size as needed */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  vertical-align: middle;
}


/* Mini navigation container */
.mini-nav {
    display: flex; /* Aligns items in a row */
    justify-content: flex-end; /* Aligns content to the right */
    background-color: var(--gradient-start); /* Inherit background color from primary foreground color */
    border-radius: 8px; /* Rounded corners for the box */
    padding: 10px; /* Padding inside the box */
    margin-top: 20px; /* Space from the top or other elements */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Subtle shadow for depth */
    color: var(--text-color);
    flex-wrap: wrap;
}

/* Style for individual navigation items */
.mini-nav a {
    display: flex;
    align-items: center; /* Center items vertically */
    padding: 5px 10px; /* Padding around links */
    text-decoration: none; /* Remove underline */
    color: var(--md-primary-bg-color); /* Text color inherits from primary background color */
    font-size: 0.75rem; /* Smaller font size for compact appearance */
    margin: 0 5px; /* Spacing between items */
    color: var(--text-color);
    height: 20px; /* Adjust height as needed */
}

.mini-nav .material-icons {
    font-size: 16px; /* Icon size */
    margin-right: 5px; /* Space between icon and text */
    color: var(--text-color);
}

.mini-nav .nav-title {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 0.65rem;
  margin-right: auto; /* Pushes all other items to the right */
  height: 20px;
  font-weight: bold;
  color: gray;
}

/* temporary for table */
.custom-table {
  width: 90%; /* Full width to use up all available space */
  /* center content */
  text-align: center;
  /* center table */
  margin-left: auto;
  margin-right: auto;
}



/* IDE Container */
.ide-container {
  background-color: #1e1e1e;
  color: #ffffff;
  font-family: monospace;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CodeMirror Styling */
.CodeMirror {
  width: 80%;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #2d2d2d;
  color: #ffffff;
  font-size: 14px;
  font-family: monospace;
}

/* Run Button */
.run-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

/* Output */
.output {
  width: 80%;
  background-color: #2d2d2d;
  color: #ffffff;
  border: #ccc;
  white-space: pre-wrap;
  font-family: monospace;
  margin-bottom: 10px;
}

/* Test Results */
.test-results {
  width: 80%;
  background-color: #2d2d2d;
  color: #ffffff;
  border: 1px solid #ccc;
  white-space: pre-wrap;
  font-family: monospace;
}
/* END IDE */

/* BEGIN TERMINAL - migrated directly into the md/html file */
/* Terminal Output */
/* .terminal-output {
  font-size: 11px;
  font-family: monospace;
  color: #00ff00;
  background: #000;
  padding: 10px;
  max-height: 600px;
  overflow-y: auto; */
  /* DONT NEED THE BELOW ITEMS */
  /* white-space: pre-wrap; */
  /* display: flex; */
  /* flex-direction: column; Stack elements vertically */
  /* justify-content: flex-end; Place input at the bottom */
/* } */

/* .terminal-input {
  border: none;
  background: none;
  color: #00ff00;
  width: 100%;
  font-family: monospace;
  outline: none;
} */
/* END TERMINAL */
