/* =========================== */
/* Global Layout Fix (Safari)  */
/* =========================== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #f3f4f6, #e2e8f0);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

.page-content {
    flex: 1 0 auto; /* Push footer to bottom */
}

footer {
    flex-shrink: 0;
}

/* =========================== */
/* Typography + Small Elements */
/* =========================== */

.top-info {
    font-size: 0.9rem;
    color: #4b5563;
}

.small-text {
    margin: 2px 0;
}

/* =========================== */
/* Main Message Styling        */
/* =========================== */

.main-message {
    max-width: 900px;
    min-height: 150px;
    transition: all 0.5s ease-in-out;
}

.message-text {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease-in-out;
}

.message-tags {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.message-author {
    font-size: 1.25rem;
    font-weight: 400;
    color: #374151;
    margin-top: 0.5rem;
}

/* =========================== */
/* Fade Animations             */
/* =========================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(20px); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

/* =========================== */
/* Footer                      */
/* =========================== */

#appFooter a {
    color: #C7B8FF !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

#appFooter a:hover {
    color: #E3D9FF !important; /* even lighter hover */
}

#appFooter {
    font-size: 0.84rem;      /* Smaller font */
    opacity: 0.95;           /* Slightly softer */
    margin-top: 15px;        /* Less space above */
    margin-bottom: 10px;     /* Less space below */
}

#appFooter a {
    font-size: 0.84rem;      /* Match link size */
}

#appFooter {
    line-height: 1.1;   /* Removes vertical bulk */
}

.accent-btn {
    background-color: #7A5BFF;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.accent-btn:hover {
    background-color: #6A4DF0;
    transform: translateY(-2px);
}

.accent-btn:active {
    background-color: #5C43D1;
    transform: translateY(0);
}

#mnid {
    font-size: 0.84rem;
}