/* --- BASE STYLES --- */
body {
    /* A sky blue background, change to whatever fits your theme! */
    background-color: #87CEEB; 
    /* Adding a subtle background pattern is very classic Neocities */
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    font-family: 'Verdana', 'Arial', sans-serif;
    color: #333333;
    margin: 0;
    padding: 20px;
    font-size: 14px;
}

/* --- MAIN CONTAINER --- */
#container {
    max-width: 950px;
    margin: 0 auto; /* Centers the site on the screen */
    background-color: #ffffff;
    border: 2px solid #005f99; /* Deep blue border */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* Slight drop shadow */
}

/* --- ARTICLE DIRECTORY STYLES --- */
.article-list {
    list-style-type: square; /* Classic retro square bullets */
    line-height: 1.6;
    margin-bottom: 0;
}

.article-list ul {
    list-style-type: circle; /* Hollow circles for sub-items */
    margin-top: 3px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.article-list a {
    color: #005f99;
    text-decoration: none;
}

.article-list a:hover {
    color: #ff4500; /* Turns orange on hover */
    text-decoration: underline;
    background-color: #f0f8ff; /* Slight highlight effect */
}

/* --- HEADER --- */
#header {
    background-color: #005f99;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    border-bottom: 2px solid #003d66;
}

#header h1 {
    margin: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* A staple retro font */
    font-size: 32px;
    letter-spacing: 1px;
    text-shadow: 2px 2px #003d66;
}

/* --- LAYOUT WRAPPER --- */
#flex-wrapper {
    display: flex;
    flex-direction: row;
}

/* --- SIDEBAR --- */
#sidebar {
    width: 250px;
    background-color: #f0f8ff; /* Alice Blue */
    padding: 15px;
    border-right: 2px solid #005f99;
    box-sizing: border-box;
}

/* --- MAIN CONTENT --- */
#main-content {
    flex: 1; /* Takes up the remaining space */
    padding: 15px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* --- BOXES (Used in both Sidebar and Main Content) --- */
.box {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fafafa;
    border: 1px dashed #005f99; /* Dashed borders give a great retro feel */
}

.box h2 {
    margin-top: 0;
    font-size: 16px;
    color: #005f99;
    border-bottom: 1px solid #005f99;
    padding-bottom: 5px;
}

/* --- NAVIGATION LINKS --- */
.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    text-decoration: none;
    color: #005f99;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
    color: #ff4500; /* Changes to orange on hover */
}

/* --- MICROBLOG STYLES --- */
.status-cafe p {
    font-size: 12px;
    margin: 8px 0;
}

.status-cafe hr {
    border: 0;
    border-top: 1px dashed #cccccc;
}

/* --- MISC UTILITIES --- */
ul {
    padding-left: 25px;
}

.center-text {
    text-align: center;
}

textarea {
    width: 90%;
    height: 40px;
    font-family: monospace;
    font-size: 11px;
    margin-top: 10px;
    resize: none;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
}

/* --- FOOTER --- */
#footer {
    background-color: #005f99;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-top: 2px solid #003d66;
}

#footer a {
    color: #add8e6;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE DESIGN (For Mobile Phones) --- */
@media (max-width: 768px) {
    #flex-wrapper {
        flex-direction: column; /* Stacks the sidebar on top of the main content on small screens */
    }
    #sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #005f99;
    }
}