/*
 Theme Name:   IFAFA Legacy
 Theme URI:    http://www.framespeed.com/
 Description:  A custom theme made by FrameSpeed based on WP Twenty Seventeen theme
 Author:       FrameSpeed 
 Author URI:   http://www.framespeed.com
 Template:     twentyseventeen
 Version:      1.0.0
*/

/* @import url("../twentyseventeen/style.css"); */

blockquote {
    color: #666;
    font-size: 18px;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    margin: 1em;
    overflow: hidden;
    padding: 0 1em;
    border-left: 2px solid #D33;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .5);
}

blockquote p {
    margin:0;
}

body.has-header-image .site-description {
    color: #fff;
    opacity: 1.0;
    font-weight: bold;    
    text-shadow: 2px 2px #000;
}

/* dont like grey on the site */
.site-header {
    margin-top: 62px;
    background-color: white;
}

/* Reduce some white space */
.panel-content .wrap {
    padding-bottom: 1em;
    padding-top: 1em;
}

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
    padding-bottom: initial;
}

.site-content {
    padding: 1em 0 0;
}

.page-header {
    padding-bottom: 1em;
}

table {
    margin: 0;
}

.widget_search {
    padding-bottom: 1em;
}

.widget {
    padding-bottom: 2em;
}

h2.widget-title {
    margin-bottom: 1em;
}


/*--------------------------------------------------------------
 jQuery smooth slider
 --------------------------------------------------------------*/

.logoonbanner {
    display: block;
    width:20%; /* Must be les than or equal to 1 - #banner_slider.width */
    float: left;
    height: 150px; /* Must match that of #banner_slider */
    /* border: 5px solid #FD0; */ /* Use for debug */
}

.logoonbanner img {
    display: block;
    margin: auto;
    height: 100%;
    width: auto;
}

.sliderwrap {
    /* border: 5px solid #0A0; */ /* Easier to test */
    
    display: block;
    width: 80%;
    height: 300px; /* todo Need media query */
    margin: auto; /* center on page */
    border: 5px solid #F00;
    overflow: hidden;
}

#banner_slider {
    /* border: 5px solid #888; */ /* Easier to test */
    
    height: 100%;
    width: 200%; /* prevents empty holes at right when we cant fit an integral number of pictures */
    overflow: hidden;
}


#banner_slider ul {
    list-style: none; /* remove bullets */
    padding: 0; /* remove left-padding that comes with lists */
    margin: 0; /* remove default margins */
    display: block;
    height: 100%; /* This allows us to mix images of different heights */
}

#banner_slider ul li {
    display: block; /* needed to float below */
    float: left; /* This makes the images butt each other along a line */
    height: 100%;
}

#banner_slider ul li img {
    height: 100%;
    width: auto;
}

a.post-edit-link {
    color: white;
    padding: 2px 5px;
    background-color: #094
}

a:hover.post-edit-link {
    color: white;
    padding: 2px 5px;
    background-color: #ce2b37;
}

a:hover.page-numbers {
    border: solid 1px;
    border-radius: 100%;
}

/*----
 FS Meta plugin
 -----*/
.FSMeta_widget {
    padding: 0;
}

/*----
 Search Widget
 -----*/
.widget_search {
    padding-bottom: 0;
}

/*--------------------------------------------------------------
 5.0 Typography
 --------------------------------------------------------------*/

h2
{
    padding: 0 0;
}

p {
    margin: 0;
    padding: 0.25em 0 0.25em;
}

/* This puts the numbering to right of margin */
ol,ul {
    list-style-position: inside;
}

/*--------------------------------------------------------------
 19.0 Media Queries
 --------------------------------------------------------------*/

/* Adjust positioning of edit shortcuts, override style in customize-preview.css */

@media screen and (min-width: 48em) {
    /* Layout */
    
    .has-sidebar:not(.error404) #primary {
        float: left;
        width: 69%;
    }
    
    .has-sidebar #secondary {
        float: right;
        padding-top: 0;
        width: 25%;
    }
    
    .page-two-column .panel-content .entry-header {
        float: left;
        width: 25%;
    }
    
    .page-two-column .panel-content .entry-content {
        float: right;
        width: 69%;
    }
    
    /* Front Page - Recent Posts */
    
    .page-two-column .panel-content .recent-posts {
        clear: right;
        float: right;
        width: 69%;
    }
    
    /* Posts */
    
    body:not(.has-sidebar):not(.page-one-column) .page-header,
    body.has-sidebar.error404 #primary .page-header,
    body.page-two-column:not(.archive) #primary .entry-header,
    body.page-two-column.archive:not(.has-sidebar) #primary .page-header {
        float: left;
        width: 25%;
    }
    
    .blog:not(.has-sidebar) #primary article,
    .archive:not(.page-one-column):not(.has-sidebar) #primary article,
    .search:not(.has-sidebar) #primary article,
    .error404:not(.has-sidebar) #primary .page-content,
    .error404.has-sidebar #primary .page-content,
    body.page-two-column:not(.archive) #primary .entry-content,
    body.page-two-column #comments {
        float: right;
        width: 69%;
    }
    
    .navigation.pagination {
        clear: both;
        float: right;
        width: 69%;
    }
    
    /* Entry content */
    
    .blog:not(.has-sidebar) .entry-content blockquote.alignright,
    .twentyseventeen-front-page.page-two-column .entry-content blockquote.alignright,
    .archive:not(.has-sidebar) .entry-content blockquote.alignright,
    .page-two-column .entry-content blockquote.alignright {
        margin-right: 0;
        width: 25%;
    }
    
    /* Comments */
    
    .site-footer .widget-column.footer-widget-1 {
        float: left;
        width: 25%;
    }
    
    .site-footer .widget-column.footer-widget-2 {
        float: right;
        width: 69%;
    }
    
    .social-navigation {
        clear: left;
        float: left;
        margin-bottom: 0;
        width: 25%;
    }
    
    .site-info {
        float: left;
        padding: 0.7em 0 0;
        width: 69%;
    }
 
    /* Header */
    .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media {
        -ms-transform: none;
        -moz-transform: none;
        -webkit-transform: none;
        transform: none;
        width: 100%;
        /* bottom: 70px; */
        height: auto;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
    }
}



/* left float everything */
/*
.blog:not(.has-sidebar) #primary article,
.archive:not(.page-one-column):not(.has-sidebar) #primary article,
.search:not(.has-sidebar) #primary article,
.error404:not(.has-sidebar) #primary .page-content,
.error404.has-sidebar #primary .page-content,
*/
body.page-two-column:not(.archive) #primary .entry-content
/*, body.page-two-column #comments*/
{
    float: left;
    /* width: 58%; */
    width: 100%;
    border-top: 0px;
    border-bottom: 0px;
}

/* Make footer section slightly grey */
.site-footer {
    background-color: #eee;
}

.site-footer .wrap {
    padding-top: 0;
}

.site-footer .widget-area {
    padding-top: 1em;
}

/* Make 2 footers the same size */

/* Footer 1 content */
.site-footer .widget-column.footer-widget-1 {
    /* float: left; */
    width: 47%;
}

/* No border on menu items in footer */
#menu-footer-menu li {
    /* float: left; */
    /* background-color: #dd0; */
    border-top: 0px;
    border-bottom: 0px;
}

/* No underlining of links in the foot */
#menu-footer-menu li a {
    text-decoration:none;
}

/* No underlining of links in table */
td > a {
    text-decoration: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Footer 2 content */
.site-footer .widget-column.footer-widget-2 {
    /* float: right; */
    width: 47%;
}


/* Social icons */
.social-navigation {
    /* clear: left; */
    /* float: left; */
    /* margin-bottom: 0; */
    width: 47%;
}

/* Site info (Proudly powered by WordPress) */
.site-footer .widget-column.footer-widget-2 {
    /* float: right; */
    width: 47%;
}

/* Better highlight active menu */
.current-menu-ancestor,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a:hover
{
    border-bottom: solid 5px #094 !important;
}



#menu-item-60 a
{
 padding-bottom: 0 !important;
}

.navigation-top .wrap {
    padding-top: 0px;
    padding-bottom: 0px;
}

.sub-menu-top-element {
        float:left;
        width: 9em;
        font-size: .9em;
        padding-left: 1em;
        padding-right: 1em;
}

.sub-menu-top-element:hover {
        background-color:#094;
}

.sub-menu-top-element a {
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 0;
        padding-bottom: 0;
}

.sub-menu-top-element a:hover {
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 0;
        padding-bottom: 0;
}

/* Used for home-built soft slider */
#modernSliderDiv {
    position: relative;
    /* border: solid 5px #0F0; */
    width: 640px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

#modernSliderDiv img {
    position: absolute;
    left: 0;
    width: 100%;
 /*   max-height: 100%; */
}

.stretchfit {
    width: 100%;
    height: 100%;
}

.myverticalalign {
    /* position: relative; */
    top: 50%;
    transform: translateY(-50%);
}

#modernSliderDiv ul {
    list-style: none;
    margin: 0 0;
    border: 0 0;
}

#fixedHeightSliderDiv {
    position: relative;
    /* border: solid 5px #0F0; */
    width: 100%;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
}

#fixedHeightSliderDiv ul {
    list-style: none;
    margin: 0 0;
    border: 0 0;
}

#fixedHeightSliderDiv img {
    height: 100%;
    width: auto;
    overflow:hidden;
    display: block;
}


/* ********************************************* */
/* NEW STRETCH BANNER                            */
/* ********************************************* */

.absolutePositionWidthHeightFitted {
 position: absolute;
 left: 0;
 top: 0;
 margin: 0 auto;
 height: 100%;
 width: 100%;
 background-color: white;
 }
 
img.frontfitted {
    display: block;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto;
    
    /* Needed to reset cascaded values (none in this page) */
    max-width:none;
    max-height:none;
}

img.mynostretch {
    position: absolute;
    top: -9999px;
    bottom: -9999px;
    left: -9999px;
    right: -9999px;
    margin: auto;
}

img.mystretch {
    position: relative;
    top: initial;
    right: initial;
    bottom: initial;
    left: initial;
    width: 100%;
    margin: auto;
}

#stretchbanner {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
}

#stretchbanner ul {
    list-style: none;
    margin: 0 0;
    padding: 0 0;
}

/* ********************** */
/* Special home page      */
/* ********************** */

.homepagecontentbox {
    display:block;
    display: table;
    position: relative;
    width:100%;
}

.homepagecontentbox_left {
    border: solid 2px #F1F1F1;
    padding: 0 1em 1em 1em;
    width: 75%;
    float:left;
}

.homepagecontentbox_left table {
    border-collapse: initial;
}

.homepagecontentbox_left a.button {
color: white ;
padding: 10px 10px;
background-color: #ce2b37;
}

.homepagecontentbox_left a.button:hover {
    color: white ;
    padding: 10px 10px;
    background-color: #009246;
}

.homepagecontentbox_left strong a {
    color: white ;
    padding: 10px 10px;
    background-color: #ce2b37;
}

.homepagecontentbox_left strong a:hover {
    color: white ;
    padding: 10px 10px;
    background-color: #009246;
}

.homepagecontentbox_left a strong {
    color: white ;
    padding: 10px 10px;
    background-color: #ce2b37;
}

.homepagecontentbox_left a:hover strong {
    color: white ;
    padding: 10px 10px;
    background-color: #009246;
}

.homepagecontentbox_left b a {
    color: white ;
    padding: 10px 10px;
    background-color: #ce2b37;
}

.homepagecontentbox_left b a:hover {
    color: white ;
    padding: 10px 10px;
    background-color: #009246;
}

.homepagecontentbox_left a b {
    color: white ;
    padding: 10px 10px;
    background-color: #ce2b37;
}

.homepagecontentbox_left a:hover b {
    color: white ;
    padding: 10px 10px;
    background-color: #009246;
}

.homepagecontentbox_right {
    position: relative;
    width: 25%;
    float:left;
}

.frontpageimage {
    display:block;
    width: 100%;
    /* width: auto; */
    /* height: 150px; */
    /* margin: auto -20px; */
    margin: -62px -20px 0px;
}

.widget a:hover {
    border-left: solid 2px red;
    padding: 4px;
}

.widget a {
    border-left: solid 2px white;
    padding: 4px;
}

.post-938 a h1 {
    color: black;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.post-938 a:hover h1 {
    color: red;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.site-footer img {
    padding: 0 4px 0;
    box-sizing: initial;
}

/*--------------------------------------------------------------
 Action Button
 --------------------------------------------------------------*/


#page_in_widget-2 strong a,
a.register-button
{
    color: white ;
    padding: 2px 5px;
    background-color: #ce2b37;
}

#page_in_widget-2 strong a:hover,
a:hover.register-button
{
    color: white;
    text-decoration: none;
    padding: 2px 5px;
    background-color: #009246;
}

#page_in_widget-2 a strong {
    color: white ;
    padding: 2px 5px;
    background-color: #ce2b37;
}

#page_in_widget-2 a:hover strong {
    float: right;
    color: white;
    text-decoration: none;
    padding: 2px 5px;
    background-color: #009246;
}

/*--------------------------------------------------------------
 Videos Page
--------------------------------------------------------------*/

#post-428 table {
    width:100%;
}

/*
#post-428 td {
    width:50%;
}*/

#post-450 table {
    width:100%;
}

/*
#post-450 td {
    width:50%;
}*/


/*--------------------------------------------------------------
 Members Page
 --------------------------------------------------------------*/
#members-table th:first-child {
    padding: 0.4em;
}
#members-table td:first-child {
    padding: 0.4em;
}

/*----
 Events Page
 -----*/
.events-list-item { margin-bottom: 21px; }
.events-list-item .event-venue { font-size: 0.9em; font-weight: 100; font-style: italic; }
.events-list-item p { margin-bottom: 3px; }
.events-list-image img { border: 0 none; height: auto; max-width: 100%; vertical-align: middle; }

.events-list-title {
    margin-bottom: 0;
    margin-top:0;
    padding-bottom: 0;
    padding-top:0;
}

.events-list-title a {
    text-decoration: none;
    margin-bottom: 0;
    margin-top:0;
    padding-bottom: 0;
    padding-top:0;
}

.events-list-location {
    border-bottom: solid 1px #ddd;
}

.events-list-date {
    background-color: #222;
    color: white;
    border-bottom: solid 1px #ddd;
    padding-left: .5em;
}



/*--------------------------------------------------------------
 19.0 Media Queries
 --------------------------------------------------------------*/

/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
@media screen and (min-width: 20em) {
    .site-header {
        margin-top: 0;
    }
    
    .wrap {
        padding-left: .5em;
        padding-right: .5em;
    }

    .homepagecontentbox_left {
        width: 100%;
    }
    .homepagecontentbox_right {
        visibility: hidden;
        height: 0;
    }
}

@media screen and (min-width: 30em) {
    .site-header {
        margin-top: 0;
    }

    .wrap {
        padding-left: .5em;
        padding-right: .5em;
    }

    .homepagecontentbox_left {
        width: 100%;
    }
    .homepagecontentbox_right {
        visibility: hidden;
        height: 0;
    }
}

@media screen and (min-width: 48em) {
    .site-header {
        margin-top: 62px;
    }
    
    .wrap {
        padding-left: 2em;
        padding-right: 2em;
    }


    .homepagecontentbox_left {
        width: 75%;
    }
    .homepagecontentbox_right {
        visibility: visible;
        height: auto;
    }

	.sub-menu-top-element a {
                padding: 0 1em;
        }
}

@media screen and ( min-width: 67em ) {
    .homepagecontentbox_left {
        width: 75%;
    }
    .homepagecontentbox_right {
        visibility: visible;
    }
}

@media screen and ( min-width: 79em ) {
    .homepagecontentbox_left {
        width: 75%;
    }
    .homepagecontentbox_right {
        visibility: visible;
    }
}

@media screen and ( max-width: 48.875em ) and ( min-width: 48em ) {
    .homepagecontentbox_left {
        width: 75%;
    }
    .homepagecontentbox_right {
        visibility: visible;
    }
}



