/*
Theme Name: CSCubed2011
Theme URI: http://www.adrenalinecreative.co.uk/
Description: Custom theme for CSCubed
Version: 1.1
Author: CUCL
Author URI: http://www.cl.cam.ac.uk/
Tags: 

*/
/**
 * Competition styles
 */
/*@import "style-comp.css";*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic);
@import url(fontello.css);


body {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    /*min-width: 350px;*/
    background-color: #eee;
}
html, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: none;
}
/* remember to define focus styles! */
:focus {
    outline: 0
}
/* remember to highlight inserts somehow! */
ins {
    text-decoration: none
}
del {
    text-decoration: line-through
}
/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0
}

/*
*
*	layout
*
*/

html, body, #wrapper {
    /*width: 100%;*/
    /*min-width: 980px;*/
    /*height: 100%;*/
}
body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #555;
    font-size: 15px;
}
h1:first-child { margin-top: 0; }
p { line-height: 1.4em; }
h1 a, h2 a, h3 a, h4 a, h5 a { color: inherit; }
a { color: #006ddd; text-decoration: none; }
a:hover { text-decoration: underline; }
.announcement { background-color: #e8e8e8; padding: 20px; overflow: hidden; }
div.announcement { padding: 0 20px; }
.announcement h3 img, .announcement h2 img { max-height: 20px; float: left; margin: 2px 10px 0 0 }

.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; } /* For IE 6/7 (trigger hasLayout) */
.rounded {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
#wrapper { }
#header {
    background: #003b80; /* Old browsers */
    background: -moz-linear-gradient(top, #003b80 0%, #3084c9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b80), color-stop(100%, #3084c9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #003b80 0%, #3084c9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #003b80 0%, #3084c9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #003b80 0%, #3084c9 100%); /* IE10+ */
    background: linear-gradient(to bottom, #003b80 0%, #3084c9 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b80', endColorstr='#3084c9', GradientType=0); /* IE6-9 */
    position: relative;
}
/*#header-bg { overflow: hidden; position: relative;}*/
/*img#header-glow { position: absolute; top: 0; left: 0; }*/
#header-bg { background: url(header-glow.png) no-repeat center 0; height: 100%; position: absolute; width: 100%; }
#header-bg img { display: none; }
#header-logos { position: relative; margin: 0 auto; text-align: right; }
#header-logos:before, #header-logos:after { content: ""; display: table; }
#header-logos:after { clear: both; }
#header-logos { zoom: 1; } /* For IE 6/7 (trigger hasLayout) */
#header-left, #header-right { text-decoration: none; margin: 45px 10px; display: inline-block; }
#header-logos img { height: auto; width: auto; }
#header-left { float: left; }
#header-right { text-align: right; margin-bottom: 39px; }
#header-left img { max-height: 40px; }
#header-right img { max-height: 46px; }
/* menu */

#menu-holder { position: relative; text-align: center; border-top: solid 1px #153E6A;
    font-size: 14px; }
#menu-holder ul {
    margin: 0;
    padding: 0;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#2368b2+0,194a7f+26 */
    background: #2368b2; /* Old browsers */
    background: -moz-linear-gradient(top, #2368b2 0%, #194a7f 26%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2368b2), color-stop(26%, #194a7f)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #2368b2 0%, #194a7f 26%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #2368b2 0%, #194a7f 26%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #2368b2 0%, #194a7f 26%); /* IE10+ */
    background: linear-gradient(to bottom, #2368b2 0%, #194a7f 26%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2368b2', endColorstr='#194a7f', GradientType=0); /* IE6-9 */
}
/* clearfix */
#menu-holder > ul:before, #menu-holder > ul:after { content: ""; display: table; }
#menu-holder > ul:after { clear: both; }
#menu-holder > ul { zoom: 1; } /* For IE 6/7 (trigger hasLayout) */
#menu-holder li { float: none; list-style: none; display: inline-block; text-align: center;}
#menu-holder a {
    line-height: 40px;
    padding: 0 11px 0 11px;
    color: #fff;
    text-decoration: none;
    /*font-weight: bold;*/
    display: inline-block;
    white-space: nowrap;
}
#menu-holder ul a:hover,
#menu-holder li.sub-menu:hover > div a,
#menu-holder li.current_page_item > div a,
#menu-holder li.current_page_parent > div a,
#menu-holder li.sub-menu ul ul li:nth-child(1) a {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e55e39+0,cc5433+26 */
    background: #e55e39; /* Old browsers */
    background: -moz-linear-gradient(top, #e55e39 0%, #cc5433 26%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e55e39), color-stop(26%, #cc5433)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #e55e39 0%, #cc5433 26%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #e55e39 0%, #cc5433 26%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #e55e39 0%, #cc5433 26%); /* IE10+ */
    background: linear-gradient(to bottom, #e55e39 0%, #cc5433 26%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e55e39', endColorstr='#cc5433', GradientType=0); /* IE6-9 */
}

#menu-holder li.sub-menu { position: relative; }
#menu-holder li.sub-menu:hover > ul { max-height: 400px; overflow: visible; }
#menu-holder li.sub-menu ul {
    position: absolute; z-index: 10; max-height: 0; overflow: hidden;
    -webkit-transition: max-height 300ms ease-out;
    -moz-transition: max-height 300ms ease-out;
    -ms-transition: max-height 300ms ease-out;
    -o-transition: max-height 300ms ease-out;
    transition: max-height 300ms ease-out;
}
#menu-holder li.sub-menu li a {
    padding-left: 11px; /* change to 22px if menue depth > 2 */
}
#menu-holder li.sub-menu li:nth-child(1) a { padding-left: 11px; }
#menu-holder li.sub-menu ul ul { left: 11px; top: 0%; }
#menu-holder li.sub-menu a { display: block; text-align: left; padding: 0 15px; }
#menu-holder li.sub-menu li { display: block; text-align: left; }
#menu-holder li.sub-menu > div a:after {
    font-family: "fontello";
    content: '\e805';
    color: #eee;
    font-size: 0.8em;
    line-height: 1;
    position: relative;
    /*bottom: 0px;*/
    left: 6px;
}

/* end: menu */

/* nav search */
li#search-item { margin-left: 30px; position: relative; }
li#search-item a { cursor: pointer; width: 20px; position: relative;}
li#search-item [class^="icon-"], [class*=" icon-"] {
    margin: 0; position: absolute; left: 0; right: 0;
}
li#search-item [class^="icon-"]:before, [class*=" icon-"]:before { line-height: inherit; margin: 0; font-size: 120%; }
#search-container {
    position: absolute; visibility: hidden; opacity: 0;
    margin-bottom: -80px; right: 0; background: #194a7f; z-index: 10; min-width: 300px;
    -webkit-transition: opacity 500ms;
    -moz-transition: opacity 500ms;
    -ms-transition: opacity 500ms;
    -o-transition: opacity 500ms;
    transition: opacity 500ms;
}
#search-container form { margin: 12px; border: 1px solid #aaa; }
#search-container.visible { visibility: visible; opacity: 100; }
#search-input {
    border: 0px solid #bbb; /*font-weight: bold;*/ font-size: 1.125em; width: 100%; line-height: 34px; background-color: #eee;
    text-indent: 10px; padding: 0; color: #555; margin: auto;
}
#search-input:focus {
    /*font-weight: normal;*/
    background-color: #fff;
}
#search-submit {
    position: absolute;
    right: 0;
    line-height: 35px;
    border: 0;
    color: #555;
    background-color: #ddd;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 100%;
}

/* end: header */

#right-column ul, #right-column ul li ul { list-style: disc; }
.cs3cell {
    width: 240px;
    height: 105px;
    padding: 0 10px 10px 10px;
    margin: auto 25px auto 30px;
    background: #ffc600; /*#435b87;*/
    border: 4px solid #30466d;
    position: relative;
    float: left;
}
.cs3cell p {
    color: #172845;
}
#cell {
    width: 625px;
    height: 105px;
    padding: 0 40px 10px 40px;
    margin: 15px 25px 15px 0;
    background: #ffc600;
    position: relative;
    float: left;
}
#ps3 {
    position: absolute;
    top: 10px;
    left: -65px;
    z-index: 5;
}
#text {
    width: 160px;
    height: 100px;
    position: absolute;
    top: 0;
    right: 5px;
    z-index: 6;
}
#text p, #cell, .cs3cell { color: #172845; line-height: 14px; font-weight: bold; }
/* end: cube entry */

/* end: content */


/* footer */

#footer {
    border-top: #bbb solid 0;
    /*height: 65px;*/
    font-size: 0.85em;
    position: relative;
    background-color: #eee;
    /*uncomment for swapping left/right columns */
    /*text-align: right;*/
}
#footer ul { padding: 0; margin: 25px 0; display: inline-block; list-style-type: none; }
#footer ul li { float: left; border-right: solid 1px #aaa; padding: 0 10px 0 10px; line-height: 2em;}
#footer ul li:first-child { padding-left: 0; }
#footer ul li:last-child { border-right: none; padding-right: 0; }
#footer ul li a { color: #888; }
#footer ul li:last-child a:hover { text-decoration: underline !important; }
/* end: footer */

/*
*
*	global styles
*
*/

.button {
    width: auto;
    height: 24px;
    padding: 0 7px 0 7px;
    font-weight: bold;
    background: url(background-button.jpg) repeat-x;
    line-height: 22px;
    text-decoration: none;
    display: inline-block;
    float: right;
}
.large { font-size: 14px; }
.null-margin-right { margin-right: 0 !important; }
ol.csat-colleges { color: #999; list-style-type: disc; }
ol.csat-colleges span { color: #555; }
#csat-questions {
    padding: 1em 1em 1px 1em;
    margin: 2em 0 2.5em -1em;
    width: 100%;
    background-color: #f4f4f4;
}
#csat-questions h3 { font-size: 1.33em; margin-top: 2em; }
#csat-questions h3:first-child { margin-top: 0.5em; }
#csat-questions h3 span { font-size: 0.89em; font-weight: normal; color: #999; }
#csat-questions p.ellipsis { margin: 0 0 0 0.95em; font-weight: bold; line-height: 1em; }
#csat-questions ol {
    font-size: 1.1333333333em;
    font-family: Times, 'Times New Roman', serif;
    list-style: decimal;
    padding: 0;
    margin: 0;
}
#csat-questions ol > li { margin: 0.9em 0.9em 0.9em 1.75em; }
#csat-questions ol > li > p { margin: 1em 0; }
/*#csat-questions ol:last-child > li:last-child > p { margin-bottom: 0; }*/
#csat-questions code { font-size: 0.8889em; }
#csat-questions pre { margin: -0.75em 0 0 0; }
#csat-questions blockquote { margin: -0.5em 0 -0.5em 2em; font-style: italic; }
#csat-questions blockquote p { padding: 0; }
h4.faq { font-size: 16px; margin-bottom: 0.5em; }
p.faq { margin-left: 0; margin-top: 0; }

div.toc-container { margin: 0 0 25px 0; display: none; position: static; top: -200px;
    -webkit-transition: top 500ms ease-in-out;
    -moz-transition: top 500ms ease-in-out;
    -ms-transition: top 500ms ease-in-out;
    -o-transition: top 500ms ease-in-out;
    transition: top 500ms ease-in-out;
}
div.toc-container.toc-csat.fixed { top: 50px !important; position: fixed; }
/*comment/uncomment for swapping left/right columns*/
div.toc-container { margin-left: 0; }
div.toc {
    position: relative;
    /*background: #eee;*/
    /*-webkit-border-radius: 4px;*/
    /*-moz-border-radius: 4px;*/
    /*border-radius: 4px;*/
    /*padding: 8px 0;*/
}
div.toc a {
    display: block;
    /*font-size: 0.933333334em;*/
    font-size: 0.866666667em;
    color: #999;
    position: relative;
    /*margin: 12px 10px 12px 26px;*/
    padding: 6px 10px 6px 30px;
    font-weight: bold;
    line-height: 1.125em;
}
div.toc a:before {
    content: "\e802"; font-family: fontello;
    /*content: "»";*/
    position: absolute; top: 6px; left: 15px; font-weight: normal; color: #ddd; }
div.toc a:hover, div.toc a:hover:before { text-decoration: none; color: #444; background: #eee; }
div.toc a:hover:before { content: "\e802" }

.video-16-9 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.video-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* geometry */

#header-logos { width: 915px; position: relative; margin: 0 auto; }
#content { width: 915px; overflow: hidden; margin: 0 auto; position: relative; background-color: #fff; padding: 0 35px; border-bottom: #bbb solid 1px; }
#left-column { width: 240px; margin: 107px 0 0 0; float: left; }
div.toc { width: 240px; } /* width is needed when it becomes position:fixed */
#right-column { margin: 40px 0 60px 290px; }
#images { overflow: hidden; margin: 0 0 35px 0; border: 5px solid #ddd; }
#images.rounded {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
#images img { width: 100%; border-top: 5px solid #ddd; }
#images img:first-child { border-top-width: 0; }
#footer-holder { width: 915px; margin: 0 auto; }
.slideshow { position: relative; /*width: 625px; height: 150px;*/ margin: 0 0 20px 0; overflow: hidden; }
.slideshow img { width: 100%; position: absolute; left: 0; top: 0; opacity: 0; }
.slideshow img:first-child { position: relative; opacity: 100; }
/*comment/uncomment for swapping left/right columns*/

@media (max-width: 1023px) {
    #wrapper { background-color: #fff; }
    #content { width: 92%; padding: 0; border-bottom-width: 0; }
    #header-bg { background-position: left 0; }
    #header-logos { width: 92%; }
    #footer { border-top-width: 1px;}
    #footer-holder { width: 90%; }
}

@media (max-width: 900px) {
    #left-column { width: 200px; }
    div.toc { width: 200px; }
    #right-column { margin-left: 250px; }
}

@media (max-width: 799px) {
    #left-column { width: 180px; margin-right: 40px; }
    div.toc { width: 180px; }
    #right-column { margin-left: 0; }
    #menu-holder > ul { /*font-size: 13px;*/ text-align: left; padding: 0 10px; }
    #menu-holder a { padding: 0 8px; /*line-height: 37px;*/ }
    li#search-item { position: static; float: right; margin: 0; }
    #search-container { width: 100%; }
    div.toc-container { position: static !important; }
    #csat-questions { margin-left: 0; width: auto; font-size: 1em; }
    /*#csat-questions ol { font-size: 1em; }*/
}

@media (max-width: 599px) {
    #header-logos img { max-height: 35px; }
    #header-left, #header-right { margin-left: 0; margin-right: 0; }
    #content { width: 94%; }
    #left-column { display: none; }
    #right-column { margin-left: 0; }
    div.toc { width: 140px; }
    /*#csat-questions ol { font-size: 1em; }*/
    #footer { text-align: left; }
    /*#footer ul { list-style-type: disc; margin-left: 15px; }*/
    #footer ul li { padding: 0 0; border-width: 0; float: none; }
}

@media (max-width: 399px) {
    #menu-holder > ul { padding: 0 5px; }
    #header-logos img { max-height: 30px; }
    #header-left { margin: 30px 5px 0 0; }
    #header-right { margin: 30px 0 30px 5px; }
}

@media (max-width: 330px) {
    #menu-holder > ul { padding: 0 2px; }
    #header-logos img { max-height: 29px; }
    #header-left { margin: 29px 4px 0 0; }
    #header-right { margin: 29px 0 29px 4px; }
    #menu-holder a { padding: 0 7px; }
}
/* end geometry */
