/*
Fix for main navigation
*/

@media screen and (min-width: 600px) {
    .genesis-nav-menu .sub-menu {
        display: block !important;
    }
}


/*
DatePicker Button
*/

input#datepicker {
    display: none !important;
}

#ui-datepicker-div {
    background: #fff !important;
    margin-top: 30px;
    padding: 10px;
    box-shadow: #c3c3c3 20px 20px 40px;
    display: none;
}

.ui-datepicker-next {
    position: absolute;
    right: 10px;
}

#ui-datepicker-div .ui-datepicker-year {
    display: inline !important;
}

.ui-datepicker-trigger {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: transparent;
    border: none;
    margin: 0!important;
    padding: 0!important;
    height: 30px!important;
    padding: 0 5px !important;
}

.ui-datepicker-trigger .input-group-addon:last-child {
    border-left: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.fc-basicDay-button {
    border-radius: 0;
}

body {
    padding: 0;
    font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
    font-size: 14px;
}

#calendar {
    max-width: 900px;
    margin: 0 auto;
}

.hoverEffect {
    font-size: 29px;
    position: absolute;
    margin: 30px 55px;
    cursor: pointer;
}


/*
Event Grid
*/

.councilware-eventgrid {
    clear: both;
}

.eventgrid-event {
    width: 30%;
    margin: 0 1.6% auto;
    float: left;
    background-color: #fff;
    min-height: 200px;
    text-align: center;
    position: relative;
}

@media screen and (max-width: 400px) {
    .eventgrid-event {
        width: 100%;
    }
}

.eventgrid-event .eventgrid-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    left: 0;
    right: 0;
}


/*******************************Calendar Top Navigation*********************************/

div#calendar {
    margin: 0px auto;
    padding: 0px;
    width: 100%;
    font-family: Helvetica, "Times New Roman", Times, serif;
}

div#calendar h2.calendar-title {
    text-align: center;
}

div#calendar div.box {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    background-color: #787878;
}

div#calendar div.header {
    line-height: 40px;
    vertical-align: middle;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 40px;
    text-align: center;
}

div#calendar div.header a.prev,
div#calendar div.header a.next {
    position: absolute;
    top: 0px;
    height: 17px;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: #FFF;
    box-shadow: none;
}

div#calendar div.header span.title {
    color: #FFF;
    font-size: 18px;
    text-align: center;
}

div#calendar div.header a.prev {
    left: 15px;
}

div#calendar div.header a.next {
    right: 15px;
}

div#calendar div.date-selector {
    float: right;
    margin-bottom: 10px;
}

div#calendar div.today-selector {
    float: left;
}

#calendar-content .fc-view,
#calendar-content .fc-view>table {
    z-index: 0;
}


/*******************************Calendar Content Cells*********************************/

#calendar-content table {
    margin: 0;
}

#calendar-content td.fc-head-container.fc-widget-header,
#calendar-content td.fc-widget-content {
    padding: 0;
}

#calendar-content td.fc-list-item-title.fc-widget-content {
    padding-left: 14px;
    line-height: 1;
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: pointer;
}

#calendar-content td.fc-event-container {
    padding: 2.5px 5px;
}

#calendar-content .fc-title {
    color: #fff;
}

div#calendar ul.label {
    float: left;
    margin: 0px;
    padding: 0px;
    margin-top: 5px;
    margin-left: 5px;
    width: 100%;
}

div#calendar ul.label li {
    margin: 0px;
    padding: 0px;
    margin-right: 1%;
    float: left;
    list-style-type: none;
    width: 13.28571429%;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    text-align: center;
    color: #000;
    font-size: 15px;
    background-color: transparent;
}

div#calendar ul.dates {
    float: left;
    margin: 0px;
    padding: 0px;
    margin-left: 5px;
    margin-bottom: 5px;
    width: 100%;
    height: 250px;
}

.fc-content {
    cursor: pointer;
}


/** overall width = width+padding-right**/

div#calendar ul.dates li {
    margin: 0px;
    padding: 0px;
    margin-right: 1%;
    margin-top: 5px;
    line-height: auto;
    vertical-align: middle;
    float: left;
    list-style-type: none;
    width: 13.28571429%;
    font-size: 12px;
    background-color: none;
    color: #000;
    text-align: center;
}

div#calendar ul.dates li .day-number {
    background: #333;
    color: #fff;
    padding: 5px 0;
}

div#calendar ul.dates .event {
    width: 100%;
    background: #d3d3d3;
    border-radius: 10px;
    padding: 3px;
    position: relative;
}

div#calendar span.fc-title {
    color: #fff;
}

div#calendar ul.dates li .event a {
    color: #fff;
    text-decoration: none;
    box-shadow: none;
}

div#calendar ul.dates li.mask {
    background: none;
}

div#calendar .calendar-day-np-trailing {
    display: none;
}

:focus {
    outline: none;
}

div.clear {
    clear: both;
}

.events-tooltip {
    background-color: #f9f9f9;
    border: 1px solid #666;
    color: #333;
    display: none;
    line-height: 1.4;
    position: absolute;
    width: 320px;
    z-index: 1001;
    padding: 10px;
    text-align: left;
}

.events-tooltip h3 {
    margin-bottom: 0 !important;
}

.events-tooltip .event-page.button,
.events-tooltip .registration-page.button,
.events-tooltip-jquery .event-page.button,
.events-tooltip-jquery .registration-page.button {
    margin-top: 10px;
    float: left;
    margin-right: 15px;
    padding-bottom: 15px;
}

.events-tooltip .event-page.button a,
.events-tooltip .registration-page.button a,
.events-tooltip-jquery .event-page.button a,
.events-tooltip-jquery .registration-page.button a {
    text-decoration: none;
    box-shadow: none;
    color: #fff;
    background: #333;
    padding: 5px;
    border-radius: 5px;
}

div#calendar ul.dates .event:hover .events-tooltip {
    display: block;
}

div#calendar ul.dates .event.position-1 {
    left: 0;
}

div#calendar ul.dates .event.position-2 {
    left: 14.28571429%;
}

div#calendar ul.dates .event.position-2:first-of-type {
    top: -31px;
}

div#calendar ul.dates .event.position-3 {
    left: 28.57142858%;
}

div#calendar ul.dates .event.position-4 {
    left: 42.85714287%;
}

div#calendar ul.dates .event.position-5 {
    left: 57.14285716%;
}

div#calendar ul.dates .event.position-6 {
    left: 71.42857145%;
}

div#calendar ul.dates .event.position-7 {
    left: 85.71428574%;
}


/* .event.multiday-first {
	width: 108%;
	border-radius: 10px 0 0 10px !important;
}
.event.multiday-between {
	width: 108%;
	border-radius: 0 !important;
}
.event.multiday-last-day-of-week {
	width: 100%;
	border-radius: 0 !important;
}
.event.multiday-last {
	width: 100%;
	border-radius: 0 10px 10px 0 !important;
} */


/* 
 * Popover styles
 */

.popover-body {
    position: relative;
    /* padding: 0; */
}

.popover-body .event-page,
.popover-body .registration-page {
    padding: 0 !important;
    margin-top: 10px;
    text-align: center;
    width: 100% !important;
    margin-bottom: 10px;
}

button.close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

.popover-body .button {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 12px 50px !important;
    color: #fff !important;
    display: block !important;
}

.event-page a.button {
    background-color: #003f87 !important;
}

.registration-page a.button {
    background: #5cb85c !important;
    border: 1px solid #4cae4c !important;
}

.popover h3 {
    font-size: 24px;
    /* padding: .5rem 1.3rem 0 .75rem; */
    word-break: normal;
}

.popover-body .hero-image {
    margin-top: 10px;
}

@media screen and (max-width: 800px) {
    #calendar-content h2 {
        display: none;
    }
    div#calendar div.header {
        left: 0;
    }
    div#calendar ul.label {
        display: none;
    }
    div#calendar li.calendar-day-np {
        display: none;
    }
    div#calendar ul.dates {
        float: none;
        margin: 0px;
        padding: 0px;
        margin-left: 5px;
        margin-bottom: 5px;
    }
    div#calendar ul.dates li {
        width: 100%;
        height: auto;
    }
    .fc-scroller.fc-day-grid-container {
        overflow: scroll !important;
    }
    div#calendar div.date-selector {
        float: none;
        margin: 0 auto;
        clear: both;
        text-align: center;
        margin-bottom: 15px;
    }
    div#calendar div.today-selector {
        float: none;
        margin: 0 auto;
        clear: both;
        text-align: center;
        padding-bottom: 15px;
    }
    .events-information {
        color: #fff;
    }
    .popover.bs-popover-right {
        position: absolute;
        margin-left: -50%;
        right: 0;
    }
}

@media screen and (max-width: 400px) {
    div#calendar div.date-selector {
        float: none;
        margin: 0 auto;
        clear: both;
        text-align: center;
        margin-bottom: 15px;
    }
    div#calendar div.today-selector {
        float: none;
        margin: 0 auto;
        clear: both;
        text-align: center;
        padding-bottom: 15px;
    }
}