/*
 * Louis Says TV - Static Site CSS
 * Based on original site with mobile responsiveness fixes
 */

/* ==========================================================================
   Base styles
   ========================================================================== */

html, button, input, select, textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   Custom Fonts
   ========================================================================== */

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans.eot');
    src: url('../fonts/OpenSans.woff') format('woff'),
         url('../fonts/OpenSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LuckiestGuy';
    src: url('../fonts/LuckiestGuy.eot');
    src: url('../fonts/LuckiestGuy.woff') format('woff'),
         url('../fonts/LuckiestGuy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   Site Styles
   ========================================================================== */

body {
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'LuckiestGuy', Impact, sans-serif;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    height: auto;
    background: url(../img/pattern.png) center repeat;
}

/* Header */
.header {
    width: 100%;
    height: 260px;
    position: relative;
    text-align: center;
}

.yellow_bg {
    width: 100%;
    height: 150px;
    background: #f3c844;
    border-top: 2px solid #da444e;
    border-bottom: 2px solid #da444e;
    position: absolute;
    top: 35px;
}

.header_nav {
    position: relative;
    z-index: 10;
}

.header_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header_nav ul li {
    display: inline-block;
    margin: 0 15px;
    vertical-align: middle;
}

.header_nav ul li a {
    text-align: center;
    display: inline-block;
}

/* Wrapper */
.wrapper {
    width: 870px;
    margin: 0 auto;
    position: relative;
}

/* Header left/right boxes */
.header .left,
.header .right {
    width: 141px;
    height: 87px;
    position: absolute;
    bottom: -41px;
    background: #64c75a;
    z-index: 20;
}

.header .left {
    width: auto;
    left: 0;
}

.header .right {
    right: 0;
}

.header .social {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.header .social li {
    display: inline-block;
    margin: 5px 4px 0;
}

/* Content wrapper (for inner pages) */
.content_wrapper {
    width: 100%;
    background: #fff;
    color: #4274b9;
    padding: 0 0 20px;
}

.home_content_wrapper {
    width: 100%;
    background: #fff;
    color: #4274b9;
    padding: 20px 0;
}

.main_content {
    padding: 0 60px;
}

/* Wheel (homepage) */
.wheel {
    width: 100%;
    height: 520px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.wheel > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.wheel .text {
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel .image {
    animation: spin 30s linear infinite;
    animation-play-state: paused;
    transform-origin: 50% 50%;
}

.wheel .image:hover {
    animation-play-state: running;
}

/* Home content band (orange) */
.home_content {
    padding: 30px 0;
    background: #d65727;
    box-shadow: 0px -6px 0px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    font-weight: bold;
}

/* Separator bar */
.sep {
    background: #f3c844;
    width: 100%;
    height: 30px;
    box-shadow: 0px 6px 0px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

/* Blog section */
.blog {
    color: #5c80b9;
    background: url(../img/blog_pattern.jpg) center repeat;
}

.blog .blog_wrapper {
    padding: 20px;
    background: #ffffff;
}

.blog_list {
    display: inline-block;
    width: 60%;
    margin: 0 5% 0 0;
    vertical-align: top;
    position: relative;
}

.facebook_feed {
    width: 32%;
    display: inline-block;
    vertical-align: top;
}

.blog h1 {
    border-bottom: 1px solid #5c80b9;
}

.blog_list a {
    color: #da444e;
}

.blog_list a:hover {
    text-decoration: underline;
}

/* Blog content pages */
.blog_content_left {
    position: relative;
}

.home_page_blog_read_all {
    position: absolute;
    top: 30px;
    right: 0px;
}

.blog_content_read_all {
    position: absolute;
    top: 0px;
    right: 0px;
}

.home_page_blog_read_all a,
.blog_content_read_all a {
    color: #4274B9;
    text-decoration: none;
}

.blog_content_read_all a:hover {
    text-decoration: underline;
}

.allBlogList {
    width: 90%;
    margin: 0px 0px;
    padding: 0px 5%;
    list-style: none;
}

.allBlogList li {
    margin: 20px 0px 0px 0px;
}

.allBlogList li a {
    text-decoration: none;
    color: #4274B9;
}

.allBlogList li a:hover {
    text-decoration: underline;
}

/* Episode guide */
.episode {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.episode:last-child {
    border-bottom: none;
}

.episode h3 {
    color: #4274b9;
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 5px;
}

.episode p {
    margin-top: 5px;
}

.episode em {
    color: #5c80b9;
}

/* Blog post body content */
.blog-post-content {
    line-height: 1.7;
}

.blog-post-content h3 {
    color: #4274b9;
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1.1em;
}

.blog-post-content ol,
.blog-post-content ul {
    padding-left: 25px;
}

.blog-post-content li {
    margin-bottom: 12px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #4274B9;
    text-decoration: none;
    font-weight: bold;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    width: 100%;
    background: #f3c844;
    border-top: 2px solid #da444e;
    text-align: center;
    color: #d65727;
    font-size: 0.75em;
    padding: 10px 0;
}

.footer ul {
    text-align: center;
    list-style: none;
    padding: 0;
}

.footer ul li {
    display: inline-block;
}

.footer > ul li {
    margin: 0 8px;
}

.footer a {
    color: #d65727;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 0;
}

.footer_nav ul li {
    display: inline;
}

.footer_nav ul li + li::before {
    content: " - ";
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   Responsive - FIXED for proper mobile support
   ========================================================================== */

@media only screen and (max-width: 1000px) {
    .header {
        margin: 0;
        height: auto;
    }
    .header_nav ul li {
        margin: 0;
    }
    .header_nav li a {
        margin-bottom: 15px;
    }
    .header_nav li a img {
        width: 85%;
    }
    .yellow_bg {
        top: 40px;
        height: 120px;
    }
    .header .left,
    .header .right {
        bottom: -36px;
    }
    .wheel .image img,
    .wheel .text img {
        width: 90%;
    }
    .content img {
        max-width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 870px) {
    .wrapper {
        width: 90%;
    }
    .wheel .image img,
    .wheel .text img {
        width: 100%;
    }
    .wheel {
        height: 340px;
    }
    .header_nav ul li:nth-child(3) {
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        width: 100%;
    }
    .header_nav {
        padding: 200px 0 0;
    }
    .header_nav ul {
        background: #f3c844;
        border-top: 2px solid #da444e;
        border-bottom: 2px solid #da444e;
    }
    .header_nav ul li a {
        margin: 0;
    }
    .yellow_bg {
        display: none;
    }
    .header .left,
    .header .right {
        width: auto;
        position: relative;
        display: inline-block;
        left: 0;
        bottom: 0;
        vertical-align: top;
    }
    .header .wrapper {
        text-align: left;
    }
    .main_content {
        padding: 0 20px;
    }
}

@media only screen and (max-width: 700px) {
    .blog_list,
    .facebook_feed {
        width: 100%;
        margin: 0;
    }
    .home_page_blog_read_all {
        position: static;
        display: block;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 500px) {
    .header .left,
    .header .right {
        text-align: center;
        width: 100%;
        display: block;
    }
    .header .left img {
        width: 100%;
        height: auto;
    }
    .header_nav ul li {
        width: 23%;
    }
    .header_nav li a {
        margin: 0;
    }
    .yellow_bg {
        height: 110px;
    }
    .wheel {
        height: 200px;
    }
    .main_content {
        padding: 0 15px;
    }
    .home_content {
        padding: 20px 15px;
    }
    .home_content p {
        font-size: 0.9em;
    }
    .blog .blog_wrapper {
        padding: 10px;
    }
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a, a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group;
    }
    tr, img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    @page {
        margin: 0.5cm;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3 {
        page-break-after: avoid;
    }
}
