/*Otago official colours:*/
/*gold: rgba(250, 198, 0, 1);*/
/*blue: rgba(0, 20, 110, 1)*/
/*red: rgba(198, 53, 29, 1)*/
/*used throughout, with opacity adjusted as necessary*/


body
{
	margin: 0;
	padding: 0;
	color: white;
	background: url("../images/background.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font: 90% "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
    min-height: 100%;
    min-width: 100%;
    width: 100%;
    height:auto !important;
    width:auto !important;
}

/*for mobile.css (no background image):*/
/*body*/
/*{*/
    /*margin: 0;*/
    /*padding: 0;*/
    /*color: white;*/
    /*font: 90% "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
    /*min-height: 100%;*/
    /*min-width: 100%;*/
    /*width: 100%;*/
    /*height:auto !important;
    /*width:auto !important;
/*}*/

/*HEADINGS*/

/*defaults from template*/
h1,h2,h3,h4,h5,h6
{
	margin: 0 0 .5em;
	font-weight: 500;
	line-height: 1.1;
}

/*defaults from template*/
h1 { font-size: 2.25em; } /* 36px */
h2 { font-size: 1.75em; } /* 28px */
h3 { font-size: 1.375em; } /* 22px */
h4 { font-size: 1.125em; } /* 18px */
h5 { font-size: 1em; } /* 16px */
h6 { font-size: .875em; } /* 14px */

/*HORIZONTAL RULES*/

hr
{
    height: 0;
    margin-top: 1em; /*relatively big vertical margins*/
    margin-bottom: 1em; /*relatively big vertical margins*/
    border: 0;
    border-top: 1px solid white;
}

/*MISC TEXT*/

/*defaults from template*/
p
{
	margin: 0 0 1.5em;
	line-height: 1.5;
}

/*not used, not tested*/
/*defaults from template, except for colour*/
blockquote
{
	padding: 1em 2em;
	margin: 0 0 2em;
	border-left: 5px solid white;
}

/*TABLES*/

table
{
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
/*    border-top: 1px solid white;*/
}

th, td, tr
{
/*    padding: .5em 1em;*/
    vertical-align: top;
    text-align: left;
/*    border-bottom: 1px solid white;*/
}

/*LISTS*/

/*defaults from template*/
.list-unstyled
{
    padding-left: 0;
    list-style: none;
}

/*defaults from template*/
.list-inline
{
    padding-left: 0;
    margin-left: -5px;
    list-style: none;
}

/*defaults from template*/
.list-inline > li
{
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px;
}

/*defaults from template*/
.table
{
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

/*for extra spacing in publications lists*/
.publications-list > li
{
	margin: 5px;
}

/*IMAGES*/

.img-responsive
{
	max-width: 100%; min-width: 100%;
}

.img-responsive-border
{
	max-width: 100%; min-width: 100%; border: thin solid rgba(250, 198, 0, 0.75);
}

.img-book
{
    max-width: 100px;
    min-width: 100px;
    border: thin solid rgba(250, 198, 0, 0.75);
    float: right;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.img-staff
{
    height: 45px;
    border: thin solid rgba(250, 198, 0, 0.75); 
    float: left;
    margin-right: 10px;
}

.img-tutor
{
    height: 40px;
    border: thin solid rgba(250, 198, 0, 0.75); 
    float: left;
    margin-right: 10px;
}

.img-hist-left
{
    max-height: 150px; 
    border: thin solid rgba(250, 198, 0, 0.75); 
    float: left;
    margin-right: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.img-hist-right
{
    max-height: 150px; 
    border: thin solid rgba(250, 198, 0, 0.75); 
    float: right;
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.img-ug
{
    max-width: 50%;
    min-width: 50%;
    border: thin solid rgba(250, 198, 0, 0.75);
    float: right;
    margin-left: 20px;
/*    margin-bottom: 10px;*/
}

/*LINKS*/

/*default links*/
a { text-decoration: none }
a { color: rgba(250, 198, 0, 0.9); }
a:hover { color: white; }

/*links in headers*/
.header a { text-decoration: none }
.header a { color: white; }
.header a:hover { color: rgba(250, 198, 0, 0.9); }

/*links in main navigation column*/
.nav-col-main a { color: white; }
.nav-col-main a:hover { color: rgba(250, 198, 0, 1); }

/*links in main navigation column (when highlighted)*/
.nav-col-main-highlighted a { color: rgba(250, 198, 0, 1); }
.nav-col-main-highlighted a:hover { color: white; }

/*links in secondary navigation column (when highlighted)*/
.nav-col-second-highlighted a  { color: white; }
.nav-col-second-highlighted a:hover { color: rgba(250, 198, 0, 1); }

/*category links in footer navigation columns*/
a#footer-cat-link { text-decoration: none }
a#footer-cat-link { color: white; }
a#footer-cat-link:hover { color: rgba(250, 198, 0, 0.9); }

/*MAIN ELEMENTS*/

.container
{
    max-width: 1000px;
    min-width: 500px;
	margin: 0 auto; /*auto needed for centering*/
	overflow: auto; /*scrollbars when necessary*/
}

.header
{
	background-color:rgba(0, 20, 110, 0.6);
    padding: 15px;
    height: 80px;
    min-height: 80px; /*Otago emblem is 160x80*/
}

.nav-bar-1 /*top nav bar*/
{
	background-color:rgba(0, 20, 110, 0.4);
    padding: 10px;
    height:30px;
    min-height:30px;
}

.nav-bar-2 /*second nav bar*/
{
    background-color:rgba(0, 20, 110, 0.4);
    padding: 15px;
    height:30px;
    min-height:30px;
}

.content
{
    background-color:rgba(0, 20, 110, 0.8);
	padding: 15px;
    min-height: calc(100vh - 80px - 15px - 15px - 30px - 10px - 10px - 30px - 15px - 15px - 170px - 10px - 10px - 15px - 15px); /*main div takes up the vertical space remaining after subtracting the height of the other divs (plus padding)*/
}

.footer /*bottom nav bar*/
{
	background-color:rgba(0, 20, 110, 0.4);
    padding: 10px 10px;
    height: 170px;
    min-height: 170px;
}

/*NAVIGATION COLUMNS*/

/*main navigation columns*/

.nav-col-main
{
    float: left;
    width: 22%;
    margin-right: 1%;
    margin-top: 1%;
    padding:1%;
}

.nav-col-main-highlighted
{
    float: left;
    width: 22%;
    margin-right: 1%;
    margin-top: 1%;
    padding:1%;
}

/*secondary navigation columns*/

.nav-col-second
{
    float: left;
    width: 22%;
    margin-right: 1%;
    background-color:rgba(0, 20, 110, 0.4);
    padding:1%;
    height:15px;
}

.nav-col-second-highlighted
{
    float: left;
    width: 22%;
    margin-right: 1%;
    background-color:rgba(0, 20, 110, 0.4);
    padding:1%;
    height:15px;
}

/*footer navigation columns*/

.nav-col-footer
{
    float: left;
    width: 22%;
    margin-right: 1%;
    background-color:rgba(0, 20, 110, 0.4);
    padding:1%;
    height:125px;
}

/*CONTENT COLUMNS*/

/*generic (100)*/
.main-col-full
{
    width: 98%;
    padding: 1%;
}

/*narrow centre column*/
.main-col-narrow-centre
{
	width: 50%;
    padding-top: 1%;
	padding-bottom: 1%;
	margin: 0 auto;
}

/*generic (50-50)*/
.main-col-1-two,.main-col-2-two
{
    float: left;
    width: 45%;
    margin-right: 3%;
    padding: 1%;
}

/*main page (50-25-25)*/
.main-col-1-main
{
	float: left;
	width: 45%;
	margin-right: 3%;
    padding: 1%;
}

.main-col-2-main,.main-col-3-main
{
	float: left;
    width: 22%;
    margin-right: 1%;
    padding:1%;
}

/*category landing pages (75-25)*/
.main-col-1-cat-landing
{
    float: left;
    width: 70%;
    margin-right: 3%;
    padding-bottom: 1%;
    padding-left: 1%;
    padding-right: 1%;
}

.main-col-2-cat-landing
{
    float: left;
    width: 23%;
    padding: 1%;
}

/*contact*/
.main-col-1-contact
{
    float: left;
    width: 20%;
    margin-right: 3%;
    padding: 1%;
}

.main-col-2-contact
{
    float: left;
    width: 70%;
    margin-right: 3%;
    padding: 1%;
}
.main-col-3-contact,.main-col-4-contact,.main-col-5-contact
{
    float: left;
    width: 28%;
    margin-right: 3%;
    padding: 1%;
}

/*individual staff pages (25-25-50)*/
.main-col-1-staff-member
{
    float: left;
    width: 22%;
    padding: 1%;
    margin-right: 1%;
}

.main-col-2-staff-member
{
    float: left;
    width: 23%;
    padding: 1%;
}

.main-col-3-staff-member
{
    float: left;
    width: 47%;
    padding: 1%;
}
