/*
Theme Name: Moon of Alabama Theme
Description: Authentic three-column theme replicating moonofalabama.org
Version: 1.0
Author: Custom Theme
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #021636;
    color: white;
    font-family: arial, verdana, sans-serif;
}

td {
    font-family: arial, verdana, sans-serif;
}

a {
    color: #ff9900;
    text-decoration: none;
}

a:hover {
    color: #993300;
}

.white-header {
    background-color: #f8f8f8;
    color: #000000;
    font-family: georgia, verdana, arial, sans-serif;
    font-size: large;
    font-weight: bold;
    border: 2px solid #021636;
    padding: 0.5em;
}

.date-group-header:not(:first-of-type) {
    margin-top: 2em;
}

.container {
    width: 100%;
    border-spacing: 0px;
    empty-cells: show;
    display: table;
}

#moonpic {
    padding-top: 0px;
    padding-left: 0px;
    padding-bottom: 10px;
    text-align: left;
    max-width: 100%;
    height: auto;
}

#quotepic {
    padding-top: 0px;
    padding-bottom: 10px;
    text-align: center;
    valign: center;
    max-width: 100%;
    height: auto;
}

.sidebar-left {
    vertical-align: top;
    width: 25%;
    min-width: 0px;
}

.sidebar-left .box {
    margin: 2em;
    padding: 0.2em 1em 1em 1.4em;
    border-style: solid;
    border-color: #CA0000;
    border-width: 1px;
    background-color: #e8c888;
    color: black;
    text-align: left;
    font-size: 85%;
}

.sidebar-left .box h1 {
    font-size: 115%;
    font-weight: bold;
    text-align: center;
}

.sidebar-left .box a {
    text-decoration: underline;
    text-align: left;
    color: #993300;
}

.sidebar-left .box a:hover {
    color: #ff9900;
}

.sidebar-left .topbox {
    margin: 2em;
    padding: 0.2em 1em 1em 1.4em;
    border-style: solid;
    border-color: #CA0000;
    border-width: 3px;
    background-color: #e8c888;
    color: black;
    text-align: left;
    font-size: 85%;
}

.sidebar-left .topbox h1 {
    font-size: 115%;
    font-weight: bold;
    text-align: center;
}

.sidebar-left .topbox a {
    text-decoration: underline;
    text-align: left;
    color: #993300;
}

.sidebar-left .topbox a:hover {
    color: #ff9900;
}

.sidebar-left ul {
    padding-left: 0;
}

#content {
    background-color: #dee3e9;
    color: #000000;
    padding: 1.5em;
    font-family: georgia, verdana, arial, sans-serif;
    vertical-align: top;
    width: 50%;
    margin: 0em;
    border-style: solid;
    border-color: #993300;
    border-width: 1px;
}

body.single #content {
    width: 63%;
}

body.single .sidebar-left,
body.single .sidebar-right {
    width: 18.5%;
}

.content p {
    color: #000000;
    font-family: georgia, verdana, arial, sans-serif;
    font-size: 1em;
    font-weight: normal;
    line-height: 150%;
    text-align: left;
    margin-bottom: 10px;
}

.content li {
    line-height: 150%;
}

.content h2 {
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: large;
    border-bottom: 1px solid #000000;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 3px;
}

.content h3 {
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: large;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
}

#content div.title {
    font-size: 130%;
    font-weight: bold;
    padding: 1em 0em 0.5em;
}


#content a {
    color: #993300;
    text-decoration: underline;
}

#content a:link {
    color: #993300;
}

#content a:hover {
    color: #FF9900;
}

.sidebar-right {
    vertical-align: top;
    width: 25%;
    min-width: 0px;
}

.sidebar-right a {
    color: #ff9900;
}

.sidebar-right a:hover {
    color: #993300;
}

.sidebar-right .box {
    margin: 2em;
    padding: 0em;
    color: white;
    text-align: center;
    font-size: 85%;
    font-weight: normal;
}

.sidebar-right input {
    background-color: #dee3e9;
}

.sidebar-right .box h1 {
    font-size: 115%;
    font-weight: bold;
    color: #f8f8f8;
    text-align: center;
}

.award {
    padding-top: 0em;
    padding-bottom: 0em;
    text-align: center;
    max-width: 100%;
    height: auto;
}


blockquote {
    font-size: 90%;
    text-align: left;
}

pre, code {
    font-family: "Courier New", monospace;
    font-size: 12px;
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    padding: 2px 4px;
}

pre {
    padding: 10px;
    margin: 15px 0;
    overflow-x: auto;
}

.entry-footer {
    font-family: arial, verdana, sans-serif;
    padding-bottom: 1em;
}

/* Comments styling */
div.comments-body {
    margin-left: 2em;
    margin-right: 2em;
    border-bottom: 0.25em solid #021636;
    font-size: 90%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    margin-bottom: 1em;
}

div.comments-body p {
    margin-bottom: 10px;
    line-height: 150%;
}

div.comments-body blockquote {
    font-size: 90%;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

div.comments-entry {
    margin-left: 2em;
    margin-right: 2em;
    font-size: 90%;
}

div.comments-mainlink {
	font-size: 150%;
	font-weight: bold;
    text-align: center;
	color: white;
}


.comment-footer {
    margin-left: 2em;
    margin-right: 2em;
    border-bottom: 0.25em solid #021636;
    font-size: 90%;
}

#commentators {
    font-family: Arial, sans-serif;
    font-size: small;
    line-height: 100%;
}

.link-note {
    font-family: Arial, sans-serif;
    font-size: 85%;
    font-weight: bold;
    line-height: 100%;
    text-align: left;
    padding: 5px;
}


.comments-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    font-size: 1em;
    font-weight: normal;
    line-height: 1.5em;
}

.comments-table td {
    padding: 0;
    vertical-align: top;
}

.comment-author-cell {
    text-align: left;
}

.comment-title-cell {
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right;
}

.comments-table a {
    text-decoration: none;
}

.comments-table a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        display: block;
        padding: 0 1vw;
    }

    img {
        max-width: 100%;
        width: auto;
        height: auto;
    }

    .container > tbody > tr,
    .container tr {
        display: flex;
        flex-flow: column;
    }

    .container > tbody > tr > td,
    .container td {
        display: block;
        width: auto;
        max-width: 100%;
    }

    body #content, body.single #content {
        order: 1;
        width: 100%;
    }

    .sidebar-left,
    .sidebar-right {
        order: 2;
        width: 100%;
    }
}

#commentform #comment {
    width: 100%;
}

/* Search Results */
.search-result {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 0.25em solid #021636;
}

body.search .white-header {
    margin-bottom: 2em;
}

.wp-block-search {
    padding: 1em;
    width: 75%;
}

.wp-block-search__button {
    border-radius: 4px;
    background-color: silver;
}

.site-links {
    margin-bottom: 1em;
}

.site-links .comments-table td {
    text-align: center;
    padding: 3px 5px;
}

.site-links .comments-table {
    margin: 0 auto;
}

.search-result-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.search-result-title a {
    color: #993300;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #FF9900;
    text-decoration: underline;
}

.search-result-excerpt {
    margin-bottom: 0.5em;
    line-height: 1.5;
    color: #333;
}

.search-result-meta {
    font-size: 11px;
    color: #666666;
    font-style: italic;
}

mark {
    background-color: yellow;
    padding: 2px 4px;
    font-weight: bold;
}

/* Archive */

body.archive #content {
    width: 63%;
}

body.archive .sidebar-left,
body.archive .sidebar-right {
    width: 18.5%;
}


/* Inline month navigation for archive header */
#archive-navigation {
    vertical-align: middle;
    text-align: center;
    padding: 10px;
}

.month-navigation-inline {
    color: white;
    font-size: 130%;
    font-family: arial, verdana, sans-serif;
}

.month-navigation-inline a {
    color: #ff9900;
    text-decoration: none;
}

.month-navigation-inline a:hover {
    color: #993300;
    text-decoration: underline;
}

.month-navigation-inline .disabled {
    color: #666;
}

.month-navigation-inline strong {
    color: white;
    font-weight: bold;
}

/* Archive pager row styling */
.archive-pager-row {
    height: 3em;
    vertical-align: middle;
}

/* Hide Posts navigation label */
.pagination .screen-reader-text,
.posts-navigation .screen-reader-text,
.navigation .screen-reader-text {
    display: none !important;
}

/* Comment form reordering and compact styling */
.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-warning {
    order: 1;
    font-size: 80%;
    color: black
    margin: 0 0 10px 0;
}

.comment-form-author {
    order: 2;
    margin: 0 0 8px 0;
}

.comment-form-email {
    order: 3;
    margin: 0 0 8px 0;
}

.comment-form-url {
    order: 4;
    margin: 0 0 8px 0;
}

.comment-form-cookies-consent {
    order: 5;
    margin: 0 0 8px 0;
}

.comment-form-comment {
    order: 6;
    margin: 5px 0 8px 0;
}

.comment-allowed-tags {
    order: 7;
    font-size: 85%;
    color: #666;
    margin: 0 0 8px 0;
}

.form-submit {
    order: 8;
    margin: 5px 0 0 0;
}

/* Compact form field styling */
.comment-form p {
    margin: 0 0 8px 0;
}

.comment-form label {
    display: inline-block;
    margin-bottom: 3px;
    font-weight: normal;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    margin-bottom: 0;
    padding: 8px;
    border-radius: 3px;
    height: 32px;
    border: 1px solid #ccc;
}

.comment-form textarea {
    margin-bottom: 0;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}