body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Courier New', monospace;
    background-color: #1c1c1c;
    color: #d0d0d0;
}
.noscript-message {
    font-family: 'Courier New', monospace;
    background-color: #1c1c1c;
    color: #d0d0d0;
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.vim-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Use full viewport height */
    position: relative;
}
.content-area {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start; 
}
.line-numbers {
    padding: 10px;
    text-align: right;
    border-right: 1px solid #3a3a3a;
    align-self: stretch;  /* Stretch to fill the container */
    min-height: 100%; 
}
.text-content {
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.status-bar {
    background-color: #3a3a3a;
    padding: 5px 10px;
    font-size: 14px;
    position: fixed;
    bottom: 60px; /* Position above the instruction bar */
    left: 0;
    right: 0;
    z-index: 10;
    height: 30px; /* Set a fixed height */
    display: flex;
}
.instruction-bar {
    background-color: #2a2a2a;
    color: #00ff00;
    padding: 5px 10px;
    font-size: 14px;
    text-align: left;
    border-top: 1px solid #5f5f5f;
    position: fixed;
    bottom: 30px; /* Position above command line */
    left: 0;
    right: 0;
    z-index: 10;
    height: 30px; /* Set a fixed height */
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, #2a2a2a 80%, transparent),
                linear-gradient(to left, #2a2a2a 80%, transparent),
                #2a2a2a;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, calc(100% - 80px) 100%;
    background-position: left, right, center;
    background-attachment: local, local, local;
}
.command-line {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1c1c1c;
    padding: 5px;
    z-index: 10;
    height: 30px; /* Set a fixed height */
    display: block;
}
.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 90px; /* Increased padding to account for all bottom elements */
}
.command-input {
    width: 100%;
    background-color: #1c1c1c;
    color: #d0d0d0;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    height: 20px;
}
.command-input:focus {
    outline: none;
}
a {
    color: #00ff00; /* Bright green, very "terminal-like" */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.ascii-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1;
    font-size: 12px;
    overflow-x: auto;
}
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .ascii-art {
        font-size: 6px; /* Smaller font size for mobile */
    .scrollable-content {
        padding-bottom: 120px; /* Increased padding for mobile */
    }

    .status-bar {
        bottom: 90px; /* Move status bar higher on mobile */
    }

    .instruction-bar {
        bottom: 60px; /* Move instruction bar higher on mobile */
    }

    .command-line {
        height: 60px; /* Increase command line height for better touch interaction */
    }

    .command-input {
        height: 40px; /* Increase input height for better touch interaction */
        font-size: 16px; /* Larger font size for mobile */
    }
}

