/*
Theme Name: D8 Linux Terminal Theme
Theme URI: http://d8devs.com/d8-linux-terminal-wordpress-theme
Author: d8devs
Author URI: http://d8devs.com
Description: A terminal-like WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: d8-linux-terminal-theme
*/
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#terminal {
    background-color: #300a24; /* Ubuntu terminal background color */
    color: #fff;
    font-family: 'Courier New', monospace;
    padding: 20px;
    height: 100%;
    box-sizing: border-box; /* Include padding in height calculation */
    position: relative; /* Needed for absolute positioning of children */
}

#history {
    height: calc(100% - 60px); /* Adjust height considering command input height */
    overflow-y: auto;
    background-color: #300a24; /* Terminal background color */
    color: #fff;
    font-family: 'Courier New', monospace;
    padding: 10px;
    box-sizing: border-box; /* Include padding in height calculation */
}

#commandInput {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

#suggestions {
    color: #aaa; /* Lighter color for suggestions */
    font-style: italic;
    margin-top: 10px;
}

.command-line {
    display: flex; /* Use flexbox to align items in a row */
    align-items: center; /* Align items vertically in the center */
    white-space: nowrap; /* Prevent wrapping to a new line */
}

.command-line input {
    flex-grow: 1; /* Allow input to take up available space */
    margin-left: 5px; /* Optional: Add some space between $ and input */
}

.clickable-post {
    color: #FF865C; /* Ubuntu terminal link color */
    cursor: pointer;
    text-decoration: none;
}

.shared-links {
    font-size: .7rem;
}

.terminal-button {
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    border: none;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.terminal-button:hover {
    background-color: #555; /* Slightly lighter background on hover */
}

.pagination-controls {
    text-align: center;
    margin-top: 10px;
}

#history > img {
    max-width: 90%;
    height: auto;
    border: 3px solid #fff; /* White border */
    padding: 5px;
    background-color: #000; /* Black background for the frame */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Optional: Adds a shadow for depth */
}


#history > img {
    transition: transform 0.3s ease;
}

#history > img:hover {
    transform: scale(1.05);
}

/* Style for the terminal links */
.terminal-link {
    color: #FF865C; /* Ubuntu terminal link color */
    text-decoration: none; /* Removes underline from links */
    cursor: pointer;
}

.terminal-link:hover {
    text-decoration: underline; /* Adds underline on hover */
}

/* Style for the share links section */
.share-links a {
    color: #FF865C; /* Ubuntu terminal link color */
    margin-right: 10px; /* Adds some space between the links */
}

.text-orange {
    color: #FF865C; /* Ubuntu terminal link color */
}

.share-links a:hover {
    text-decoration: underline; /* Adds underline on hover */
}

table.no-spacing {
    border-spacing:0; /* Removes the cell spacing via CSS */
    border-collapse: collapse;  /* Optional - if you don't want to have double border where cells touch */
}

pre {
    background-color: #f5f5f5; /* Light grey background */
    border: 1px solid #ddd; /* Light border */
    border-left: 3px solid #f36d33; /* Accent border */
    color: #666; /* Darker text color for readability */
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px; /* Larger font size */
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}

code {
    background-color: #f5f5f5; /* Light grey background */
    font-family: monospace;
    font-size: 0.9em; /* Slightly smaller font size */
    color: #666; /* Darker text color for readability */
    border: 1px solid #ddd; /* Light border */
}
@media (max-width: 600px) {
    pre {
        padding: 0.5em; /* Smaller padding on small screens */
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #fff; /* White color for headers */
    margin-top: 1em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 1em;
}