@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(6n+2),
#schedule tr:nth-child(6n+3),
#schedule tr:nth-child(6n+4) {			/* zebra-striped weeks */
    background-color: #e2e2ee;
}

#schedule td:nth-child(3) {			/* Reading column */
    width: 30%;
}

#schedule td:nth-child(4) {			/* Homework column */
    width: 30%;
}


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


#schedule td:first-child {	/* First row is headers */
    text-align: center;
    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] {
    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(4n+1), #schedule th:nth-child(4n+1) {
	background-color: #bbbbbb;
	color: white;
    }
}
