/*
Theme Name: Discovery Child Theme
Theme URI: http://www.templateexpress.com/discovery-theme/
Description: Discovery Child Theme
Author: Template Express
Author URI: http://www.templateexpress.com
Template: discovery
Version: 1.0
*/

@media only screen and (max-width:500px){
    body .entry-content #buddypress div.dir-search,
    body .entry-content #buddypress ul.item-list li div.action {
        margin-top: 0 ;
        text-align: left ;
        clear: left ;
        float: left ;
    }
}

@media only screen and (max-width:500px){
    body .entry-content #buddypress div.dir-search, 
    body .entry-content #buddypress ul.item-list li div.action {
        margin-left: 70px ;
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
    }
}

/* Gidin the register button on the sidebar login widget */
.bp-login-widget-register-link {
    display:none;
}

/* Places padding on the widget so that it looks slightly better */
#alo_easymail_widget_form {
    padding: 0px 8px 8px 8px;
}

/* Puts a larger gap between the elements in the newsletter form*/
table.alo_easymail_form_table input {
    margin-bottom: 4px;
}

/* the sidebar widgets are given a a border and styling to separate them */
.widget-area aside {
    border-style: solid;
    border-width: 1px;
    border-color: #eee;
    margin-bottom: 16px;
}

/* a few errors in the default styling of the newsletter sidebar widget, this styling makes it a bit easier on the eye */
table.alo_easymail_form_table tr td:first-child {
    padding-right: 4px;
}

table.alo_easymail_form_table {
    margin-bottom: 4px;
}

.input-radio {
    margin-right: 4px;
}

/* a few errors in the default styling of the buddypress sidebar widget, this styling makes it a bit easier on the eye */
.bp-login-widget-user-avatar {
    margin-left: 16px;
}

.bp-login-widget-user-links {
    padding: 0px 8px 0px 8px;
}

#bp-login-widget-form {
    padding: 0px 8px 0px 8px;
}

/* the discovery theme put avatar images in line with user name text on updates and activity streams, this looked shocking, so they have been hidden */
.activity-header img {
    display: none;
}

/* the discovery theme caused slight vertical overlap with the search for buddypress groups and members, this fixes the issue */
#buddypress div.dir-search {
    margin-top: 0px !important;
}

/* INDY TO COMMENT */
#posts-stream li h3 {
    background: #f0f0f0;
}

#posts-stream li h3 a {
    color: #5FC7D3;
}

/* Styling of the main desktop menu */
.main-navigation #menu-iclr-main-menu ul li a{
    color: #4D2568 !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.main-navigation #menu-iclr-main-menu ul li a:hover{
    color: #fff !important;
    background: #4D2568 !important;
}


/*styling of the mobile menu */
.main-small-navigation .menu li a {
    background-color: #eee !important;
    text-align: left !important;
    padding-left: 15%;
    text-transform: none;
}

.main-small-navigation .menu li a:hover {
    background-color: #4D2568 !important;   
    color: #fff;
}

.main-small-navigation .sub-menu li a {
    padding-left: 25%;
    background-color: #fff !important;
}

/* The search form built into the theme is being hidden here */
.search-form {
    display: none; 
}

/* The discover theme didn't style the password boxes, this segment makes a consisten style for all text inpouts*/
input[type=password],
textarea {
    background: rgba( 255, 255, 255, 0.3 );
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
    background: #fff;
}

textarea {
    overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
    padding-left: 3px;
    vertical-align: top; /* Improves readability and alignment in all browsers */
    width: 98%;
}

/* Forcing both of the 'categories' and 'tags' dropdown lists into the same size*/
.searchandfilter select {
    width: 164px;
}

/* This separates each widget out and gives it its own section in the sidebar, marking each as its own entity */ 
.widget-title {
    margin-top: 0px;
    background-color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #87D2Db; 
}

#secondary h1 {
    color:#4D2568;
}

/* Added for IE8 incompatibility whereby the 'post tiles' jquery wasn't setting the background property. This piece of CSS adds a grey border to separate each entity */
#post-tiles-container ul li {
    border-style: solid;
    border-color: #eee; 
    border-width: 1px;
}

/* The submit button on the buddypress sidebar widget had no bottom margin form the border, this gives it 8px space */
#bp-login-widget-submit {
    margin-bottom: 8px
}

/* the search widget had a border under every element, we have removed that border here */
.searchandfilter div ul li {
    border: 0px none #fff;
}

/* changing the column widths of the buddy drive table */
#buddydrive-dir thead th {
    min-width: 50px
}

#buddydrive-dir thead th:first-child {
    min-width: 15px;
    width: 15px;
}

#buddydrive-dir thead th:nth-child(3) {
    min-width: 25px;
    width: 15px;
}

/* the buddyrive table was shrinking too small on a mobile screen. Even min-width was ruining the layout, so we just enabled a horizontal scroll in that div alone */
div.buddydrive.single-member {
    overflow-x: scroll;
}

/* fixing the registration form so that the 2 columns stopped overlapping on a mobile screen. Replaced with one continuous form */
#buddypress .standard-form #basic-details-section {
    float: none;
    width: 80%;
}

#buddypress .standard-form #profile-details-section {
    float: none;
    width: 80%;
}

/* slight reduction of the automated padding given to the site logo  */
.site-logo {
    padding: 2px 0 2px 0px;
    min-height: 30px;
    float: none !important;
}

/* wordpress has default navigation arrows in posts, but they thak you to other unrelated posts, these have been removed */
.site-content .site-navigation {
    display: none !important;
}

/* "whats new" text in event line height was 0.5 and the text would overlap in mobile versions */
#buddypress form#whats-new-form p.activity-greeting {
    line-height: 1em;
}

/* the  */
#buddypress #item-nav li a {
    padding: 5px 8px !important;
}

/* When logged-in and withing my groups / public group, we change the 'My Document' button to 'Documents'. This button is for all documents shared in a group - so had to be renamed */
#nav-buddydrive {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
}

#nav-buddydrive:after {
    content: "Documents";
    text-indent: 0;
    display: block;
    line-height: 26px;
}

/* changes the text colour of the inputs on the contact form form red to black */
div#fbuilder input, 
textarea {
    color: #000 !important;
}

div.tagcloud a{
    color: #fff !important;
}

.searchandfilter .tag-link{
    display: block;
}

#buddypress ul.item-list li div.item-title{
    width: 60% !important;
}

#buddypress ul.item-list li div.item-desc {
    width: 60% !important;
}

/* Breadcrumb pops off the purple banner when character length is too long */
.entry-header {
    width: 100%;
    display: inline-block;    
    min-height: 40px;
}

.entry-header span.breadcrumbs {
    width: 45% ;
    padding: 10px 10px 0px 10px; 
    float: right;

}

.entry-header span.breadcrumbs .breadcrumbs {
    padding: 0px; 
    text-align: right;
}

.entry-header .page-title {
    width: 45% ;
    padding: 10px 0px 10px 10px; 
}

@media only screen and (max-width: 800px){
    .page-title {
        text-align: left;
        clear: both;
        float: left;
    }
}

#smoothup{
    z-index: 100;
}

@media screen and (max-width: 580px){
    .site-logo {
        width: 100%;
        min-width: 150px;
        text-align: left;
    }
}

.site-header img {
    margin: 0 !important;
}

.breadcrumbs a:hover {
    color: #E7E7E7;
    text-decoration: underline;  
}

/* For member-only content */
 #private {
    background-color: #eff9f8;
    border-left: 3px solid #74c1c2;
    color: #333;
    padding: 1em 2em;
}
    
#private:before {
    content: "\1F512  The content below is visible to members only"; 
    color: #848484;
    display: block;
}

#private:after {
    content: "\1F512  The content above is visible to members only"; 
    color: #848484;
    display: block;
}

/* Attempt at hiding Google authentication field on login page */
body.login #login form p:nth-child(3) {
    display: none;
}

/* Group profiles */
#buddypress div#item-header div#item-meta {
    color: inherit;
    font-size: 100% !important;
}

#masthead-wrap #topbar_container {
    display: none;
}

@media screen and (max-width: 480px){
    #topbar_container {
        display: none;
    }
}

/* Buddydrive / file sharing 
#folder-0 {
    display:none;
}*/

/* TRIAL - because of height changes - of new styles for post tiles */

ul#post-tiles li a h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.25em;
    text-transform: none;  
}
ul#post-tiles li a {
    line-height: 1.6em;
}

/* Change the default color to a darker shade */
body, button, input, select, textarea {
    color: #333;
}

/* Changing media query so logo on mobile takes whole width */
@media screen and (max-width: 580px) {
    .site-logo {
        min-width: 150px;
        text-align: left;
        width: 100%;
    }
}

/* AddToCalendar Blue Style
 * http://addtocalendar.com
 */

/* Base */
.addtocalendar var {
    display: none;
}

.addtocalendar {
    position: relative;
    display: inline-block;
    background: transparent !important;
    line-height: 0;
}

.atcb-link {
    display: block;
    outline: none !important;
    cursor: pointer;
}

.atcb-link:focus~ul,
.atcb-link:active~ul,
.atcb-list:hover {
    visibility: visible;
}

.atcb-list {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    width: 170px;
    z-index: 900;
}

.atcb-list,
.atcb-item {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.atcb-item {
    float: none;
    text-align: left;
}

.atcb-item-link {
    text-decoration: none;
    outline: none;
    display: block;
}

.atcb-item.hover,
.atcb-item:hover {
    position: relative;
    z-index: 900;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}


/* Blue */
#content .addtocalendar a, 
#content .addtocalendar a:link, 
#content .addtocalendar a:visited {
    text-decoration:none; 
}

#content .atc-style-blue .atcb-link,
#content .atc-style-blue .atcb-link:hover,
#content .atc-style-blue .atcb-link:active,
#content .atc-style-blue .atcb-link:focus {
    margin: 0;
    padding: 7px 25px;
    color: #fff;
    font-family: "Verdana";
    font-size: 14px;
    text-decoration: none;
    outline: none;
    line-height: 20px;
    vertical-align: middle;
    background: rgb(66,129,244);
    box-shadow: 0 0 40px rgba(0, 0, 0, .13) inset;
    border-radius: 4px;
    zoom: 1;
}

.atc-style-blue .atcb-list {
    width: 170px;
    border: 1px solid rgb(186,186,186);
    border-radius: 2px;
    box-shadow: 0 0 5px #AAA;
}

.atc-style-blue .atcb-list,
.atc-style-blue .atcb-item {
    background: #fff;
    color: #000;
}

.atc-style-blue .atcb-item,
.atc-style-blue .atcb-item-link {
    line-height: 1.3em;
    vertical-align: middle;
    zoom: 1;
}

.atc-style-blue .atcb-item-link,
.atc-style-blue .atcb-item-link:hover,
.atc-style-blue .atcb-item-link:active,
.atc-style-blue .atcb-item-link:focus {
    color: #000;
    font-family: "Verdana";
    font-size: 14px;
    text-decoration: none;
    outline: none;
    padding: 5px 15px;
}

.entry-content .atc-style-blue li {
    list-style-type: none;
}

.atc-style-blue .atcb-item-link:hover,
.atc-style-blue .atcb-item-link:active,
.atc-style-blue .atcb-item-link:focus {
    color: #fff;
}

.atc-style-blue .atcb-item.hover,
.atc-style-blue .atcb-item:hover {
    background: rgb(66,129,244);
}

/* hash target above ID */
.xtarget:target {
    color: #4d2568; 
    -webkit-transition: .001s; 
    transition: .001s; 
    margin-top: -12px; 
    padding-top: 48px; 
}

/* Jump to link 'menu' */
ul.jump-to li{
    border: 1px solid #888;
    display: inline-block;
    font-size: 1.3em;
    margin: 0 1em 1em 0;
    padding: 0.5em;
    text-align: center;
    width: 200px;
}

#content ul.jump-to li a{
    text-decoration: none; 
    color: #4d2568;
}

ul.jump-to li a:after {
    content: "›";
    font-size: 1.3em;
    left: 6px;
    position: relative;
    top: 1px;
    line-height: 0; 
}
ul.jump-to li:hover{
    background-color: #eee; 
}

/* Events schedule TABLE */
.event-schedule tr:first-child {
    background-color: #4d2568;
    color: white;
    letter-spacing: 1px;
}

th[scope="col"] {
    background-color: #eee;
}

/* Private Message left align text */
#buddypress div#message-thread div.message-content,
#buddypress div#message-thread h3#message-subject,
#buddypress div#message-thread p#message-recipients,
#latest-update {
    text-align: left;
}

body #wrap {
    margin: 8px auto;
}

/* Remove masthead on other pages than homepage for logged-in users */
body.page.logged-in .header-image, body.single-post.logged-in .header-image, body.search-results .header-image, body.search-no-results .header-image {
    display:none;
}

body.page.logged-in.home-page .header-image {
    display:block;
}

/* All links in running text are blue underlined */
#content .entry-content a {
    text-decoration: underline;
    color: #4d2568;
}

#content .entry-content a:hover {
    text-decoration: none;
}

#content .entry-content #buddypress a {
    color: #4d2568;
}

#content #friendship-button a, 
#content .entry-meta a, 
#content h1.entry-title a, 
#content div.w4pl li a, 
#content #post-tiles a, 
#buddypress div.activity-meta a, 
#buddypress div.activity-header a, 
#content div.activity-comments a, 
#content .members-list, 
#content .entry-content .sdm_download_link a, 
#content .entry-meta table.profile-fields a, 
#content .entry-content ul#groups-list li a, 
#content .entry-content .item-list-tabs a, 
#content .entry-content #buddypress #members-list a,  
#content .entry-content .profile-fields a, 
#content .entry-content .notifications a, 
#content .entry-content #buddypress #message-threads a, 
#content .entry-content #message-recipients a {
    text-decoration: none;
    color: inherit;
}

#content .entry-content #buddypress div.acomment-content a{
    text-decoration: underline; 
}

body.messages {
    border: 0;
}

/* Font size for comments within BP messages is no longer small */
#buddypress div.activity-comments div.acomment-content, 
#buddypress ul.item-list li div.item-title, 
#buddypress ul.item-list li h4 {
    font-size: 100% !important;
}

/* Organisations page listing */
#content div.w4pl li{
    border-bottom: 1px dotted grey;
    font-size: 0.9em;
    list-style: outside none none;
    margin-left: 20px;
    padding: 0.5em 0;
}

/* Search and Filter plugin UI */

form.searchandfilter{
    background-color:#f8f8f8;
    margin-bottom:2em; 
  }

.searchandfilter h4{
    font-weight:bold;   
    letter-spacing:0.2px
}

li.sf-field-taxonomy-jurisdiction{
    float:left;
    clear:both;
}

.sf-field-taxonomy-owner {
    clear:right;
    float:left;
}

li.sf-field-tag{
    clear:both;
}

@media only screen and (max-width:500px){
    body li.sf-field-taxonomy-jurisdiction select, body li.sf-field-taxonomy-owner select{
        height: 30px !important;
    }
}


li.sf-field-taxonomy-jurisdiction select, li.sf-field-taxonomy-owner select{
    min-width:200px !important;
    width:15vw;
    height:25vh;
    margin-right:2em;
}

.searchandfilter .sf-field-tag ul li{
    display:inline-block;
    padding:0;
}
 
input[type="text"].sf-input-text {
    background-color:white; 
  }

.sf-field-search input[type="text"].sf-input-text {
    width:19em;
}

#content p#toggleFilters {
    float: right;
    padding:0.2em 1em;
    margin:1.8em 1.8em 1em 1em;
    background-color:#457b9d;
    color:white;    
    font-weight:500;
    cursor: pointer;
    width:26%; /*for mobile*/
}
.searchandfilter ul li.sf-field-reset{
    padding-top:0;
        display:none;
        list-style-type: none;
}

/* Mathew Stacey */
@media only screen and (max-width:700px){

    body #buddypress #members-list.item-list li div.item-title {
        margin-left:0 !important;
    }
}


#members-list li .item {
    margin-left: 60px;
}

span .bp-secondary-action {
    font-size: 80%;
    padding: 0;
    margin-right: 5px;
    text-decoration: none;
    margin-left: 4px;
}

#buddypress div.activity-comments ul li>ul  {
    margin-left: 60px !important;
}

body #buddypress form#whats-new-form p.activity-greeting {
    line-height:1.2em !important;
}

@media only screen and (max-width: 700px) {
    #buddypress ul.item-list li div.item-title {
        margin-left:60px !important;
    }
}

#groups-list > li .item .item-meta {
    margin-left: 60px;
}

@media only screen and (max-width: 320px) {
    #groups-list > li .item .item-meta {
        margin-left: 0px;
    }
    #buddypress ul.item-list li div.item-title {
        margin-left:0px !important;
    }
}

.commentlist li ul.children {
    margin-left: 60px;
}

.comment .reply {
    width: 150px;
}

div.comment-meta {
    margin-left:60px;
}

li.current-menu-item {
    background-color: #4d2568;
}

.main-navigation li.current-menu-item a {
    color: #fff !important;
}

#buddydrive-autocomplete li {
    list-style-type: none;
    margin-left: 0;
    width: 95%;
}

body input#send-to-input {
    width:75% !important;
    margin-right:10%;
}

body .friend-tab span a {
    margin-left: 0.5em;
}

span.sf-date-prefix  {
    width: 50px;
}