/*
Theme Name: HSG
Theme URI: http://donatherton.co.uk/hsg
Author: Don Atherton
Author URI: http://donatherton.co.uk/
Tested up to: 5.0
Requires PHP: 7
Description: A simple yet ornate, textured fluid theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:  one-column, two-columns, right-sidebar, custom-menu, custom-header, custom-background,editor-style, featured-images, threaded-comments, translation-ready, rtl-language-support, accessibility-ready
Text Domain: yalla
This theme, like WordPress, is licensed under the GPL.
*/
/*  First of all, reset.css. Resets default browser CSS. */

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
code,
del,
dfn,
em,
img,
q,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
input,
textarea,
select,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}
body {
    line-height: 1.5;
}
/* Tables still need 'cellspacing="0"' in the markup. */

table {
    border-collapse: separate;
    border-spacing: 0;
}
caption,
th,
td {
    text-align: left;
    font-weight: 400;
}
table,
td,
th {
    vertical-align: middle;
}
/* Remove possible quote marks (") from <q>, <blockquote>. */

blockquote:before,
blockquote:after {
    content: "";
}
q:before,
q:after {
    content: "";
}
blockquote,
q {
    quotes: "" "";
}
body {
/*    color: #692828;
    background-color: #edeade;*/
    font: 100% Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Mobile-first responsive css */
/* Layout */

#main {
/*    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 5px;*/
}
#content {
    float: left;
    margin: 1% 0;
    padding: 1%;
    width: 95%;
    max-width: 60em;
    border-bottom: 1px solid #ccd;
}
#sidebar {
    position: relative;
    width: 95%;
    clear: both;
}
#footer {
    float: left;
    width: 95%;
}
#header-image {
    position: relative;
    top: 0;
    margin: auto;
    padding: 10px;
    height: auto;
    -webkit-box-shadow: 0 0 6px #334;
    -moz-box-shadow: 0 0 6px #334;
    box-shadow: 0 0 6px #334;
    background-color: #DC042B;
}
#tagline {
    display: none;
/*   position: absolute;
    top: 0;
    text-align: center;
    min-width: 100%;
    height: 100%;
    opacity: .5;
    filter: alpha(opacity=50);
    background-color: #aaa;*/
}

#tagline p {
    font-family: Helvetica, Arial, sans-serif;
    font-style: italic;
    font-size: 1em;
    font-weight: bold;
    color: #000;
    position: absolute;
    bottom: 10%;
    left: 1px;
    right: 1px;
    text-shadow: 1px 1px #fff;
}
/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    color: #692828;
    margin: .5em;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.7em;
}
h3 {
    font-size: 1.5em;
}
h4 {
    font-size: 1.3em;
}
h5 {
    font-size: 1.1em;
}
h6 {
    font-size: 1em;
}
p {
    margin: 5px;
    line-height: 1.3em;
/*    color: #692828;*/
    padding-top: 1px;
    /* Workaround for FF bug below */
}
/* Prevent too narrow paragraphs next to floated images (doesn't seem to work with FF, workaround above) */

p:before {
    content: "";
    width: 16em;
    display: block;
    overflow: hidden;
}
blockquote,
q {
    margin: 0;
    padding: 0 1em;
    overflow: hidden;
    min-width: 16em;
}
blockquote p,
q {
    color: #676769;
    font-style: italic;
}
/* Large quote marks */

blockquote::before {
    content: '“';
    font-size: 6em;
    font-family: times, serif;
    color: #ccd;
    position: relative;
    top: .4em;
    line-height: .2em;
    left: 2%;
}
blockquote::after {
    content: '”';
    font-size: 6em;
    font-family: times, serif;
    color: #ccd;
    position: relative;
    top: .33em;
    line-height: .2em;
    left: 85%;
}
article {
    border-bottom: 1px solid #CCCDCF;
    margin: 10px;
    padding: 10px 20px 10px 5px;
    overflow: auto;
}
/* For index page */

article:last-of-type {
    border: none;
}
/* Gives single articles a border-bottom */

article.single-entry {
    border-bottom: 1px solid #ccd;
}
cite {
    font-style: italic;
    font-weight: bold;
}
address {
    margin: 10px;
    padding: 5px;
}
code,
kbd,
pre {
    font-family: monospace;
    font-size: 1.2em;
}
ins {
    background-color: #DCDCE0;
    text-decoration: none;
    padding: 0 2px;
}
/* Links */

a:link {
/*    color: #333;*/
    text-decoration: none;
}
a:visited {
/*    color: #676769;*/
    text-decoration: none;
}
a:hover {
/*    color: #b07112;*/
    text-decoration: none;
}
p a {
    border-bottom: 1px dotted #334;
}
.post-date {
    font-size: .8em;
}
a img {
    border: none;
    -webkit-transition: opacity .5s ease;
    -moz-transition: opacity .5s ease;
    -ms-transition: opacity .5s ease;
    -o-transition: opacity .5s ease;
    transition: opacity .5s ease;
}
a:hover img {
    opacity: .6;
}
#header-image a:hover img {
    opacity: 1;
}
/* Toggling menu */

#site-menu {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1000;
    background-color: #fff;
    color: #fff;
    clear: both;
}
#site-menu a {
    color: #191919;
    display: block;
    padding: 10px 0;
}
#site-menu li {
    list-style: none;
    padding-left: 1.5em;
    margin: 0;

}
#site-menu li:last-of-type {
    border: none;
}
#site-menu li ul {
    position: absolute;
    top: -9999px;
    display: block;

    opacity: 0;
    -webkit-transition: opacity .3s ease-in;
    -moz-transition: opacity .3s ease-in;
    -ms-transition: opacity .3s ease-in;
    -o-transition: opacity .3s ease-in;
    transition: opacity .3s ease-in;
}
#site-menu li:hover > ul {
    position: relative;
    top: 100%;
    opacity: 1;
}
#site-menu li.current_page_item {
    background-color: #aaa;
}
#site-menu li > a::after {
    color: #aaa;
    content: ' \25bc ';
}
#site-menu li > a:only-child::after {
    content: '';
}
#menu-toggle {
    position: relative;
    color: #334;
    font-weight: bold;
    display: block;
    padding: 5px;
    width: 4em;
    margin: 10px 0 10px 0;
    text-align: center;
    padding-left: 2em;
    border: 1px solid #ccd;
    float: left;
}
#menu-toggle label {
    display: block;
}
/* Hide the menu-toggle checkbox */

#site-menu-toggle {
    display: none;
}
/* "Hamburger" menu icon */

#menu-toggle::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 5px;
    width: 1.6em;
    height: .2em;
    border-top: .6em double #334;
    border-bottom: .2em solid #334;
}
/* Display menu when checkbox is checked */

#site-menu-toggle:checked + #site-menu {
    display: block;
}
#footer-menu ul {
    margin: 15px auto;
}
#footer-menu ul {
    margin: 15px;
    text-align: center;
}
#footer-menu li {
    margin: .15em;
    list-style: none;
    display: inline;
}
#footer-menu li::after {
    content: " |";
}
#footer-menu li:last-of-type::after {
    content: "";
}
#credits {
    text-align: center;
    margin: 15px;
}
/* Various classes */

.post-categories li {
    display: inline;
    list-style: none;
}
li {
    margin: 0 1em;
}
em {
    font-style: italic;
}
abbr,
acronym {
    text-decoration: none;
    border-bottom: 1px dashed #334;
}
.more-link {
    text-align: right;
}
.hidden {
    display: none;
}
.clearfix {
    overflow: auto;
}
/* Forms */

input,
textarea {
    background: url(images/bg/form.jpg) repeat-x top #fff;
    border: 1px solid #ccd;
    max-width: 85%;
/*    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;*/
}
/* Highlight active form field */

input:focus,
textarea:focus {
    -webkit-box-shadow: 0 0 5px #DC042B;
    -moz-box-shadow: 0 0 5px #DC042B;
    box-shadow: 0 0 5px #DC042B;
}
input[type=submit],
button,
select {
    border: 1px solid #99a;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 6px 2px 2px;
    font-size: .9em;
}
input[type=submit]:hover,
button:hover {
    -webkit-box-shadow: 2px 2px 5px #aab;
    -moz-box-shadow: 2px 2px 5px #aab;
    box-shadow: 2px 2px 5px #aab;
    cursor: pointer;
}
input[type=submit]:active,
button:active {
    position: relative;
    left: 1px;
    top: 1px;
    -webkit-box-shadow: 1px 1px 3px #aab;
    -moz-box-shadow: 1px 1px 3px #aab;
    box-shadow: 1px 1px 3px #aab;
}
#search {
    max-width: 55%;
    float: right;
    margin: 5px 0 10px 10px;
}
#search input {
    width: 70%;
    float: right;
    background-image: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    vertical-align: middle;
    padding: 5px;
    -webkit-transition: box-shadow .3s linear;
    -moz-transition: box-shadow .3s linear;
    -ms-transition: box-shadow .3s linear;
    -o-transition: box-shadow .3s linear;
    transition: box-shadow .3s linear;
}
#search input:focus {
    -webkit-box-shadow: 0 0 2px 2px #ccc inset;
    -moz-box-shadow: 0 0 2px 2px #ccc inset;
    box-shadow: 0 0 2px 2px #ccc inset;
}
input#searchsubmit {
    text-indent: -9999px;
    background: url(images/bg/search.png) no-repeat center center #ccc;
    border: 1px solid #ccc;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    width: 30px;
    height: 21px;
    float: left;
}
#searchsubmit:hover {
    background-color: #eef;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
/* Comments */

#comments {
    list-style: none;
}
li.comment {
    padding: 5px;
    border-left: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    background-color: #F0F1F2;
}
#comments ul.children li {
    list-style: none;
}
.comment-form label {
    display: block;
    float: left;
    width: 8em;
}
.avatar {
    float: left;
    margin: 5px;
}
li.bypostauthor {
    background-color: #dfdfef;
}
li.bypostauthor::before {
    content: '(Post author)';
}
/* Tables */

td {
    margin: 5px;
    padding: 5px;
    border: 1px solid #ccd;
    vertical-align: middle;
}
th {
    margin: 5px;
    padding: 5px;
    border: 1px solid #ccd;
    vertical-align: middle;
    font-weight: bold;
}
dt {
    font-weight: bold;
    margin: 5px;
    padding: 5px;
}
dd {
    margin: 5px;
    padding: 5px;
}
.widgetcontainer {
    overflow: hidden;
}
.widget {
    margin: 10px;
    padding: 10px;
}
.widget-title {
    font-weight: bold;
}
/* Post navigation on single posts and index page */

#r-arrow img {
    position: fixed;
    top: 50%;
    right: 0;
    opacity: .3;
}
#l-arrow img {
    position: fixed;
    top: 50%;
    left: 0;
    opacity: .3;
}
#l-arrow img:hover,
#r-arrow img:hover {
    opacity: 1;
    -webkit-transition: opacity .3s ease;
    -moz-transition: opacity .3s ease;
    -ms-transition: opacity .3s ease;
    -o-transition: opacity .3s ease;
    transition: opacity .3s ease;
}
/* Text for screen readers. */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: .875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
/* Resize images for small screens */

img {
    display: block;
    max-width: 100%;
    height: auto;
}
/* Mandatory Wordpress classes */

.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto;
}
.alignright {
    float: right;
    margin: 10px 28px 10px 10px;
}
.alignleft {
    float: left;
    margin: 10px;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    /* Image does not overflow the content area */
    
    padding: 5px;
    text-align: center;
}
.wp-caption.alignnone,
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: auto;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 100%;
    font-weight: bold;
    line-height: 1.2em;
    margin: 10px;
    padding: 5px;
}
.sticky {
    font-style: italic;
    font-weight: bold;
    font-size: 1.2em;
    color: #fff;
    text-shadow: 1px 1px #666;
    text-align: right;
    background-image: linear-gradient(90deg, #DC042B, #E9AFB0, #DC042B);  
    border: 0;
    height: 1.5em;
/*    margin: 20px;*/
    padding: 5px;
    border-bottom: 1px solid #bbc;
}
hr.divider {
    background-image: linear-gradient(90deg, #DC042B, #E9AFB0, #DC042B);  
    border: 0;
    height: 10px;
}
.gallery-icon img {
    margin: 0 auto;
}
.gallery-caption {
    font-size: 100%;
    font-weight: bold;
    color: #667;
    line-height: 1.2em;
    margin: 10px;
    padding: 0 4px 5px;
}
/* Back to top arrow */

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 1%;
    background-color: #ccd;
    width: 20px;
    height: 20px;
    padding: 5px;
    z-index: 1000;
}
#backToTop.vertTranslate {
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
    transition: 1s;
}
#backToTop a {
    display: block;
}
/* For the sliding touch menu */

@media only screen and (max-width: 768px) {
    #site-menu.touch li ul {
        position: relative;
        top: 100%;
        display: none;
        opacity: 1;
    }
}
@media only screen and (min-width: 450px) {
    #tagline p {
        font-size: 2em;
    }
}
@media only screen and (min-width: 768px) {
    #content {
        width: 55%;
    }
    #sidebar {
        position: relative;
        right: 0;
        top: 0;
        float: right;
        clear: none;
        width: 30%;
        min-width: 275px;

        padding: 10px 40px 10px 0;
        margin: 10px 0;
    }
    #tagline p,
    #tagline-flexslider p {
        font-size: 4em;
    }
    #menu-toggle {
        display: none;
    }
    #site-menu {
 /*   	top: -45px; */
        float: left;
        width: 100%;
        max-height: 100px;
        overflow: visible;
        clear: none;
        display: block;
        z-index: 10000;
    }
    #site-menu li {
        position: relative;
        float: left;
        margin: 0;
        padding: 5px;

        -webkit-transition: background-color .3s linear;
        -moz-transition: background-color .3s linear;
        -ms-transition: background-color .3s linear;
        -o-transition: background-color .3s linear;
        transition: background-color .3s linear;
    }
    #site-menu li:hover > a {
        color: #333;
    }
    #site-menu li li:hover {
        background-color: #bbb;
    }
    #site-menu a {
        display: block;
        padding: 5px;
        border-bottom: none;
    }
    #site-menu li ul {
        width: 170px;
        -webkit-box-shadow: 5px 2px 20px #888;
        -moz-box-shadow: 5px 2px 20px #888;
        box-shadow: 5px 2px 20px #888;
    }
    #site-menu li::before {
        content: '';
        display: block;
        position: absolute;
        background-color: #bbb;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        -webkit-transition: height .2s linear;
        -moz-transition: height .2s linear;
        -ms-transition: height .2s linear;
        -o-transition: height .2s linear;
        z-index: -1;
    }
    #site-menu li:hover::before {
        height: 100%;
    }
    #site-menu li:hover > ul {
        position: absolute;
        top: 100%;
        opacity: 1;
    }
    #site-menu li li {
        position: relative;
        left: -5px;
        border: none;
        display: block;
        float: none;
        height: auto;
        margin: 0;
        width: 170px;
        background-color: #fff;
        border-bottom: 1px solid #bbc;
    }
    #site-menu li li ul {
        position: absolute;
        top: -9999px;
        left: 185px;
        opacity: 0;
        -webkit-transition: opacity .3s ease-in;
        -moz-transition: opacity .3s ease-in;
        -ms-transition: opacity .3s ease-in;
        -o-transition: opacity .3s ease-in;
        transition: opacity .3s ease-in;
    }
    #site-menu li li:hover ul {
        top: 0;
    }
    #site-menu li li > a::after {
        color: #fff;
        content: ' ▶';
    }
    #site-menu li li > a:only-child::after {
        content: '';
    }
    #site-menu li.current_page_item:hover a {
        color: #191919;
    }
    #search {
        width: 18%;
    }
}
