/*
Theme Name: End Our Pain
Theme URI: https://www.praterraines.co.uk
Author: Prater Raines Ltd
Description: Theme developed for End Our Pain campaign Website
Version: 1.7.7
License: All Rights Reserved
License URI: https://www.praterraines.co.uk
Tags: responsive-layout
Text Domain: endourpain
*/

/*
Core Styles
 */
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: rgba(26,26,26,.7);
    font-size: 1em;
    height: 100%;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}
div {
    display: block;
}
h1, h2, h3, h4, h5, blockquote, #main-menu a, .wpcf7-submit {
    font-family: 'Monsterratt', sans-serif;
    font-weight: normal;
    color: #4a4a4a;
}
h1, h2, h3, h4, h5 {
    text-transform: uppercase;
}
h1, h2, .widget-title {
    text-align: center;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.7em;
}
h3 {
    font-size: 1.4em;
}
h4 {
    font-size: 1.2em;
}
h5 {
    font-size: 1.1em;
}
a {
    color: #3d9991;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #3d9991;
}

/* Normalize styles based on Normalize v5.0.0 @link https://github.com/necolas/normalize.css */
html {
    line-height: 1.5em;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
}
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
}
article,
aside,
footer,
header,
nav,
section {
    display: block;
}
figcaption,
figure,
main {
    display: block;
}
figure {
    margin: 1em 0;
}
hr {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    margin: 4em 0;
    display: block;
    border: 0;
    border-top: 1px solid rgba(26,26,26,.15);
    padding: 0;
    clear: both;
}
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}
a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}
a:active,
a:hover {
    outline-width: 0;
}
abbr[title] {
    border-bottom: 1px #767676 dotted;
    text-decoration: none;
}
b,
strong {
    font-weight: inherit;
}
b,
strong {
    font-weight: 700;
}
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
dfn {
    font-style: italic;
}
mark {
    background-color: #eee;
    color: #222;
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
audio,
video {
    display: inline-block;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
img, iframe {
    max-width: 100% !important;
}
.iframe-wrapper, .iframe-wrapper-small {
    max-width: 560px;
    float: left;
    margin-right: 2em;
}
.iframe-wrapper-small {
    max-width: 450px;
}
img {
    border-style: none;
    height: auto !important;
}
svg:not(:root) {
    overflow: hidden;
}
select {
    max-width: 100%;
}
button,
input,
optgroup,
select,
textarea {
    font-family: 'Open Sans', sans-serif;;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}
fieldset {
    border: 1px solid #bbb;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
legend {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}
progress {
    display: inline-block;
    vertical-align: baseline;
}
textarea {
    overflow: auto;
}
[type="checkbox"],
[type="radio"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}
details,
menu {
    display: block;
}
summary {
    display: list-item;
}
canvas {
    display: inline-block;
}
template {
    display: none;
}
[hidden] {
    display: none;
}

/* Twenty Seventeen styles based on Twenty Seventeen 1.3 @link https://wordpress.org/themes/twentyseventeen/  */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}
.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.entry-footer:before,
.entry-footer:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after,
.nav-links:before,
.nav-links:after,
.pagination:before,
.pagination:after,
.comment-author:before,
.comment-author:after,
.widget-area:before,
.widget-area:after,
.widget:before,
.widget:after,
.comment-meta:before,
.comment-meta:after {
    content: "";
    display: table;
    table-layout: fixed;
}
.clear:after,
.entry-content:after,
.entry-footer:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after,
.nav-links:after,
.pagination:after,
.comment-author:after,
.widget-area:after,
.widget:after,
.comment-meta:after,
.clearfix {
    clear: both;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

/*
Layout
 */
.page-layout {
    max-width: 1100px;
    padding: 2em;
    margin: 0 auto;
    clear: both;
}
.page-left, .page-middle {
    width: 40%;
    float: left;
    margin-bottom: 2em;
}
.page-left {
    padding-right: 1em;
}
.page-middle {
    padding: 0 1em;
}
.page-right {
    padding-left: 1em;
    float: right;
    width: 20%;
}

.page-third {
    width: 33.3333%;
    padding: 1em;
    float: left;
}

.page-fifth {
    width: 20%;
    padding: 1em;
    float: left;
}

/*
Header
 */
#content-header {
    background: #f7fef8;
}
#content-header .page-layout {
    max-width: 1400px;
    padding: 1em;
}
.site-title {
    margin: 0 auto;
    width: 45%;
}

/*
Main Menu
 */
.page-menu {
    margin: 0 auto;
    width: 70%;
}
#main-menu ul {
    list-style-type: none;
    padding: 1em 0;
    text-align: center;
}
#main-menu > div > ul > li {
    display: inline;
    position: relative;
}
#main-menu a {
    padding: 0.5em 1em;
    text-transform: uppercase;
    color: rgba(30,21,21,.9);
    font-size: 0.9em;
}
#main-menu a:hover, #main-menu .current-menu-item a {
    text-decoration: none;
    color: #8af5b8;
}
#main-menu ul li .sub-menu {
    position: absolute;
    left: -999em;
    background: #f7fef8;
}
#main-menu ul li .sub-menu a {
    display: block;
}
#main-menu ul li:hover .sub-menu {
    left: 0;
}
#mobile {
    display: none;
}

/*
Main Content
 */
.wpcf7-text, .wpcf7-dynamictext, .wpcf7-textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0 4px;
    border: 1px solid #ccc;
    background: #fafafa;
    color: #000;
    font-size: 12px;
    line-height: normal;
    box-sizing: border-box;
    border-radius: 2px;
}
.wpcf7-submit, #appg-download a {
    color: #fff;
    background-color: #8af5b8;
    border-color: #8af5b8;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 1em 2.5em;
    border-width: 0;
    text-align: center;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-transform: uppercase;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    opacity: 1;
    -webkit-transition: .1s opacity linear;
    -moz-transition: .1s opacity linear;
    -o-transition: .1s opacity linear;
    transition: .1s opacity linear;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.wpcf7-submit:hover, #appg-download a:hover {
    opacity: .8;
    -webkit-transition: .1s opacity linear;
    -moz-transition: .1s opacity linear;
    -o-transition: .1s opacity linear;
    transition: .1s opacity linear;
    text-decoration: none;
}
#appg-download {
    display: none;
}
#appg-download a {
    margin: 0.5em 0;
}

/*
Social Media Links
 */
#content-social-links {
    width: 180px;
    margin: 2em auto;
}
#content-social-links a img {
    width: 32px;
    height: 32px;
    margin: 8px;
}
.twitter-social-link, .facebook-social-link, .instagram-social-link {
    width: 48px;
    height: 48px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    border-radius: 24px;
    background: #00aced;
    opacity: 1;
    -webkit-transition: opacity 0.1s;
    -moz-transition: opacity 0.1s;
    -ms-transition: opacity 0.1s;
    -o-transition: opacity 0.1s;
    transition: opacity 0.1s;
    margin: 0 6px;
    overflow: hidden;
    display: block;
    float: left;
}
.twitter-social-link:hover, .facebook-social-link:hover, .instagram-social-link:hover {
    opacity: 0.7;
    -webkit-transition: opacity 0.1s;
    -moz-transition: opacity 0.1s;
    -ms-transition: opacity 0.1s;
    -o-transition: opacity 0.1s;
    transition: opacity 0.1s;
}
.facebook-social-link {
    background: #3b5998;
}
.instagram-social-link {
    background: #d93175;
}

/*
Footer
 */
#content-footer {
    background: #eae6e6;
    text-align: center;
    color: rgba(32,24,24,.4);
    font-size: 0.9em;
}
#content-footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#content-footer li {
    padding: 0.5em 0 0;
    margin: 0;
}

/*
Mobile
 */
@media all and (max-width: 1289px) {
    #main-menu {
        display: none;
    }
    #mobile {
        display: block;
    }
}
@media all and (max-width: 1020px) {
    .page-left, .page-middle, .page-right {
        width: 50%;
        padding-right: 0;
    }
}
@media all and (max-width: 741px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.35em;
    }
    h3 {
        font-size: 1.2em;
    }
    h4 {
        font-size: 1.1em;
    }
    h5 {
        font-size: 1.05em;
    }
    #content-main {
        display: flex;
        flex-direction: column;
    }
    #content-main .page-middle {
        order: 1;
    }
    #content-main .page-left {
        order: 2;
    }
    #content-main .page-right {
        order: 3;
    }
    .page-left, .page-middle, .page-right, .page-third, .page-fifth {
        float: none;
        width: 100%;
        padding: 0.5em;
    }
    .alignleft, .alignright, .iframe-wrapper, .iframe-wrapper-small {
        float: none;
        clear: both;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .page-left, .page-middle, .page-right {
        margin-bottom: 0.5em;
    }
    .page-layout, #content-header .page-layout {
        padding: 0.5em;
    }
    .site-title {
        width: 47.5%;
        margin-top: 0.4em;
    }
    hr {
        margin: 1em 0;
    }

}