﻿.mini-cal {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*font-family: Verdana,sans-serif;*/
    padding-bottom: .5em;
    background: #f2f2f2;
    color: #3a414c;
    font-weight: bold;
}

#calTitle {
    display: flex;
    justify-content: space-between;
    -ms-align-items: center;
    align-items: center;
    font-size: 1.2em;
    text-align: center;
    padding: .4em 1em;
    padding-top: .8em
}

    #calTitle button {
        outline: 0;
        display: block;
        border: .1em solid #ddd;
        border: none;
        padding: 0;
        width: 40px;
        height: 40px;
        /*line-height: 60px;*/
        border-radius: 50%;
        background-color: rgba(0,0,0,.1)
    }

        #calTitle button svg {
            width: 30px;
            height: 30px
        }

        #calTitle button:hover {
            background: rgba(107, 129, 160,.5)
        }

#calTbody, #calThead {
    display: flex;
    flex-wrap: wrap;
    padding: .1em
}

#calThead {
    color: #3a414c;
    margin-top: .4em;
    align-items: center;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

    #calTbody .a-date, #calThead > div {
        box-sizing: border-box;
        flex: 1;
        min-width: calc(100% / 7);
        max-width: calc(100% / 7);
        width: calc(100% / 7);
        text-align: center;
        padding: 0
    }

    #calThead > div {
        font-size: 1.1em;
        padding: .2em .2em
    }

#calTbody {
    color: #3a414c;
}

    #calTbody .a-date .a-date-sub {
        width: 100%;
        padding-top: 100%; /* 1:1 Aspect Ratio */
        /*position: relative;*/ /* If you want text inside of it */
    }

        #calTbody .a-date .a-date-sub .a-date-sub-sub {
            display: block;
            font-size: 1.4em;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
        }

#calTMainBody {
    padding: .4em 1em;
    padding-right:1em;
    padding-left:1em;
    padding-top:.5em;
    padding-bottom:0;

}

#calTbody .a-date {
    cursor: default;
    padding: 0;
    position: relative;
    background-color: transparent;
    color: inherit;
    /*padding: 1em;*/
    border: .1em solid transparent;
    outline: 0;
    font-size: 1em
}

    #calTbody .a-date.blurred {
        opacity: .5;
        pointer-events: none
    }

    #calTbody .a-date.event:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        margin: auto;
        height: 100%;
        width: 100%;
        border-radius: 50%;
        border: 2px solid #394784;
    }

    #calTbody .a-date.current {
        border-radius: 50%;
        background-color: rgba(181, 195, 255,.8);
        outline: 0;
        outline: 0
    }

    /*#calTbody .a-date.focused, #calTbody .a-date:active {
        border-radius: 50%;
        background-color: rgba(119, 159, 221,.8);
        color: white;
    }*/

    #calTbody .a-date.focused > .a-date-sub > .a-date-sub-sub {
        border-radius: 50%;
        background-color: rgba(119, 159, 221,.8);
        color: white;
    }

    #calTbody .a-date.current.event.focused {
        background-color: #fffc23;
        color: #000
    }

#calTFooter {
    display: flex;
    justify-content: space-between;
    -ms-align-items: center;
    align-items: center;
    font-size: 1.1em;
    padding: 0 1em;
    /*margin-top: .5em*/
}

    #calTFooter #calLink {
        font-size: 1em;
        display: inline-block;
        padding: .6em .8em;
        flex-shrink: 0;
        text-decoration: none;
        color: #3a414c
    }

        #calTFooter #calLink:hover {
            background-color: rgba(119, 159, 221,.8)
        }

    #calTFooter #eventTitle {
        margin: 0;
        margin-right: .1em;
        font-weight: 400;
        font-size: 1em;
        white-space: nowrap;
        overflow: hidden;
        -ms-text-overflow: ellipsis;
        text-overflow: ellipsis
    }
