/******************************************************************************************
 Author: Jack Ducasse;
 Version: 0.1.0;
 https://github.com/jackducasse/caleandar

 GYMMEMO NOTES:
 1. This CSS is a copy of 3rd-party JS/CSS library Caleandar 0.0.1 > Theme2.css
 2. Modifications:
 (+) .cld-main
     -> This was the entire width dimension of the main calendar, thus not dynamic size.
        Comment it out so the dimension would be dynamic depending on the display/screen size
        where element occupies.
     -> Disabled the default element "width = 400px". 
     -> Replaced it with "max-width = 500px" and margin-left/right = auto such that calendar width
        is still under control on very wide screen.
         
 (+) .cld-number.eventday
     -> This is the style for date's number if there is an event on that date.
        The added border will override the default date border styling "currMonth". 
     -> Added "border" to strengthen the date standout.
 
 (+) .cld-day.today .cld-number
     -> This is the style for TODAY date. The default background color was too strong;
        we don't need to highlight today date since the calendar objective is to highlight
        dates that have completed Sessions (events). 
     -> Disabled styling for strong background color; replaced with a simple "bold" font.
 
 (+) .cld-datetime .today
     -> This is the Calendar label month-year on top of the calendar. Emboldened the fonts
        to strengthen its standout.
     -> Added "font-weight:bold" and font-size to be specific (large)
         
 (+) .cld-number 
     -> The styling for date number inside the date box within calendar. By default, it has
        padding "10px" to make it nice-looking square box. But for smaller width screen, it caused
        the number values to collapse because not enough width.
     -> Enhanced to set "padding: ?px" dynamically depending on the media width.   

 (+) .cld-number.eventday:hover
     -> Change event-date background color to our color theme.

 (+) .today .cld-number.eventday:hover
     -> Disable event-date that is also "today" background color. It was too obnoxious.
        Let it be same as ".cld-number.eventday:hover"

 (+) .cld-number:hover .cld-title
     -> Disabled to display the "Title" when the date is hovered.
******************************************************************************************/ 
.cld-main {
    /* width: 400px; */
    max-width: 500px;
    margin: 0px auto;
}

.cld-main a{
    color: #0080FF;
}

.cld-main svg{
    fill: #0080FF;
}

.cld-datetime{
    position: relative;
    width: 66%;
    min-width: 100px;
    max-width: 300px;
    margin: auto;
    overflow: hidden;
}

.cld-datetime .today{
    position: relative;
    float: left;
    width: calc(100% - 40px);
    margin: auto;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}

.cld-nav{
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.cld-nav:hover{
    cursor: pointer;
}

.cld-nav:hover svg{
    fill: #005EFF;
}

.cld-rwd{
    float: left;
}

.cld-fwd{
    float: right;
}

.cld-nav svg:hover{
}

.cld-labels, .cld-days{
    padding-left: 0;
}

.cld-label, .cld-day{
    box-sizing: border-box;
    display: inline-block;
    width: 14.28%;
    text-align: center;
}

.cld-day{
    border: 1px solid #eee;
}

.cld-day.today .cld-number {
    /* background: #0080FF; */
    /* color: #fff; */
    font-weight: bold;
}

.cld-day.disableDay{
    opacity: 0.5;
}

.cld-day.nextMonth, .cld-day.prevMonth{
    opacity: 0.33;
}

.cld-number {
    position: relative;
    margin: 0;
    padding: 5px;
} @media screen and (min-width: 400px) {
    .cld-number {
        padding: 10px; 
    }   
}

.cld-title{
    position: absolute;
    z-index: 5;
    display: none;
    top: 35px;
    left: 0;
    padding: 5px 10px;
    background: #fff;
    white-space: nowrap;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
}

.cld-number:hover .cld-title {
    /* display: block; */
}

.cld-title::before{
    content: '';
    position: absolute;
    top: -7.5px; left: 10px;
    width: 0;
    height: 0;
    border-left: 7.5px solid transparent;
    border-right: 7.5px solid transparent;

    border-bottom: 7.5px solid #ccc;
}

.cld-number.eventday {
    border: 1px solid #DD5F1B;
    font-weight: bold;
    color: #DD5F1B;
}

.cld-number.eventday:hover {
    cursor: pointer;
    /* background: #81FFFE; */
    background: #DD5F1B;
    color: #FFFFFF;
}

.today .cld-number.eventday:hover {
    /* background: #005EFF; */
}
