/* Dark mode specific styles */
.dark-mode {
    background-color: #000000;  /* Pure black background */
    color: #ffffff;  /* White text for high contrast */
}

.dark-mode body {
    background-color: #000000;
}

.dark-mode .container {
    background-color: #000000;  /* Pure black container */
    box-shadow: none;  /* Remove box shadow for a starker look */
}

.dark-mode h1 {
    color: #ffffff;
    text-align: center;
}

.dark-mode .outdated-notice {
    background-color: #1a1a1a;  /* Very dark gray */
    border: 1px solid #333333;
    color: #ffffff;
}

.dark-mode .chat-message.sender {
    background-color: #1a1a1a;  /* Dark gray sender bubble */
    color: #ffffff;
}

.dark-mode .chat-message.receiver {
    background-color: #333333;  /* Slightly lighter dark gray for receiver */
    color: #ffffff;
}

.dark-mode .river-chat {
    background-color: #1a1a1a;
}

.dark-mode .inbox-section {
    background-color: #000000;
    border-color: #333333;
}

.dark-mode .inbox-content {
    background-color: #1a1a1a;
}

.dark-mode .inbox-subject {
    color: #ffffff;
}

.dark-mode .inbox-message {
    color: #cccccc;  /* Slightly softer white for readability */
}

.dark-mode figcaption {
    color: #999999;  /* Gray for captions */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.outdated-notice {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
}

.notice-image {
    max-width: 100px;
    margin-right: 15px;
}

.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

h1 {
    color: #333;
    text-align: center;
}

figcaption {
    text-align: center;
    font-style: italic;
    color: #666;
}

.chat-narrative {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.chat-message {
    margin-bottom: 10px;
    max-width: 80%;
}

.chat-message.sender {
    margin-right: auto;
    text-align: left;
    background-color: #e6f2ff;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.receiver {
    margin-left: auto;
    text-align: right;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
}

.river-chat {
    background-color: #e0e0e0;
}

.chat-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.username {
    font-weight: bold;
}

.river-image {
    margin: 15px 0;
}

.inbox-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.inbox-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.inbox-details {
    margin-left: 15px;
}

.email-address {
    display: block;
    color: #666;
    font-size: 0.9em;
}

.inbox-content {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
}

.inbox-subject {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.inbox-message {
    line-height: 1.6;
    color: #444;
}

.inbox-message p {
    margin-bottom: 10px;
}