/**
 * Original code from https://he.savvy.co.il/blog/wp-content/uploads/2018/12/heb-calendar-demo-files.zip  \css\lcalendar-css.css
 */
@font-face {
    font-family: 'fontawesome-selected';
    src: url("../fonts/fontawesome-selected.eot");
    src: url("../fonts/fontawesome-selected.eot?#iefix") format('embedded-opentype'), url("../fonts/fontawesome-selected.woff") format('woff'), url("../fonts/fontawesome-selected.ttf") format('truetype'), url("../fonts/fontawesome-selected.svg#fontawesome-selected") format('svg');
    font-weight: normal;
    font-style: normal;
}
/* General Demo Style */

html { height: 100%; }

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}



section.main {
    direction: ltr;
}
.fc-calendar-container {
    position: relative;
    height: 400px;
    width: 400px;
}

.fc-calendar {
    width: 100%;
    height: 100%;
}

.fc-calendar .fc-head {
    height: 30px;
    line-height: 30px;
    background: #ccc;
    color: #fefefe;
}

.fc-calendar .fc-body {
    position: relative;
    width: 100%;
    height: 100%;
    height: -moz-calc(100% - 30px);
    height: -webkit-calc(100% - 30px);
    height: calc(100% - 30px);
    border: 1px solid #ddd;
}

.fc-calendar .fc-row {
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.fc-four-rows .fc-row  {
    height: 25%;
}

.fc-five-rows .fc-row  {
    height: 20%;
}

.fc-six-rows .fc-row {
    height: 16.66%;
    height: -moz-calc(100%/6);
    height: -webkit-calc(100%/6);
    height: calc(100%/6);
}

.fc-calendar .fc-row > div,
.fc-calendar .fc-head > div {
    float: right;
    height: 100%;
    width:  14.28%; /* 100% / 7 */
    width: -moz-calc(100%/7);
    width: -webkit-calc(100%/7);
    width: calc(100%/7);
    position: relative;
}

/* IE 9 is rounding up the calc it seems */
.ie9 .fc-calendar .fc-row > div,
.ie9 .fc-calendar .fc-head > div {
    width:  14.2%;
}

.fc-calendar .fc-row > div {
    border-right: 1px solid #ddd;
    padding: 4px;
    overflow: hidden;
    position: relative;
}

.fc-calendar .fc-head > div {
    text-align: center;
}

.fc-calendar .fc-row > div > span.fc-date {
    position: absolute;
    width: 30px;
    height: 20px;
    font-size: 17px;
    line-height: 20px;
    font-weight: 700;
    color: #ddd;
    text-shadow: 0 -1px 0 rgba(255,255,255,0.8);
    bottom: 5px;
    right: 5px;
    text-align: right;
}

.fc-calendar .fc-row > div > span.fc-weekday {
    padding-left: 5px;
    display: none;
}

.fc-calendar .fc-row > div.fc-today {
    background: #a3316f;
}

.fc-calendar .fc-row > div.fc-out {
    opacity: 0.6;
}

.fc-calendar .fc-row > div:last-child,
.fc-calendar .fc-head > div:last-child {
    border-right: none;
}

.fc-calendar .fc-row:last-child {
    border-bottom: none;
}




/* Custom calendar elements */

.custom-calendar-wrap {
    margin: 10px auto;
    position: relative;
    overflow: hidden;
}

.custom-inner {
    background: #fefefe;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.2); */
}

.custom-inner:before,
.custom-inner:after  {
    content: '';
    width: 99%;
    height: 50%;
    position: absolute;
    background: #f6f6f6;
    bottom: -4px;
    left: 0.5%;
    z-index: -1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.custom-inner:after {
    content: '';
    width: 98%;
    bottom: -7px;
    left: 1%;
    z-index: -2;
}

.custom-header {
    background: #fefefe;
    padding: 5px 10px 10px 20px;
    height: 70px;
    position: relative;
    border-top: 5px solid #a3316f;
    border-bottom: 1px solid #ddd;
}

.custom-header h2,
.custom-header h3 {
    text-align: center;
    text-transform: uppercase;
}

.custom-header h2 {
    color: #495468;
    font-weight: 300;
    font-size: 22px !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
}

.custom-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: #b7bbc2;
    margin: 0;
    letter-spacing: 1px;
}

.custom-header nav span {
    position: absolute;
    top: 17px;
    width: 30px;
    height: 30px;
    color: transparent;
    cursor: pointer;
    margin: 0 1px;
    font-size: 20px;
    line-height: 30px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-header nav span:first-child {
    right: 5px;
}

.custom-header nav span:last-child {
    left: 5px;
}

.custom-header nav span:before {
    font-family: 'fontawesome-selected';
    color: #a3316f;
    position: absolute;
    text-align: center;
    width: 100%;
}

.custom-header nav span.custom-prev:before {
    content: '\25b8';
}

.custom-header nav span.custom-next:before {
    content: '\25c2';
}

.custom-header nav span:hover:before {
    color: #495468;
}

.custom-content-reveal {
    background: #f6f6f6;
    background: rgba(246, 246, 246, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0px;
    text-align: center;
    -webkit-transition: all 0.6s ease-in-out;
    -moz-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
    -ms-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
    will-change: transform;
    direction: rtl;
    overflow: auto;
}

.custom-content-reveal span.custom-content-close {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 20px;
    height: 20px;
    text-align: center;
    background: #a3316f;
    cursor: pointer;
    line-height: 17px;
    padding: 0;
}

.custom-content-reveal span.custom-content-close:after {
    content: 'x';
    font-size: 18px;
    color: #fefefe;
}

.custom-content-reveal h4 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #777;
    padding: 20px;
    background: #fefefe;
    border-bottom: 1px solid #ddd;
    border-top: 5px solid #a3316f;
    box-shadow: 0 1px rgba(255,255,255,0.9);
    margin-bottom: 30px;
    margin-top: 0;
}

.custom-content-reveal span {
    color: #888;
}

.custom-content-reveal a {
    color: #a3316f;
}

.custom-content-reveal a:hover {
    color: #333;
}

/* Modifications */

.fc-calendar-container {
    height: 400px;
    width: auto;
    /* padding: 30px; */
    background: #f8f8f8;
    box-shadow: inset 0 1px rgba(255,255,255,0.8);
}

.fc-calendar .fc-head {
    background: transparent;
    color: #a3316f;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    border: solid #ddd;
    border-width: 0px 1px 0 1px;
}

.fc-calendar .fc-row > div {
    background: #fefefe;
}

.fc-calendar .fc-row > div:empty {
    background: transparent;
}

.fc-calendar .fc-row > div > span.fc-date {
    top: 50%;
    left: 50%;
    text-align: center;
    margin: -10px 0 0 -15px;
    color: #616161;
    font-weight: 300;
    pointer-events: none;
}

.fc-calendar .fc-row > div.fc-today {
    background: #a3316f;
    box-shadow: inset 0 -1px 1px rgba(0,0,0,0.1);
}

.fc-calendar .fc-row > div.fc-today > span.fc-date {
    color: #fefefe;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.fc-calendar .fc-row > div.fc-content:before {
    font-family: 'fontawesome-selected';
    content: '\00B7';
    text-align: center;
    width: 20px;
    margin-left: -10px;
    position: absolute;
    font-size: 50px;
    line-height: 20px;
    left: 50%;
    top: 0px;
    transition: all .2s;
    color: #b02c42;
}

.fc-calendar .fc-row > div.fc-today.fc-content:after {
    color: #b02c42;
}

.fc-calendar .fc-row > div.fc-content:hover:after{
    color: #a3316f;
}

.fc-calendar .fc-row > div.fc-today.fc-content:hover:after{
    color: #fefefe;
}

.fc-calendar .fc-row > div > div a,
.fc-calendar .fc-row > div > div span {
    font-size: 11px;
    color: #424242;
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    font-weight: 300;
    display: none;
}

.fc-calendar .fc-row .fc-content > .fc-date {
    color: #2d2d2d;
    font-weight: 400;
}

.fc-calendar .fc-row > .fc-content {
    cursor: pointer;
    transition: all .2s;
    background-color: #dbf4f4;
}
.fc-calendar .fc-row > .fc-content:hover:before {
    color: #a3316f;
}

.on-cal-content {
    display: none;
}

div#custom-content-reveal > *:not(h4):not(.custom-content-close) {
    padding: 0 30px;
}

.just-title {
    font-size: 24px;
    margin-bottom: 30px;
}

@media screen and (max-width: 540px) {
    .fc-calendar-container {
        height: 300px;
    }

    .just-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .fc-calendar .fc-row > div > span.fc-date {
        font-size: 15px;
    }
    .fc-calendar .fc-row > div.fc-content:before {
        content: '\00B7';
        text-align: center;
        width: 20px;
        margin-left: -10px;
        position: absolute;
        font-size: 50px;
        line-height: 20px;
        left: 50%;
        top: 0;
        transition: all .2s;
        color: #ffe01b;
    }

    .fc-calendar .fc-row > div > div span {
        display: none;
    }
    .fc-calendar .fc-row > div.fc-content:before {
        font-size: 40px;
        top: -4px;
    }

    div#custom-content-reveal > *:not(h4):not(.custom-content-close) {
        padding: 0 10px;
    }
}
