/* General Body and Font Styles */
body {
    background-color: #000;
    color: #00FF41; /* Primary Green */
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin: 0;
    padding: 20px;
    text-shadow: 0 0 5px #00FF41, 0 0 10px #00FF41;
    overflow-x: hidden;
    position: relative;
}

/* Page Container Styles */
.page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 40px);
    width: 100%;
    padding-top: 10px;
}

.page.active {
    display: flex;
}

/* General Content Container */
.content-container {
    width: 100%;
    max-width: 800px;
    border: 1px solid #00FF41;
    padding: 20px;
    box-shadow: inset 0 0 15px #00e5e56f; /* Cyan inner glow */
    margin-top: 20px;
    visibility: hidden;
}

.content-container.show {
    visibility: visible;
}

.content-container.fade-out {
    animation: fade-out-down 1s ease-in forwards;
}

/* Header Styles */
h1, .site-title {
    color: #00E5E5; /* Cyan for main headers */
    text-shadow: 0 0 7px #00E5E5, 0 0 12px #00E5E5;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 3px;            
    /* width: 400px !important; */
    margin: 0 auto 0px auto;
}

.site-subtitle {
    text-align: center;
    margin: -10px 0 20px 0;
}

/* Typewriter text alignment fix */
#home-title, #home-subtitle, #home-main-text {
    text-align: left;
    width: 100%;
}

#home-title {
    text-align: center !important;
    font-size: 2.5em;
    padding: 48px 0 8px 0;
}

#home-subtitle {
    text-align: center;
    font-size: 1.3em;
    padding: 10px 0 24px 0;
    min-height: 2em;
}

/* Home Page Specific Styles */
#enter-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 105px);
    font-size: 2em;
    cursor: pointer;
    width: 100%;
}

#home-content {
    display: none;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* Loading text styles */
#dictionary-loader, #journal-loader {
    text-align: left;
}

/* Loading Bar Styles */
#learning-bar-container {
    display: none;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}

.learning-label {
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #00FF41;
    text-shadow: 0 0 5px #00FF41, 0 0 10px #00FF41;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', Courier, monospace;
}

.loading-bar-bg {
    border: 1px solid #00FF41;
    height: 14px;
    background-color: #001100;
}

.loading-bar-progress {
    background-color: #00FF41;
    height: 100%;
    width: 0%;
}

/* AI Log Styles */
#ai-log-container {
    display: none;
    width: 100%;
    max-width: 800px;
    border: 1px solid #00FF41;
    padding: 20px;
    box-shadow: inset 0 0 15px #00e5e56f; /* Cyan inner glow */
    margin-top: 20px;
    text-align: left;
}

#ai-log {
    overflow: hidden;
    height: 15em; /* Fixed height for exactly 10 lines (10 * 1.5em) */
    transition: all 0.3s ease-out;
}

#ai-log p {
    margin: 0;
    padding: 0;
    height: 1.5em;
    opacity: 1;
    transition: opacity 0.1s ease-out;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#ai-log p.scroll-out {
    opacity: 0;
}

#ai-log p.scroll-in {
    opacity: 0;
}

#ai-log p.visible {
    opacity: 1;
}

/* Mobile AI Log Styles - Single line only */
@media (max-width: 768px) {
    #ai-log-container {
        padding: 15px;
    }
    
    #ai-log {
        height: 1.5em; /* Single line height */
    }
    
    #ai-log p {
        font-size: 0.85em; /* Slightly smaller text on mobile */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* News Page Styles */
.news-article {
    border-bottom: 1px dashed #00bb31;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.news-article:last-child {
    border-bottom: none;
}

.news-title {
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;
}

.news-date {
    /* font-style: italic; */
    color: #00bb31;
    margin-bottom: 10px;
}

/* General Paragraph Styles */
p {
    line-height: 1.6;
    margin: 10px 0;
    white-space: pre-wrap;
    text-align: left;
}

/* Content Section Styles - match home-content centering */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}