@keyframes shake-card {
  0% {
    -webkit-transform: translate(1px, 1px) rotate(0deg);
    transform: translate(1px, 1px) rotate(0deg); }
  10% {
    -webkit-transform: translate(-1px, -2px) rotate(-1deg);
    transform: translate(-1px, -2px) rotate(-1deg); }
  20% {
    -webkit-transform: translate(-3px, 0px) rotate(1deg);
    transform: translate(-3px, 0px) rotate(1deg); }
  30% {
    -webkit-transform: translate(3px, 2px) rotate(0deg);
    transform: translate(3px, 2px) rotate(0deg); }
  40% {
    -webkit-transform: translate(1px, -1px) rotate(1deg);
    transform: translate(1px, -1px) rotate(1deg); }
  50% {
    -webkit-transform: translate(-1px, 2px) rotate(-1deg);
    transform: translate(-1px, 2px) rotate(-1deg); }
  60% {
    -webkit-transform: translate(-3px, 1px) rotate(0deg);
    transform: translate(-3px, 1px) rotate(0deg); }
  70% {
    -webkit-transform: translate(3px, 1px) rotate(-1deg);
    transform: translate(3px, 1px) rotate(-1deg); }
  80% {
    -webkit-transform: translate(-1px, -1px) rotate(1deg);
    transform: translate(-1px, -1px) rotate(1deg); }
  90% {
    -webkit-transform: translate(1px, 2px) rotate(0deg);
    transform: translate(1px, 2px) rotate(0deg); }
  100% {
    -webkit-transform: translate(1px, -2px) rotate(-1deg);
    transform: translate(1px, -2px) rotate(-1deg); } 
}

#habit-coaching-page h2 {
  margin-bottom: 20px;
}
#habit-coaching-page img.img-responsive {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

#habit-coaching-page #habits-header {
  background-image: url("https://file.trainerize.com/assets/tz/habit-coaching/images/habits-bg-xs.svg");
  width: 100%;
  height: 1280px;
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat; 
}
#habit-coaching-page #habits-header.container {
  max-width: none; 
}
#habit-coaching-page #habits-header h1 {
  margin: 0 auto;
  margin-top: 35px;
  position: relative;
  z-index: 2; 
}
#habit-coaching-page #habits-header img#running-guy {
  position: relative;
  z-index: 1; 
}
#habit-coaching-page #habits-header h2 {
  margin-top: 50px; 
}
#habit-coaching-page #habits-header img#phone {
  margin-top: 20px;
  max-width: none; 
  width: auto; 
}
#habit-coaching-page #habits-header p.intro-paragraph {
  position: relative;
  top: 10px;
  z-index: 2; 
}

#habit-coaching-page .category-section {
  height: 300px;
  margin-bottom: 30px;
  margin-top: 100px; 
}
#habit-coaching-page h3.card-title {
  font-size: 20px;
  line-height: 26px;
  margin: 32px 0 0 0; 
}

#habit-coaching-page a.category-button {
  margin: 0 10px 15px 0;
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  line-height: 19px;
  display: inline-block; 
}
#habit-coaching-page a.category-button:hover {
  text-decoration: none;
  color: var(--color-primary);
}
#habit-coaching-page a.category-button.selected {
color: var(--color-white); 
}
#habit-coaching-page a.category-button.selected[data-category="all"] {
  background-color: var(--color-secondary); 
}
#habit-coaching-page a.category-button.selected[data-category="active-lifestyle"] {
  background-color: #1cb2ff; 
}
#habit-coaching-page a.category-button.selected[data-category="nutrition"] {
  background-color: #1ec5cb; 
}
#habit-coaching-page a.category-button.selected[data-category="sleep"] {
  background-color: #ffc670; 
}
#habit-coaching-page a.category-button.selected[data-category="mindfulness"] {
  background-color: #f56555; 
}
#habit-coaching-page div.card[data-category="active-lifestyle"] a.button.card-read-more {
  background-color: #1cb2ff; 
}
#habit-coaching-page div.card[data-category="nutrition"] a.button.card-read-more {
  background-color: #1ec5cb; 
}
#habit-coaching-page div.card[data-category="sleep"] a.button.card-read-more {
  background-color: #ffc670; 
}
#habit-coaching-page div.card[data-category="mindfulness"] a.button.card-read-more {
  background-color: #f56555; 
}

#habit-coaching-page div.card {
  margin-top: 32px;
  padding: 80px 20px 20px 20px;
  border-radius: 15px;
  text-align: left;
  overflow-y: hidden;
  max-height: 288px;
  opacity: 1;
  -webkit-transition-property: max-height, opacity;
  -o-transition-property: max-height, opacity;
  transition-property: max-height, opacity;
  -webkit-transition-duration: 1s, 1.5s;
  -o-transition-duration: 1s, 1.5s;
  transition-duration: 1s, 1.5s;
}

#habit-coaching-page div.card .card-icon img {
  height: 100px;
}
#habit-coaching-page div.card a.button.card-read-more {
  padding: 5px 15px 4px 15px;
  border-radius: 15px;
  border: none;
  font-size: 12px;
  display: inline-block;
}
#habit-coaching-page div.card a.button.card-read-more:hover {
  text-decoration: none;
}
#habit-coaching-page div.card a.button.card-read-more .tz-icon-star {
  fill: var(--color-white);
  height: 12px;
  width: 12px;
  margin: 0 0 -2px 5px;
}
#habit-coaching-page div.card p.card-text {
  margin: 20px 0 24px 0;
}
#habit-coaching-page div.card p, #habit-coaching-page div.card a.button.card-read-more {
  opacity: 0;
  -webkit-transition: opacity 0.8s;
  -o-transition: opacity 0.8s;
  transition: opacity 0.8s;
}
#habit-coaching-page div.card:hover {
  cursor: pointer;
}
#habit-coaching-page div.card.selected {
  max-height: 800px;
  height: auto;
}
#habit-coaching-page div.card.selected p, #habit-coaching-page div.card.selected a.button.card-read-more {
  opacity: 1;
}
#habit-coaching-page div.card.shake-card {
  -webkit-animation: shake-card 0.7s;
  animation: shake-card 0.7s;
}
#habit-coaching-page div.card.first-time-shake {
  -webkit-animation: shake-card 0.7s;
  animation: shake-card 0.7s;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
}
#habit-coaching-page div.card.not-seen {
  opacity: 0;
}
#habit-coaching-page div.card.slick-slide {
  margin: 0 10px;
}
#habit-coaching-page .row.cards.visible-xs {
  margin-top: 35px;
  margin-bottom: 90px;
}
#habit-coaching-page .row.cards .cards-display {
  opacity: 0;
  -webkit-transition: opacity 1.5s;
  -o-transition: opacity 1.5s;
  transition: opacity 1.5s;
}
#habit-coaching-page .row.cards .loader {
  display: block;
}
#habit-coaching-page .row.cards.loaded .loader {
  display: none;
}
#habit-coaching-page .row.cards.loaded .cards-display {
  opacity: 1;
}
#habit-coaching-page .row.cards .slick-track {
  left: -28% !important;
}

#habit-coaching-page .subscribe-section {
  position: relative;
  bottom: -45px;
  padding-bottom: 80px;
  padding-top: 45px;
  border: dashed 7px var(--color-white);
  border-radius: 50px;
  background-color: rgba(var(--color-white-rgb), 0.5);
}
#habit-coaching-page .subscribe-section h2 {
  margin-top: 30px;
}

#habit-coaching-page .subscribe-section .col-xs-12.subscribe-col {
  display: flex;
  justify-content: center;
}
#habit-coaching-page .subscribe-section .tz-input-with-btn {
  max-width: 460px;
  padding-right: 20px;
}

#habit-coaching-page .pre-footer {
position: relative;
z-index: 2;
height: 195px;
width: 100%;
display: flex;
align-items: center;
}
#habit-coaching-page .pre-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

@media screen and (min-width: 445px) {
  #habit-coaching-page .category-section {
    height: 240px; } 
}

@media screen and (min-width: 522px) {
  #habit-coaching-page .category-section {
    height: 200px; } 
}

@media screen and (min-width: 608px) {
  #habit-coaching-page .category-section {
    height: 140px; } 
}

@media screen and (min-width: 768px) {
  #habit-coaching-page #habits-header {
    background-image: url("https://file.trainerize.com/assets/tz/habit-coaching/images/habits-bg.svg");
    height: 530px;
  }
  #habit-coaching-page #habits-header .row {
    padding-top: 65px;
  }
  #habit-coaching-page #habits-header img#running-guy {
    top: 0;
  }
  #habit-coaching-page #habits-header .limit-on-lg {
    max-width: 395px;
  }
  #habit-coaching-page #habits-header h1 {
    margin-bottom: 20px;
  }
  #habit-coaching-page #habits-header p.intro-paragraph {
    top: 0;
  }
  #habit-coaching-page #habits-header .phone-container {
    position: relative;
  }
  #habit-coaching-page #habits-header img#phone {
    margin: 0;
    position: absolute;
    top: 30px;
  }
  #habit-coaching-page .category-section {
    height: 150px;
  }
  #habit-coaching-page .filter-category-buttons {
    text-align: center;
  }
  #habit-coaching-page h2.category-title {
    text-align: center;
  }
  #habit-coaching-page p.category-description {
    text-align: center;
  }
  #habit-coaching-page .col-sm-0 {
    position: relative;
  }
  #habit-coaching-page .subscribe-section {
    padding-bottom: 55px;
    padding-top: 60px;
    margin-top: 120px;
    margin-bottom: 65px;
    bottom: 0;
    width: 100%;
  }
  #habit-coaching-page .subscribe-section .subscribe-content {
    width: 56%;
    padding-left: 56px;
  }
  #habit-coaching-page .subscribe-section .tz-input-with-btn {
    width: 100%;
    height: 48px; }
  #habit-coaching-page img#yoga-girl {
    position: absolute;
    max-width: 324px;
    top: 190px;
    right: 10px;
  }
}

@media screen and (min-width: 992px) {
  #habit-coaching-page .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  #habit-coaching-page #habits-header {
    height: 856px;
  }
  #habit-coaching-page #habits-header .row {
    padding-top: 80px;
  }
  #habit-coaching-page #habits-header h1 {
    margin-top: 50px;
    margin-bottom: 32px;
  }
  #habit-coaching-page #habits-header h2 {
    margin-top: 60px;
  }
  #habit-coaching-page #habits-header img#running-guy {
    max-width: 570px;
    width: auto;
    left: 20px;
  }
  #habit-coaching-page #habits-header img#phone {
    top: 10px;
  }
  #habit-coaching-page #habits-header h1 {
    font-size: 58px;
    line-height: 64px;
  }

  #habit-coaching-page .category-section {
    margin-top: 130px;
    height: 180px;
  }
  #habit-coaching-page h3.card-title {
    font-size: 18px;
    line-height: 26px;
  }

  #habit-coaching-page .subscribe-section {
    left: -50px;
    padding-top: 37px;
    padding-bottom: 71px;
    margin-bottom: 121px;
    margin-top: 191px;
  }
  #habit-coaching-page .subscribe-section .tz-input-with-btn {
    width: 90%;
  }
  #habit-coaching-page .subscribe-section .subscribe-content {
    width: 465px;
  }
  #habit-coaching-page .subscribe-section p {
    width: 365px;
    padding-bottom:20px;
  }
  #habit-coaching-page img#yoga-girl {
    width: 486px;
    max-width: 486px;
    top: 170px;
    right: 25px;
  }
  #habit-coaching-page .pre-footer {
    height: 265px;
  }
  #habit-coaching-page .pre-footer p {
    font-size: 22px;
    line-height: 36px;
  }

}
@media screen and (min-width: 1200px) {
  #habit-coaching-page .row {
    margin-left: 50px;
    margin-right: 50px; 
  }
  #habit-coaching-page #habits-header img#phone {
    top: -50px;
  }
  #habit-coaching-page #habits-header .limit-on-lg {
    max-width: 480px;
  }
  #habit-coaching-page .category-section {
    margin-top: 200px;
  }
  #habit-coaching-page .subscribe-section .tz-input-with-btn {
    width: 110%;
  }
}

@media screen and (min-width: 1391px) {
  #habit-coaching-page #habits-header img#phone {
    top: -120px;
  }
  #habit-coaching-page .category-section {
    margin-top: 250px;
  }
}
