/**************** Body and tag styles ****************/
* {
    margin: 0;
    padding: 0;
}

html {
  height: 103%; /* this forces right scroll bar so page doesn't move around*/
  width: 100%;
  background-color: #aaa;
}

body {
    min-height: 100%;
    background-color: #fff;/*color bck side*/
    text-align: center;
    font-size: 90%;
    margin: 0 auto 0;
    width: 100%;
    min-width: 800px;
    font-family: "Trebuchet MS", "DejaVu Sans", "Bitstream Vera Sans", Verdana, "Verdana Ref", sans-serif;
    padding-bottom: 5px;
    box-shadow: 0 0 3em;
    border-collapse: collapse;
}

a {
    text-decoration: none;
    color: #153c73;
}

sup {
    font-size: 70%;
}


/**************** Header  ****************/

#header {
    display: block;
    margin-bottom: 4.0em;
    width: 100%;
    height: auto;
    min-height: 100%;
    background-color: transparent;
    box-shadow: 0 3em 1em -.2em;
}

#header img {
   width: 100%;
   margin-bottom: -.4em;
}

/**************** navigation styles ****************/
#nav {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 110%;
    font-weight: bold;
    position: relative;
    background-color: #373a41;
    z-index: 1;
}

#nav ul {
    width: 100%;
    min-width: 800px;
    position: relative;
}

#nav li {
    height: 40px;
    padding: 2px 0 6px 0;
    display: block;
    width: 25%;
    margin: 0;
    float: left;
    background-color: #373a41;
    transition: background-color .5s;
}

#nav li a {
    display: block;
    padding: 13px 0 8px 0;
    color: #ffff;
}

#nav li.current a {
    color: #ffff;
}

#nav li.current li a {
    color: #153c73;
}

#nav li.current {
    background-color: #434a54;
}

#nav li:hover, #nav li.hover {
    background-color: #153c73;
}

#nav li ul {
    display: none;
    position: absolute;
    margin-top: 3.5px;
    min-width: auto;
    width: 25%;
}

#nav li ul li {
    width: 100%;
<!--    max-width: 20em;-->
    padding: 0 0 0 0;
    margin: 0;
    background-color: #d0d8e3;
    color: #fff;
    opacity: 1;
    float: left;
    clear: left;
}

#nav li ul li.sub {
    display: none;
}
#nav li ul a {
    color: #153c73;
    margin: 0;
    padding: 8px 0 8px 0;
}

#nav li:hover ul li:hover {
    background-color: #fdf37f;
}

#nav li:hover ul{
    width: 25%;
    display: block;
    overflow: hidden;
}

/*** disable hover for touch devices ***/
@media (pointer:coarse) {
    #nav li:hover ul, #nav li.hover ul {
        display: none;
    }
}

/*** MathJax ***/
.MathJax {
    font-size: 80%;
}

/**************** Content styles ****************/

#content {
    display: block;
    float: left;
    width: 64%;
    padding:0 4% 1em;
    background-color:#fff;
    border-width: 0 2px;
    border-left-style:dotted;
    border-color:#aaa;
    text-align: justify;
    font-size: 100%;
}

#content ol, #content ul , #content dt {
    margin: 1em 2em;
}

#content li {
    margin: 1em 0;
}

#content h2 {
    display: block;
    color: #aaa;
    border-bottom: solid thin;
    font-weight: bold;
    margin: 1.5em 0 .5em;
    font-size: 180%;
    font-weight: normal;
}

#content h2:first-child {
    margin: .5em 0;
}

#content h3 {
    font-size: 140%;
    font-weight: normal;
    margin: 1.5em 0 .5em;
    color: #aaa;
    border-bottom: dashed thin;
}

#content h3:first-child {
    margin: 0 0 .5em;
}

#content h2, #content h3{
    text-align: left;
}

#content center {
    display: block;
    margin: 1em 0;
}

#content p {
    margin: .6em 0;
}

#content a {
<!--    font-style: italic; -->
}

#content a:link {
   color: #0000EE;
}

#content a:visited {
   color: #551A8B;
}

#content a:hover {
    text-decoration: underline;
}

#content a:hover sup {
    display: inline-block;
    text-decoration: none;
}

.right {
    display: block;
    float: right;
    margin-left: 2em;
}

/**************** Content table ****************/

#content table.content {
    margin: 2em 0;
    text-align: left;
    border-collapse: collapse;
    border-bottom: solid thin #000;
    width: 100%;
}


#content table.content th {
    border: solid;
    border-width: 2px 0 1px;
    margin: 0;
	padding: .6em .4em;
}

#content table.content td {
	padding: .6em .4em;
	vertical-align: top;
}

/**************** content special ****************/

#content .title1 {
    color: #0732e0;
    display: block;
    text-align: center;
    clear: both;
    font-size: 200%;
    font-weight: bold;
    margin: .4em;
}

#content .title2 {
    color: #373a41;
    display: block;
    text-align: center;
    clear: both;
    font-size: 140%;
    margin: .6em;
}

#content .title3 {
    display: block;
    text-align: center;
    margin: .8em 0;
}


#content .title2 a {
    color: #373a41;
    font-style: normal;
}

#loc, #scoc {
    line-height: 2.5em;
}

/**************** content image ****************/

#content img {
    display: block;
    height: auto;
    width: auto;
    max-width: 60%;
    text-align: center;
    padding: 15pt;
    margin: 1pt auto;
}

/**************** content lecturers ****************/

#content div.lecturer {
    border: solid thin #aaa;
    padding: 1em;
    margin: 2em 0;
    overflow: hidden;
    position: relative;
    *height: 8em;
    z-index: 0;
}

#content div.lecturer div {
    width: 25%;
    display: block;
    margin-right: 3em;
    float: left;
    position: relative;
}

#content div.lecturer img {
    width:100%;
    padding: 0;
    *height: 8em; /* fix for old internet explorer */
    position: relative;
}

#content img {
    transition-property: filter -webkit-filter;
    transition-duration: 1s;
}

#content div.lecturer img:hover, #content a img:hover {
    -webkit-filter: blur(2px);
    filter: blur(2px);
}


#content div.lecturer a {
    font-style: normal;
    display: block;
    margin-top: 1em;

}

/********** schedule table *******/

table.tftable {
    border-bottom: solid thin #153c73;
    border-collapse: collapse;
    width: 96%;
    margin: 2em 0;
}

table.tftable tr {
    border: solid thin #153c73;
    border-top: 0;
}

table.tftable tr:first-child {
    border: 0;
}

table.tftable h4 {
    border-bottom: solid thin #aaa;
    margin: 1.6em 1em .6em;
    color: #153c73;
}

table.tftable th {
    padding: .8em;
    background-color: #e7ebf1;
    border-bottom: solid thin #153c73;
    border-left: solid thin #fff;
}

#content table.tftable a {
    font-style: normal;
    font-weight: normal;
}

table.tftable th.currentday {
    background-color: transparent;
    border: solid thin #153c73;
    border-bottom: solid thin #fff;
    color: #153c73;
}

table.tableint {
    width: 96%;
    margin: 0 2%;
}

table.tableint td {
    min-width: 20%;
    max-width: 80%;
    float: left;
    margin: .8em 0;
}

table.tableint tr {
    width: 100%;
    max-width: 100%;
    clear: both;
}

table.tableint td.stretch {
    max-width: 100%;
    width: 100%;
    padding: auto;
    margin: .6em 0;
    text-align: center;
}

/************ Workshop table ***********/

table.workshop{
	border-collapse: collapse;
}

table.workshop th{
    display: block;
    font-size: 140%;
    font-weight: normal;
    padding: .5em 0 0;
    color: #888;
    border-bottom: dashed thin;
}

table.workshop td{
	display: block;
	float: left;
	vertical-align: text-top;
	padding: .8em .4em 1.5em;
	min-width: 10%;
	max-width: 80%;
	text-align: justify;
}

/**************** Text styles ****************/

.constr {
    display: block;
    margin: 1em;
    color: #f00;
    text-align: center;
    font-weight: bold;
    font-size: 160%;
    background-color: #fce700;
    border: solid thin #f00;
}

.alarm {
    display: block;
    margin: 1em;
    color: #f00;
    font-weight: bold;
    font-size: 120%;
    text-align: center;
}


/**************** Sidebar styles ****************/
 .subcontent {
    display: block;
    width: 21%;
    text-align:left;
    margin: 0;
    padding: 0 2%;
    min-height: 1em; /* reserve space even when empty */
}

 .subcontent img {
    display: block;
    width: 100%;
}

 .subnavleft {
    float:left;
    clear:left;
}
 .subnavright {
    float: left;
    clear: right;
    display: none;
    }

 .subcontent h2 {
    display: block;
    color: #aaa;
    font-size: 120%;
    font-weight: normal;
    background-color: #fff;
    text-align: left;
    padding-bottom: 2pt;
    border-bottom: thin dotted #aaa;
}
 .subcontent ul {
    list-style: none;
    margin-bottom: 1.5em;
}
 .subcontent li {
    border-bottom: thin dotted #aaa;
    padding:5px 0;
    text-decoration: none;
    font-size: 100%;
}
 .subcontent li a {
    color: #153c73;
    text-decoration: none;
}
 .subcontent li a:hover
{
    text-decoration:none;
    color: #434a54;}

 .subcontent ul li.sub a {
    color: #373a41;
    margin-left: 1em;
}

 .subcontent ul li.sub a:hover {
    color: #153c73;
    margin-left: 1em;
}

 .subcontent h2 {
    margin-left: -.1em;
    padding-right: .2em;
}


/**************** Footer styles ****************/

#footer {
  width: 98%;
  color: #aaa;
  font-size: 80%;
  padding: 1em;
  clear: both;
}
#footer p {
    margin: 0;
    padding: 0;
    text-align: left;
  }
#footer a {
  color: #aaa;
  text-decoration:none;
}

#footer a:hover {
  color: #373a41;
  text-decoration:none;
}


/***** printing *****/

@media print {
    html {
        background-color: #fff;
    }

    body, #content {
        width: 90%;
        border: none;
        margin: 0 2%;
	font-size: 85%;
    }

    #content p, #content img, #content table, #content ul {
	page-break-inside: avoid;
    }

    #content table.workshop {
	    page-break-inside: auto;
    }

    #content table.workshop tr{
	    page-break-inside: avoid;
    }

    #header{
	   box-shadow: none;
    }

     #header ul, .subcontent {
        display: none;
    }

    .noprint {
	display: none;
    }


}

/***** mobile optimization *******/

/* tablets and smart phones in horizontal orientation*/
@media screen and (max-device-width: 640px) and (orientation: landscape), screen and (pointer:coarse) and (min-device-width: 480px){
    body {
        width: 100%;
	font-size: 1.1em;
    }

    #nav {
        font-size: 120%;
        position: relative;
    }

    #nav ul {
        position: static;
    }

    #nav ul li {
        width: 25%;
        height: auto;
        min-height: 2em;
    }

    #nav li ul {
        position: absolute;
        left: 0;
    }

    #nav li ul li {
        float: left;
        clear: none;
        width: 20%;
    }

    #nav li.current {
        height: auto;
        min-height: 2em;
        padding-bottom: -.8em;
        overflow: hidden;
        margin-bottom: 4em;
    }

    #nav li.current ul {
        display: block;
        width: 100%;
        height: auto;
        float: left;
        margin: .3em;
    }

    #content table.tftable {
        max-width: 100%;
        font-size: 80%;
    }

    #footer {
        padding: 0;
    }

}

/* smart phones in vertical orientation */
@media screen and (max-device-width: 480px) and (orientation: portrait) {
    body {
        width: 100%;
	font-size: 2em;
    }

    #header img {
	display: block;
	width: 100%;
    }

    #content {
	position: static;
	padding: 0;
        width: 94%;
        clear: both;
        margin: 3%;
	border: none;
    }

     .subcontent {
	margin-top: 1em;
	padding-top: .6em;
	border-top: dotted #373a41;
        max-width: 90%;
        width: 90%;
    }

     .subcontent.subnavleft {
        display: none;
    }

     .subcontent.subnavright {
        float: left;
        font-size: 160%;
        padding-left: 7%;
    }

     .subcontent h2{
	border-width: 3px;
    }

     .subcontent li{
	border-width: 3px;
    }

    #header {
        overflow: visible;
    }

    #nav {
        font-size: 140%;
        width: 100%;
    }

    #nav ul {
        position: static;
    }

    #nav ul li {
	display: block;
        width: 100%;
        clear: both;
        height: 2em;
    }

    #nav li a {
        margin-top: 8px;
    }

    #nav li.current a {
        margin-top: 8px;
    }

    #nav li ul {
        position: static;
        float: left;
        margin-top: 8px;
    }

    #nav li ul li {
        max-width: 100%;
    }

    #nav li.current ul li.sub {
	display: block;
	background-color: #fff;
    }

    #nav li.current {
        height: auto;
        min-height: 2em;
        padding-bottom: 0;
        overflow: hidden;
        margin-bottom: 0;
    }

    #nav li.current ul {
        display: block;
        width: 100%;
        height: auto;
        float: top;
        clear: both;
    }

    #content table.tftable {
        max-width: 100%;
        font-size: 80%;
    }

    #footer {
        padding: 0;
    }

}
