// Tweaks to site CSS

body {
    font-family: Arial,sans-serif;
    font-size: 16px;
}

h1 {
    font-size: 34px;
}

h3 {
    font-size: 24px;
}

[role=main], .main {
    background: #efede9;
}

.wrapper {
    border: 1px solid #dedcd2;
}

.account-masthead {
    background: #003d4c;
}

.masthead {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding-top: 5px;
    padding-bottom: 5px;
}

.masthead .site-search input {
    width: auto;
}

.masthead .navigation .nav-pills li.active a {
    background-color: #003d4c;
}

.masthead .content {
    position: absolute;
    top: 5px;
    right: 0;
}

.masthead .nav>li>a {
  padding: 10px 12px 10px;
  color: #000000;
}

.masthead .navigation .nav-pills li a:hover,
.masthead .navigation .nav-pills li.active a {
  color: #ffffff;
}

.site-footer {
    background-color: #1c7698;
}

.hero-secondary {
    position: relative;
}

.hero .module-dark .module-content {
    background-color: #1c7698;
}

.hero .tags {
    background-color: #002f5f;
}

a {
    color: #1c7698;
    text-decoration: none;
}
/*
a:hover, a:focus {
    color: #002f5f;
    text-decoration: underline;
}
*/

.btn-primary {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    background-color: #002f5f;
    background-image: -moz-linear-gradient(top,#1c7698,#002f5f);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#1c7698),to(#002f5f));
    background-image: -webkit-linear-gradient(top,#1c7698,#002f5f);
    background-image: -o-linear-gradient(top,#1c7698,#002f5f);
    background-image: linear-gradient(to bottom,#1c7698,#002f5f);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff30778d',endColorstr='#ff085871',GradientType=0);
    border-color: #002f5f #002f5f #03202a;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
    color: #ffffff;
    background-color: #002f5f;
}

.btn-link {
    color: #1c7698;
}

/* nexus child page headings */

#header-circles-container {
    width: 840px;
    padding: 0px;
    padding-top: 6px;
}
#header-circles-container h1 {
    font-size: 24px;
    font-family: Arial, sans-serif;
    color: #FFF;
    line-height: 1.1em;
    text-decoration: none;
    font-weight: normal;
    margin: 0px;
    padding: 0px;
}
#header-circles-container h2 {
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    font-weight: normal;
    line-height: 1.1em;
    text-decoration: none;
    margin: 0px;
    padding-top: 3px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}

#header-circles {
    background-image: url(/images/header-circles-bg.jpg);
    height: 172px;
    padding-top: 17px;
    padding-left: 35px;
    background-repeat: no-repeat;
}
#header-circles-logo {
    height: 120px;
    width: 155px;
    float: right;
    position: relative;
    padding-top: 10px;
    padding-right: 20px;
}
.header-circles-clearfloat {
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
#header-circle5 {
    height: 200px;
    width: 165px;
    float: left;
    background-repeat: no-repeat;
    padding-left: 50px;
    position: relative;
    padding-top: 26px;
    line-height: 1.2;
    padding-right: 46px;
}
#header-circle5 {
    background-image: url(/images/header-circle5.png);
}

#header-circles-content {
    padding-left: 180px;
    padding-bottom: 50px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    color: rgb(55, 55, 55);
    width: 650px;
}
#header-circles-content h1 {
    color: #000;
    font-weight: bold;
    font-size: 30px;
    margin: 0 0 20px;
}
#header-circles-content h2 {
    color: #000;
    font-weight: bold;
    margin: 0 0 .8125em;
}

.logo img {
    padding: 15px 0;
    width: 160px;
}

.nav {
    padding-top: 15px;
}

.masthead .site-search {
    padding-top: 15px;
}

.hero-unit {
    font-size: 16px;
    padding: 0;
}

.footer-links li {
    width: 50%;
    margin-right: 0;
    margin-left: 50px;
}

.footer-links .nav-left {
    float: left;
    width: 310px;
}

.footer-links .nav-centre {
    float: left;
    width: 310px;
}

.footer-links .nav-right {
    margin-left: 620px;
}

.inset-image {
    float: right;
    margin-left: 10px;
}

/* Filenames can be too long */
.module-content h1 {
    word-wrap: break-word;
}

/* Tweaks needed to move to CKAN 2.2.1 */
.hero .box {
    border: 5px solid #ffffff
}

.hero .module-dark h3.heading {
    color:#ffffff;
    margin-top:0px;
}

.search-giant {
    position: relative;
}

.search-giant input {
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    font-size:16px;
    padding:14px 10px;
    width:100%;
    height:auto;
    border-color: #003f52;
}

.search-giant button {
    cursor:pointer;
    position:absolute;
    right:15px;
    top:50%;
    display:block;
    border:none;
    padding:0;
    margin-top:-17px;
    width:30px;
    height:30px;
    background:transparent url("./../base/images/icon-search-27x26.png") no-repeat center center;
    text-indent:-900em
}

footer .nav-right {
    float:none;
    width:auto;
}

header .content .field .btn-search {
    background-image: url("./../base/images/sprite-ckan-icons.png");
    background-repeat: no-repeat;
    background-position: 16px 16px;
    background-position: -51px -16px;
    position: absolute;
    display: block;
    margin-top: -8px;
    background-color: transparent;
    border: none;
    text-indent: -999em;
}

.hero-primary, .hero-secondary {
    width:460px;
    float:left;
}

.hero-secondary {
    margin-left: 20px;
}

.hero-secondary .box {
    height: 341px;
}

.module-content:last-child {
    padding-bottom: 0px;
}

.media-image {
    border-radius: 4px;
    float: left;
    margin-right: 15px;
}

.media-grid  .media-item {
    background:#fbfbfb url("./../base/images/bg.png");
}

.module-heading .action {
    float: right;
    color: #888888;
    font-size: 12px;
    line-height: 20px;
    text-decoration: underline;
}

.results {
    padding-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 25px;
    border-bottom: 1px dotted #dddddd;
}

.results strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 10px;
}

#dataset-search {
    position: relative;
    margin-bottom:10px;
}
.control-order-by {
    position: absolute;
    right: 0;
    padding-right: 25px;
}

.control-order-by * {
    margin-bottom: 0px;
    top:0px;
}

.control-order-by .btn {
    top:0px;
}
.control-order-by label {
    display:inline;
}

.module-content .tags {
    padding: 0 25px;
    margin: 20px 0;
}

.resource-item .format-label {
    top:3px;
}

.resource-item .btn-group {
    top:5px;
}

/* Override annoying rule */
h2 i.icon-exclamation-sign {
    font-size:  100%;
}

/* Faculty images on front page */
.module-image {
    overflow: hidden;
    width: 70px;
    height: 70px;
    border-radius: 3px;
}

.module-image img {
    max-width: 200px;
    max-height: 70px;
}

/* Put media overlay on top, not bottom */
.media-overlay .media-heading {
    top: 0;
    bottom: auto;
}

.media-overlay .media-heading .link {
    float: right;
    font-weight: normal;
}

.link a {
    color: white;
}

.media-overlay p {
    padding-top: 50px;
}

/** Carousel **/
.jcarousel {
    position: relative;
    overflow: hidden;
}

.jcarousel ul {
    width: 10000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jcarousel li {
    float: left;
    width: 400px; /* fix this to prevent quirks */
}

.jcarousel li h2 {
    width: 380px; /* header need careful adjustment */
}

/* Floating header interacts badly with carousel */
.jcarousel h2.media-heading {
    left: auto;
    right: auto;
}

/** Carousel Controls **/

.jcarousel-control-prev,
.jcarousel-control-next {
    position: absolute;
    width: 30px;
    height: 30px;
    text-align: center;
    background: #4E443C;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 1px #000;
    font: 24px/27px Arial, sans-serif;
    -webkit-border-radius: 30px;
       -moz-border-radius: 30px;
            border-radius: 30px;
    -webkit-box-shadow: 0 0 2px #999;
       -moz-box-shadow: 0 0 2px #999;
            box-shadow: 0 0 2px #999;
}

.jcarousel-control-prev {
    bottom: 80px;
    margin-left: 15px;
    z-index: 1000;
}

.jcarousel-control-next {
    bottom: 80px;
    margin-left: 355px;
    z-index: 1000;
}

.jcarousel-control-prev:hover span,
.jcarousel-control-next:hover span {
    display: block;
}

