/* CSS Animations for sliding */
@font-face {
  font-family: "Poppins-Regular";
  src: url(/assets/fonts/Poppins-Regular.ttf);
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url(/assets/fonts/Poppins-SemiBold.ttf);
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li, a {
  font-family: "Poppins-Regular";
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600 !important;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
  font-family: "Poppins-SemiBold";
}

h2 {
  margin-bottom: 25px;
}

input, select {
  text-align: center;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s forwards;
}
.slide-out-left {
  animation: slideOutLeft 0.5s forwards;
}
.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}
.slide-out-right {
  animation: slideOutRight 0.5s forwards;
}

.sohf-slider {
  position: relative;
  overflow: hidden;
}

.renal-risk-checker .sohf-slider {
  height: 880px !important;
}

.hf-risk-checker .sohf-slider {
  height: 760px !important;
}

.diabetes-risk-checker .sohf-slider {
  height: 760px !important;
}

.sohf-slider > .starting,
.sohf-slider > .section-container,
.sohf-slider > .sohf-quiz-end {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Ensure all sections start off at the same level */
}

.RC-tool-nav {
  display: flex;
  justify-content: space-between;
}

.my-25 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-35 {
  margin-top: 35px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-70 {
  margin-top: 70px;
}

.mt-75 {
  margin-top: 75px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mb-45 {
  margin-bottom: 45px;
}

.button {
  padding: 5px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
}

.button-right {
  float: right;
}

.blue-button {
  background-color: #00bbd6;
  color: #fff !important;
}

.red-button {
  background-color: #f53f2a;
  color: #fff !important;
}

.grey-button {
  background-color: #7a7a7a;
  color: #fff !important;
}

.gold-button {
  background-color: #fcb01a;
  color: #fff !important;
}

a.blue-link {
  color: #00bbd6;
}

.text-red, a.red-link, .w-note {
  color: #f53f2a;
}

a.gold-link {
  color: #fcb01a;
}

a.button.selected {
  background-color: #fcb01a;
}

.diabetes-risk-checker a.button.selected {
  background-color: #fcb01a;
}

.hf-risk-checker a.button.selected {
  background-color: #f53f2a;
}

.renal-risk-checker a.button.selected {
  background-color: #00bbd6;
}

.text-teal {
  color: #00bbd6;
}

.text-grey {
  color: #848484;
}

.text-gold {
  color: #fcb01a;
}

.sohf-risk-question-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.sohf-risk-question {
  width: 100%;
  margin-bottom: 15px;
}

.sohf-risk-answers-container {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}

.sohf-a-right {
  margin-left: 10px;
}

select {
  background-color: #ffffff;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 1px solid #282829;
  border-radius: 50px;
  padding: 0 9px;
  font-size: 16px;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: #c6c6c6;
  color: #000;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  font-size: 9px;

  /* Position the tooltip text above the tooltip element */
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Arrow for the tooltip */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Show the tooltip when hovering over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.d-none {
  display: none;
}

@media screen and (min-width: 600px) {

  h2 {
    margin-bottom: 45px;
  }

  .mt-md-75 {
    margin-top: 75px !important;
  }

  .renal-risk-checker .sohf-slider {
    height: 490px !important;
  }
  
  .hf-risk-checker .sohf-slider {
    height: 540px !important;
  }
  
  .diabetes-risk-checker .sohf-slider {
    height: 560px !important;
  }

  .sohf-risk-question {
    width: 75%;
    margin-bottom: inherit;
  }

  .sohf-risk-answers-container {
    width: 25%;
    display: flex;
    justify-content: end;
    align-items: center;
  }

  .sohf-risk-question-container {
    flex-wrap: nowrap;
  }
}