/**
 * S Squared Ranch Theme
 *
 * This is based off of PicoCMS default theme. Much of it was changed because
 * reasons. Just like I have fixed BUGS (yes, it's rife with them) in PicoCMS.
 *
 * The problem has less to do with the IDEA of PicoCMS than the implementation
 * (which at best is squirrelly and at worst INCREDIBLY wrong and inconsistent).
 *
 * Bottom line: I'd rewrite the whole damn thing. It's a fucking nightmare that
 * people LITERALLY hide error messages from just to keep the damn thing quiet.
 *
 * Oh, and don't bother try to getting it to run under PHP 8.2 -- it's totally
 * fucked in the head when it comes to that (I spent some time fixing it -- that's
 * part of my life I'm never getting back).
 *
 * @author  Gilbert Pellegrom
 * @author  Daniel Rudolf
 * @author  Lloyd Sargent
 * @link    http://picocms.org
 * @license http://opensource.org/licenses/MIT The MIT License
 * @version 2.0
 */

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

div.caption { font-size: 0.rem;
    margin-bottom: 0.2em;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.slide {
    overflow-y: hidden !important;
    -webkit-transition: height .2s ease-in !important;
            transition: height .2s ease-in !important;
}

/*** BASIC LAYOUT ***/

html, body { height: 100%; }

body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#main {
    padding: 2em 0 4em;
}

.container {
    max-width: 48em;
    padding: 0 0.5em;
    margin: 0 auto;
}
.widescreen .container { max-width: 72em; }

/* very ugly overflow fix, avoid this whenever possible! */
#main .container { 
    /* overflow-x: auto;  */
}

/*** BASIC LAYOUT: HEADER ***/

#header { background: #74ae81; }

#header h1 {
    float: left;
    font-size: 2rem;
    margin: 0;
    padding: 1.5em 1em 1.5em 0;
}
#header h1 a, #header h1 a:hover { color: #00ff00; }

#nav {
    text-align: right;
    padding: 3em 0;
}
#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#nav ul li {
/*    display: inline-block;*/
    margin-left: 1em;
    padding: 0;
    font-weight: bold;
}

#nav-toggle { display: none; }

/* IE8 + IE9 clearfix */
#header > .container:after {
    content: '';
    display: block;
    clear: both;
}

/*** ************ Modified/Custom items ************ ***/


.starjedi {
    font-family: 'starjedi';
}

.center {
    text-align: center;
}

.mySlides {

}

/*================= BLOG POST ITEMS ============================*/



#blog-page-image-column {
    padding: 0px !important;
    border-left-width: 0px !important;
    border-top-width: 0px !important;
    border-bottom-width: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-top-left-radius: 0px !important;
}

#blog-page-text-column {
    border-top-right-radius: 0px !important;
    border-width: 0px !important;
    padding: 0px !important;
    border-bottom-right-radius: 0px !important;
}



p#blog-date {
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-left: 110px;
    margin-bottom: 2px;
}

p#blog-excerpt {
    margin-left: 110px;
}

img#blog-image {
    width: 100px;
    height: 67px;
    float: left;
    margin-top: 10px;
    border-radius: 8px;
}


/*---------- blog formatting for desktops and laptops */
@media only screen and (min-width: 600px) {

    img.topimage {
        position: absolute;
        top: 3px;
        left: 9%;
        width: 17%;
        height: auto;
        max-width: 144px;
        max-height: 72px;
        margin: 0 auto;
    }


    h3#blog-link {
        margin-bottom: 0;
    }

    .smalldate {
        font-size: 0.8rem;
        font-style: italic;
    }

    #blog-page-image {
        display: inline-block;
        vertical-align: top;
        margin-top: 8px !important;
        height: 67px;
        width: 100px;
        border-radius: 8px;
    }

    #blog-page-title {
        display: initial;
        margin-left: 3px;
    }

    #blog-page-author {
        font-size: 1.2rem;
        vertical-align: text-top;
        margin: 11px  0 0 3px;
    }

    #blog-page-date {
        margin-left: 3px;
    }

    .blog-index {
        height: 130px;
    }

    #blog-index-link {
        margin: 0 0 0 0;
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: underline;
        color: #2EAE9B;
        transition: color .2s ease-in;
    }

    #blog-index-image-column {
        padding: 0px !important;
        border-width: 0 0 0 0 !important;
        border-radius: 0 0 0 0 !important;
    }
    
    #blog-index-text-column {
        border-width: 0 0 0 0 !important;
        border-radius: 0 0 0 0 !important;
        padding: 5px 0 0 10px !important;
    }

    #blog-index-image {
        display: inline-block;
        vertical-align: top;
        margin-top: 8px !important;
        height: 67px;
        width: 100px;
        border-radius: 8px;
        min-width: 100px;
    }

    /* #blog-index-author {
        vertical-align: text-top;
        margin-left: 3px;
    } */

    #blog-index-date {
        margin-top: 5px;
    }


    #blog-index-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0px;
    }
}

/*---------- blog formatting for phones MUST come after the one for laptops */
@media only screen and (max-width: 600px) {

    #main {
        padding-top: 10px !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    img.topimage {
        position: absolute;
        top: 2px;
        left: 9%;
        width: 17%;
        height: auto;
        max-width: 144px;
        max-height: 72px;
        margin: 0 auto;
    }

    #blog-page-image {
        display: inline-block;
        vertical-align: top;
        margin-top: 2px !important;
        height: 33px;
        width: 50px;
        border-radius: 8px;
    }

    #blog-link {
        font-size: 1.0rem !important;
        margin-bottom: 0;
    }

    #blog-page-title {
        font-size: 1.0rem !important;
        display: initial;
        margin-left: 3px;
    }

    #blog-page-author {
        margin-bottom: 0px !important;
        margin-top: 0px !important;
        font-size: 0.8rem;
        vertical-align: text-top;
        margin-left: 3px;
    }

    #blog-page-date {
        /* margin-top: -15px; */
        font-size: 0.8rem;
        margin-left: 3px;
        font-style: italic;
        margin-bottom: 0px !important;
    }

    .blog-index {
        height: auto;
    }

    h3#blog-index-link {
        font-size: 1.0rem !important;
        margin-bottom: 0;
    }

    #blog-index-image-column {
        padding: 0px !important;
        border-left-width: 0px !important;
        border-top-width: 0px !important;
        border-bottom-width: 0px !important;
        border-bottom-left-radius: 0px !important;
        border-top-left-radius: 0px !important;
    }
    
    #blog-index-text-column {
        border-top-right-radius: 0px !important;
        border-width: 0px !important;
        padding: 0px 0px 0px 5px !important;
    }

    #blog-index-image {
        display: inline-block;
        vertical-align: top;
        margin-top: 2px !important;
        height: 33px;
        width: 50px;
        border-radius: 8px;
        max-width: 50px;
    }

    #blog-index-author {
        font-size: 0.8rem;
        vertical-align: text-top;
        margin-top: 8px;
    }

    #blog-index-date {
        margin-top: 0px !important;
        margin-left: 0px !important;
        margin-bottom: 0px !important;
        color: black;
    }

    #blog-index-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0px;
    }

    .smalldate {
        font-size: 0.8rem;
        /* margin-top: -20px; */
        font-style: italic;
    }

}

/*=====================  Other CSS used in displaying stuff ==================*/


figure {
    max-width: 50%;
    display: block;
    border-radius: 8px;
    border: 2px solid #ccc;
    padding: 5px;
    margin-left:auto;
    margin-right:auto;
    width: 85%;
    margin-bottom: 1.6em;
}

figcaption {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    background-color: gray;
    color: white;
    padding-top: 3px;
    padding-bottom: 3px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-left: 10%;
    padding-right: 10%;
}

.fig50percent {
    width: 50%;
}

.maxwidthnone {
    max-width: none;
}

figure p {
    margin-bottom: 0em;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
    line-height: 1;
}

.tblitem {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
    padding: 0;
    margin: 0;
}

.imgcenter {
    display: inline-block;
/*    margin-left: auto;*/
    margin-right: auto;
}

.imgroundedtop {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}

.slideshow-container {
    position: relative;
    max-width: 52em;
    line-height: none;
    margin: 0 auto;
    border-radius: 30px;
}

img.rounded {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 3px;
}



ul#navlist {
}

a:link {
  text-decoration: underline;
}

/*** for borderless tables (tables of images for example) ***/
.table-left {
    margin-right: auto;
}

.table-right {
    margin-left: auto;
}

.table-center {
    margin-left: auto;
    margin-right: auto;
}

.table-url {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    border: none;
    padding-left: 3px;
    padding-right: 3px;
}

.table-figure:hover {
    opacity: 0.7;
}

.table-figure {
    max-width: 100%;
    width:100%;
    margin-bottom: 0.2em;
    cursor: zoom-in;
    transition: 0.3s;
}

/*** this makes things glowy ***/

#nav a, #nav-toggle { 
    text-decoration: none;
    color: #afe1da; }
/*#nav .active a, #nav a:hover, #nav-toggle:hover { color: #fff; }*/

#nav .active a { color: #fff } 
#nav a:hover {
    text-decoration: none;   
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
 } 

#nav-toggle:hover {
  text-decoration: none;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}
@-webkit-keyframes glow {
  from { text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff; }
  to { text-shadow: 0 0 1px #fff, 0 0 2px #99ff99, 0 0 3px #99ff99; }
}


/*===== zoomy stuff ======*/

/* Style the Image Used to Trigger the Modal */
.normal-figure {
/*  border-radius: 5px;*/
  cursor: zoom-in;
  transition: 0.3s;
}

.normal-figure:hover {
    opacity: 0.7;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  cursor: zoom-out;
}

/* Modal Content (Image) */
/* .unzoomedImage {
  margin: auto;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
} */

.unzoomed-modal-content {
    margin: auto;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;  
    /* animation-name: zoom;
    animation-duration: 0.6s; */
  }

/* Add Animation - Zoom in the Modal */
.modal-content, #caption { 
  margin: auto;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  animation-name: zoom;
  animation-duration: 0.6s;
}


/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

/*===== end zoomy stuff ======*/




/*** BASIC LAYOUT: FOOTER ***/

#footer {
    background: #707070;
    color: #C0C0C0;
    /* width: 53em; */
    margin: 0 auto;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    -webkit-logical-width: -webkit-fill-available;
    max-width: 48em;
}

#footer a { color: #ddd; }
#footer a:hover { color: #fff; }

#footer p {
    margin: 0;
    padding: 3em 0;
}

#footer .social {
    float: right;
    padding: 1.5em 0 1.5em 1em;
    font-size: 2rem;
}

/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/

@media (max-width: 8192px) {
    #main { 
        padding-bottom: 0em;
        padding-top: 2em;
        padding-left: 0em; }

    #header h1 {
        float: none;
        padding: 0.5em 0;
    }

    #nav {
        clear: right;
        padding: 0;
    }
    #nav ul {
        padding-bottom: 1em;
    }
    #nav ul li {
        display: block;
        margin-left: 0;
        text-align: center;
    }
    #nav ul li a {
        display: block;
        padding: 0.5em 0;
    }

    .js #nav-toggle {
        display: block;
/*        float: right;*/
/*        width: 2em;*/
        /*margin: 0.6667em 0 0.6667em 1.3333em;*/
        margin: -10px 0 0 0;
        font-size: 1.5rem;
/*        line-height: 2em;*/
        text-align: center;
        cursor: pointer;
    }
    .js #nav-toggle > * { vertical-align: middle;  }

    #footer p { padding: 1em 0; }
    #footer .social { padding: 0.5em 0 0.5em 1em; }
}

/*** TYPOGRAPHY ***/

html { font-size: 16px; }

body {
    font-family: 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: #444;
}

p, td, th, li, dd {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, pre, blockquote, fieldset {
    margin-bottom: 1em;
}


a {
    color: #2EAE9B;
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
            transition: color .2s ease-in;
}
a:hover { color: #444; }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.6em;
    font-weight: bold;
    color: #333;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

h1.center {
    text-align: center;
}

/*h3.center {
    text-align: center;
}
*/
h4.underline {
     margin-bottom: 0.2em;
     text-decoration: underline;
}


.grn {
    background-color: green;
}


img { max-width: 100%; }

hr {
    border: 0.15em solid #f5f5f5;
    border-radius: 0.3em;
    background: #f5f5f5;
}

abbr { text-decoration: underline dotted; }

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
th {
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
    color: #333;
}

td, th {                                         border: solid 1px #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }


/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
    margin: 0 0.1em;
    padding: 0.1em 0.2em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.9rem;
}

pre {
    padding: 0 1em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    line-height: 1.4;
}
pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
}

/*** BLOCKQUOTE ***/

blockquote {
    font-style: italic;
    margin-left: 1em;
    padding-left: 1em;
    border-left: 0.5em solid #f5f5f5;
}

/*** FORMS ***/

label, fieldset legend { font-weight: bold; }

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea, fieldset, fieldset legend {
    border: solid 1px #ccc;
    border-radius: 0.3em;
    background: #fff;
    -webkit-transition: none .2s ease-in;
            transition: none .2s ease-in;
    -webkit-transition-property: border-color, background, box-shadow;
            transition-property: border-color, background, box-shadow;
}

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea {
    padding: 0.5em 1em;
    outline: 0 none;
    font-size: 1rem;
}
input:focus:not([type="checkbox"]):not([type="radio"]), button:focus, select:focus, textarea:focus {
    border-color: #2EAE9B;
    box-shadow: 0 0 8px #2EAE9B;
}
input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover {
    background: #f5f5f5;
    cursor: pointer;
}

textarea, select[multiple] {
    vertical-align: bottom;
    overflow: auto;
}

fieldset {
    padding: 1em;
    background: #f5f5f5;
}
fieldset legend { padding: 0 0.5em; }

fieldset label, fieldset input, fieldset button,
fieldset select, fieldset textarea {
    margin: 0.2em 0.5em;
}
fieldset label:first-child, fieldset input:first-child, fieldset button:first-child,
fieldset select:first-child, fieldset textarea:first-child {
    margin-left: 0;
}
fieldset label:last-child, fieldset input:last-child, fieldset button:last-child,
fieldset select:last-child, fieldset textarea:last-child {
    margin-right: 0;
}

/* Firefox input size fix */
input::-moz-focus-inner, button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
