/**
 * @file
 * Subtheme specific CSS.
 */
body {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1.1rem;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.1rem;
}
h3 {
  font-size: 1.8rem;
}
a {
  text-decoration: none;
}
.image-container-50 {
  height: 50vh;
  margin-bottom: 2vh;
  overflow: auto;
}
img.cover {
  object-fit: cover;
  height: 100%;
  width: 100%;
  object-position: 50% 50%; 
}

#header {
  margin-bottom: 1rem;
}
#main-wrapper {
  margin-bottom: 2rem;
}
.block.menu--account {
  padding-left: 2rem;
}
.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.65);
  padding: 0.5rem;
}

.block-page-title h1.title {
  text-align: center;
}
.field--name-field-share-on-social {
  text-align: right;
  margin-top: 2rem;
}
.field--name-field-share-on-social .field__label {
  margin-right: 0.5rem;
}


/* Use credits */
@media (min-width: 768px) {
  .view.offers .view-header {
    display: flex;
  }
}
.view.offers .view-header .block {
  flex-grow: 1; 
  text-align: center;
  margin: 1rem;
  background: #eee;
  padding: 2rem 1rem;
}
.view.offers .view-header .block-treegen-header.business .content {
  height: 100%;
}
.view.offers .view-header .block-treegen-header.business .field--name-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}
.view.offers .view-content {
  background: #eee;
  padding: 2rem 1rem;
}
.view.offers .views-view-responsive-grid__item {
  background: #fff;
  padding: 1rem;
  text-align: center;
}
.view.offers .views-view-responsive-grid__item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.view.offers .views-field-field-logo .field-content img {
  max-width: 100%;
  height: auto;
}
.view.offers .business-name {
  margin-top: 0.5rem;
  flex-grow: 1;
}
.view.offers .price {
  font-weight: 700;
  margin-bottom: 1rem;
}
.view.offers .price .discount-off {
  font-weight: 700;
  color: var(--bs-danger);
}

/* Project campaign pages */


@media (min-width: 768px) {
  .node--type-project.node--view-mode-full .group-project-top {
    display: flex;
  }
}
.node--type-project.node--view-mode-full .group-project-top img {
  max-width: 100%;
  height: auto;
}
.node--type-project.node--view-mode-full .wallet {
  padding: 1rem;
}
.node--type-project.node--view-mode-full .wallet .btn {
  width: 100%;
  margin-top: 1rem;
}
.node--type-project.node--view-mode-full .wallet .explaination {
  color: var(--bs-success);
}
.node--type-project.node--view-mode-full .wallet .wallet-thermometer {
  display: flex;
  gap: 1rem;
}
.node--type-project.node--view-mode-full .wallet .wallet-thermometer .table-container {
  flex-grow: 1;
}
.node--type-project.node--view-mode-full .field--name-field-project-profile-link {
  margin: 1rem 0;
  background-color: rgb(238, 238, 238);
  padding: 1rem;
}
.node--type-project.node--view-mode-full .field--name-field-project-profile-link a {
  color: var(--bs-primary);
}
.node--type-project.node--view-mode-full .field--name-field-project-profile-link a::before {
  content: "\f138"; 
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  font-size: 1rem;
  color: var(--bs-primary);
  margin-right: 1rem;
}

/* Featured bottom regions */
.featured-bottom {
  background: var(--bs-primary);
  padding: 2rem 1rem 1rem 1rem;
}
.featured-bottom .block {
  background: #eee;
  padding: 1rem;
  color: var(--bs-primary);
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

footer {
  padding: 35px 1rem 30px!important;
}
footer .block-cls-footer {
  @media (min-width: 768px) {
    .outer {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .right {
      text-align: right;
    }
  }
}
footer .block-cls-footer a {
  color: var(--bs-link-color)!important;
}

/* Navbar */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (min-width: 1200px) {
  .navbar .offcanvas {
    flex-grow: 0;
  }
}
@media (max-width: 1199px) {
  .navbar .offcanvas {
    background: var(--bs-primary);
    font-size: x-large;
  }
  .navbar .offcanvas .menu--account {
    padding-left: 0;
  }
  .navbar .offcanvas .menu--account ul {
    display: block;
  }
  .navbar .offcanvas .offcanvas-header {
    justify-content: end;
  }
  .navbar .offcanvas .btn-close {
    padding-top: 2rem;
    padding-right: 2rem;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  }
}
