/* the li class order in this file needs reordering to avoid some important overrides that are otherwise required */

/* font file overrides */
@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-LightItalic.woff") format("woff");
    font-weight: 300;
    font-style: italic
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-SemiboldItalic.woff") format("woff");
    font-weight: 600;
    font-style: italic
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: 'Lato';
    src: url("/include/fonts/LatoLatin-BoldItalic.woff") format("woff");
    font-weight: 700;
    font-style: italic
}

@media (max-width:768px) {
    .index-bookmarks li {
        display: inline-block; margin: 1px; padding: 0 1em !important; border:1px #ccc solid; line-height:2.5; text-align:center;
    }
    .bookmarks-collapse li {
        display: inline-block; margin: 1px; border:1px #ccc solid; line-height:2.5; text-align:center;
    }
    .bookmarks-collapse li {
        width:2.5em; 
    }
}
@media (min-width:768px) {
	.index-bookmarks li{ 
		display:block;
		float:left;
		margin: 0 0.25em;
	}
	
	.index-bookmarks li:after{
		content: "\00a0\00a0|";
	}
	
	.index-bookmarks li:last-child:after{
			content: "";
	}
}
#content li {
    /* list-style-type:none; */
    /* padding-left: 0.5em; */
}

/* 2018 - AFAIK, only used on /subjects/ */

ul#cop-subjects-index { padding:1em 0; margin:0; clear:both; }
ul#cop-subjects-index li { margin-bottom: 0px; } 
ul#subjectsList li h2 { margin:1em 0 0 0; padding:0; line-height:1.1; }
ul#subjectsList li li{ margin:0.5em 0; line-height:1.25; }
ul#subjectsList ul ul { padding:0; }

/* 2017 subject page bookmarks */
.cop-subjects ul.bookmarks {
    padding: 0 !important;
    margin: 0;
    clear: both;
}
.cop-subjects ul.bookmarks li {
    list-style-type: none;
    display: inline-block;
    margin: 0 0 4px 0 !important ;
}
.cop-subjects ul.bookmarks li a {
    color: #fff;
    background: #353535;
    display: block;
    margin: 0;
    padding: 6px 10px 4px 10px;
    border-radius: 2px;
    border-bottom: 2px solid #277BBE;
    transition: all 0.15s linear;
}
.cop-subjects ul.bookmarks li a:hover,
.cop-subjects ul.bookmarks li a:focus {
    color: #FFF;
    background:  #BE0403;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.15s linear;
}


.levelHeadings {
    /* font-weight: bold; */
    /* padding: 1em 0 0; */
    /* was padding:1em 0 0.25em; */
    /* margin: 1em 0 0;
    border-top: 1px #ccc solid; */
    /* border-bottom:1px #ccc solid; */
    margin-top: 0.43em;
}

.levelDescription { font-weight: normal; }
.courseCodeTitle { margin: 0.5em 0 0 0em; } /* redundant post 2017 */

/* search results display of searchCriteria */
.searchCriteria {
    font-size: 0.9em; /* 12px */
    border: 1px #666 solid;
    width: 100%;
    float: left;
    padding: 0.5em;
    margin: 1em 0;
    background-color: #F7F7F7;
}

.searchCriteria form {
    float:right;
    padding-top: 2em; padding-left: 0.1em;
}

.refineSearch {
    font-size: 12px;
    font-style: italic;
    text-align: right;
}

/* paper details styles */
.FullPaperCode, h4 {
    margin:0 0 0.1em 0;
}
.FullPaperTitle {
    margin:0;
}
.FullPaperPoints {
    font-size: 1.4em;
    font-weight:bold;
    font-style:italic;
    margin: 0.25em 0em 0.5em;
}
.availSubjects {
    font-size: 70%;
    text-indent: 50pt;
}
.availSubjectsNoIndent {
    font-size: 90%;
}
.cancelledOcc {
    text-decoration: line-through;
}

/* highlightmenu styles unused as of 17 */
.highlightmenu, .highlightmenuList {
    padding:0.5em;
    margin:1em auto;
    color: #333;
    /*  background-color: #ff9900;#E3D3AA */
    background-color:#EDCC76;
    border:2px solid #E2AF29;
}
.highlightmenu p {
    padding:0.75em;
    margin:0.25em;
    color: #333;
    background-color:#fff;
}
.highlightmenu a:link, .highlightmenu a:visited, .highlightmenu a:active {
    /*font-size: 1em; color: #333; background-color: #ff9900;*/
}

p.notice {
    background-color: #cccccc;
    padding: 0.5em;
    font-weight: bold;
}

table.fees caption {
    caption-side: top;
    /* text-align:left;
    font-size: 0.95em; */
    padding: 0.4em 0.7em;
    color: #111;
    background-color: #E3F2F9;;
    border-left: 10px solid #31708F;
    margin-bottom: 0.2em;
}

table.fees caption a { color: #2269a4; }


.panel-body {
    padding: 0.25em 0.5em;
}

li.paper a {
    display:block;
    width: 12em;
    float:left;
}

li.paper{
    display:block;
}

#content ul.list-group {margin: 0; padding: 0;}
.cop-homepage ul.list-group {padding: 0.3em 0 !important;}

.cop-homepage .btn-default { width: 100%; text-align: left; margin-top: 0.2em; margin-bottom: 0.2em;}
.cop-homepage form { margin-top: 0.2em; margin-bottom: 0.2em;}
#paging form {display: inline-block;}

table.paper-listing td:nth-child(2) { /* white-space: nowrap;*/ }
table.paper-listing td:nth-child(3) { width: 25%;}
/* @media (min-width: 1500px) { table.paper-listing td:nth-child(2) { white-space: nowrap; } } */
table.paper-listing td:nth-child(4) { text-align: center;}
t
#simpleSearchForm select, #simpleSearchForm input[type="text"] {width: 100%;}
#simpleSearchForm button, #simpleSearchForm input[type="submit"] {width: 100%; margin-top: 0.2em;}
@media screen and (min-width: 768px) {
 #simpleSearchForm select, #simpleSearchForm input[type="text"] {width: 70% !important;}
 #simpleSearchForm button, #simpleSearchForm input[type="submit"] {width: 9em;}
 #simpleSearchForm form {clear: both; padding-top: 1em;}
}

.cop-homepage form[name="code_search"] button {width: 8em;}
.cop-homepage form[name="title_search"] button {width: 8em;}

.searchCriteria form, #firstPageForm, #nextPageForm, #prevPageForm, #lastPageForm {margin-top: 0; margin-bottom: 0;}

div.homepageImage { padding: 5px 0; }
div.homepageImage img { text-align:center; margin:auto; }

/*.placeholder {color: #AAA; }*/ /* font-style: italic; */

/* 2017 styles - final */
/* 2017 Colours -
 red-dark: #BE0403
 red-light: #D40100
 yellow: #FAA61A
*/
/* separator (divider) horizontal rule */
hr.separator {
    height: 3px;
    width: 100%;
    margin: 30px 0 15px 0;
    border: 0;
    overflow: hidden;
    position: relative;
}
hr.separator::before {
    display: block;
    background-color: #DDD;
    content: "";
    height: 1px;
    width: 1200px;
    position: absolute;
    left: 165px;
    bottom: 1px;
    z-index: 10;
}
hr.separator::after {
    display: block;
    background-color: #B00;
    content: "";
    height: 2px;
    width: 150px;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
}

/* cop-table tooltips - JS also required to enable */
.cop-table tr th .tooltip-hover {
    border-bottom: dotted 1px #999;
}
.cop-table .tooltip-hover:hover {
    cursor: pointer !important;
}
.cop-table .tooltip.in{
    opacity: 1;
    filter: alpha(opacity=100)
}
.cop-table .tooltip-inner {
    font-size: .9em;
    font-weight: normal;
    padding: 12px;
    background: #333;
}
.cop-table .tooltip.top .tooltip-arrow {
    border-top-color: #333;
}
.cop-table .tooltip-hover > i {
    color: #999;
    font-size: 75%;
}

.cop-table .span-tooltip {
    cursor: pointer;
    border-bottom: dotted 1px #999;
}

/* cop-table styles */
.cop-table {
    border: solid 2px #eee;
    border-bottom: solid 6px #eee;
}

#content .cop-table thead tr th {
    font-weight: bold;
    color: #FFF;
    background: #be0403;
    border: solid 2px #be0403;
    border-bottom: solid 6px #ddd;
}

#content .calculator thead tr:first-child th {
    border-bottom: none;
}

.cop-table tbody tr th {
    font-size: 0.95em;
    font-weight: normal;
    /*padding: 12px 10px 10px 10px;
    border: solid 1px #EBEBEB; */
    vertical-align: middle;
}
.cop-table tbody tr td {
    font-size: 0.95em;
    font-weight: normal;
    padding: 12px 10px 10px 10px;
    border: solid 1px #EBEBEB;
    vertical-align: middle;
}

/* table striping */
.cop-table:not(.restrict):not(.fees) tr:nth-child(odd) { background: #F1F1F1; }
.cop-table.fees tr:nth-child(even) { background: #F1F1F1; }
.cop-table tr.paper-unavailable { font-style: italic; opacity: 0.5; }

.cop-subjects .cop-table:not(.restrict) tr td:nth-child(2) {
    /* default widths on col 2&3 */
    width: 42%;
}
.cop-papers .cop-table:not(.restrict):not(.table-timetable) tr td:nth-child(-n+1) {
    /* default width... */
    width: 25%;
}

/* cop-table.restrict styles */
.cop-table.restrict { border: none; }
.cop-table.restrict tr th {
    font-weight: bold;
    color: #333;
    background: #EEE; /* needs to be darker than F9 */
    padding: 6px 10px;
    width: 33%; /* was 37 */
}

/* fontawesome icons */
.cop-table.restrict tr th i.fa { color: #777; }
.cop-table i.fa.red { color: #d40100; }
.cop-table i.fa.red:hover { color: #555; }

/* fees table */
/* #fees table.fees thead tr:first-child th { border-bottom: 0;} */
/* #fees table.fees thead tr:first-child th:nth-child(2) { text-align: center; } */
#fees table.fees thead tr:nth-child(2) th { color: black; background-color: #E9E9E9; border-color: #E9E9E9; font-weight: normal; /*text-align: center;*/}

/* paper outlines list */
#paperOutlines li.list-group-item { margin-top: 0;}
#paperOutlines ul.list-group { border-top: solid 6px #ddd; border-bottom: solid 6px #ddd; }
#paperOutlines ul.list-group li { border-radius: 0 !important;}
#paperOutlines ul.list-group li:nth-child(even) { background: #f9f9f9; /* list item  striping */ }

