.calendar-page .calendar {
    display: none;
}

.calendar-page .events {
    display: none;
}

.calendar-page .show_more {
    display: none;
}

.calendar {
    width: 310px;
    margin: 15px auto 15px;
}

.calendar-page .empty_list {
    display: none;
}

.calendar-page .events .empty_list {
    display: block;
}

.calendar .common-day {
    color: #fff;
    background: #35b6de !important;
}

.calendar .selected-day {
    color: #fff;
    background: #d14c47 !important;
}

.calendar-day {
    position: relative;

    display: block;

    width: 42px;
    height: 42px;
    min-height: 42px;

    cursor: pointer;

    color: #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #edf6fa;
    background-position: center center;
    background-size: cover;

    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.calendar-header {
    position: relative;

    margin-bottom: 15px;

    text-align: center;

    line-height: 1;
}

.calendar-month {
    margin: 0 14px;

    text-transform: uppercase;

    color: #d14c47;

    font-size: 16px;
}

.calendar-prev-month-arrow,
.calendar-next-month-arrow {
    position: absolute;
    top: 50%;

    display: block;

    width: 20px;
    height: 20px;
    margin-top: -12px;

    cursor: pointer;

    background-size: cover;
}

.calendar-prev-month-arrow {
    background: url(../svg/arrow_red_left.svg) center no-repeat;
}

.calendar-next-month-arrow {
    right: 0;

    background: url(../svg/arrow_red_right.svg) center no-repeat;
}

.birthday-icon:before {
    position: absolute;
    top: 5px;
    right: 5px;

    display: block;

    width: 18px;
    height: 20px;

    content: '';

    background: url(../svg/ico_birthday_transparent.svg) center no-repeat;
    background-size: cover;
}

.calendar-grid.calendar-adding-event-button {
    margin: 15px 0px;

    text-align: center;
}

.calendar-events.calendar-adding-event-button  {
    float: right;
}

.calendar-grid.calendar-adding-event-button a {
    display: inline;
}

.calendar-events.calendar-adding-event-button a {
    display: block;
}

.calendar-adding-event-button a {
    position: relative;

    display: block;

    padding-right: 30px;

    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;

    color: #ef0040;

    font-size: 14px;
    font-weight: 700;
}

.calendar-adding-event-button a:after{
    position: absolute;
    top: 50%;
    right: 0;

    display: block;

    width: 20px;
    height: 20px;
    margin-top: -10px;

    content: '';

    background: url(../svg/add_calendar_plus.svg) center no-repeat;
    background-size: cover;
}

.days_of_week {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    margin-bottom: 0px;

    font-size: 14px;

    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.days_of_week span {
    width: 13.5%;
    padding-left: 5px;
}

.clndr_row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    margin-bottom: 3px;

    font-size: 12px;

    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}


.day {
    position: absolute;
    top: 3px;
    left: 3px;

    display: inline-block;

    width: 15px;
    height: 15px;

    text-align: center;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 3px;

    line-height: 15px;

    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.dsbld {
    color: #9d9ca4;
}

.event_count {
    position: absolute;
    bottom: 0;
    left: 0;

    display: inline-block;

    width: 100%;
    height: 14px;

    text-align: center;
    white-space: nowrap;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;

    line-height: 14px;

    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.weekend {
    color: #d14c47;
}

@media (min-width: 480px) {
    .calendar {
        width: 460px;
        margin: 0 auto;
    }
    .calendar-day {
        width: 62px;
        height: 62px;
    }
}

/* Small Devices, Tablets */
@media (min-width: 720px) {
    .calendar {
        width: 680px;
        margin: 20px auto 25px;
    }

    .calendar-header {
        margin-bottom: 30px;
    }

    .calendar-month {
        font-size: 30px;
    }

    .calendar-next-month-arrow,
    .calendar-prev-month-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .calendar-day {
        width: 95px;
        height: 95px;
    }

    .calendar-next-month-arrow {
        right: 25px;
    }

    .calendar-prev-month-arrow {
        left: 25px;
    }

    .birthday-icon:before {
        top: 13px;
        right: 13px;

        width: 38px;
        height: 43px;
    }

    .calendar-grid.calendar-adding-event-button {
        margin: 55px 0px;
    }

    .calendar-adding-event-button a {
        padding-right: 50px;

        font-size: 22px;
    }

    .calendar-adding-event-button a:after{
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }

    .days_of_week {
        margin-bottom: 15px;

        font-size: 20px;
    }

    .days_of_week span {
        padding-left: 11px;
    }

    .clndr_row {
        margin-bottom: 0.5%;

        font-size: 20px;
    }

    .day {
        width: 32px;
        height: 32px;

        line-height: 32px;
    }

    .event_count {
        height: 27px;

        line-height: 27px;
    }
}



/* Large Devices, Wide Screens */
@media (min-width: 1020px) {
    .calendar {
        width: 100%;
        margin: 20px auto 25px;
    }

    .calendar-header {
        margin-bottom: 30px;
    }

    .calendar-month {
        margin: 0 5px;

        font-size: 24px;
    }

    .calendar-next-month-arrow,
    .calendar-prev-month-arrow {
        width: 25px;
        height: 25px;
        margin-top: -12px;
    }

    .calendar-day {
        width: 75px;
        height: 75px;
    }

    .birthday-icon:before {
        top: 10px;
        right: 10px;

        width: 28px;
        height: 32px;
    }

    .calendar-grid.calendar-adding-event-button {
        margin: 25px 0px;
    }

    .calendar-adding-event-button  a {
        padding-right: 30px;

        font-size: 14px;
    }

    .calendar-adding-event-button a:after{
        width: 20px;
        height: 20px;
        margin-top: -11px;
    }

    .days_of_week {
        margin-bottom: 10px;

        font-size: 14px;
    }

    .days_of_week span {
        padding-left: 4px;
    }

    .clndr_row {
        margin-bottom: 3px;

        font-size: 14px;
    }

    .day {
        width: 24px;
        height: 24px;

        line-height: 24px;
    }

    .event_count {
        height: 20px;

        line-height: 18px;
    }
}
