/**
 * @file css/ckeditor_live.css
 * This is included for the HTML/CKEditor
 * "ckeditor.css" is what the public sees.
 */

/* Embedded images */
.align-left {
    float: left;
    margin: 0 1rem 1rem 0;
    max-width: 50%;
}
.align-right {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 50%;
}
.img-quarter img {
    max-width: 25%;
    width: 25rem;
}
article img { max-width: 100%; }

/* Headers */
article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    clear: left;
}
h1, .h1 {
    font-size: 2rem;
    color: #002042;
    font-weight: 300;
}
.block h2,
.view h2,
section h2.h2,
article h2 {
    font-size: 1.36rem;
    color: #0e4c8f;
    font-weight: 600;
}
.block h3,
.view h3,
section h3.h3,
article h3 {
    font-size: 1.05rem;
    color: #002042;
    font-weight: 600;
}
.block h4,
.view h4,
section h4.h4,
article h4 {
    font-size: 1.00rem;
    color: #002042;
    font-weight: 600;
}
@media (max-width: 640px) {
   section h2.h2,
    article h2 {
        font-size: 1.15rem;
    }
    section h3.h3,
    article h3 {
        font-size: 1.05rem;
    }
    section h4.h4,
    article h4 {
        font-size: 1.00rem;
    } 
}

/* misc */
hr {
    clear: both;
}

/* Buttons */
a.red-button:hover,
a.red-button:focus,
a.red-button {
    background-color: #d22e30;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
        width: 100%;
    max-width: 15rem;
    text-decoration: none;
    border: 0.0625rem solid #ffffff;
    display: inline-block;
    cursor: pointer;
}

/* basic embedded iframes */
.iframe {
    width: 100%;
    height: 40vw;
    border: 0.0625rem solid black;
    border-radius: 1rem;
    margin: 0.5rem 0;
    padding: 1rem 0;
}

/* Video embed */
.video-embed {
    /*display: inline-block;*/
    max-width: 40rem;
    width: 100%;
    position: relative;
}
.embed-video .inner {
    position: relative;
    width: 100%;
}
.video-embed .inner .ar {
    width: 100% !important;
    display: block !important;
    height: auto !important;
}
.video-embed .inner .video-inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.video-embed .inner .video-inner > div,
.video-embed .inner .video-inner iframe {
    width: 100%;
    height: 100%;
}

/* Newsletter variants */
h2.newsletter {
    color: #a77f20;
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
h3.newsletter {
    color: #214c8a;
    font-weight: bold;
}
blockquote.newsletter {
    position: relative;
    padding: 1rem 10%;
    border: none;
    font-size: 1.75rem;
    font-family: serif;
    color: #061f3e;
    font-style: normal;
    text-align: justify;
    margin-top: 1rem;
}
blockquote.newsletter * {
    font-family: serif;
}
blockquote.newsletter:before,
blockquote.newsletter:after {
    content: " ";
    position: absolute;
    top: 0;
    height: 100%;
    background-size: contain;
    background-position: center center;
    width: 5%;
    background-repeat: no-repeat;
    background-image: url(../images/quote.svg);    
}

blockquote.newsletter:before {
    left: 2.5%;
    transform: rotate(180deg);
}
blockquote.newsletter:after {
    right: 2.5%;
}
div.newsletter {
    background-color: #eff3f7;
    padding: 1rem;
}
div.newsletter > *:first-child { margin-top: 0; }
div.newsletter > *:last-child { margin-bottom: 0; }
div.newsletter-brown {
    background-color: #fbf9f4;
    padding: 1rem;
}
div.newsletter-brown > *:first-child { margin-top: 0; }
div.newsletter-brown > *:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
    blockquote.newsletter {
        font-size: 1.35rem;
    }
}
@media (max-width: 640px) {
    blockquote.newsletter {
        font-size: 1.0rem;
    }
}

/* Intro paragraph */
p.intro {
    font-size: 1.05rem;
    font-weight: 700;
}