
/* our stuff */ 
@import url("nav.css");
@import url("link-icons.css");

/* google stuff */
@import url("https://fonts.googleapis.com/css?family=Oxygen:400,700|Oswald");


/************************/
/*   body and headers   */
/************************/

body {
  font-family: "Oxygen", Helvetica, sans-serif;
  font-size: 12pt;
}


/* line height changes based on width of window */
body, td { line-height: 1.8; }
@media screen and (max-width: 1200px) {
body, td { line-height: 1.6; } }
@media screen and (max-width: 805px) {
body, td { line-height: 1.4; } }


h1, h2 {
  font-family: "Oswald", Georgia, Utopia, Charter, serif;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1;
}

h1 { font-size: 24pt; }
h2 { font-size: 20pt; }



/*********************************************/
/*  paragraph first strong gets padding to   */
/*  act as a de facto header for paragraph   */
/*********************************************/

p > strong:first-child {
  padding-right: 5px;
}

a {
  color: black;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}


::selection { 
  background: #333;
  color: white;
}






td, th {
  padding: 15px;
}

tr > :first-child {
  padding-left: 20px;
}

tr > :last-child {
  padding-right: 20px;
}
th {
  text-align: center;
}

/**************\
|* WIDE TABLE *|
\**************/

.wide-table {
  margin: 20px auto;
  border-spacing: 0px;
  width: 100%;
}

.wide-table td, .wide-table th {
  text-align: center;
  border-left: 1px;
  border-right: 1px;
}

.wide-table td.right, .wide-table th.right {
  text-align: right;
}


.wide-table td:first-child,
.wide-table th:first-child {
  padding-left: 50px;
}

.wide-table td:last-child,
.wide-table th:last-child {
  padding-right: 50px;
}

.wide-table tr:nth-child(even) {
  background: #F2F2F2;
}

.wide-table tr:nth-child(odd) {
  background: #FFFFFF;
  /* background: #F2F2F2; */
}

.wide-table td[colspan="100%"],
.wide-table th[colspan="100%"] {
  height: 150px;
/*  background: white; */
}

.wide-table th {
  text-transform: uppercase;
}





.narrow-table {
	margin: 20px auto;
	border-spacing: 0px;
}

.narrow-table td, .narrow-table th {
    font-size: 11pt;
    text-align: center;
    padding: 15px 10px;
}

.narrow-table td.right, .narrow-table th.right {
  text-align: right;
}

.narrow-table tr > :first-child {
	padding-left: 10px;
}

.narrow-table tr > :last-child {
	padding-right: 10px;
}

.narrow-table tr:nth-child(even) {
	background: #F3F3F3;
}
.narrow-table tr:nth-child(odd) {
	background: #FFFFFF;
}
    
/*
}*/
    
.alert-box {
  width: 75%;
  margin: 20px auto;
  text-align: center;

  padding: 10px;
  padding-left: 50px;

  background: #FFF8F1 url("../images/alert.png") no-repeat 15px 50%;
  background-size: 25px;

  border: #CCCCCC solid 2px;
  box-shadow: 3px 3px #999999;
}


a[alt]:hover{
  position: relative;
}


a[alt]:hover:after {
  content: attr(alt);
  text-align: center;
  padding: 4px 8px;
  color: #333;
  position: absolute;
  left: -75px;
  width: 250px;
  top: 100%;
  z-index: 20px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 0px 0px 4px #222;
  -webkit-box-shadow: 0px 0px 4px #222;
  box-shadow: 0px 0px 4px #222;
  background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
}
img[alt]:hover{
  position: relative;
}


img[alt]:hover:after {
  content: attr(alt);
  text-align: center;
  padding: 4px 8px;
  color: #333;
  position: absolute;
  left: -75px;
  width: 250px;
  top: 100%;
  z-index: 20px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 0px 0px 4px #222;
  -webkit-box-shadow: 0px 0px 4px #222;
  box-shadow: 0px 0px 4px #222;
  background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
  background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
}


/*************/
/* all pages */
/*************/

img.paragraph-illustration {
  float: right;
  margin: 10px 0px 10px 15px;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;  
}

/*****************/
/* syllabus page */
/*****************/

#staff-table img {
  height: 100px;
  width: 100px;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
}

#staff-table a[href^="mailto:"] {
  font-weight: bold;
}

#staff-table td {
  line-height: 1.5;
  vertical-align: top;
}

#collaboration-table .check {
  color: #AAAAAA;
  font-size: 1.1em;
}

#collaboration-table .ex {
  color: black;
  font-size: 1.2em;
}

#collaboration-table td,
#collaboration-table th {
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 1.5;
}


/*******************/
/* assignment page */
/*******************/

#assignments-table img.assignment-logo {
  height: 100px;
  width: 150px;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px; 
}

/* make specification link bold and larger */
#assignments-table a.specification {
  font-weight: bold;
  font-size: 12pt;
}

/* no icon for logo link */
#assignments-table a.logo {
  background: none;
  padding: 0 0 0 0;
}

/**************/
/* exams page */
/**************/

#exams-table tr:nth-child(2) b {
  color: orangered;
}


/*************/
/* help page */
/*************/
/*
#precepts-table td,
#precepts-table th {
  padding-top: 15px;
  padding-bottom: 15px;
}

#precepts-table td:nth-child(4),
#precepts-table td:nth-child(5) {
  text-align: left;
}*/


/**********************/
/* Not-so-wide table! */
/**********************/

@media screen and (max-width: 1200px) {
  .wide-table td,
  .wide-table th {
    padding: 15px 10px;
    font-size: 11pt;
    line-height: 1.7;
  }
  .wide-table td:first-child,
  .wide-table th:first-child {
    padding-left: 20px;
  }
  .wide-table td:last-child,
  .wide-table th:last-child {
    padding-right: 20px;
  }
  .wide-table td[colspan="100%"],
  .wide-table th[colspan="100%"] {
    height: 100px;
  }
}

@media screen and (max-width: 805px) {
  /* Least-wide table! */
  .wide-table td,
  .wide-table th {
    line-height: 1.6;
    padding: 15px 2px;
    font-size: 10pt;
  }
  
  .wide-table td:first-child,
  .wide-table th:first-child {
    padding-left: 10px;
  }
  .wide-table td:last-child,
  .wide-table th:last-child {
    padding-right: 10px;
  }
  
  h1 {
    font-size: 22pt;
    line-height: 1;
  }
  h2 {
    font-size: 16pt;
    line-height: 1;
  }
  
  .alert-box {
    width: 90%;
    padding: 10px;
    background: #FFF8F1;
  }
  
  
  /* syllabus page */
  #staff-table img {
    height: 75px;
    width: 75px;
  }
  
  /* assignments page */
  #assignments-table td:nth-child(3),
  #assignments-table th:nth-child(3) {
    display: none;
  }
  
  /* exams page */
  #exams-table th:nth-child(1) {
    width: 5%;
  }
  
  /* help page */
  .fc-slats .fc-time {
    font-size: 8pt;
    padding: 0px;
    margin: 0px;
  }
}




/* special info box */
table.special-info {
  margin: auto;
  border-spacing: 0px;
  border: 4px solid #333;
  box-shadow: 2px 0px 2px #999;
}
table.special-info td, table.special-info th {
  padding: 15px 30px;
  text-align: center;
}
table.special-info tr:nth-child(odd) {
  background: #FDFBFA;
}
table.special-info tr:nth-child(even) {
  background: #DDD;/*FDFBFA;*/
}
table.special-info tr:nth-child(1) {
  background: #333;
  /*color:white;*/
  color: #fff;
  font-family: "Raleway";
  font-weight: bold;
}
