/*
Theme Name: Phrasally
Theme URI: https://github.com/Tim-Brogden
Description: Phrasally theme.
Author: Tim Brogden
Author URI: https://github.com/Tim-Brogden
Template: generatepress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme is based on the GeneratePress theme by EDGE22 Studios LTD.
This theme is distributed under the terms of the GNU GPL.
*/

/* Colors */

:root {
    --phrasally-purple: #7d468f;   /* header bg */
    --phrasally-light-purple: #ba62c7;
    --phrasally-green: #96d296;    /* widget bg */
}

/* Layout */

#page {
    padding: 0 10px;
}

#content {
    min-height: calc(100vh - 100px);
}

/* Site header */

header.site-header {
    background-color: var(--phrasally-purple);
    border-bottom: 1px #444 solid;
}

/* Body */

body {    
/*    background-image: url('images/old-paper-texture-4.jpg');
    background-repeat: repeat;*/
    background-color: #e0e0e0;
}

/* Footer */

div.site-footer {
    background-color: var(--phrasally-purple);
    border-top: 1px #444 solid;
}

.tg-copyright, .tg-footer-links {
    display: inline-block;
}

/* Panels */

.page-header,
div.inside-article,
div.comments-area, 
nav.paging-navigation {
    background-color: #fdfdfd;
    border: 1px #444 solid;
    border-radius: 5px;
    box-shadow: 2px 4px 5px #666;
}

.separate-containers .page-header {
    background-color: var(--phrasally-green);
    color: #fff;
}

/* Sidebar */

div.sidebar .widget {
    padding: 0;
    border: 1px #444 solid;
    border-radius: 5px;
    box-shadow: 2px 4px 5px #666;
}

div.sidebar .widget h2 {
    background-color: var(--phrasally-green);    
    color: #fff;
    padding: 20px 30px;
    border-bottom: 1px #444 dotted;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-bottom: 0;
}

div.sidebar .wp-block-group__inner-container > div, 
div.sidebar .wp-block-group__inner-container > ul {
    padding: 30px;
}

div.sidebar .wp-block-group__inner-container > p {
    margin-bottom: 0;
}

/* Articles */

.separate-containers div.inside-article {
    padding: 0;
}

header.entry-header {
    background-color: var(--phrasally-green);
    color: #fff;
    padding: 20px 30px;
    border-bottom: 1px #444 dotted;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

header.entry-header .entry-meta {
    color: #fff;
}

header.entry-header a,
header.entry-header a:visited,
header.entry-header a:hover,
header.entry-header a:active
{
    color: #fff;
}

div.entry-content, 
div.entry-summary, 
footer.entry-meta {
    padding: 30px;
}

div.entry-content:not(:first-child), 
div.entry-summary:not(:first-child), 
div.page-content:not(:first-child) {
    margin-top: 0;
}

/* Blog */

.byline
{
    display: none !important;
}

.tags-links a,
.cat-links a,
.comments-link a,
.nav-previous a,
.nav-next a {
    display: inline-block;
    margin-right: 0.5em;
}

div.nav-previous,
div.nav-next {
    display: inline-block;
    margin-right: 0.5em;
    margin-top: 1em;
}

/* Forms */

.arm_already_logged_in_message {
    text-align: center;
    font-style: italic;
}

/* reCAPTCHA */

.grecaptcha-badge { 
    visibility: hidden;
}

.recaptcha-notice {
    font-size: smaller;
}

/* Mobile */

@media (max-width: 768px) {
    
    .site-content {
        margin-right: 5px;
    }
    
    div.sidebar .widget h2 {
        padding: 10px 15px;
    }
    
    div.sidebar .wp-block-group__inner-container > div, 
    div.sidebar .wp-block-group__inner-container > ul {
        padding: 15px;
    }

    header.entry-header {
        padding: 10px 15px;
    }
    
    div.entry-content, 
    div.entry-summary, 
    footer.entry-meta {
        padding: 15px;
    }

}

/* Printing */

@media print {
   
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .tg-footer-links
    {
        display: none;
    }
    
    body {
        font-size: 11pt;
    }
    
    aside {
        page-break-inside: avoid;
    }     
    
    .page-header,
    div.inside-article,
    div.comments-area, 
    nav.paging-navigation,
    div.sidebar .widget {
        box-shadow: none !important;
    }

}