﻿.calendar {
    margin-bottom: 69px;
    font-family: "Lato", sans-serif;
}

    .calendar .weeks {
        border-right: solid 1px #ccc;
        margin-bottom: 40px;
    }

    .calendar .week {
        clear: both;
    }

        .calendar .week:after {
            content: '';
            clear: both;
            display: block;
            overflow: hidden;
            height: 0;
        }

        .calendar .week .day {
            position: relative;
            padding-bottom: 14.285714285714%;
            border: solid 1px #ccc;
            border-right: none;
            border-top: none;
        }

    .calendar .day {
        width: 14.285714285714%;
        float: left;
    }

        .calendar .day .date {
            background-color: #666666;
            color: #fff;
            display: block;
            font-size: 10px;
            position: absolute;
            top: 0;
            left: -1px;
            right: -1px;
            padding-left: 6px;
            padding-right: 6px;
            line-height: 1.5;
        }

        .calendar .day .short {
            display: none;
        }

        .calendar .day.non {
            background-color: #eee;
        }

            .calendar .day.non .date {
                background-color: #aaa;
            }

        .calendar .day.today .date {
            background-color:;
        }

        .calendar .day > ul {
            position: absolute;
            top: 20px;
            right: 5px;
            bottom: 0;
            left: 5px;
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

            .calendar .day > ul .event {
                font-size: 12px;
                border-bottom: solid 1px #00bfef;
                position: relative;
                padding: 5px;
                cursor: default;
            }

                .calendar .day > ul .event:last-child {
                    border-bottom: none;
                }

                .calendar .day > ul .event .details {
                    position: absolute;
                    bottom: 100%;
                    background: #ffffff;
                    padding: 16px;
                    width: 320px;
                    z-index: 100;
                    left: -100000px;
                    box-shadow: 2px 4px 22px rgba(92, 92, 92, 0.4);
                }

                    .calendar .day > ul .event .details h3 {
                        font-family: "Lato", sans-serif;
                        font-weight: 300;
                        color: #333;
                        font-size: 24px;
                        line-height: 1.25;
                        margin: 0 0 0.5em;
                        text-transform: capitalize;
                    }

                    .calendar .day > ul .event .details p {
                        font-family: "Lato", sans-serif;
                        margin-bottom: 1em;
                        font-size: 16px;
                        color: #666;
                    }

                    .calendar .day > ul .event .details:after {
                        content: '';
                        border-top: solid 7px #ffffff;
                        border-left: solid 10px transparent;
                        border-right: solid 10px transparent;
                        position: absolute;
                        top: 100%;
                        left: 10px;
                        overflow: hidden;
                        width: 0;
                        height: 0;
                    }

                    .calendar .day > ul .event .details .full {
                        font-size: 16px;
                        color: #666;
                    }

                    .calendar .day > ul .event .details .calendar-event-title {
                        font-weight: lighter;
                        font-size: 24px;
                        line-height: 1.25;
                        margin: 0 0 0.5em;
                        text-transform: capitalize;
                        color: #333;
                    }

                .calendar .day > ul .event:hover .details {
                    left: 0px;
                }

        .calendar .day.sat > ul .event:hover .details {
            left: auto;
            right: 0;
        }

            .calendar .day.sat > ul .event:hover .details:after {
                right: 10px;
                left: auto;
            }

    .calendar .days-of-week {
        background: #017fba;
        color: #fff;
        text-align: center;
        overflow: hidden;
        font-size: 12px;
        text-transform: uppercase;
        white-space: nowrap;
    }

        .calendar .days-of-week .day {
            text-overflow: hidden;
            padding: 8px;
        }

    .calendar .selected-event, .calendar .selected-events-title {
        display: none;
    }

    .calendar .button {
        font-size: 16px;
        font-weight: 900;
        text-transform: capitalize;
        text-align: center;
        border: solid 2px;
        padding: 10px 35px;
        line-height: 1;
        white-space: nowrap;
        display: inline-block;
        margin-bottom: 15px;
        cursor: pointer;
        -webkit-border-radius: 0 0 12px 0;
        -webkit-background-clip: padding-box;
        -moz-border-radius: 0 0 12px 0;
        -moz-background-clip: padding;
        border-radius: 0 0 12px 0;
        background-clip: padding-box;
        border-color: #017fba !important;
        color: #000 !important;
        background-color: #fff !important;
        text-decoration: none !important;
    }

@media screen and (max-width: 767px) {
    .calendar .selected-events-title {
        display: block;
        clear: both;
        font-weight: 300;
    }

    .calendar .selected-event .details h4 {
        font-weight: 900;
        font-size: 18px;
        font-family: "Lato", sans-serif;
        line-height: 1.33333333;
        margin: 0 0 0.5em;
        text-transform: capitalize;
    }

    .calendar .week .day.today .date {
        background-color: #00bfef;
    }

    .calendar .selected-event {
        display: block;
        border-top: solid 1px #ccc;
        padding: 10px 0;
        margin: 10px 0;
        clear: both;
    }

        .calendar .selected-event p {
            margin-bottom: 1em;
        }

    .calendar .day .full {
        display: none;
    }

    .calendar .day .short {
        display: block;
    }

    .calendar .week .day {
        padding-bottom: 0;
        height: 50px;
    }

        .calendar .week .day .date {
            text-align: center;
            background: transparent;
            font-size: 16px;
            color: #000;
            left: 0;
            right: 0;
        }

        .calendar .week .day.non .date {
            background-color: #eee;
            color: #666;
        }

        .calendar .week .day.today .date {
            background-color:;
        }

        .calendar .week .day.selected, .calendar .week .day.selected .date {
            background: #00bfef;
            color: #fff;
        }

        .calendar .week .day ul {
            cursor: pointer;
            text-align: center;
        }

            .calendar .week .day ul:before {
                content: "";
                position: absolute;
                height: 15px;
                width: 15px;
                background-color: #000000;
                border-radius: 50%;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            .calendar .week .day ul li {
                display: none;
            }

        .calendar .week .day.selected ul::before {
            background-color: #ffffff;
        }

        .calendar .calendar-nav .button {
            padding-left: 15px;
            padding-right: 15px;
        }

    .calendar .calendar-nav .btn > span {
        position: relative;
    }
}
