/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar,
.navbar a
{
    cursor: default !important;
    user-select: none;
}

html,
body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: #d4d4d4;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: #181818;    
    border-bottom: 1px solid #2c2c2c;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar a {
    display: inline-block;
    padding: 14px 20px;
    color: #858585;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #fff;
}


.navbar a.current {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #007acc;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* Main Content Area */
.main-content {
    margin: 60px 20px 20px 20px;
    max-width: 100%;
}


/* Scrollbar Styling */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    width: 12px;
    background: #3C3C3C;
    min-height: 44px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* AI Output Styling */
#aiOutput {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 18px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: white;
    width: 100%;
}

#stylingHeader {
    white-space: pre-wrap;
    margin: 0px;
}

/* Stage Header Animation */
.stageHeader {
    white-space: nowrap;
    display: inline-block;
    border-right: .5em solid white;
    margin: 0px;
    letter-spacing: .05em;
    animation:
        typing 1.0s steps(15, end) forwards,
        blink-caret .75s step-end infinite,
        hide-caret 0s 5s forwards;
    overflow: hidden;
    max-width: 0;
    width: auto;
    vertical-align: top;
}

@keyframes typing {
    from {
        max-width: 0
    }
    to {
        max-width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: white;
    }
}

@keyframes hide-caret {
    to {
        border-color: transparent;
    }
}

/* Explanation Description Animation */
.stylingDescript {
    visibility: hidden;
    animation: appear 0s 0.9s forwards;
}

@keyframes appear {
    to {
        visibility: visible;
    }
}

#explanationHeader,
#explanationDescript {
    margin: 0px;
}

/* Override Styles for Active Parsing */
.header-override {
    font-style: bold;
    font-size: 15px !important;
    font-family: monospace;
    white-space: pre;
}

.header-override.active {
    color: #007acc;
    animation: pulse 3.0s ease-in-out infinite !important;

}

@keyframes pulse {
    0% {
        color: #1287d4;
    }
    50% {
        color: #90c0e0; 
    }
    100% {
        color: #1287d4;
    }
}

.descript-override {
    color: #6a9955;
    font-style: italic;
    margin-right: 20px;
}

/* AI Text Styling */
/* This is necessary becuase of the css reset */
.ai-text {
    color: white;
    font-style: normal;
    line-height: 2rem;
}

.ai-text p{
    margin: 15px 0px;
}

.ai-text h1 {
    color: #007acc;
    margin: 20px 0px;
}

.ai-text h2,
.ai-text h3 {
    color: #90c0e0;
    margin: 15px 0px;
}

.ai-text ul {
    padding-left: 20px; 
}

.ai-text ul li::marker {
    color: #90c0e0;
}

.ai-text pre {
    background-color: #1f1f1f;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.ai-text.error {
    color: #ff6b6b !important;
}

/* ==================== RESPONSIVENESS ==================== */


@media (max-width: 768px) {
    /* Update ASCII art on small screens*/
    .header-override {
        font-size: 9px !important;
    }
}