@font-face {
  font-family: 'Cascadia Mono';
  src: url('../fonts/mono/CascadiaMono-Regular.otf') format('opentype'),
       url('../fonts/mono/CascadiaMono.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
    --bg-color: #282c34;
    --text-color: #abb2bf;
    --cursor-color: #528bff;
    --status-bg: #21252b;
    --status-text: #98c379;
    --command-text: #e5c07b;
    --tilde-color: #5c6370;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cascadia Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

#vim-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px; /* Limit max width */
    margin: 0 auto; /* Center horizontally */
}

#editor {
    flex-grow: 1;
    padding: 0.5rem;
    white-space: pre;
    overflow-y: auto;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

#editor > div.line-container {
    align-self: flex-start; /* Keep text left-aligned */
    min-width: 80%; /* Ensure lines take up enough space */
    display: flex;
    flex-direction: row;
    width: 100%;
}

.tilde {
    color: var(--tilde-color);
}

.cursor {
    background-color: var(--cursor-color);
    color: var(--bg-color);
}

#status-bar {
    display: flex;
    justify-content: space-between;
    background-color: var(--status-bg);
    padding: 0.3rem 0.5rem;
    font-weight: bold;
}

#command-line {
    color: var(--command-text);
}

#mode-indicator {
    color: var(--status-text);
}


.lni{
    color: var(--line-nu-color);
    opacity: 0.3;
    padding-right: 1em;
    flex-shrink: 0;
}

/* Selection styles */
::selection {
    background-color: var(--selection-bg, #528bff);
    color: var(--selection-fg, #ffffff);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #editor {
        font-size: 0.8rem;
    }
}

/* Hidden input for mobile keyboard */
.hidden-input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* Resume styling */
.resume-content {
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Pong styling */
.pong-container {
    text-align: center;
}

/* Clickable command styling */
.clickable-command {
    cursor: pointer;
    display: inline-block;
    padding: 0 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.clickable-command:hover {
    color: var(--command-text);
    background-color: var(--hover-bg);
}

.clickable-line {
    cursor: pointer;
    display: inline-block;
    border-radius: 3px;
    transition: all 0.2s ease;
    width: 100%;
}

.clickable-line:hover {
    color: var(--command-text);
    background-color: var(--hover-bg);
}
