/*  GENERAL CODE ============================================================ */
body, .container {
    min-width: 360px;
}
.flex-sb{
  display: flex;
  justify-content: space-between;
}
.projektContainer {
    margin: 20px 2%;
}
span.project-link {
  margin-right: 20px;
}
body .bggreen, body div.et_pb_toggle.bggreen{
  background-color: #a8ddb3;
}
body .bggray, body div.et_pb_toggle.bggray{
  background-color: #ededed;
}
body .projectInfoTable td{
  padding-right: 10px;
}

/* Image lightbox */
img.lightbox-image{
  max-height: 350px;
  min-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top center;
     object-position: top center;
  transition: all .5s;
  border: solid 20px #fcd21d;
  box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.3);
}
img.lightbox-image:hover{
  transform: scale(1.1);
  box-shadow: 0px 10px 30px gray;
  cursor: nesw-resize;
}
div.lg-backdrop, div.lg-outer{
  z-index: 99999;
}
.main-lightgallery{
  margin-bottom: 35px;
}

/* +++++ MORE OR LESS FAMILIES +++++ */
div.less{
  max-height: 450px;
  overflow: hidden;
  height: 100%;
  position: relative;
}
div.less::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.75) 50%, rgb(255, 255, 255) 100%);
    font-weight: bold;
    min-height: 60px;
    padding-top: 40px;
}
div.less .showmore {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 20;
    font-weight: bold;
    min-height: 60px;
    padding-top: 25px;
    padding-bottom: 15px;
    cursor: pointer;
    transition: all 0.5s ease-out;
}
div.less .showmore:hover{
  color: #fcd21d;
}

/* DONATE BUTTON AND DONATE MODAL-BOX ======================================= */
#main-content .donateByFormContainer{
  display: inline-block;
}
#main-content .donateButtonContainer{
  text-align: right;
}
#main-content .donateBtn{
  font-size: 1.3em !important;
  color: #a66a12;
  position: relative;
  padding: .3em 1em;
  border: 2px solid;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-weight: 500;
  line-height: 1.7em !important;
  transition: all .2s;
  margin: 15px;
}
#main-content .donateBtn.donateProjectBtn{
  font-size: 1.4em !important;
  position: absolute;
  bottom: 65px;
  left: 0;
  right: 0;
  margin: auto;
}
#main-content .donateBtn:hover{
  background-color: #eeeeee;
  color: #333333;
  cursor: pointer;
  padding-left: 10px;
  padding-right: 40px;
}
#main-content .donateBtn.donateNowBtn:hover{
  background-color: #eeeeee;
  color: #333333;
  cursor: pointer;
  padding: .3em 1em;
}
#main-content .kitCountSelectContainer{
  text-align: right;
  padding: 0 16px;
  font-size: 1.1em;
}
#main-content .kitCountSelect{
  text-align: center;
  border-radius: 4px;
}
.projectmodal{
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  display: none;
}
#main-content .fadeDisplay{
    display: block;
    -webkit-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s;
}
.h5Confirm{
  margin-top: 30px;
  margin-bottom: 10px;
}
input.formTextInput {
  margin: 5px;
  border: 1px solid #d9d9d9;
  padding: 8px 13px;
  box-sizing: border-box;
  border-radius: 3px;
}
/* Safari */
@-webkit-keyframes fadeIn {
  0% { -webkit-opacity: 0; }
  100% { -webkit-opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.close{
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: -webkit-sticky;
  position: sticky;
  right: 0;
  top: 0;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  min-height: 40%;
  max-height: 80%;
  min-width: 340px;
  padding: 10px;
  background-color: rgba(255, 255, 255);
  background-color: rgba(255, 255, 255, .9); /* Fallback color */
  box-shadow: 0px 0px 50px rgba(0, 0, 0, .6);
  overflow: auto;
  padding-bottom: 40px;
}
.modal-content h3{
  margin: 40px 20px 20px 20px;
  color: green;
}
.modal-content .receivableFamiliesAccordion{
  width: 500px;
  text-align: left;
  max-width: 100%;
  display: block;
  margin: 25px auto;
}
.modal-content .et_pb_button {
  color: #a66a12;
  font-size: 1.3em;
}
.modal-content input.formTextInput, .modal-content label {
  font-size: 18px;
}
.modal-content .input-container {
  margin-top: 10px;
}
.modal-content p {
  margin: 0;
  padding: 0;
}
.modal-content .table {
  display: block;
  width: 100%;
}
.modal-content .flex-center {
  display: flex;
  width: 100%;
  justify-content: center;
}
.modal-content .table .row {
  display: block;
  line-height: 52px;
  height: 52px;
}
.modal-content .table .row::before {
  content: " ";
  clear: both;
  display: table;
}
.modal-content .table .row .left {
  width: 50%;
  display: block;
  float: left;
  text-align: right;
}
.modal-content .table .row .right {
  width: 50%;
  display: block;
  float: right;
  text-align: left;
}
#main-content .modal-content .donateBtn{
  margin-top: 40px;
}
@media all and (max-width: 767px) {
  .modal-content .table .row {
    line-height: unset;
    height: unset;
  }
  .modal-content .table .row .left,
  .modal-content .table .row .right {
    width: 100%;
    text-align: center;
  }
  .modal-content .table .row .right {
    margin-bottom: 15px;
  }
  .modal-content input.formTextInput{
    margin: 2px;
  }
}
.inputGroup{
  display: flex;
}
.input-container {
  display: inline-block;
  position: relative;
  padding-left: 27px;
  cursor: pointer;
  font-size: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* +++++ CUSTOM CHECKBOX +++++ */
.input-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 19px;
  width: 19px;
  background-color: #ddd;
  border: solid #aaa 2px;
}
.input-container:hover input~.checkmark {
  background-color: #ccc;
}
.input-container input:disabled~span.checkmark {
  background-color: #77b255;
  border: unset;
  filter: opacity(0.4);
}
.input-container input:disabled~span.checkmark:after {
  display: block;
}
.input-container input:checked~.checkmark {
  background-color: #a66a12;
  border: unset;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.input-container input:checked~.checkmark:after {
  display: block;
}
.input-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* HELP FIELD AND HELP MODALBOX ============================================= */
.help {
  position: absolute;
  right: 20px;
  font-weight: bold;
  font-size: 2em;
  border-radius: 50%;
  border: 3px solid #C9C9C9;
  padding: 3px;
  width: 32px;
  height: 32px;
  text-align: center;
  color: #C9C9C9;
  transition: all ease-in-out 0.2s;
  z-index: 10;
}

.help:hover {
  color: #606060;
  border: 3px solid #606060;
  cursor: pointer;
}

.help-modal{
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  display: none;
}

.help-modal .modal-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  min-height: 40%;
  max-height: 80%;
  min-width: 340px;
  padding: 10px;
  background-color: rgba(255, 255, 255);
  background-color: rgba(255, 255, 255, .9); /* Fallback color */
  box-shadow: 0px 0px 50px rgba(0, 0, 0, .6);
  overflow: auto;
  padding-bottom: 40px;
}

.help-modal .close{
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: -webkit-sticky;
  position: sticky;
  right: 0;
  top: 0;
}

.help-modal .close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.help-modal .modal-content {
  text-align: left;
  padding: 15px;
  max-width: 700px;
}

.help-modal h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.help-modal p {
  margin: 0 10px;
}

.help-modal h3 {
  margin: 20px 10px 15px 10px;
}

/* GENERAL RESPONSIVE CODE ================================================== */
@media all and (max-width:1200px){
  .et_pb_tabs_controls li a {
    padding: 4px 17px 4px;
  }
}
@media all and (max-width:980px){
  h1, h2, h3, h4 {
    margin-top: 1em;
  }
  .et_pb_section {
    padding: 0;
  }
  .et_pb_row {
    padding-bottom: 0;
  }
  .et_pb_section.et_section_regular > div {
      -webkit-filter: none;
              filter: none;
  }
  .et_pb_section.et_section_regular > div:hover {
      -webkit-filter: none;
              filter: none;
  }
  .et_pb_column {
    margin-bottom: 5px;
  }
  .et_pb_row.et_pb_row_1 {
    width: 96%;
  }
  .et_pb_tabs_controls li a {
    padding: 4px 12px 4px;
  }
}
@media all and (max-width:767px){
  h1{
    font-size: 32px;
  }
  h2{
    font-size: 28px;
  }
  h3{
    font-size: 24px;
  }
  h4{
    font-size: 22px;
  }
  h4{
    font-size: 18px;
  }
  .et_pb_column .et_pb_module {
    margin-bottom: 10px;
  }
  .et_pb_row, .et_pb_column .et_pb_row_inner {
    padding: 10px 0;
  }
  img.lightbox-image {
    box-shadow: none;
  }
  #et-main-area .et_pb_row.et_pb_row_0.et_had_animation {
    padding-top: 0 !important;
  }
  #main-content .donateButtonContainer{
    text-align: center;
  }
  .et_pb_section.et_pb_section_0.et_pb_with_background.et_section_regular.et_had_animation {
    background-image: none !important;
  }
  img.lightbox-image:hover {
    transform: scale(1.05);
  }
}
@media all and (max-width:480px){
  span.project-link {
    display: block;
  }
}
