/* BibleScribe Main Stylesheet */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    color: #2d1f3d;
    background-color: #faf8fc;
    font-size: 16px;
    font-family: 'Segoe UI', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #9b4dca;
    transition: color 0.2s ease;
}

a:hover {
    color: #7b2da8;
    text-decoration: underline;
}

/* ========================================
   Header Navigation
   ======================================== */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f4fc 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 80px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #543168;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background-color: #f3e8fa;
    text-decoration: none;
}

.nav-menu a.live-indicator {
    color: #e53935;
    animation: pulse 2s infinite;
}

.nav-menu a i {
    margin-right: 0.25rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Nav Search Box */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 0.5rem;
}

.nav-search-input {
    padding: 0.4rem 1rem;
    border: 2px solid #d4b8e0;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 0.9rem;
    width: 140px;
    outline: none;
    transition: border-color 0.2s ease, width 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-input:focus {
    border-color: #9b4dca;
    box-shadow: 0 0 0 3px rgba(155, 77, 202, 0.1);
    width: 180px;
}

.nav-search-btn {
    padding: 0.4rem 1rem;
    background: #9b4dca;
    border: 2px solid #9b4dca;
    border-radius: 0 50px 50px 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    background: #7b2da8;
    border-color: #7b2da8;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(180deg, #ffeee1 0%, #f8e8f5 50%, #e8d4f0 100%);
    background-image: url('../img/clouds1-wide-rumble.jpg');
    background-size: cover;
    background-position: center bottom;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-tagline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    color: #543168;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* ========================================
   Social Links
   ======================================== */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-link {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.social-link img {
    width: 42px;
    height: 42px;
    border-radius: 5px;
}

/* ========================================
   Featured Links Grid
   ======================================== */
.featured-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto 1rem auto;
}

.featured-card {
    display: block;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: scale(1.05);
}

.featured-card img {
    height: 135px;
    width: auto;
    border-radius: 8px;
}

/* ========================================
   Support CTA Banner
   ======================================== */
.support-cta {
    background: linear-gradient(135deg, #543168 0%, #7b2da8 100%);
    padding: 1.5rem 2rem;
    text-align: center;
}

.support-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-cta-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.support-cta-btn {
    display: inline-block;
    background: white;
    color: #543168;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.support-cta-btn:hover {
    background: #f8f4fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-decoration: none;
}

/* YouTube Playlist Button */
.btn-youtube-playlist {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube-playlist:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    text-decoration: none;
}

.btn-youtube-playlist i {
    margin-right: 0.5rem;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    color: #543168;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e8d4f0;
    display: inline-block;
}

/* ========================================
   Recent Updates List
   ======================================== */
.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    list-style: none;
}

.updates-list li {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #9b4dca;
    transition: transform 0.2s ease;
}

.updates-list li:hover {
    transform: translateX(5px);
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-right: 0.25rem;
}

/* Old category names */
.badge-scicry {
    background-color: #9b4dca;
}

.badge-study {
    background-color: #e91e8c;
}

.badge-live {
    background-color: #e53935;
}

.badge-research {
    background-color: #1976d2;
}

.badge-commentary {
    background-color: #43a047;
}

.badge-app {
    background-color: #00897b;
}

/* New category names */
.badge-scicry-video {
    background-color: #9b4dca;
}

.badge-study-video {
    background-color: #e91e8c;
}

.badge-live-video {
    background-color: #e53935;
}

.badge-research-page {
    background-color: #1976d2;
}

.badge-commentary-video {
    background-color: #43a047;
}

.badge-app-update {
    background-color: #00897b;
}

.update-meta {
    margin-bottom: 0.25rem;
}

.update-title {
    font-weight: 500;
}

.update-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ========================================
   Video Grid
   ======================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-decoration: none;
}

.video-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.video-card-title {
    padding: 1rem;
    font-weight: 500;
    color: #2d1f3d;
}

.video-card-title .series-number {
    color: #9b4dca;
    font-weight: 600;
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
    background: linear-gradient(135deg, #f8f4fc 0%, #e8d4f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #d4b8e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border-color: #9b4dca;
    box-shadow: 0 0 0 4px rgba(155, 77, 202, 0.1);
}

.search-form-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form-row .search-input {
    flex: 0 1 400px;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #543168;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-btn:hover {
    background: #7b2da8;
    transform: translateY(-2px);
}

/* ========================================
   Search Results
   ======================================== */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #9b4dca;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.search-result-date {
    font-size: 0.85rem;
    color: #888;
}

.search-result-date i {
    margin-right: 0.25rem;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d1f3d;
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .search-result-thumb {
        width: 80px;
        height: 60px;
    }
}

/* ========================================
   Two Column Layout
   ======================================== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

.column h2 {
    font-size: 1.5rem;
    color: #543168;
    margin-bottom: 1rem;
}

.column h3 {
    font-size: 1.2rem;
    color: #7b2da8;
    margin: 1.5rem 0 0.75rem 0;
}

/* ========================================
   Content Grid (Equal Height Boxes)
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.content-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(84, 49, 104, 0.08);
    display: flex;
    flex-direction: column;
}

.content-box h2 {
    font-size: 1.3rem;
    color: #543168;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8d4f0;
}

.content-box .content-list {
    flex: 1;
    max-height: 540px;
}

.content-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.content-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0e8f4;
}

.content-list li:last-child {
    border-bottom: none;
}

/* Scrollbar Styling */
.content-list::-webkit-scrollbar {
    width: 8px;
}

.content-list::-webkit-scrollbar-track {
    background: #f0e8f4;
    border-radius: 4px;
}

.content-list::-webkit-scrollbar-thumb {
    background: #d4b8e0;
    border-radius: 4px;
}

.content-list::-webkit-scrollbar-thumb:hover {
    background: #b89cc8;
}

/* ========================================
   Live Notice
   ======================================== */
.live-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
}

.live-notice a {
    color: white;
    text-decoration: underline;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #2d1f3d;
    color: #d4b8e0;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: #e8d4f0;
}

/* ========================================
   Alerts (for live notices, etc.)
   ======================================== */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 7px;
}

.alert > h2 {
    margin-top: 0;
}

.alert-notice, .alert-info {
    background-color: #8fd2ff;
    border: solid 1px #1470ad;
    color: #082b42;
}

.alert-success {
    background-color: #cfffc1;
    border: solid 1px #167a12;
    color: #073805;
}

.alert-danger {
    background-color: #ff8fc3;
    border: solid 1px #ad1421;
    color: #420812;
}

/* ========================================
   Content Page Styles
   ======================================== */

/* Compact Page Banner */
.page-banner {
    background: linear-gradient(180deg, #ffeee1 0%, #f8e8f5 50%, #e8d4f0 100%);
    background-image: url('../img/clouds1-wide-rumble.jpg');
    background-size: cover;
    background-position: center bottom;
    padding: 2rem;
    text-align: center;
}

.page-banner-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: #543168;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    margin: 0;
    font-weight: 500;
}

/* SciCry Page Banner */
.page-banner-scicry {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-image: url('../img/scicry-mast-bg.jpg');
    background-size: cover;
    background-position: center center;
}

.page-banner-scicry .page-banner-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Page Content Container */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 60vh;
}

/* Page Meta Info */
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.page-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page Tags */
.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-tag {
    display: inline-block;
    background: #f3e8fa;
    color: #7b2da8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.page-tag:hover {
    background: #e8d4f0;
    text-decoration: none;
}

/* Media Card (thumbnail + video links) */
.media-card {
    float: right;
    width: 350px;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.media-card-thumbnail {
    display: block;
    width: 100%;
}

.media-card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.media-card-links {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f4fc;
    border-radius: 6px;
    color: #543168;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-link:hover {
    background: #e8d4f0;
    text-decoration: none;
}

.platform-link i {
    font-size: 1.1rem;
}

.platform-link.youtube { color: #ff0000; }
.platform-link.rumble { color: #85c742; }
.platform-link.spotify { color: #1db954; }
.platform-link.odysee { color: #e83e8c; }
.platform-link.bitchute { color: #ef4137; }
.platform-link.x-twitter { color: #000000; }

/* Page Description */
.page-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d1f3d;
    margin-bottom: 2rem;
}

/* Chapters Section */
.chapters-section {
    background: #f8f4fc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    clear: both;
}

.chapters-section h2 {
    font-size: 1.3rem;
    color: #543168;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapters-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.chapters-list li {
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.chapters-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #2d1f3d;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.chapters-list a:hover {
    background: #f3e8fa;
    text-decoration: none;
}

.chapter-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #9b4dca;
    margin-right: 1rem;
    min-width: 50px;
}

.chapter-title {
    flex: 1;
}

/* Reference Links Section */
.ref-links-section {
    margin-bottom: 2rem;
}

.ref-links-section h2 {
    font-size: 1.3rem;
    color: #543168;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ref-links-list {
    list-style: none;
}

.ref-links-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0e8f4;
}

.ref-links-list li:last-child {
    border-bottom: none;
}

.ref-links-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ref-links-list a i {
    color: #9b4dca;
}

/* Article Content (for research pages) */
.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #543168;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8d4f0;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #7b2da8;
    margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-content blockquote {
    border-left: 4px solid #9b4dca;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* About Page Columns */
.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.about-column {
    background: #f8f4fc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8d4f0;
}

@media (max-width: 768px) {
    .about-columns {
        grid-template-columns: 1fr;
    }
}

/* Back Navigation */
.back-nav {
    margin-bottom: 1.5rem;
}

.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9b4dca;
    font-weight: 500;
}

.back-nav a:hover {
    color: #7b2da8;
}

/* 404 Page */
.page-not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.page-not-found h1 {
    font-size: 3rem;
    color: #543168;
    margin-bottom: 1rem;
}

.page-not-found p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
    .media-card {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .page-banner-title {
        font-size: 1.5rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .chapters-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Legacy Styles (for existing pages)
   ======================================== */
.title {
    background-image: url('../img/website-logo-2.jpg');
    background-position: left top;
    margin: 7px;
    background-repeat: no-repeat;
    background-color: #fff;
    min-height: 80px;
}

.title_sci {
    background-image: url('../scicry/img/avatar-20221016-2-sm.jpg');
    background-position: left top;
    margin: 7px;
    background-repeat: no-repeat;
    background-color: #fff;
    min-height: 80px;
}

.titlemenu {
    float: right;
    margin-top: 30px;
}

.titlemenu > a {
    margin-right: 20px;
}

.submasthead {
    width: auto;
    height: 120px;
    background-image: url('../img/clouds1-wide-rumble.jpg');
    background-position: center bottom;
}

.submasthead_sci {
    width: auto;
    height: 120px;
    background-image: url('../scicry/img/rumble-bg-2.jpg');
    background-position: center bottom;
}

.bodysection {
    margin: 20px 24px 7px 24px;
}

.bodysection h2 {
    margin-top: 50px;
}

.foot {
    color: gray;
    font-size: 0.6em;
    margin: 20px;
}

div.video_container, img.img_container {
    float: right;
    width: 450px;
    margin-left: 20px;
    background-color: #ccc;
    padding: 7px;
    border-radius: 7px;
}

img.img_container_sm {
    width: 250px;
}

.right { float: right; }
.left { float: left; }
img.right { margin-left: 10px; }
img.left { margin-right: 10px; }

img.img_thumb, img.thumb {
    height: 70px;
    margin-right: 10px;
    background-color: #ccc;
    padding: 7px;
    border-radius: 7px;
    vertical-align: middle;
}

.notable, a.notable {
    color: coral;
    font-weight: 600;
    background-color: #f4dffc;
}

.message { font-size: 2em; }
.message-success { color: green; }
.message-error { color: red; }

div.gallery img {
    height: 80px;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

img.full { width: 100%; }

img.gallery {
    height: 80px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.banned { color: red; font-size: 2em; }

.danger { color: #ad1421; }

.flex { display: flex; }
.flex > * { margin-left: 20px; }

.flexme {
    display: flex;
    flex-direction: row;
}

@media (max-width: 800px) {
    .flexme {
        flex-direction: column;
    }
}

.flexcol {
    display: flex;
    flex-direction: column;
}

.searchbar {
    text-align: center;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
}

.spreadlist > li {
    margin-bottom: 1em;
}

.vid_gallery {
    margin-bottom: 20px;
}

.vid_gallery > a {
    float: left;
    margin-right: 7px;
}

.vid_gallery img {
    width: 250px;
    height: 145px;
    border-radius: 5px;
}

.round { border-radius: 5px; }
.forceinline { display: inline-block; }
.clearfix { content: ""; clear: both; display: table; }
.req { color: red; }
.prewrap { white-space: pre-wrap; }

/* Form Elements */
input {
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.8em;
    color: #741699;
}

input[type=password], input[type=text] {
    height: 2em;
}

select {
    height: 2.2em;
    border-radius: 5px;
    font-size: 0.8em;
    color: #741699;
    border-top: 1px solid grey;
    border-bottom: 1px solid lightgrey;
    border-left: 1px solid grey;
    border-right: 1px solid lightgrey;
}

textarea {
    font-family: inherit;
    font-size: inherit;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.9em;
    color: #741699;
}

button {
    font-size: 0.8em;
    height: 2.2em;
    border-radius: 5px;
    color: #8d47a8;
}

.fieldlabel { font-size: 0.8em; }
.fieldinput { margin-bottom: 20px; }
.fieldinput input { height: 30px; line-height: 30px; }
.fieldinput textarea { line-height: 30px; }
.formbutton > img { cursor: pointer; }

/* Layout Tables */
table.content td { vertical-align: top; }
table.cols50 td { width: 50%; max-width: 50%; padding-left: 20px; }
div.col_50_float { float: left; width: 45%; }
div.col_50_float > h2 { margin-top: 0; }
