/*
 course.css
 style sheet for general course pages
 author: Martin Weisser
 last edit: 20-Apr-2014 13:26:34
*/
@media all {
    body {
	text-align: justify;
	margin-left: 5%; margin-right: 5%;
	line-height: 1.5em;
	font-family: "Times New Roman", serif;
    }
    h1, h2, h3, h4, h5 {
	font-variant: small-caps;
    }
    h1 {
        text-align: center;
        margin: 5%;
	border-radius: .25em;
	line-height: 1.5em;
	counter-increment: chapter;
    }
    h1:before {
	content: "Unit " counter(chapter) " – ";
       /* counter-increment: chapter;  /* Add 1 to chapter */
    }
    h2:before {
	content: counter(chapter) "." counter(section) " ";
    }
    h2 {
	counter-increment: section;
	counter-reset: subsection;
    }
    h3:before {
	    content: counter(chapter) "." counter(section) "." counter(subsection) " ";
	    /*counter-increment: section;*/
	counter-increment: subsection;
    }
    h3 {
	counter-reset: subsubsection;
	margin-top: 2em;
    }
    /* reduce the spacing immediately after an h2 again */
    h2 + h3 {
	margin-top: -.5em;
    }
    h4 {
	font-size: 1em;
	counter-increment: subsubsection;
    }
    h4:before {
	content: counter(chapter) "." counter(section)  "." counter(subsection) "." counter(subsubsection) ". ";
    }
    h5 {
	font-size: 1.15em;
    }
    em {
	font-weight: bold;
	font-style: italic;
    }
    iframe {
        width: 100%;
        border: thin groove black;
        height: 500px;
    }
    img {
	border: medium white inset;
    }
    input, textarea {
	line-height: 1.15em;
	font-family: Times, serif;
	font-size: 1em;
	overflow: auto;
    }
    table, th, td {
	border: 1px solid black;
	vertical-align: top;
	font-size: 1em;
	font-weight: normal;
    }
    table {
	width: auto;
	margin-left: 2.5em;
	margin-bottom: 1em;
    }
    th, td {
	    padding: .15em;
	    text-align: left;
	    width: auto;
    }
    td > ul {
	    margin: 0 0 0 0;
	    padding-left: 1em;
	    text-indent: -1em;
	    list-style-position: inside;
    }
    caption {
	    padding-top: 1em;
	    /*padding-bottom: .5em;*/
	    caption-side: bottom;
    }
    select {
	margin-left: .15em;
	margin-right: .15em;
	font-family: serif;
	font-size: 1em;
    }
    #container {
	    margin: .5%;
	    border-top: thin groove black;
	    border-bottom: thin groove black;
	    overflow: auto;
    }
    #text_samples {
	    height: 500px;overflow-y: auto;border: groove;padding: .25em;
    }
    /* this creates a special layout for the ILOs in each unit*/
    .ILO {
	    background-color: #FFE4C4;
	    border: thin solid black;
	    padding-left: 1em;
	    padding-right: 1em;
	    margin-right: 30%;
    }
    .ILO ol {
	list-style-type: decimal;
    }
    .task, .exercise {
	    border: thin solid black;
	    padding: .25em;
	    background-color: #D3D3D3;
	    counter-increment: index;
    }
    .task:before, .exercise:before {
       content: "Exercise " counter(index) ": ";
    }
    ol.task > li {
	list-style-position: inside;
	text-indent: -1em;
	padding-left: 1em;
    }
    .quote {
	padding-top: 1em; padding-bottom: 1em;
	margin-left: 5%; margin-right: 5%;
	font-size: .85em;
    }
    .footer {
	    font-size: .6em;
    }
    /* term definitions */
    .term {
	    font-weight: bold;
	    font-style: italic;
	    border: thin solid black;
	    padding-left: 0.25em;
	    padding-right: 0.25em;
    }
    .small-caps {text-transform: uppercase; font-size: .8em;}
    .centred {
	text-align: center;
    }
    .bib {
	text-indent: -1.5em;
	margin-left: 1.5em;
	line-height: 1em;
    }
    .strikethrough {
	text-decoration: line-through;
    }
    /* for explanations in tutors' guide */
    .guide {
	background-color: #ff8040;
	padding: .5em;
    }
    span.guide {
	padding: 0;
    }
    /* used for simulating headings in divs */
    .heading {
	text-align: center;
	font-size: 1.25em;
	margin-top: 1.25em;
	margin-bottom: 2em;
    }
}

@media screen {
    body {
	background: ivory;
	font-size: 1.25em;
	}
	div#button {
		width: 100%;
		padding-bottom: 1em;
	}
	div#content {
	    margin-top: 1em;
		width: 100%;
		float: left;
	}
	div#head {
		margin-left: -4.5%;
	}
	#menu_button {
		padding: 1em;
		margin-right: 3.5em;
		margin-bottom: 1em;
		background-color: #33FFFF;
		font-size: 1em;
		font-family: serif;
		width: 12.5%;
	}
    /* menu javascript menu stuff from here */
    #navigation {
        display: inline;
        padding: 0;
        margin: 0;
        /* background-color: #80ffff; */
    }
    #navigation li {
        display: block;
        position: relative;
        background-color: #ffdddd;
        padding: 0 .5em 0 .5em;
        border: thin solid black;
        list-style: none;
        float: left;
    }
    /*
    hover over main sections
    */
    #navigation li:hover {
        background-color: #dcffb9;
    }
    /*
    sub-entries
    */
    #navigation li div {
        visibility: hidden;
        position: absolute;
        width: auto;
        background-color: #ffffcc;
        padding: 0;
        margin: 0;
    }
    #navigation li div a {
        display: block;
        white-space: nowrap;
    }
    #navigation li div a:hover {
        background-color: #dddd00;
    }
    /* end of javascript menu stuff */
    .title {
        padding: .25em;
        background-color: #D0F5A9;
        border-style: solid;
	border-width: thick;
        border-color: #F2F2F2;
	font-size: 1.5em;
	text-align: center;
    }
    .title:before {
	counter-increment: chapter;
	content: "Unit " counter(chapter) " – ";
    }
    h1 {
	width: 100%;
	margin:0;margin-bottom: -.25em;
        padding: .25em;
	color: #008080;
        background-color: #dcffb9;
        border-left: medium #008080 outset;
	border-bottom: medium #008080 outset;
	font-size: 1.8em;
	text-align: center;
    }
    h2 {
	padding-top: .25em;
        padding-bottom: .25em;
	border-style: inset;
	border-width: thin;
	padding-left: .5em;
	margin-right: 20%;
	background-color: #F2F2F2;
    }
    h3 {
	padding-top: .25em;
        padding-bottom: .25em;
	border-style: inset;
	border-width: thin;
	padding-left: .25em;
	margin-right: 30%;
    }
    button {
	padding: 1em;
	background-color: #33FFFF;
	font-size: .85em;
	font-family: serif;
    }
    em {
	color: red;
    }
    th {
	background-color: #00BFFF;
    }
    td {
	background-color: #c6ffec;
    }
    .tip,.hint {
	color: green;
    }
	/* this is purely for marking sections that require further work */
    .TODO {
	font-weight:bold;
	font-size: 1.25em;
	background-color: red;
	padding: .25em;
    }
    .TODO:before {
	content: "TODO: ";
    }
    .plus {color: red; font-weight: bold; font-size: 1.5em;}
    .hidden {display:none;}
    .visible {display: inline;}
    .button {
	background-color: #d4d0c8;
	border: thin white outset;
	padding-right: 0.35em; padding-left: 0.35em; padding-top: 0.2em; padding-bottom: 0.1em;
       font-family: sans-serif;
    }
    /* class for toggle +/- button */
    .toggler {
	color: green;
	/*background-color: #e8e8e8;*/
	padding: 0 .25em 0 .25em;
	border: thin outset black;
	font-weight: bold;
	display: inline;
	cursor: pointer;
	font-size: 1.5em;
    }
    /* class for element whose visibility is to be toggled; unfortunately doesn't work properly
    .togglee {
	visibility: hidden;
	display: inline;
    } */
    div.header {
	background-color: #add8e6;
	display: block;
    }
    div#menu_bar {
	display: block;
	margin-bottom:1em;
	text-align: left;
    }
    div.body {
	    background-color: lightgreen;
	    display: block;
    }
    div.scrollable {
	height: 300px;
	overflow-y:scroll;
	overflow-x: hidden;
	padding: 1em;
	border: thin inset black;
    }
    ol, ul {
    margin-left: 1.5%;
    margin-right: 10%;
    list-style-position: outside;
    }
    ul {
    list-style-type: disc;
    }
    option {
	white-space: normal;
    }
    /* colour definitions for colour-coding text spans */
    .red {
	background-color: #ff4a4a;
    }
    .yellow {
	background-color: yellow;
    }
    .blue {
	background-color: #00ffff;
    }
    .green {
	background-color: #80ff80;
    }
    .italic {
	font-style: italic;
    }
    .bold {
	font-weight: bold;
    }
}

@media print {
    body {
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	background-color: #ffffff;
    }
    .plus {display: none;}
    .visible {display: none;}
    .printable {display: inline; visibility: inherit;}
    div#button {display: none;}
    div#menu_bar {
	display: none;
	/* visibility: hidden; */
    }
    button {display: none;}
    /*	.h1 {
		font-size: 14pt;
		line-height: 1em;
		margin-left: 5%;
		margin-right: 5%;
	} */
	h1 {
	    font-size: 18pt;
	    line-height: 1em;
	    margin: 0 0 1em 0;
	    text-align: left;
	}
	h2 {
		font-size: 14pt;
		font-style: italic;
		font-weight: bold;
	}
	h3 {
		font-size: 12pt;
	}
	table {
	    width: 95%;
	    margin-right: 1em;
	}
	p,li,td,th {
		font-size: 12pt;
		line-height: 1.5em;
	}
	td {
	    width: auto;
	    padding: 0 0 0 0;
	}
	td > textarea {
	    border: none;
	    width: auto;
	    overflow: auto;
	    /*columns: auto;*/
	}
	option {
	    white-space: normal;
	    overflow: auto;
	}
	.task:before {
	    font-size: 12pt;
	}
	.quote {
	    font-size: 10pt;
	}
	/* for explanations in tutors' guide */
	.guide {
	    background-color: #ebebeb;
	    border: thin solid black;
	    border-width: .15em;
	    padding: .5em;
	}
	span.guide {
	    padding: 0;
	}
	/* the following is needed for scrolling divs, so that they will be fully displayed in print */
	#text_samples {
	    height: auto;
	    overflow: visible;
	    clip: auto;
	}
	div.scrollable {
	    height: auto;
	    overflow: visible;
	    clip: auto;
	    padding: 1em;
	    border: thin inset black;
	}
}