@charset "utf-8";

/* Mobile Styles: 0px to 640px */

@media only screen and (max-width: 640px) {
    table, tbody, tr, td, th, caption {
        display: block;
    }

    thead {
        display: none;
    }

    caption {
        color: white;
        background-color: rgb(125,127,124);
        font-size: 1.5em;
        line-height: 2em;
    }

    td {
        border: 1px dotted gray;
        color: rgb(255, 255, 255);
        position: relative;
        padding-left: 40%;
        min-height: 40px;
    }

    tr {
        background-color: rgb(17, 102, 0);
        border-bottom: 2px solid gray;
    }

    tr td h1 {
        font-size: 24px;
    }

    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 {
    border: 6px solid rgb(181, 201, 0);
    border-collapse: collapse;
    margin: 20px auto 20px auto;  
    table-layout: fixed;
    width: 85%;
   }
   
   th, td {
    border: 1px solid gray;
    font-size: 0.85em;
    font-weight: normal;
    padding: 5px;
    vertical-align: top;
    width: 14.28%;
    word-wrap: break-word;
   }

   td {
    background-color: rgba(171, 171, 171, 0.6);
    color: rgb(255, 255, 255);
   }

   td[data-date~="Sep"] {
    background-color: rgba(232, 214, 148, 0.6);
    box-shadow: inset 0px 0px 20px gray; 
   }

   caption {
    caption-side: top;
    text-align: center;
    padding-bottom: 10px;
    font-size: 1.2em;
    letter-spacing: 3px;
   }

   table.calendar thead th {
    background-color: rgb(17, 102, 0);
    color: white;
   }
}