.speciality-component {
  background-image:  url("../images/popup-background-full.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-top: 100px;
  height: 1000px;
  margin-bottom: 115px;
}
.speciality-component .col-sm-6 {
  width: 49%;
  display: inline-block;
}
.speciality-component .col-sm-4 {
  width: 32.33333333%;
  display: inline-block;
}
.speciality-component .col-sm-3 {
  width: 24%;
  display: inline-block;
}
.container.popup-contain {
  width: 94%;
  margin: 0 auto;
}
.speciality-bg {
  background-color: rgba(0, 0, 0, 0.25);
}
.speciality-component .aligmnent{
   display: inline-block;
   width: 150px;
   text-align: center;
   line-height: 20px;
   margin-left: 128px;
   position: relative;
}
.speciality-component .aligmnent button {
  background: transparent;
  border: none;
  width: 135px;
  text-align: left;
  height: 151px;
}
.speciality-component .aligmnent img {
  width: 135px;
  height: 135px;
  border: 8px solid #e2f2f7;
  border-radius: 50%;
}
.speciality-component .aligmnent p {
  color: #0b86c8;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 20px;
  font-size: 17px;
  font-family: 'PFHighwaySansPro-Bold', sans-serif;
  width: 106%;
}
.popup {
  position: fixed;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  margin: auto;
  width: 814px;
  height: 535px;
  z-index: 9;
  background-color: rgba(18, 72, 146, 0.85);
}

.orthopedist.aligmnent .popup{
  height: 570px;
}
  
.cancel {
  cursor: pointer;
  float: right;
  height: 47px;
  width: 45px;
}


.emergency-provider {
  left: 129px;
  top: -5px;
}
.genetic-councellors {
  top: -10px;
  left: -14px;
}
.mental-health {
  right: 42px;
  top: -6px;
}
.dentist {
  right: 28px;
  top: -72px;
}
.rheumatologist {
  right: 36px;
  top: 15px;
}
.endocrinologist {
  left: 123px;
}
.caregiver {
  right: 29px;
}
.physician {
  right: 148px;
  top: 0px;
}
.orthopedist {
  right: 302px;
}
.palliative{
right: 78px;
top: -51px;
}
.pulmonologist {
  top: 70px;
  left: -24px;
}
.cardiologist {
  left: 0;
  top: -48px;
}
.audiologist {
  top: -16px;
  left: 55px;
}
.therapist {
  right: 30px;
  top: 101px;
}
.anesthesiologist {
  top: -21px;
  right: 126px;
}
/* Popup CSS starts here */
.text-panel {
  background: linear-gradient(90deg,#fff 0,#28b8ce 100%);
  text-align: center;
  padding-top: 100px;
  padding-bottom: 20px;
  position: relative;
  width: 85%;
  margin: 0 auto;
}
.speciality-component .aligmnent .icon-panel .cancel img {
  width: 40px;
  height: 40px;
  border: none;
  z-index: 9;
  position: relative;
  top: 63px;
  margin: 39px auto -221px;
  left: -68px;
}
.speciality-component .aligmnent .icon-panel img {
  height: 180px;
  z-index: 9;
  border: none;
  margin: 38px auto -87px;
  width: 180px;
  position: relative;
  left: 33px;
}
.speciality-component .aligmnent .text-panel h1 {
  color: #0087cc;
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 0;
  font-family: 'PFHighwaySansPro-Bold', sans-serif;
  letter-spacing: 0.6px;
}
.speciality-component .aligmnent .text-panel h6 {
  color: #003770;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 20px;
  font-family: 'PFHighwaySansPro-Medium', sans-serif;
  letter-spacing: 0.3px;
}
.speciality-component .aligmnent .text-panel h6 span {
  font-weight: 400;
  display: block;
  font-family: 'PFHighwaySansPro-Regular', sans-serif;
}
.speciality-component .aligmnent .text-panel p {
  font-family: 'PFHighwaySansPro-Regular', sans-serif;
  color: rgb(3, 58, 82);
  font-size: 15px;
  line-height: 17px;
  font-weight: 400;
  width: 86%;
  margin: 0 auto;
  margin-bottom: 60px;
}
.speciality-component .aligmnent .text-panel h5 {
  font-family: 'PFHighwaySansPro-Regular', sans-serif;
  color: rgb(3, 58, 82);
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 0;
  font-weight: 400;
}
.speciality-component .aligmnent .text-panel h5 a {
  text-decoration: none;
  color: rgb(3, 58, 82);
}
.speciality-component .aligmnent .text-panel p sup {
  top: -5px;
}
.speciality-component .aligmnent.rightside p{
  margin-left: 50px;
}
.speciality-component .endocrinologist.aligmnent p {
  margin-left: -75px;
}
.speciality-component .orthopedist.aligmnent p {
  margin-left: 47px;
}
.speciality-component .palliative.aligmnent p {
  margin-left: -45px;
}
.speciality-component .cardiologist.aligmnent p {
  margin-left: 30px;
}
.speciality-component .therapist.aligmnent .margin-top {
  white-space: pre;
  margin-left: -15px;
}
.speciality-component .aligmnent .text-panel p {
  margin-left: auto !important;
}
.speciality-component .aligmnent .text-panel button {
  height: auto;
  width: auto;
}
/* Media Query starts here */
@media (min-width: 1441px) {
  .container.popup-contain {
    width: 1353px;
  }
  .speciality-component {
    background-size: 90% 100%;
  }
}
@media (max-width: 1440px) {
  .speciality-component {
    background-size: 89% 100%;
  }
}
@media (max-width: 1366px) {
  .speciality-component {
    background-size: 90% 100%;
  }
  .container.popup-contain {
    margin-left: 81px;
  }
  .speciality-component .orthopedist.aligmnent p {
    margin-left: 66px;
  }
  .speciality-component .endocrinologist.aligmnent p {
    margin-left: -93px;
  }
}
@media screen and (max-width: 1365px) and (min-width: 1200px) {
  .container.popup-contain {
    margin-left: 0;
    width: 1200px;
  }
  .speciality-component {
    background-size: 89% 100%;
    height: 844px;
  }
  .speciality-component .aligmnent img {
    width: 100px;
    height: 100px;
  }
  .speciality-component .aligmnent button {
    height: 115px;
  }
}
@media (max-width: 1199px) {
  .speciality-component {
    height: 741px;
  }
  .speciality-component .aligmnent img {
    width: 90px;
    height: 90px;
  }
  .speciality-component .aligmnent p {
    font-size: 13px;
  }
  .speciality-component .aligmnent {
    margin-left: 125px;
    width: 135px;
  }
  .speciality-component .aligmnent button {
    background: transparent;
    border: none;
    width: 110px;
    text-align: left;
    height: 100px;
  }
  .speciality-component .aligmnent.rightside p {
    margin-left: 3px;
  }
  .speciality-component .endocrinologist.aligmnent p {
    margin-left: 0px;
  }
  .speciality-component .orthopedist.aligmnent p {
    margin-left: 0;
  }
  .speciality-component .palliative.aligmnent p {
    margin-left: 0;
  }
  .speciality-component .cardiologist.aligmnent p {
    margin-left: 13px;
  }
  .speciality-component .palliative.aligmnent .text-panel p {
    margin-left: auto;
  }

  .dentist {
    right: 45px;
    top: -63px;
  }
  .endocrinologist {
    left: 100px;
  }
  .orthopedist {
    right: 270px;
  }
  .pulmonologist {
    top: 64px;
    left: -34px;
  }
  .palliative {
    right: 72px;
    top: 24px;
  }
  .audiologist {
    top: 11px;
    left: 46px;
  }
  .pulmonologist {
    top: 64px;
    left: -34px;
  }
  .therapist {
    right: 32px;
    top: 101px;
  }
  .anesthesiologist {
    top: -12px;
    right: 129px;
  }
  .cardiologist {
    left: -14px;
    top: -16px;
  }
}

@media (max-width: 1130px) {
  .dentist {
    right: 50px;
    top: -63px;
  }
  .endocrinologist {
    left: 80px;
  }
  .caregiver {
    right: 46px;
  }
  .physician {
    right: 130px;
    top: 0px;
  }
  .orthopedist {
    right: 262px;
  }
  .speciality-component .therapist.aligmnent .margin-top {
    white-space: normal;
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .speciality-component {
    height: 600px;
  }
  .speciality-component .aligmnent {
    margin-left: 55px;
    width: 135px;
  }
  .speciality-component .aligmnent button {
    background: transparent;
    border: none;
    width: 75px;
    text-align: left;
    height: 70px;
  }
  .speciality-component .aligmnent img {
    width: 70px;
    height: 70px;
  }
  .speciality-component {
    height: 560px;
  }

  .speciality-component .aligmnent p {
    font-size: 10px;
    line-height: 16px;
  }
  .emergency-provider {
    left: 125px;
    top: -22px;
  }
  .mental-health {
    right: 28px;
    top: -2px;
  }
  .genetic-councellors {
    top: -10px;
    left: -14px;
  }

  .dentist {
    right: 16px;
    top: -55px;
  }
  .rheumatologist {
    right: 24px;
    top: 0px;
  }
  .endocrinologist {
    left: 62px;
    top: 0px;
  }
  .caregiver {
    right: 32px;
    top: 2px;
  }
  .physician {
    right: 72px;
    top: 0px;
  }
  .orthopedist {
    right: 178px;
    top: 0px;
  }
  .palliative {
    right: 45px;
    top: 25px;
  }
  .audiologist {
    top: 34px;
    left: 58px;
  }
  .pulmonologist {
    top: 44px;
    left: -18px;
  }
  .therapist {
    right: 20px;
    top: 65px;
  }
  .anesthesiologist {
    top: 8px;
    right: 105px;
  }
  .cardiologist {
    left: -20px;
    top: 0px;
  }
}
@media (max-width: 850px) {
  .speciality-component .popup {
    width: 100%;
  }
  .speciality-component .text-panel {
    width: 95%;
  }
  .speciality-component .aligmnent .icon-panel .cancel img {
    width: 30px;
    height: 30px;
    top: 61px;
    left: -20px;
  }
  .speciality-component .aligmnent img {
    border: 2px solid #e2f2f7;
  }
  .container.popup-contain {
    margin-left: 54px;
  }
  .dentist {
    right: 22px;
    top: -55px;
  }
  .rheumatologist {
    right: 30px;
    top: 0px;
  }
  .endocrinologist {
    left: 62px;
    top: 0px;
  }
  .caregiver {
    right: 24px;
    top: 2px;
  }
  .physician {
    right: 90px;
    top: 0px;
  }
  .orthopedist {
    right: 178px;
    top: 0px;
  }
  .palliative {
    right: 45px;
    top: 25px;
  }
  .audiologist {
    top: 34px;
    left: 58px;
  }
  .pulmonologist {
    top: 44px;
    left: -18px;
  }
  .therapist {
    right: 20px;
    top: 65px;
  }
  .anesthesiologist {
    top: 8px;
    right: 105px;
  }
  .cardiologist {
    left: -20px;
    top: 0px;
  }
  .speciality-component .aligmnent p {
    width: auto;
    font-family: 'PFHighwaySansPro-Regular', sans-serif;
  }
}
@media (max-width: 767px) {
  .speciality-component {
    height: 420px;
  }
  .speciality-component .aligmnent {
    margin-left: 55px;
    width: 85px;
  }
  .speciality-component .aligmnent p {
    font-size: 9px;
    line-height: 12px;
  }
  .speciality-component .aligmnent img {
    width: 45px;
    height: 45px;
  }
  .speciality-component .aligmnent button {
    background: transparent;
    border: none;
    width: 55px;
    text-align: left;
    height: 50px;
  }

  .emergency-provider {
    left: 73px;
    top: -14px;
  }

  .endocrinologist {
    left: 38px;
    top: 10px;
  }
  .orthopedist {
    right: 130px;
    top: 10px;
  }
  .physician {
    right: 70px;
    top: 10px;
  }
  .caregiver {
    right: 17px;
    top: 10px;
  }
  .therapist {
    right: 16px;
    top: 75px;
  }
  .pulmonologist {
    top: 42px;
    left: -16px;
  }
  .dentist {
    right: 20px;
    top: -25px;
  }
  .palliative {
    right: 21px;
    top: 58px;
  }
  .audiologist {
    top: 44px;
    left: 53px;
  }
  .anesthesiologist {
    top: 28px;
    right: 92px;
  }
  .cardiologist {
    left: -24px;
    top: 32px;
  }
}
@media (max-width: 767px) {
  .speciality-component .aligmnent .text-panel br {
    display: none;
  }
  .speciality-component {
    margin-top: 61px;
  }
}
@media (max-width: 670px) {
  .container.popup-contain {
    margin-left: 40px;
  }
}
@media (max-width: 575px) {
  .speciality-component .aligmnent {
    margin-left: 0px;
    width: 85px;
  }
  .speciality-component .aligmnent button {
    background: transparent;
    border: none;
    width: 45px;
    text-align: left;
    height: 35px;
  }
  .speciality-component .aligmnent img {
    width: 45px;
    height: 45px;
  }
  .speciality-component .aligmnent p {
    font-size: 8px;
    line-height: 12px;
  }
  .speciality-component {
    height: 310px;
    /* height: 260px; */
  }
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-sm-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-sm-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .speciality-component {
    height: 310px;
    /* height: 260px; */
  }
  .emergency-provider {
    left: 80px;
    top: -24px;
  }
  .genetic-councellors {
    top: -26px;
    left: 8px;
  }
  .rheumatologist {
    right: -9px;
    top: -20px;
  }
  .cardiologist {
    left: 5px;
    top: -38px;
  }
  .anesthesiologist {
    top: -68px;
    right: 46px;
  }
  .therapist {
    right: -10px;
    top: -32px;
  }
  .audiologist {
    top: -57px;
    left: 64px;
  }
  .palliative {
    right: -9px;
    top: -22px;
  }
  .mental-health {
    right: -10px;
    top: -32px;
  }
  .dentist {
    right: -8px;
    top: -52px;
  }
  .physician {
    right: 23px;
    top: -40px;
  }
  .orthopedist {
    right: 74px;
    top: -40px;
  }
  .pulmonologist {
    top: -44px;
    left: 9px;
  }
  .caregiver {
    right: -8px;
    top: -40px;
  }
  .endocrinologist {
    left: 57px;
    top: -40px;
  }
  .speciality-component .aligmnent p.margin-top {
    margin-top: 10px;
  }
  /* Added code for cancel button */
  .speciality-component .aligmnent .icon-panel .cancel img {
    left: -10px;
  }
}


@media screen and (max-width: 1199px) and (min-width: 992px) {
  .container.popup-contain {
    width: 1020px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 991px) and (min-width: 768px) {
  .container.popup-contain {
    width: 760px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 767px) and (min-width: 565px) {
  .container.popup-contain {
    width: 564px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 575px) {
  .container.popup-contain {
    width: 420px;
    margin: 0 auto;
  }
  .speciality-component p.left_align {
    margin-left: -55px !important;
  }
  .speciality-component p.right_align {
    margin-left: 40px !important;
  }
  .speciality-component .aligmnent .text-panel h1 {
    font-size: 18px;
  }
}
@media screen and (max-width: 428px) {
.speciality-component .text-panel {
  width: 94%;
  margin-left: 13px;
  margin-right: 10px;
}
.orthopedist.aligmnent .popup{
  height: 78vh;
}
.speciality-component .popup {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100vw;
  height: 77vh;
}
.speciality-component .dentist.aligmnent p {
  margin-left: -12px;
}
.speciality-component .emergency-provider.aligmnent p {
  margin-left: -12px;
}
}
@media screen and (max-width: 412px) {
  .speciality-component .text-panel {
    width: 94%;
    margin-left: 8px;
    margin-right: 10px;
  }
}
@media screen and (max-width: 390px) {
.speciality-component .text-panel {
  width: 94%;
  margin-left: 10px;
  margin-right: 10px;
 }
 .speciality-component .aligmnent .icon-panel .cancel img {
  left: -37px;
 }
}
@media screen and (max-width: 376px) {
  .container.popup-contain {
    width: 320px;
    margin: 0 auto;
  }
  .speciality-component {
    background-size: 100% 86%;
  }
  .speciality-component .aligmnent img {
    width: 35px;
    height: 35px;
  }
  .speciality-component p.left_align {
    margin-left: -86px !important;
  }
  .speciality-component p.right_align {
    margin-left: 40px !important;
  }

  .emergency-provider {
    left: 68px;
    top: -24px;
  }
  .genetic-councellors {
    top: -22px;
    left: 16px;
  }
  .dentist {
    right: -16px;
    top: -52px;
  }
  .mental-health {
    right: -7px;
    top: -32px;
  }
  .rheumatologist {
    right: -21px;
    top: -32px;
  }
  .endocrinologist {
    left: 48px;
    top: -40px;
  }
  .caregiver {
    right: -16px;
    top: -40px;
  }
  .physician {
    right: 10px;
    top: -40px;
  }
  .orthopedist {
    right: 48px;
    top: -40px;
  }
  .palliative {
    right: -9px;
    top: -17px;
  }
  .audiologist {
    top: -47px;
    left: 60px;
  }
  .therapist {
    right: -16px;
    top: -32px;
  }
  .pulmonologist {
    top: -44px;
    left: 16px;
  }
  .anesthesiologist {
    top: -60px;
    right: 26px;
  }
  .cardiologist {
    left: 23px;
    top: -38px;
  }
  .speciality-component .aligmnent p.margin-top {
    margin-top: 5px;
    position: relative;
    top: -7px;
  }
  .speciality-component .palliative.aligmnent p {
    margin-left: -30px;
  }
  .speciality-component .audiologist.aligmnent p {
    margin-left: -18px;
  }
  .speciality-component .caregiver.aligmnent p {
    margin-left: -24px;
  }
  .speciality-component .mental-health.aligmnent p {
    margin-left: -24px;
  }
  .speciality-component .cardiologist.aligmnent p {
    margin-left: 21px;
  }
  .speciality-component .text-panel {
    width: 90%;
    margin-left: 19px;
  }
  .speciality-component .aligmnent .icon-panel .cancel img {
    left: -17px;
  }
}