html {
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    background-color: #2e3b4e; /* Dark background */
    color: #cfe5ff; /* Light text color */
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2e3b4e;
    z-index: 100; /* Ensure the header is on top */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.acronym-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap to the next line */
    justify-content: center; /* Center the buttons */
    margin: 1rem 0; /* Add margin for spacing */
}

.acronym-button {
    background-color: #3b4e6e; /* Button background color */
    color: #cfe5ff; /* Light text color */
    border: none; /* No border */
    border-radius: 0.25rem; /* Rounded corners */
    padding: 0.5rem 1rem; /* Padding for better appearance */
    margin: 0.25rem; /* Margin between buttons */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.acronym-button:hover {
    background-color: #cfe5ff; /* Highlight on hover */
    color: #2e3b4e; /* Dark text color on hover */
}

.separator {
    width: 0.2rem; /* Full width */
    height: 1.45rem; /* Height of the separator */
    background-color: #cfe5ff; /* Color of the separator */
    margin: 0.65rem 0.5rem; /* Margin for spacing above and below */
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 1rem; /* 16px */
    position: relative;
}


.prompt {
    margin-right: 0.5rem; /* 8px */
    font-weight: bold;
}

.input-container {
    display: flex; /* Use flexbox for the input container */
    align-items: center; /* Align items vertically */
    width: 100%; /* Ensure it takes full width */
}

.input-field {
    border: none; /* No border */
    background: transparent; /* Transparent background */
    color: #cfe5ff; /* Light text color */
    outline: none;
    font-size: 1rem; /* 16px */
    text-transform: uppercase; /* Force capitalization */
    padding: 0.5rem; /* Padding for better appearance */
    padding-left: 0.75em; /* Adjust left padding to create space for the caret */
    height: 1.5em; /* Set a height for the input field */
    flex-grow: 1; /* Allow the input field to grow */
    min-width: 6.25rem; /* Minimum width to prevent collapsing (100px) */
    max-width: calc(100% - 120px); /* Adjust width to account for ticker space */
    box-sizing: border-box; /* Include padding in width calculation */
}

.ticker {
    margin-left: 1rem; /* Space between input and ticker */
    color: #cfe5ff; /* Light text color */
    font-size: 1rem; /* Font size for the ticker */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
    max-width: 200px; /* Set a maximum width for the ticker */
    flex-shrink: 0; /* Prevent ticker from shrinking */
}

.suggestion-container {
    background-color: #2e3b4e; /* Match the terminal background */
    color: #cfe5ff; /* Light text color */
    border: 1px solid #cfe5ff; /* Border for the suggestion box */
    border-radius: 0.25rem; /* Rounded corners */
    position: absolute; /* Position it absolutely */
    z-index: 10; /* Ensure it appears above other elements */
    width: 590px; /* Set a fixed width for the suggestion container */
    max-width: 95%; /* Set a maximum width of 95% of the parent container */
    left: calc(0.5rem); /* Offset to the right by 8px (0.5rem) */
    top: calc(100% + 0.5rem); /* Position below the input with some margin */
    height: auto; /* Allow height to grow based on content */
    overflow-y: auto; /* Scroll if too many suggestions */
    display: none; /* Initially hidden */
    padding: 0.5rem; /* Optional: Add some padding for better appearance */
    flex-direction: column; /* Ensure items stack vertically */
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    display: block;
    width: 100%;
    border-bottom: 1px solid #3b4e6e;
    box-sizing: border-box;
    text-align: left; /* Ensures text is left-aligned */
    align-items: flex-start; /* Aligns flex children to the start (left) */
}

.suggestion-item:hover {
    background-color: #cfe5ff; /* Highlight on hover */
    color: #2e3b4e; /* Dark text color on hover */
}

.ticker-country{
    display: inline; /* Keep tags inline */
    margin-right: 1rem; /* Space between the tags */
    vertical-align: middle; /* Align items vertically in the middle */
    font-weight: bold; /* Make ticker-suggestion bold */
    color: #cfe5ff; /* Light text color */
    padding: 0.5rem 1rem; /* Padding for better appearance */
}

.ticker-suggestion,
.command-suggestion{
    display: inline; /* Keep tags inline */
    margin-right: 1rem; /* Space between the tags */
    vertical-align: middle; /* Align items vertically in the middle */
    font-weight: bold; /* Make ticker-suggestion bold */
    color: #cfe5ff; /* Light text color */
    background-color: #3b4e6e; /* Background color similar to ticker items */
    border: 2px solid #cfe5ff; /* Border color to match */
    border-radius: 0.5rem; /* Rounded corners */
    padding: 0.5rem 1rem; /* Padding for better appearance */
}

.asset-class-tag {
    color: #26a69a; /* Text color for Asset Class */
    border-color: #26a69a; /* Border color for Asset Class */
    background-color: #e0f2f1; /* Lighter shade for background (more readable) */
    padding: 0.5rem 1rem; /* Padding for better appearance */
    border-radius: 0.5rem; /* Rounded corners */
    display: inline-block; /* Ensure it behaves like a block element */
    margin-right: 1rem; /* Space between the tags */
}
.command-tag{
    color: #ff8c00; /* Text color for Asset Class */
    border-color: #ff8c00; /* Border color for Asset Class */
    background-color: #ffe4b5; /* Lighter shade for background (more readable) */
    padding: 0.5rem 1rem; /* Padding for better appearance */
    border-radius: 0.5rem; /* Rounded corners */
    display: inline-block; /* Ensure it behaves like a block element */
    margin-right: 1rem; /* Space between the tags */
}

.ticker-suggestion,
.asset-class-tag,
.command-tag,
.description-suggestion {
    display: inline; /* Keep tags inline */
    margin-right: 1rem; /* Space between the tags */
    vertical-align: middle; /* Align items vertically in the middle */
}


/* Optional: Adjust the last item to remove the right margin */
.description-suggestion {
    margin-right: 0; /* Remove margin for the last item */
}
.app-container {
    background-color: #22e3b4e; /* Dark background */
    color: #cfe5ff; /* Light text color */
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    padding-top: 10rem; /* Add padding to create space below the header */
    min-height: calc(100vh - 5rem); /* Ensure the container takes up the remaining space */
    overflow-y: auto; /* Enable vertical scrolling */
}


/* Responsive adjustments */
@media (max-width: 37.5em) {
  .terminal-header {
    padding: 0.75rem; /* 12px */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    gap: 0.5rem; /* Add space between input and ticker */
    align-items: flex-start; /* Align items to the start (left) */
    width: 95%;
  }

  .input-container {
    display: flex;
    flex-direction: row; /* Keep prompt and input on same line */
    width: 100%; /* Take full width */
    align-items: center;
  }

  .input-field {
    font-size: 0.875rem; /* 14px */
    width: 90%; /* Take full width */
    max-width: 90%; /* Remove max-width restriction */
    padding: 0.5rem;
    margin-left: 0.25rem;
  }

  .prompt {
    margin-right: 0.25rem; /* 4px */
  }

  .ticker {
    display: block; /* Make the ticker visible */
    width: 95%; /* Take full width */
    text-align: center;
    margin: 0 auto; /* Changed to auto for horizontal centering */
    color: #cfe5ff; /* Light text color */
    font-size: 1rem; /* Font size for the the ticker */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
    padding: 0.25rem 0; /* Add some vertical padding */
  }

  .app-container {
    padding: 1rem; /* 16px */
    padding-top: 5rem; /* Add padding to create space below the header */
  }

  .acronym-container,
  .suggestion-container {
    display: none; /* Hide the acronym container and suggestion container */
  }
}

