﻿body {
    font-family: Tahoma;
}

header {
    text-align: center;
}

#calendar {
    width: 100%;    
}

#calendar a {
 /*   color: #8e352e;
    text-decoration: none;*/
}

#calendar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
/*Table*/
#calendar li {
    display: block;
    float: left;
    width:14.342%;
    padding: 2px;
    box-sizing:border-box;
    border: 1px solid #ccc;
    margin-right: -1px;
    margin-bottom: -1px;
}

#calendar ul.weekdays {
    height: 40px; 
    background: #8e352e;
}
/*星期日星期一星期二星期三星期四星期五星期六*/
#calendar ul.weekdays li {
    text-align: center;
    text-transform: uppercase;
    line-height: 16px;
    border: none !important;
    padding: 10px 6px;
    color: #fff;
    font-size: 11px;
}

#calendar .days li {
   /*height: 160px;*/
   height: 60px;
   /*overflow:auto;*/
}

#calendar .days li:hover {
    background: #d3d3d3;
}

#calendar .date {
    text-align: center;
    margin-bottom: 2px;
    padding: 2px;
    background: #333;
    color: #fff;
    width: 26px;
    border-radius: 50%;
    float: left;
}

#calendar .event {
    clear: both;
    display: block;
    font-size: 10px;
    border-radius: 4px;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 10px;
    background: #e4f2f2;
    border: 1px solid #b5dbdc;
    color: #009aaf;
    text-decoration: none;
}

#calendar .event-desc {
    color: #666;
    margin: 3px 0 7px 0;
    text-decoration: none;  
}

#calendar .other-month {
    background: #f5f5f5;
    color: #666;
}
    
.CalendarTitle{
        margin-left:2px; 
        margin-right:2px;
        line-height:160%;
        float:right; 
        bottom:3px;
        border-top-left-radius: 5px; 
        border-bottom-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px; 
        background-color:red;  
        text-align:center; 
        color:white;
        font-size: 14px;
    }
/* ============================
                Mobile Responsiveness
   ============================*/



@media(max-width: 380px) {

    #calendar .weekdays, #calendar .other-month {
        display: none;
    }

    #calendar li {
        height: auto !important;
        border: 1px solid #ededed;
        width: 100%;
        padding: 10px;
        margin-bottom: -1px;
    }

    #calendar .date {
        float: none;
    }
    
    #calendar .date {
    text-align: center;
    margin-bottom: 2px;
    padding: 6px;
    background: #333;
    color: #fff;
    width: 30px;
    height: 30px;   
    border-radius:999em;
    float: left;
    line-height: 18px;
    }
    
     .CalendarTitle{
        margin-left:2px; 
        margin-right:2px;
        line-height:160%;
        float:right; 
        bottom:3px;
        border-top-left-radius: 5px; 
        border-bottom-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px; 
        background-color:red;  
        text-align:center; 
        color:white;
    font-size: 16px;
    }
}