/* General reset and body styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1e1e1e;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

/* Terminal container styling */
.terminal-container {
    background-color: #2b2b2b;
    border: 2px solid #4d4d4d;
    border-radius: 5px;
    width: 90vw;           /* Make the terminal window fill more of the viewport width */
    height: 80vh;          /* Adjust height to cover more of the viewport height */
    max-width: 1000px;     /* Set a maximum width for large screens */
    max-height: 90vh;      /* Set a maximum height for large screens */
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

/* Title bar for the terminal */
.terminal-title-bar {
    display: flex;
    align-items: center;
    background-color: #333333;
    padding: 8px 10px;
    border-bottom: 2px solid #4d4d4d;
    color: #bbbbbb;
    font-weight: bold;
    font-size: 0.9em;
}

/* Window control buttons */
.window-buttons {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-button.red {
    background-color: #ff5f56;
}

.window-button.yellow {
    background-color: #ffbd2e;
}

.window-button.green {
    background-color: #27c93f;
}

/* Content area styling */
.terminal-content {
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 10px;
    white-space: pre-wrap;
    flex-grow: 1;           /* Allows the content area to expand and take up remaining space */
}

/* Blinking cursor styling */
.terminal-cursor {
    display: inline-block;
    animation: blink 0.7s steps(2, start) infinite;
}

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

/* Scroll bar styling */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 5px;
}

/* Empty line styling for better spacing between lines */
.empty-line {
    margin: 8px 0;
    line-height: 1.5;
}

/* Input line styling */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt-symbol {
    color: #00ff00;
    margin-right: 5px;
    font-family: inherit;
    font-size: 1em;
}

#command-input {
    background: none;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: inherit;
    font-size: 1em;
    width: 100%;
}

#command-input::placeholder {
    color: #4d4d4d;
}

/* Cursor animation */
#command-input {
    caret-color: #00ff00;
}

body.mobile .terminal-container {
    width: 100vw;          /* Full width on mobile */
    height: 100vh;         /* Full height on mobile */
    overflow: auto;        /* Enable both horizontal and vertical scrolling */
    font-size: 12px;       /* Smaller font for readability on mobile */
    padding: 10px;         /* Adjust padding for better fit on small screens */
}

/* Terminal content area with scrolling adjustments for mobile */
body.mobile .terminal-content {
    overflow-x: auto;       /* Enable horizontal scrolling for wide ASCII art */
    overflow-y: auto;       /* Enable vertical scrolling for lengthy content */
    white-space: pre;       /* Preserve whitespace for ASCII formatting */
    flex-grow: 1;           /* Allows the content to expand within the container */
    line-height: 1.2;       /* Compact line height for fitting content */
}

/* Button styling */
.back-button {
    background-color: #4d4d4d;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 20px;
}

.back-button:hover {
    background-color: #00ff00;
}

/* Full-terminal view for music player */
.terminal-container.fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
}

/* Lyrics display */
.lyrics {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    text-align: center;
}

/* Track title and note icon */
.track-info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    padding: 10px;
    background-color: #333333;
}

.track-info .note-icon {
    margin-right: 10px;
}
