@charset "utf-8";

/* Style sheet for the schedule table */

table#schedule {			/* The overall table */
    background-color: #f0f0ff;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid black;
    width: 99%;
}

#schedule tr:nth-child(odd) {		/* table is zebra-striped by weeks */
    background-color: #e2e2ee;
}

#schedule th, #schedule td {
    vertical-align: middle;		/* everything is vertically centered */
    border: dotted #888;		/* inobtrusive border lines */
    border-width: 0 1px;		/* only left/right borders */
    padding: 3px;			/* Internal padding for each cell */
}


/* First columns (week number & date range) is horizontally centered */
#schedule td:first-child {
    text-align: center;
    line-height: 1.6;
    white-space: nowrap;
}

#schedule ul, #schedule ul li {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

/* Make today’s date stand out. */
#schedule #current {
    font-weight: bold;
    text-shadow: 0 0 2em fuchsia;
}

/* A s-t-r-e-c-h-e-d Spring/Fall Break announcement */
#schedule td[colspan="4"] {
    text-align: center;
    letter-spacing: 1.5em;
}

@media only screen and (max-width: 700px) {
    /* Should add #schedule */
    table#schedule, table#schedule tr, table#schedule td, table#schedule th {
	display: block !important;
	width: 100% !important;
    }
    #schedule td {
	background-color: #f0f0ff;
    }
    #schedule td:nth-child(6n+1), #schedule th:nth-child(6n+1),
    #schedule td:nth-child(6n+2), #schedule th:nth-child(6n+2) {
	background-color: #bbbbbb;
	color: white;
	width: 47% !important;
	display: inline-block !important;
    }
}
