/*
    Document   : site.css
    Created on : 28-Jul-2014
    Author     : Scott Reid <scottreid@abdn.ac.uk>
    Author     : Andrew Millington <a.j.millington@abdn.ac.uk>
    Description: Styles for Feed Controller application
*/

/** ==============================================================================================
 *
 * Generic Page Styles
 *
 ============================================================================================== **/
html, body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
    font-size: 15px;
}

body {
    padding-top: 80px;
    background-color: #eeeeee;
}

@media (max-width: 979px) {
    body {
        padding-top: 80px;
    }
}

footer {
    /*margin-top: 0.5em; */
    border-top: 1px solid #cccccc;
    padding-top: 1em;
    clear: both;
}

footer p {
    font-size: 75%;
    color: #999999;
    margin-bottom: 0;
}

.footer-pad {
    float: left;
    clear: both;
}

label {
  font-weight: normal;
}

a {
    color: #224597;
}

a:hover, a:focus {
    color: #224597;
    text-decoration: underline;
}

/* Use this when you want to hide a page element. Typically an alert box */
.to-show {
    display: none;
}

/** ==============================================================================================
 *
 * UoA Custom Classes
 *
 ============================================================================================== **/
.uoa-inner-pad {
    width: 95%;
    margin: 0 auto;
}

.uoa-breadcrumbs-container {
    margin-bottom: 10px;
}

.uoa-breadcrumbs-container ul {
    margin-bottom: 0;
}

.uoa-inline-form {
    margin: 5px 0;
}

/** ==============================================================================================
 *
 * Alerts
 *
 ============================================================================================== **/
.alert-error {
    background-color: #f2dede;
    border-color: #eed3d7;
}

.alert-error,
.alert-error .alert-heading {
    color: #b94a48;
}

/** ==============================================================================================
 *
 * Bootstrap Overrides
 *
 ============================================================================================== **/
.panel-primary {
    border-color: #224597;
}

.panel-primary .panel-heading {
    background-color: #224597;
    border-color: #224597;
    color: #ffffff;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background-color: #6f273a;
    color: #ffffff;
}

.navbar-nav > .open > a,
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus {
    background-color: #6f273a;
    color: #ffffff;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > span:hover,
.dropdown-menu > li > span:focus {
    color: #000;
    text-decoration: none;
    background-color: #fff;
    background-image: none;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: #90334b;
    background-image: none;
    outline: 0;
}

.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary.active[disabled], fieldset[disabled] .btn-primary.active {
    background-color: #90334B;
    border-color: #90334B;
}

a.btn {
    color: #90334b;
}

a.btn-primary {
    color: #ffffff;
}

.btn-primary {
    background-color: #ab1a24;
    border-color: #7f131b;
    color: #ffffff;
    height:35px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #6f273a;
    border-color: #90334b;
    color: #ffffff;
}

.btn-small{
    font-size: 12px;
    padding: 6px 12px;
}

.btn-xl,
.btn-group-xl > .btn {
  padding: 16px 2px 0 0;
  font-size: 40px;
  border-radius: 6px;
  width: 100%;
  min-height: 100px;
}

.text-xsmall {
    font-size: 50%;
}

.text-small {
    font-size: 80%;
}

.text-large {
    font-size: 120%;
}

.text-xlarge {
    font-size: 150%;
}

.text-xxlarge {
    font-size: 175%;
}

code {
    white-space: normal;
}

/* Change the navbar default border colour */
.navbar-default {
    border-color: #1c397c;
}

/* Change the caret colour for the dropdowns in the navbar */
.caret {
    color: #b75e76;
}

/* Set the logo background */
.navbar-brand {
    background-image: url("../img/logo.png");
    background-repeat: no-repeat;
    background-position: center;
}

/** ==============================================================================================
 *
 * Form styling
 *
 ============================================================================================== **/

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button{
    display:inline-block;
    margin: 0 2px 0 0;
    padding: 0 5px;

    height: 28px;
    line-height: 28px;

 	border-width: 1px 1px 1px 1px;
 	border-style: solid;
	-webkit-border-top-left-radius: 7px;
	-webkit-border-top-right-radius: 7px;
	-webkit-border-bottom-left-radius: 7px;
	-webkit-border-bottom-right-radius: 7px;
	-moz-border-radius-topleft: 7px;
	-moz-border-radius-topright: 7px;
	-moz-border-radius-bottomleft: 7px;
	-moz-border-radius-bottomright: 7px;
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
	border-bottom-left-radius: 7px;
	border-bottom-right-radius: 7px;

	border-color: #6f273a;
 	background-color: #90334b;
        color: #FFFFFF;

    background-repeat: no-repeat;
    background-position: 5px center;
}

input[type="submit"][disabled="disabled"]{
    border-color: #cccccc;
    background-color: #e9e9e9;
    color: #6D6D6D;
}

input[type="submit"][disabled="disabled"]:hover{
    background-color: #e9e9e9;
    color: #6D6D6D;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover{
 	background-color: #6f273a;
    color: #ffffff;
}

input[type="radio"], input[type="checkbox"] {
    line-height: normal;
    margin: 4px 0 0;
}

.searchform:after {
    clear:both;
    display: table;
    content: " ";
}

.searchform form {
    padding: 0;
    margin: 0;
}

.searchform form input{
    margin: 0;
}

.searchform form .searchfield{
    width: 230px;
}

.extrashorttext {
    width: 30px;
}

.shorttext {
    width: 100px;
}

.mediumtext {
    width: 250px;
}

.longtext {
    width: 400px;
}

.form-group .shortwidth {
    width: 20%;
}

.form-group .mediumwidth {
    width: 30%;
}

.form-group .longwidth {
    width: 40%;
}

.form-group .xlongwidth {
    width: 60%;
}

.form-group .fullwidth {
    width: 100%;
}

.vtop input {
    vertical-align: top !important;
}

select,
input {
    border:1px solid #CCCCCC;
    border-radius: 4px;
}

.selectize-input.focus,
select:focus,
.form-control:focus {
    border-color: #66afe9;
    box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
}

.selectize-input {
    float:left;
}

/** ==============================================================================================
 *
 * Extra Layout Styles
 *
 ============================================================================================== **/

.extrapadding {
    padding: 3px;
}

.ui-tooltip {
    position: absolute;
    padding: 3px;
    max-width:360px;
    text-align: center;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 6px;
    color:#ffffff;
    background-color: #303030;
    background-image: none;
    font-size: 14px;
}

.helpicon {
    color: #90334b;
    font-size: 22px;
    vertical-align: -9%;
    padding: 5px;
}

.code {
    background-color: #F9F2F4;
    border-radius: 4px;
    color: #C7254E;
    font-size: 90%;
    padding: 2px 4px;
    white-space: normal;
    font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

/* Icon colours */
.red {
  color: #CC0000;
}

.amber {
  color: #CC9933;
}

.green {
  color: #009900;
}

.disabled {
    color:#999;
}

/* Change cursor to default (white arrow) */
.mouse-default,
i.fa {
    cursor: default;
}

/* Change cursor to a hand  */
.mouse-pointer,
.helpicon,
a i.fa {
    cursor: pointer;
}

/* Set the style for the logo div */
#logo {
    width: 409px;
    height: 30px;
    display: block;
    background-position: 0px 0px;
    float: left;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

/** ==============================================================================================
 *
 * Timetable
 *
 ============================================================================================== **/

 .timetable-user-info {
    width: 100%;
    background-color: #90334B;
    color: #ECF0F1;
    padding: 10px 15px;
    margin-bottom: 0.4em;
 }

.timetable-centre-pane {
    min-width: 45em;
    width: 100%;
}

.timetable-panel {
    background-color: #FFF;
}

.timetable-header {
    text-align: center;
    line-height: 2.5em;
    background-color: #224597;
}

.timetable-header-text {
    display: inline-block;
    font-size: 1.5em;
    font-family: "Arial Black", Gadget, sans-serif;
    color: #ecf0f1;
    padding-left: 15px;
    padding-right: 15px;
}


.timetable-menu {
    display: inline-block;
    height: 100%;
    margin-right: 0.5em;
    line-height: 1em;
}

.timetable-menu .dropdown-toggle {
    margin-top: 0.35em;
    padding: 0.1em 0.5em;
}

.timetable-menu .dropdown-toggle i {
    font-size: 0.75em;
    color: #bbbbbb;
}

.timetable-menu .dropdown-toggle i:hover {
    color: #ffffff;
}

.timetable-menu .btn-group {
    vertical-align: inherit;
  //  font-size: 1em;
}

.timetable-menu > .pull-right, .timetable-menu > .pull-right > .btn-group {
    height: 100%;
}

.timetable-menu .btn-group .dropdown-menu {
    top: 2.8em;
    right: 0;
    width: 18em;
    text-align: left;
}

.timetable-header-row {
    overflow: hidden;
}

span.timetable-ampm {
    display: block;
    clear: both;
}

.timetable-content-row .timetable-day-event-column {
    position: absolute;
}

#timetable-timetable-inner {
    position: relative;
}

.timetable-event {
    font-size: 1.0em;
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    z-index: auto;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    border: 1px solid #224597;
    font-family: "Arial", Gadget, sans-serif;
    color: #224597;
    background: #fff;
}

.learning-resource-row-item i {
    font-size: 2em;
}

.learning-resource-row-item .btn {
    width: 10em;
    text-align: left;
    line-height: 51px;
}

.timetable-navigation.pull-left, .timetable-navigation.pull-right {
    padding: 0 1em;
    height: 100%;
    color: #BBB;
    font-size: 1.5em;
    -webkit-user-select: none;

}

/* Add in a handler for when we hover over the navigation chevrons */
.timetable-navigation:hover {
    color: #fff;
}

#timetable-menu .btn {
    padding: 0.2em 1em 0.3em 1em;
}

#timetablecontrolpanel,
#timetableprintpanel {
    top: 7.5em;
    right: 1em;
    width: 16.5em;
}

.timetable {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
  .timetable {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .timetable {
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .timetable {
    max-width: 1170px;
  }
}

.timetable-centre-pane {
    height: inherit;
}

.timetable-loader {
    width: 100%;
    height: 100%;

    background-color: #000000;
    z-index: 1040;
    opacity: 0.8;

    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.timetable-loader img {
    position: relative;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

.timetable-header h1{
    font-size: 1.5em;
    margin: 0;
    padding: 0;
}

.timetable-header-row {
    width: 100%;
}

.timetable-header-row .timetable-timeblock,
.timetable-header-row .timetable-day {
    float: left;
    height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.timetable-header-columns {
    margin-left: 60px; /** must be same as timeblock width **/
}

.timetable-header-row .timetable-timeblock,
.timetable-content-row .timetable-timeblock-header .timetable-timeblock {
    width: 60px;
}

.timetable-content-row .timetable-timeblock-header .timetable-timeblock {
    text-align: right;
    padding-right: 2px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.timetable-content-row .timetable-timeblock-header .timetable-timeblock .timetable-ampm {
    color: #666;
}

.timetable-content-row .timetable-day-column .timetable-timeblock,
.timetable-content-row .timetable-timeblock-header .timetable-timeblock {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-bottom: 1px solid #EEE;
    border-right: 1px solid #CCC;
}

.timetable-content-row .timetable-day-column .timetable-timeblock.timetable-alt-row {
   background-color:#fcfcfc;
}

.timetable-content-row .timetable-timeblock-header {
    float: left;
}

.timetable-content-row .timetable-timeblock-inner {
    margin-left: 60px; /** must be same as timeblock width **/

}

.timetable-content-row .timetable-timeblock-inner .timetable-day-column {
    float: left;
}

.timetable-content-row .timetable-day-event-column {
    position: relative;
    z-index: auto;
}

.timetable-content-row {
    height: 480px;
    overflow: auto;
}

.event-title {
    width: 100%;
    height: 22px;
    line-height: 22px;
    font-weight: bold;
    background-color: #224597;
    color: #fff;
}

.enrolled {
    background-color: #90334B;
}

.tentative {
    background-color: #90334B;
}

.reserved {
    background-color: #90334B;
}

.disabled {
    opacity: 0.3;
}

.timetable-event p {
    margin: 0;
    padding: 0 2px;
}

.event-details {
    padding: 0.3em;
    font-size: 80%;
    height: 100%;
    line-height: 15px;
}

.timetable-event.special-event div.event-details {
    color: black;
}

.timetable-timeblock {
    background-color: #FFF;
}

/* Specify the width of the event popovers */
.timetable-day-event-column .popover {
    width: 20em;
    opacity: 0.99;
}

/* Highlight todays date column */
.timetable-day.today {
    background-color: #B75E76;
    color: #ecf0f1;
    -moz-border-radius: 0 0 5px 5px;
    -webkit-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
}

/* Change cursor to a hand for previous and next chevrons */
.timetable-navigation {
    cursor: pointer;
}

#timetable-day-column-3 {
    opacity: 0.99;
}

/* Rule to stylise special events */
.special-event {
    border-color: #5B9DCC;
}

p.event-title.special-event {
    background-color: #5B9DCC;
}

/* Rule to stylise all day events */
.all-day-event {
    border: 1px solid white;
    background-color: #5B9DCC;
    padding: 0.2em;
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
    color: white;
    float: left;
}

.timetable-all-day-content {
    padding-left: 60px;
    margin: 1px;
    overflow: hidden;
}

.spanLeft {
    float: left;
}

.spanRight {
    float: right;
}

.spanCenter {
    margin: auto;
}

.dropdown-menu > li > span  {
    clear: both;
    color: #333333;
    display: block;
    font-weight: 400;
    line-height: 1.42857;
    padding: 3px 20px;
    white-space: nowrap;
}
.dropdown-menu > li > span.title  {
    color: #000;
    text-decoration: none;
    background-color: #fff;
    background-image: none;
}

.popup-panel {
    z-index: 300;
    position: absolute;
    border-radius: 0.3em;
    box-shadow: 0 0.25em 0.5em rgba(0,0,0,0.3);
    background-clip: padding-box;
    -webkit-transform: translateZ(0);
    background-color: #ffffff;
}

/** ==============================================================================================
 *
 * Agenda
 *
 ============================================================================================== **/

.agenda {
    margin: 1em;
}

.agenda .row {
    margin-left: 0;
    margin-right: 0;
}

.agenda-day {
    border-radius: 4px;
    margin-bottom: 2em;
}

#agenda-header-text {
    display: block;
    font-size: 1.2em;
    font-family: "Arial Black", Gadget, sans-serif;
    text-align: center;
}

.agenda-event-heading {
    cursor: default;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-top: 1px solid #999999;
}

.agenda-event-heading-allday {
    color: #fff;
    background-color: #5B9DCC;
    border-top: 1px solid #000000;
}

.agenda-event-body {
    border-top: 1px dashed #999999;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    display: block;
}

.agenda-panel {
    border: 1px solid #B75E76;
}


/* Rule to stylise special events */
.agenda .special-event {
    color: #5B9DCC;
}

/* Rule to stylise normal events */
.agenda .event {
    color: #B75E76;
}

.mouse-default {
    cursor: default;
}

/** ==============================================================================================
 *
 * Email styling
 *
 ============================================================================================== **/
.email-subject-heading {
    border: 0 solid #CCCCCC;
    border-radius: 4px;
    padding: 3px;
}

.email-subject-detail {
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    padding: 7px;
    max-height: 150px;
    overflow-y: auto;
    background-color: #EEEEEE;
}

/** ==============================================================================================
 *
 * Date picker
 *
 ============================================================================================== **/
.ui-datepicker-title {
    color: #000000;
    font-size: 0.8em;
    font-weight: normal;
    padding-left: 5px;
    margin-right: 5px;
}

.ui-datepicker {
    display: none;
    font-size: 0.8em;
    padding: 0.2em 0.2em 0;
    width: 17.5em;
}

.ui-button-text {
    font-size: 0.7em;
    padding: 0;
}

/** ==============================================================================================
 *
 * Timetable
 *
 ============================================================================================== **/
.not-picked {
    color:#999;
    font-style: italic;
}

/** ==============================================================================================
 *
 * TinyMCE style fix
 *
 ============================================================================================== **/
.mce-btn button:hover{
    background-color: #CCCCCC;
    border-radius: 2px;
}

/** ==============================================================================================
 *
 * Tables
 *
 ============================================================================================== **/

.table > tbody > tr.newgroup > td {
    border-top: 4px solid #DDDDDD;
    vertical-align: bottom;
}

/** ==============================================================================================
 *
 * Tiny screens
 *
 ============================================================================================== **/
@media all and (max-width: 361px) {
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
        padding-left: 0;
        padding-right: 0;
    }
}


/* ============================================================ */

.picking-event {
    font-size: 1.0em;
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    z-index: auto;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    border: 1px solid #B75E76;
    font-family: "Arial Black", Gadget, sans-serif;
    color: #B75E76;
    background: #fff;
}

picking-event p {
    margin: 0;
    padding: 0 2px;
}

/* Style the enrolment events */
.event-glow-one {
    box-shadow: -1px -1px 4px rgba(183, 94, 118, 1);
    transition: all 0.8s ease;
    z-index: 20;
}

.event-glow-two {
    box-shadow: 0 0 4px 4px rgba(183, 94, 118, 0.75);
    z-index: 20;
}

.no-choice {
    cursor: auto;
}

/* Add styling for a scroll to top button. Typically used on the timetable page */
#scrollToTop, #scrollToBottom {
    display: block;

    /* Link is above all other elements */
    z-index: 999;

    /* Link doesn't hide text behind it */
    opacity: .8;

    /* Link stays in the same place on the page */
    position: relative;

    /* Set the top of the div */
    top: 540px;

    /* Make it big and easy to see */
    width: 2em;
    padding: 1.1em;
    background-color: #000;

    /* Center the link */
    margin-left: auto;
    margin-right: auto;

    /* Round the corners */
    border-radius: 32px;
    -moz-border-radius: 32px;
    -webkit-border-radius: 24px;

    /* Align text to the center of the div */
    text-align: center;
}

/* Change the positioning of the scroll to bottom button */
#scrollToBottom {
    top: 1020px;
}

/* Style the scroll to top link for the timetable */
#scrollToTop > a, #scrollToBottom > a {
    position: absolute;
    top: 0.2em;
    left: 0px;
    right: 0px;
    color: #FFF;
}

/* Set background for online events*/
.online {
    color: #20809D;
}

.online-event {
    background-color: #20809D;
}
