/*
** Bootstrap Overrides
*/
@import 'override_bootstrap/breadcrumbs';
@import 'override_bootstrap/forms';
@import 'override_bootstrap/carousel';
@import 'override_bootstrap/tabs';
@import 'override_bootstrap/collapse';
@import 'override_bootstrap/dropdowns';

//making container 1170px width for wide screens
@media (min-width: 1300px) {
  .container {
    max-width: 1200px;
  }
}

//other bootstrap elements
/* modal */

.modal-open {
  padding-right: 0 !important;
  .modal{
    background-color: rgba($colorMain2, .4);
  }
}

.modal.show{
  &.center{
    display: flex!important;
    align-items: center;
    justify-content: center;
  }
}

.modal_login_form{
  max-width: 770px;
  display: flex;
  position: relative;
  .menu-left{
    flex-shrink: 0;
  }
  .menu-right{
    padding: 55px 60px;
  }
  .remove{
    position: absolute;
    color: $lightColor;
    right: 35px;
    top: 20px;
    font-size: 20px;
  }
  @media (max-width: 991px) {
    justify-content: center;
    .menu-left{
      display: none;
    }
    .menu-right{
      padding: 40px;
    }
  }
}

.modal-backdrop.show {
  background-color: #4d4d4d;
  opacity: 0.9;
}

.modal-content {
  border-radius: 1px;
  [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* bootstrap buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  padding: 9px 15px;
  min-width: 200px;
  border-radius: 0;
  margin-bottom: 4px;

  &.btn-small{
    min-width: 150px;
  }

  //for icons
  &.round,
  &.rounded {
    padding: 23px;
    line-height: 1;
  }
}

/* media elements */
.media > img {
  display: block;
}

.media-body {
  h3, h4 {
    line-height: 1;
    margin-top: 0.3em;
    margin-bottom: 0.2em;
  }

  * + &,
  & + * {
    margin-left: 20px;
    h5{
      margin-bottom: 7px;
    }
    .small-text{
      margin-bottom: 5px;
    }
  }
}

//for media component inside table - for dashboard
td .media-body {
  width: auto;
}

// our custom video placeholser
.embed-responsive-3by2 {
  //height property removed in v4
  height: 0;
  padding-bottom: 66.666%;
  background-color: #000;
}

.embed-placeholder {
  &:after {
    content: '';
    transition: all 0.3s ease-in-out;
    position: absolute;
    width: 60px;
    height: 60px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: url("../images/play_3.png") no-repeat center / contain;
  }
  &:hover:after {
    opacity: 0.4;
  }
}

.alert {
  border-radius: 0;
  border-width: 0 0 0 4px;
  padding: 30px;
  margin-bottom: 40px;
}

.mark, mark {
  color: $colorMain;
  background: none;
}

button.close {
  min-width: 0;
}

/* small in headings */
.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small {
  color: inherit;
  font-weight: 300;
}

/* labels */
.label-success {
  color: $lightColor;
  background-color: $colorSuccess;
}

.label-info {
  color: $lightColor;
  background-color: $colorInfo;
}

.label-warning {
  color: $lightColor;
  background-color: $colorWarning;
}

.label-danger {
  color: $lightColor;
  background-color: $colorDanger;
}

/*
progressbar*/
.progress {
  height: 4px;
  border-radius: 1px;
  position: relative;
  overflow: visible;
  margin-bottom: 23px;
  span{
    position: absolute;
    right: 0;
    top: -39px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    color: $darkgreyColor;
  }
  & + & {
    margin-top: 10px;
  }
  [data-transitiongoal] {
    width: 0;
  }
  .progress-bar {
    transition: width 0.5s ease 0.2s;
  }

  &.donate-progress{
    .progress-bar{
      position: relative;
      span{
        position: absolute;
        display: inline-block;
        padding: 5px;
        border: 2px solid $colorMain2;
        line-height: 1;
        right: 0;
        transform: translateX(50%);
        &::before{
          content: '';
          position: absolute;
          border: 3px solid transparent;
          border-top: 3px solid $colorMain2;
          top: calc(100% + 2px);
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }

}

.donate-progress-value{
  display: flex;
  justify-content: space-between;
  & > span{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .title{
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
  }
  .value{
    color: $darkgreyColor;
    line-height: 1;
  }
}

.donate-single{
  .donate-progress-value{
    @media (min-width: 992px) {
      .title{
        font-size: 16px;
      }
      & > span{
        & > span:last-child{
          font-size: 30px;
          font-weight: bold;
          color: $darkgreyColor;
        }
      }
    }
  }

  .donate-form{
    padding: 60px;
    @media (max-width: 1199px) {
      padding: 40px;
    }
    @media (max-width: 767px) {
      padding: 40px 20px;
    }
  }

  .total-wrap{
    min-width: 200px;
    text-align: center;
    background-color: $lightColor;
    min-height: 40px;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 5px 10px;
    span{
      &:first-child{
        color: $darkgreyColor;
        font-weight: 500;
        margin-right: 5px;
      }
    }
    & + .btn{
      margin-bottom: 0;
    }
  }
}



.progress-title{
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: $darkgreyColor;
}
.progress{
  background-color: #f4f4f5;
}