@charset "UTF-8";
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 10em;
}

body,
html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    padding: 1em;
    background-color: #CED5C7;
}

body {
    background-color: rgb(247, 252, 243);
    max-width: 95%;
    margin: 0 auto;
}

pre {
    white-space: pre-wrap;
    word-break:break-word;
    background-color: #EEE;
    padding: 0.5em;
    border: 1px solid red;
}

.main_container {
    background-color: rgb(247, 252, 243);
    display: grid;
    grid-template-columns: minmax(auto, 226px) 1fr minmax(auto, 226px);
    grid-template-rows: auto 1fr auto;
    gap: 1em;
    grid-auto-flow: row;
    grid-template-areas: "header header header" "nav content aside" "footer footer footer";
}

img {
    max-width: 100%;
}

a {
    color: rgb(151, 93, 30);
    text-decoration: none;
    font-weight: bold;
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;
    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

a:hover {
    color: rgb(178, 120, 46);
    border-bottom: 1px dashed rgb(178, 120, 46);
}

.logo_bar {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.header {
    grid-area: header;
    line-height: 0;
    text-align: center;
    background-color: #CED5C7;
}

.nav {
    grid-area: nav;
    font-weight: bold;
    padding: 0 0 0 1em;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav li {
    padding: 0 0 0.5em 1em;
    font-size: 0.8em;
}

.nav li.cat_header {
    padding: 0.25em 0 0.5em 0;
    font-size: 1em;
}

.nav a {
    text-decoration: none;
    color: rgb(58, 66, 50);
}

.nav a:hover {
    color: rgb(186, 132, 64);
}

.nav input[type=checkbox] {
    display: none;
}

.nav label.checlbox_label {
    display: none;
}

#checkbox_toggle:checked ~ .main_menu {
    height: auto;
    max-height: 50rem;
    width: 100%;
    transition: all 1s cubic-bezier(0.5, 1, 0.22, 1);
}

.hamburger {
    display: block;
    position: absolute;
    top: 0.5em;
    right: 0;
    height: 27px;
    width: 27px;
    cursor: pointer;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.line {
    position: absolute;
    display: block;
    background: #3D3D3D;
    width: 18px;
    height: 0.15rem;
    border-radius: 0.2rem;
    left: 0;
    transition: all 0.6s cubic-bezier(0.5, 0.1, 0, 1.2);
}

.line-1 {
    top: 0;
}

.line-2 {
    top: 7px;
    width: 14px;
    transform: translateX(2px);
    -webkit-transform: translateX(2px);
}

.line-3 {
    top: 14px;
}

input[type=checkbox]:checked ~ label .line-1 {
    top: 0px;
    width: 22px;
    transform: translateX(-11px) rotate(-45deg) translateY(12px);
}

input[type=checkbox]:checked ~ label .line-2 {
    opacity: 0;
}

input[type=checkbox]:checked ~ label .line-3 {
    top: 14px;
    width: 22px;
    transform: translateX(-8px) rotate(45deg) translateY(-8px);
}

.donate_button {
    background: rgb(246, 252, 242);
    background: linear-gradient(0deg, rgba(107, 82, 24, 1) 0%, rgba(160, 127, 41, 1) 100%);
    color: white;
    padding: 0.5em;
    display: inline-block;
    font-weight: normal;
    border-radius: 1em;
    border: 1px solid rgb(117, 94, 32);
    text-align: center;
    margin-bottom: 1em;
}

.donate_head {
    font-size: 2em;
    display: block;
}

.donate_text {
    color: rgb(193, 191, 186);
}

.content {
    grid-area: content;
    font-weight: normal;
    /*word-break:break-word;*/
}

.content img {
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid black;
}

figure {
    margin: 1em auto 0 auto;
    display: table;
    line-height: 0;
}

figure img {
    max-width: 100%;
}

figcaption {
    display: table-caption;
    caption-side: bottom;
    background: #DDD;
    padding: 0.75em 0;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    border-left: 1px solid black;
    line-height: 1em;
    text-align: center;
    font-size: 0.75em;
}

.image-style-block-align-left {
    margin: 1em auto 0 0;
}

.image-style-block-align-right {
    margin: 1em 0 0 auto;
}

.image-style-align-left {
    float: left;
    margin: 0 1em 0 0;
}

.image-style-align-right {
    float: right;
    margin: 0 0 0 1em;
}

.article_title {
    font-size: 1.6em;
    font-weight: bold;
    color: rgb(59, 67, 51);
}

.article_pub_info {
    font-size: 0.75em;
    border-top: 1px solid rgb(178, 185, 171);
    font-style: italic;
    padding-top: 0.25em;
    /*margin: 1em 0;*/
    clear: both;
}

.image-right {
    float: right;
    margin: 0 0 1em 1em;
    line-height: 0;
    display: inline;
}

.image-right::after {
    content: "";
    clear: both;
    display: table;
}

.pagination {
    padding: 0 0 1em 0;
}

.pagination .active {
    background-color: #CCC;
    outline: 1px solid black;
}

.pagination a {
    padding: 0.25em 0.5em;
    display: inline-block;
    /*margin: 0 0.25em;*/
}

.pagination a:hover {
    /*padding: 0.25em 0.5em;*/
    /*margin: 0 0.25em;*/
    text-decoration: none !important;
    background-color: #666;
    color: #FFF;
}

.aside {
    grid-area: aside;
    font-size: 0.8em;
    padding: 0 1em 0 0;
}

.sidebar_header img {
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    /*border: 1px solid black;*/
}

.sidebar_header p {
    margin: 0;
    padding: 0;
    font-size: 0.6em;
    /*font-weight: normal;*/
}

.sidebar_header p:last-child {
    margin: 0 0 1em 0;
}

.aside > span {
    display: block;
}

.img_caption {
    display: block;
    font-size: 0.75rem;
    padding: 0 0 1em 0;
}

.sidebar_header {
    font-size: 1.25rem;
    font-weight: bold;
}

.sidebar_title {
    color: rgb(116, 74, 28);
    font-weight: bold;
    font-style: italic;
}

.sidebar_date {
    font-weight: bold;
}

.sidebar_content {
    padding: 0 0 1em 0;
}

.sidebar_content p {
    margin: 0;
}

.footer,
.admin_footer {
    grid-area: footer;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding: 1em 0;
    text-align: center;
    background-color: rgb(187, 200, 170);
    font-size: 1em;
}

.footer a,
.admin_footer a {
    color: rgb(116, 74, 28);
    text-decoration: none;
}

.admin_container {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto 1fr auto;
    gap: 1em;
    grid-template-areas: "admin_header" "admin_menu" "admin_content" "admin_footer";
}

.admin_container a {
    color: blue;
    text-decoration: underline;
}

.admin_header {
    grid-area: admin_header;
    text-align: center;
    line-height: 0;
}

.admin_menu {
    grid-area: admin_menu;
}

.admin_menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    /*grid-template-columns: repeat(3, auto);*/
    grid-auto-columns: auto;
    grid-auto-flow: column;
    column-gap: 2em;
    justify-items: center;
    justify-content: center;
}

.admin_menu a {
    text-decoration: none;
    color: #000;
    border: 1px solid #333;
    padding: 0.25em;
}

.admin_menu a:hover {
    /*text-decoration: underline;*/
    background-color: #CCC;
}

.admin_content {
    grid-area: admin_content;
    border-top: 1px solid black;
}

.admin_page_title {
    font-size: 1.6em;
    text-align: center;
    display: block;
    padding: 0 0 0.5em 0;
}

#admin_category_list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 50%;
    margin: 0 auto;
}

#admin_category_list li {
    padding: 0.75em 1.75em 0.75em 1em;
    border: 1px solid black;
    cursor: all-scroll;
    background-color: #FFF;
    position: relative;
}

.admin_sub_category {
    margin-left: 2em;
}

.admin_category_disabled {
    background-color: #FCD2D2 !important;
}

.admin_category_edit_btn {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
}

.admin_footer {
    grid-area: admin_footer;
}

#loginForm {
    width: 400px;
    margin: 0 auto 2em;
    padding: 1em;
    background-color: #EEE;
    border: 1px solid #666;
    border-radius: 0.5em;
}

#loginForm input[type=text],
#loginForm input[type=password] {
    width: 100%;
    padding: 1em;
    margin: 0.5em 0 1em 0;
    display: inline-block;
    border: 1px solid #CCC;
    font-size: 1em;
}

.error_msg {
    color: #F00;
    border: 1px solid red;
    padding: 1em;
    display: block;
    margin: 2em 0 1em 0;
    background-color: #FFF;
}

.blink_me {
    animation: blinker 1s linear infinite;
    font-size: 1.5em;
}

@keyframes blinker {
    50% {
        opacity: 0.25;
    }
}

.section_head {
    text-align: center;
    font-size: 2em;
    padding: 0.5em 0;
}

.button {
    background-color: #13AA52;
    border: 1px solid #13AA52;
    border-radius: 0.5em;
    display: inline-block;
    color: #FFF;
    cursor: pointer;
    padding: 0.5em 1em;
    margin: 1em 0;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
}

.button:hover {
    background-color: #084D25;
    color: #FFF;
}

a.button {
    color: #FFF !important;
    text-decoration: none;
}

.button_small {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.margin-left {
    margin-left: 1em;
}

.admin_icon {
    width: 1.5em;
}

#admin-tabs {
    padding: 1em 1em 0 1em;
}

#myTable {
    /*width: 100%;*/
}

div.dt-layout-cell.dt-start {
    padding: 0 0 0 1em !important;
}

div.dt-search,
.paging_full_numbers {
    padding: 0 1em 0 0 !important;
}

.admin_file_manager_content {
    grid-area: admin_content;
    border-top: 1px solid black;
    /*background-color: #E39292;*/
    padding: 1em 1em 0 1em;
    height: 75vh;
}

#elfinder {
    /*width: 95% !important;*/
    height: 100% !important;
    /*margin: 0 auto;*/
}

.admin_content form {
    width: 98%;
    margin: 1em auto;
}

.admin_content input[type=text],
.admin_content input[type=date],
.admin_content input[type=password],
.admin_content textarea {
    width: 100%;
    padding: 0.5em;
    display: inline-block;
    border: 1px solid #CCC;
    font-size: 1em;
}

.admin_content #p_date {
    width: auto;
}

.admin_edit_form_label {
    width: auto;
    padding: 0.75em 0 0 0;
    display: block;
    margin: 0;
    font-size: 1.25em;
}

.post_edit_form_categories {
    display: grid;
    border: 1px solid black;
    padding: 0.5em;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.25em;
}

.post_edit_form_categories > label {
    border: 1px solid black;
    padding: 0.5em;
}

.post_edit_form_categories > label:hover {
    cursor: pointer;
}

.category_label:has(.category_checked) {
    background-color: #D6F1B9;
}

.switch {
    position: relative;
    display: inline-block;
    width: 3.25em;
    height: 1.5em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCC;
    -webkit-transition: .4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1em;
    width: 1em;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #00DD00;
}

input:focus + .slider {
    box-shadow: 0 0 1px #00DD00;
}

input:checked + .slider:before {
    transform: translateX(1.6em);
}

.slider.round {
    border-radius: 2em;
}

.slider.round:before {
    border-radius: 50%;
}

@media all and (max-width: 900px) {
    .main_container {
        background-color: rgb(247, 252, 243);
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        gap: 1em;
        grid-auto-flow: row;
        grid-template-areas: "header" "nav" "content" "aside" "footer";
    }
    
    .content,
    .aside {
        padding: 0 1em;
    }
    
    .aside {
        margin-top: 1em;
        padding-top: 2em;
        border-top: 1px solid black;
    }
    
    .nav {
        padding: 0 1em;
    }
    
    .donate_button {
        display: block;
        margin: 0;
    }
    
    .nav label.checlbox_label {
        display: inline-block;
        background: #CCC;
        padding: 0.5rem 1rem;
        width: 100%;
        border: 1px solid #333;
        position: relative;
        margin: 0 0 1em 0;
    }
    
    .main_menu {
        max-height: 0px;
        overflow: hidden;
        list-style: none;
        transition: all 1s cubic-bezier(0.325, 1, 0.22, 1);
    }
}
