@charset "utf-8";

/*
   New Perspectives on HTML and CSS, 8th Edition
   Tutorial 6
   Case Problem 2

   Calendar Style Sheet
   Author: Zoe Griffith
   Date:   11/10/25

   Filename:   lht_tables.css

*/

/* ===============================
   Mobile Styles: 0px to 640px 
   ===============================
*/
@media only screen and (max-width: 640px) {
    table#calendar, tbody, tr, td, caption {
        display: block;
    }
    th, h1 {
        display: none;
        border: none;
    }
    caption {
        color: white;
        background: gray;
        font-size: 1.5em;
        line-height: 2em;
    }
    table th, table td {
        border: 1px dotted gray;
        color: rgb(11,12,145);
        position: relative;
        padding-left: 40%;
        min-height: 40px;
    }
    tr:nth-of-type(odd) {
        background: rgb(255,235,178);
        border: solid gray;
    }
    td[data-date]::before {
        content: attr(data-date);
        position: absolute 0;
        width: 40%;
        padding: 5px;

    }
}



/* =============================================
   Tablet and Desktop Styles: greater than 640px
   =============================================
*/
@media only screen and (min-width: 641px) {
    table {
        background-image: url(lht_photo1.png);
        background-repeat: no-repeat;
        background-position: right bottom;
        border: 6px double rgb(154,64,3);
        border-collapse: collapse;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        table-layout: fixed;
        width: 85%;
    }
    table th, table td {
        border: 1px solid gray;
        font-size: 0.85em;
        font-weight: normal;
        padding: 5px;
        vertical-align: top;
        width: 14.28%;
        word-wrap: break-word;
    }
    table td {
        background-color: rgba(171,171,171,0.6);
        color: rgb(11,12,145);
    }
    table caption {
        caption-side: top;
        text-align: center;
        padding-bottom: 10px;
        font-size: 1.2em;
    }
    thead th {
        background: rgb(154,64,3);
        color: white;
    }
}


