body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Courier New', monospace;
    font-weight: normal;
}

.reference {
    font-size: 0.7em;
    vertical-align: super;
    color: #ffffff;
    margin-left: 0.5px;
}

.cat-container {
    position: absolute;
    top: 40vh;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 16px;
    line-height: 1;
    white-space: pre;
    z-index: 1;
}

.duck-container {
    position: absolute;
 /* top: 30vh;  Different position than cat 
    left: 40%; */
    transform: translate(-50%, -50%); 
    text-align: center;
    font-size: 16px;
    line-height: 1;
    white-space: pre;
    z-index: 1;
}

.menu-container {
    position: absolute;
    top: calc(40vh + 70px); /* Cat position + offset */
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    text-align: center;
}

.menu-text {
    font-size: 16px;
}

.menu-text div {
    margin: 48px 0;
}

.ascii-link {
    text-decoration: none;
    color: rgb(25, 180, 232);
    display: block;
    padding: 2px;
    text-align: center;
}

.blog-posts .ascii-link {
    color: rgb(26, 202, 26);
}

.journals-links .ascii-link {
    color: rgb(200, 80, 255);
}

#journal-intro.journal-intro-active {
    transition: transform 0.15s, cursor 0.15s;
}

#journal-intro.journal-intro-active:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.ascii-link a {
    text-decoration: none;
    color: inherit; 
    display: block;
}

.ascii-link:hover {
    cursor: pointer;
    transform: scale(1.26);
    transition: transform 0.2s ease;
}

/* blogpost css */

.blog-post-container {
    position: absolute;
    top: calc(40vh + 10px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 80ch;
    padding: 20px;
    text-align: center;
}

.blog-content {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.post-meta {
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 30px;
}

.post-body p {
    margin: 15px 0;
    white-space: break-spaces;
    overflow-wrap: break-word;
    text-align: left;
}

.post-body h2, .post-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body em {
    font-style: italic;
    opacity: 0.8;
}

.post-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}


/* writer css */
.writer-container {
    position: absolute;
    top: calc(40vh + 100px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 1000px;
    width: 90%;
    padding: 20px;
    text-align: left;
}

.writer-header {
    margin-bottom: 20px;
    text-align: center;
}

.writer-controls {
    margin: 20px 0;
}

#post-title {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    margin-bottom: 10px;
}

.writer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.writer-buttons button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.2s ease;
}

.writer-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.writer-editor {
    margin-bottom: 30px;
}

#post-content {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.writer-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    padding-bottom: 20px;
}

#preview-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    min-height: 200px;
    white-space: break-spaces;
    overflow-wrap: break-word;
}

#preview-content h2 {
    text-align: center;
}

#drafts-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 10px;
}

#drafts-select option {
    background: black;
    color: white;
}

.writer-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
    padding: 8px 15px;
    margin: 0 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.tab-button:hover {
    opacity: 0.9;
}

.tab-button.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid black;
    margin-bottom: -1px;
}

/* Journal Modal Styles */

.journal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.journal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.journal-modal {
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    background-color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.journal-modal.active {
    transform: scale(1);
}

/* Custom Scrollbar for Journal Modal */
.journal-modal::-webkit-scrollbar {
    width: 10px;
}

.journal-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.journal-modal::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.journal-modal-content {
    padding: 30px;
    max-width: 80ch;
    margin: 0 auto;
    text-align: center;
}

.journal-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
}

.journal-modal-close:hover {
    opacity: 1;
}

/* ASCII Border Styling */
.journal-modal::before {
    content: "+--------------------------------------------------------------------------------+";
    display: block;
    white-space: pre;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.5);
}

.journal-modal::after {
    content: "+--------------------------------------------------------------------------------+";
    display: block;
    white-space: pre;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
}

/* Authentication and loading states */
.admin-only {
    display: none !important;
}

.admin-only.authenticated {
    display: block !important;
}

/* Page loading coordination */
.loading-page .ascii-link {
    display: none !important;
}

.loading-indicator {
    color: #87CEEB;
    font-style: italic;
    margin-top: 10px;
}

.content-loading .ascii-link {
    display: none;
}

.content-loading .loading-indicator {
    display: block;
}