/* hides things when class of user only */

body:not(.user-logged-in) .user-only {
  display: none;
}


/* By default, guest-only elements are visible */
.visitor-only {
  display: block;
}

/* Hide guest-only elements when a user is logged in */
body.user-logged-in .visitor-only {
  display: none;
}



div#page {
    min-width: 400px;
}

div#sidebar_first {
    border: 0px;
    padding: 15px;
}


.featured-bottom, #main-wrapper {
    max-width: 1200px;
    margin: auto;
}


@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }
}

table.table {
    background: white;
}


.feed-icons {
    display: none;
}


.crm-form-submit button
{
	font-size: 18px;
padding: 5px 10px;
    background: #8b1919;
}

.btn {
    background-color: #8b1919;
  }  
    
    
    .btn:hover {
    background-color: #720c0c;
}


.crm-form-submit button:hover {
    background: #b41e1e;
}


.site-footer {
    margin-top: 30px;
}

#to make titles on tabels black rather than white

th.views-field {
    color: black;
}

a.button {
    display: inline-block;
;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: medium;
    font-weight: 700;
    line-height: 1rem;
    color: white;
    background-color: #8b1919;
    padding: 12px;
    margin: 10px 0px;
}



#block-barrio-boostrap-5-makehaven-page-title {
    width: 100%;
    display: flex;
    justify-content: center;
}

#block-barrio-boostrap-5-makehaven-page-title .content {
    display: flex;
    justify-content: center;
    width: 100%;
}

#block-barrio-boostrap-5-makehaven-page-title .title {
    text-align: center;
}

.btn.btn-info {
    background: #78c0f3;
}

th.views-field {
    color: black;
    background: lightgrey;
}


a.buttton {
    background: grey;
    padding: 10px;
    color: white;
    border-radius: 3px;
}


.site-footer {
    margin-top: 0px;
}

table tr th
{
	color: grey;
}


.boxes.views-row {
    padding: 25px;
    border: solid grey;
    border-radius: 20px;
    background: #eee;
    margin-bottom: 30px;
    min-width: 400px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

/* fixes content of sidebar tables not to wrap */
.sidebar_first .view-content.row {
    display: block;
}


.sidebar_first  table caption {
    caption-side: top;
    color: black;
    font-size: large;
    font-weight: bold;
}

/* Calendar */

th.fc-widget-header.fc-future a {
    color: white;
}



/* views exposed filter styles */

/* General form container styling */
.view-filters .views-exposed-form {
    background-color: #f8f9fa; /* Light background for better visibility */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Spacing and layout adjustments for form elements */
.view-filters .views-exposed-form .form-item {
    flex: 1 1 200px; /* Allows flexible wrapping */
    margin-bottom: 15px;
    padding: 0 10px; /* Add horizontal padding */
}

/* Style input fields */
.view-filters .views-exposed-form input.form-control,
.view-filters .views-exposed-form select.form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 14px;
}

/* Adjust fieldset styling */
.view-filters .views-exposed-form fieldset {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Legend styling */
.view-filters .views-exposed-form fieldset legend {
    font-weight: bold;
    font-size: 16px;
    padding: 0 5px;
}

/* Button styling */
.view-filters .views-exposed-form .form-actions .button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* Flexbox container for fields */
.view-filters .views-exposed-form .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between form items */
}

/* Small descriptions */
.view-filters .views-exposed-form .description {
    font-size: 12px;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .view-filters .views-exposed-form .d-flex {
        flex-direction: column;
    }

    .view-filters .views-exposed-form .form-item {
        padding: 0;
    }
}

.btn-primary {
    background-color: #8b1919;
    border-color: #8b1919;
}


.btn-primary:hover, .btn-primary:focus {
    background-color: #710a0a;
}

button#edit-submit {
    color: white;
}

a.btn.btn-primary {
    color: white;
}

.btn-primary {
    color: white;
}
.btn-primary, .btn-primary:hover, .btn-primary:focus {
    color: white;
}

.btn:hover {
    background-color: #720c0c;
    color: white;
}

.button a {
    color: white;
}

.view .more-link a {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: medium;
    font-weight: 700;
    line-height: 1rem;
    color: white;
    background-color: #8b1919;
    padding: 12px;
    margin: 10px 0px;
}



/* webforms */

.webform-type-fieldset {
    border-width: 10px;
    border: solid;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.webform-type-fieldset span.fieldset-legend {
    font-size: 25px;
    font-weight: bold;
    color: #861216;
}


/* Login Block */

div#block-barrio-boostrap-5-makehaven-userlogin {
    padding: 25px;
    border: solid grey;
    border-radius: 20px;
    background: #eee;
    margin-bottom: 30px;
    min-width: 400px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}


/* style for reusable box */
.box
{
    padding: 25px;
    border: solid grey;
    border-radius: 20px;
    background: #eee;
    margin-bottom: 30px;
    min-width: 400px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


/* lending library comment box */

.node--type-library-item #comment-form
{
    padding: 25px;
    border: solid grey;
    border-radius: 20px;
    background: #eee;
    margin-bottom: 30px;
    min-width: 400px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.node--type-library-item .comment-add.nav-link {
    display: none;
}

/* Cards for member resoruces */

.card {
    flex: 1 1 300px;
    box-sizing: border-box;
}

/* Responsive styling for screens wider than 768px */
@media (min-width: 768px) {
    .card-container {
        justify-content: space-around;
    }
}

/* Styling for 3 cards across on large screens */
@media (min-width: 1024px) {
    .card {
        flex: 1 1 calc(33.33% - 20px); /* Three across */
    }
}

/* fix for comments wrappign in lending library - investigate later*/

@media (min-width: 560px) {
    .node .comment-comment-node-library-item-form .field--type-image {
        float: none;
    }
}



blockquote {
    font-style: italic;
    color: #6c757d; /* Optional: A subtle grey text color */
    padding: 1rem 1.5rem;
    border-left: 5px solid #dee2e6; /* Creates a vertical bar on the left */
    background-color: #f8f9fa; /* Optional: Light background for contrast */
    margin: 1.5rem 0; /* Adds spacing above and below */
    border-radius: 0.25rem; /* Optional: Softens the edges */
}

blockquote p {
    margin: 0; /* Ensures no additional spacing around paragraphs inside */
}

.field--name-body img, 
.field--type-text-with-summary img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Avoid extra space below the image */
    margin: 0 auto; /* Center the image horizontally */
}

@media (max-width: 400px) {
    .user-logged-in nav#navbar-top {
        height: 90px;
    }
}


/** Makes editable fields edit links a button */

a.use-ajax[data-dialog-type="modal"] {
    display: inline-block;
    padding: 0.25rem 0.5rem; /* Small button padding */
    font-size: 0.875rem; /* Small font size */
    line-height: 1.5;
    border-radius: 0.2rem;
    text-decoration: none;
    color: #fff; /* White text color */
    background-color: #007bff; /* Bootstrap primary button color */
    border: 1px solid #007bff; /* Border color */
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a.use-ajax[data-dialog-type="modal"]:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3;
    text-decoration: none;
}


.main-content .nav-link
{padding: 0px 0px;}


/** login block **/

/* Target the login block */
.block-user-login-block {
  position: relative;
    padding: 25px;
    border: 5px solid #8b1919;
    border-radius: 20px;
    background: #eee;
    margin-bottom: 30px;
    min-width: 400px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}


/* Add the custom message before the form */
.block-user-login-block:before {
  content: "Members, please log in to access content and all features.";
  display: block;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #dc3545; /* Red color for emphasis */
}

.block-user-login-block a.create-account-link {
    display: none;
}


/** Some space below filters on views **/

.views-exposed-form {
    margin-bottom: 25px;
}


/** Hide teaser overflows **/

.node--view-mode-teaser
{
overflow: hidden;	
}

/** two column layout images **/

.group-left img {
    max-width: 100%;
    height: auto;
    padding-right: 5px;
}


/** Hazard band style for tool pages **/

.field.field--name-field-item-hazard-band {
    display: block;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

/** width for smaller mobile**/
.node--view-mode-teaser, .field-group-fieldset, .view-civi-event-listing .views-row {

    min-width: 400px;

}

div#main-wrapper {
    max-width: 1200px;
}


/* Correct tables showing sections groupings on bottom */

/* Style table captions */
.table caption {
    caption-side: top;  /* Ensure captions are placed above the table */
    font-size: 1.75em;  /* Increase font size */
    font-weight: bold;  /* Make it bold */
    text-align: left;  /* Align text to the left */
    padding: 10px 0;  /* Add some spacing */
    color: #333;  /* Dark text for readability */
}


.form-check {
    min-height: 2rem;
}

.layout-one-sidebar .block-system-main-block .content {
    max-width: 900px;
} 



img.image-style-wide {
    width: 100%;
    height: auto;
}