/* ===============================
   Mobile Styles: 0px to 640px 
   ===============================
*/

@media only screen and (max-width: 640px) {
    table#calendar, tbody, tr, td, th, caption {
        display: block;
    }

    table#calendar thead, h1 {
        display: none;
        font-family: "Poppins", "Helvetica", Arial, sans-serif;
        color:#0f3d2d;
        font-weight: bold;
    }

    table#calendar caption {
        color: white;
        background-color: #0f3d2d;
        font-size: 1.5em;
        line-height: 2em;
    }

    table#calendar td {
        border: 1px dotted gray;
        color: #0f3d2d;
        position: relative;
        padding-left: 40%;
        min-height: 40px;
    }

    table#calendar tr:nth-of-type(odd) {
        background-color: rgb(255,235,178);
        border: 2px solid gray;
    }

    table#calendar td::before {
    content: attr(data-date);
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    padding: 5px;
    }
}


/* =============================================
   Tablet and Desktop Styles: greater than 640px
   =============================================
*/

@media only screen and (min-width:641px) {
    table#calendar {
        background-image: url(lht_photo1.png);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: 40%;
        border: 6px #0f3d2d;
        border-collapse: collapse;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        table-layout: fixed;
        width: 85%;
    }

    table#calendar th, td {
        border: 1px solid gray;
        font-size: 0.85em;
        padding: 5px;
        vertical-align: top;
        width: 14.28%;
        word-wrap: break-word;
    }

    table#calendar td {
        background-color: rgba(171, 171, 171, 0.6);
        color: #0f3d2d;
    }

    table#calendar td[data-date*="Dec"] {
    background-color: white;
    }

    table#calendar caption {
        caption-side: top;
        text-align: center;
        padding-bottom: 10px;
        font-size: 1.2em;
        letter-spacing: 3px;
    }

    table#calendar thead h1 {
        background-color: rgb(154, 64, 3);
        font-family: "Poppins", "Helvetica", Arial, sans-serif;
        color:#0f3d2d;
        font-weight: bold;
    }
}