.title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  display: inline;
  float: center;
  padding: 8px 12px 8px 12px;
  font-size: 20px;
}

.lead {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 20px;
}

.page-header {
  padding-bottom: 20px !important;
}

@media screen and (max-width: 450px) {
  .lead {
    margin-bottom: 3px;
  }
}

/*###################################*/

#residences .row {
  margin-bottom: 4vh;
}

.residence {
  padding: 0;
  border: 15px solid #fdfdfd;
}

.box {
  background-color: #ededed;
  -webkit-transition: transform 0.3s ease; /* Safari */
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  border-radius: 10px;
}

.box:hover {
  -moz-transform: scale(1.025);
  -o-transform: scale(1.025);
  -ms-transform: scale(1.025);
  -webkit-transform: scale(1.025);
}

.residence a {
  text-decoration: none;
}

.apartment-btn {
  border-radius: 99px;
  font-size: 22px;
  text-shadow: none;
  font-family: "Open Sans", sans-serif;
  color: white !important;
  border: none;
  padding: 8px 25px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 30px;
}

.btn {
  transition: all 0.3s;
}

.btn-success {
  background-color: #74bd47;
}

.btn-success:hover {
  background-color: #569929;
}

.btn-row {
  margin: 0;
}

.btn-success:focus {
  outline: none !important;
}

.btn-success:hover {
  box-shadow: 0px 0px 15px rgba(217, 217, 217, 0.5);
}

.image-div {
  height: 300px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.residence p,
.residence h3 {
  opacity: 1 !important;
  color: #000;
  margin: 0;
}

.residence h3 {
  padding: 25px 0 0 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 27px;
}

.residence p {
  padding: 5px 30px 15px 30px;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 19px;
}

@media screen and (max-width: 768px) {
  #residences .row {
    margin-bottom: 3vh;
  }

  .box:hover {
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .residence h3 {
    font-size: 27px;
  }
  .apartment-btn {
    margin-bottom: 20px;
  }
  .residence {
    padding: 0;
    border: 30px solid #fdfdfd;
  }
}

#content {
  padding-bottom: 7vh;
}

#content .card {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  border: none;
}

#content h3 {
  font-weight: 400;
  color: #555;
  font-size: 26px;
  margin-top: 8px;

  padding: 0.75rem 2rem;
}

.custom-card:hover,
.custom-card h3:hover {
  color: #337ab7 !important;
}

.card-header[aria-expanded="true"] i,
.card-header[aria-expanded="true"] h3 {
  color: #337ab7 !important;
}

.custom-card {
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 0;
}

.card-body {
  padding-left: 2em;
  padding-top: 0.25em;
}

#content i {
  margin: 0 0 0 20px;
  min-width: 30px;
  min-height: 30px;
  background: 0 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 22px;
}

.card-header[aria-expanded="true"] i {
  background: rgba(0, 102, 255, 0.05);
  border-radius: 99px;
  transform: rotate(180deg);
}

#content p {
  color: #141414;
  font-weight: 300;
  font-size: 17px;
}

@media screen and (max-width: 500px) {
  .image-div {
    height: 40vh;
  }

  .residence h3 {
    padding: 10px 0 0 0;
  }

  .residence p {
    padding: 5px 25px 10px 25px;
  }
}

.item {
  background-color: red;
}

/*##################################*/
.ribbon {
  position: absolute;
  left: -5px;
  top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 120px;
  height: 120px;
  text-align: right;
}
.ribbon span {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 30px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  width: 150px;
  display: block;
  background: #79a70a;
  background: linear-gradient(#f70505 0%, #d40000 100%);
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
  position: absolute;
  top: 29px;
  left: -31px;
}
.ribbon span::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid #d40000;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #d40000;
}
.ribbon span::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid transparent;
  border-right: 3px solid #d40000;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #d40000;
}
