/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#a4aeb_filter_controls select {
    background: url("/wp-content/themes/agile_for_all/images/downarrow.png") no-repeat 100% 0 / contain #fff;
    float: left;
    height: 45px;
    width: 23% !important;
    color: #222;
    font-weight: 600;
    font-size: 15px;
    margin: 0 2% 0 0;
    line-height: 1;
    padding: 0 50px 0 10px;
    border: #DDD 2px solid;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    overflow: hidden;
    text-transform: uppercase;
}

/* Wider than 760px */
@media only screen and (min-width: 760px) {

    table.a4aeb_events {
        width: 100%;
    }

    table.a4aeb_events thead tr {
        background: #fff;
    }

    table.a4aeb_events tbody tr.stripe {
        background: none;
    }

    table.a4aeb_events td {
        padding: .5em .25em .5em .25em;
        vertical-align: top;
        font-size: 16px;
    }

}

/* Narrower than 760px or iPad */
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    /* Force the events table to not be like a table anymore */
    table.a4aeb_events, table.a4aeb_events thead, table.a4aeb_events tbody,
    table.a4aeb_events th, table.a4aeb_events td, table.a4aeb_events tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.a4aeb_events thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.a4aeb_events tbody tr {
        margin-bottom: 1em;
    }
}

/* Fix the filters on narrow screens */

@media only screen and (max-width: 760px) {

    #a4aeb_filter_controls select {
        float: none;
        border-radius: 0;
        width: 90% !important;
        -webkit-appearance: normal;
        -moz-appearance: normal;
        overflow: hidden;
        text-transform: uppercase;
    }
}