/* General styles*/
body {
  /* isolate space for navbar */
  padding-top: 110px;
}

.section {
  /* remove all the additional padding */
  padding: 0px;
}

/* fix for homepage because of .section above */
.large-header {
  padding: 10px 0px;
}
.how-it-works {
  margin: 0px;
}
/* end fix */

.title-container {
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Home page slider */
.slider-slide {
  padding: 80px 10px;
}

.bxslider > div {
  height: 100%;
}

.bx-wrapper img {
  object-fit: cover;
}

.slider {
  overflow: hidden;
}

/* Home page login menu */

@media (min-width: 768px) {
  #navigation-menu ul > li {
    float: none;
    display: inline-block;
    vertical-align: middle;
  }

  #navigation-menu ul {
    float: none;
    text-align: center;
  }
  #navigation-menu > .navbar-collapse {
    float: none;
  }
  #navigation-menu {
    float: none;
  }
}

.login .dropdown-menu {
  min-width: 250px;
}

nav ul.nav li a.join-now {
  border: 1px solid #e16f50;
  border-radius: 50px;
  color: #f1592a;
  font-weight: 700;
  /* TODO: remove !important once CSS is merged */
  line-height: 19px;
  padding: 10px 10px !important;
}

nav ul.nav li a.join-now:hover {
  background-color: #f1592a;
  color: #fff;
}

button[name="forgotpw"] {
  background: none;
  border: none;
  opacity: 0.5;
  font-weight: 700;
  font-size: 95%;
}

button[name="forgotpw"]:hover {
  opacity: 0.8;
}

/* Center text in menus */
.nav li {
  text-align: center;
}

/* make sure that navigation bar never falls off the screent */
.navbar {
  max-width: 100vw;
  z-index: 10000; /* slider arrows use 9999 */
}

@media (max-width: 767px) {
  /* mobile expansion of the menu */
  .navbar .collapse.in,
  .navbar .collapsing {
    float: left;
    width: 100%;
  }

  html[dir="rtl"] .navbar .collapse.in,
  html[dir="rtl"] .navbar .collapsing {
    float: right;
  }

  /* fix !important in expanded hamburger menu */
  #navbarCollapse.collapse.in li a,
  #navbarCollapse.collapsing li a {
    padding: 5px 0 !important;
  }

  /* remove line breaks in hamburger menu items */
  #navbarCollapse.collapse.in li a br,
  #navbarCollapse.collapse.in li a br:before,
  #navbarCollapse.collapsing li a br,
  #navbarCollapse.collapsing li a br:before {
    content: " ";
  }
}

/* logos */
.navbar .navbar-header {
  display: inline-block;
  height: 70px;
  /* bootstrap make these -15px for xs sizes */
  margin-left: 0;
  margin-right: 0;
}

.navbar-brand img {
  width: 210px;
}

body.shidduchiminlubavitch nav .navbar-header.navbar-main img {
  width: 175px;
}

.navbar-brand-2 img,
.navbar-brand-3 img {
  height: 65px;
}

.nav {
  margin: 0 5px;
}

.navbar a {
  /* fixing original CSS */
  margin: 0 6px;
}

.navbar a.navbar-brand-2 {
  /* fixing original CSS */
  padding: 0 !important;
  display: inline-block;
}

.navbar .navbar-brand-4,
.footer .navbar-brand-4 {
  max-height: 81px;
}

.navbar-alt {
  /* center down main chabadmatch logo in shidduchiminlubavitch */
  margin-top: 15px;
}

body.shidduchiminlubavitch nav .navbar-header.navbar-main img {
  /* smaller logo for shidduchiminlubavitch */
  width: 175px;
}

@media (max-width: 767px) {
  .navbar a.navbar-brand-2,
  .navbar .navbar-brand-4 {
    margin: 0 35px 0 0 !important;
  }

  html[dir="rtl"] .navbar a.navbar-brand-2,
  html[dir="rtl"] .navbar .navbar-brand-4 {
    margin: 0 0 0 35px !important;
  }

  .navbar-collapse:has(.dropdown.lang.open) {
    overflow: visible;
  }

  .navbar-nav .dropdown.lang ul.dropdown-menu {
    width: 100%;
    position: absolute;
    background-color: white;
  }
}

/* Menu language choices */

.nav li.lang a span {
  font-size: 85%;
  background: #6091cc;
  color: white;
  padding: 2px;
  min-width: 70px;
  display: block;
}

.nav li.lang:hover a span {
  background: white;
  color: #f1592a;
}

.nav li.lang li a {
  padding: 10px 0px !important;
}

/* ShidduchimInLubavitch notice */

#parent-notice {
  text-align: center;
}

/* MayanotConnects special header treatment */

.mayanotconnects div.bxslider > div {
  background-position-x: left !important;
}

/* newletter section adjustments */

div.newsletter-section {
  padding: 50px 30px;
  margin-top: 10px;
}

div.large-header {
  margin-bottom: 15px;
}

/* footer */
.footer.social-media {
  padding-top: 0px;
}

.footer div.social {
  margin-top: -15px;
  margin-bottom: 10px;
}

a.footer {
  margin: 0 10px;
}

html[dir="rtl"] a.footer {
  float: right;
}

.footer .navbar-brand {
  margin-left: -15px;
  margin-right: -15px;
  padding: 15px 0 0;
}

/* Search forms */

.action-buttons {
  padding: 0px 15px;
}

.action-buttons input,
.action-buttons button {
  background-color: #3d9f90;
  border-radius: 100px;
  font-family: Cabin, sans-serif;
  font-weight: 700;
  height: 50px;
  letter-spacing: 1px;
  color: #fff;
  border: 0;
  margin-bottom: 5px;
  margin-top: 5px;
  white-space: normal;
}

.seeking-man {
  color: #59c9e3;
  font-weight: 700;
}

.seeking-woman {
  color: #f15a29;
  font-weight: 700;
}

select[multiple] {
  min-height: 6.7em;
}

/* fix for bad styles in language switch link */

a.hebre {
  position: inherit;
  right: auto;
  top: auto;
}

/* fix for bad styles in single display */

html[dir="rtl"] table.rg-table * {
  text-align: right;
}

/* alignment of labels according to language */

.col-md-4.control-label {
  text-align: left;
}

html[dir="rtl"] .col-md-4.control-label {
  text-align: right;
}

/* tables */
table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table td {
  padding: 0.5em;
}

th.text-left {
  text-align: left;
}

.chasin {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chasin table {
  font-size: 85%;
}

/* success stories */
.success > .row {
  padding: 20px 0px;
}

.success > .row:nth-of-type(odd) {
  background-color: #eee;
}

/* User create/update form */

#newform div.container {
  background-color: #f5f5f5;
  padding-top: 20px;
  padding-bottom: 20px;
}

#newform input.form-control,
#newform select.form-control {
  border-radius: 2em;
  border-color: #59c9e3;
}

#newform .form-head h4.title {
  color: #4e4e4e;
  border-bottom: 1px solid #cbcbcb;
  text-align: left;
  padding-bottom: 0px;
  padding-left: 1em;
}

html[dir="rtl"] #newform .form-head h4.title {
  text-align: right;
}

#newform input.action-button {
  margin-top: 0px;
  background: #ff6139;
}

#newform input.action-button:hover {
  background: #3898ec;
  color: white;
}

#newform input.radio-input {
  vertical-align: top;
  margin-top: 5px;
}

#newform .form-group {
  width: 90%;
  margin-left: 5%;
}

#newform .titleworks.profil.picture.delete {
  margin-bottom: 6px; /* fixing weird style */
}

html[dir="rtl"] #newform .form-group {
  /* restore margins and move them around */
  margin-left: -5px;
  margin-right: 5%;
}

.form-group .control-label {
  text-align: left;
}

#newform fieldset,
#newform .choosebutton {
  margin-bottom: 2em;
}

#newform .wrap-radio-btns label {
  font-weight: 400;
}

/* admin checkboxes */
#newform .che1 input {
  margin-right: 10px;
}

#newform .che1 label {
  display: inline;
}

/* Icons in display picture buttons */

.image-button {
  border: 1px solid #b2adaa;
  border-radius: 90px;
  background-color: rgba(81, 70, 63, 0.44);
  color: #fff;
}

.image-button:hover,
.image-button:active {
  border: 1px solid #b2adaa;
  border-radius: 90px;
  background-color: #fff;
  color: rgba(81, 70, 63, 0.44);
}

.glyphicon.icon-flipped {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

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

/* recaptcha styling */
#captcha > div {
  margin: auto;
}

/* Tooltips for fields' help text */

.tooltip-inner {
  background-color: #ace4f1;
  color: #181818;
}

.tooltip.right .tooltip-arrow {
  border-right-color: #ace4f1;
}

/* Menu */

#progress .progress-step input {
  text-align: center;
  background: #f2f2f2;
  border: 1px solid #f2f2f2;
  border-radius: 100px;
  white-space: normal;
  color: #6f6f6f;
  font-family: Cabin, sans-serif;
  padding: 5px 10px;
  flex-grow: 2;
}

#progress .progress-step input.active {
  background-color: #ff6139;
  color: white;
}

#progress .progress-step input:hover {
  background: #3898ec;
  color: white;
}

/* Bubbles on top of menu */

#progress {
  counter-reset: step;
  text-align: center;
  margin: 15px auto;
}

.equal-height {
  display: flex;
  flex-direction: column;
}

#progress .progress-step {
  /* necessary for background lines */
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
}

#progress .progress-step::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  width: 1.4em;
  height: 1.4em;
  margin: 5px auto;
  border-radius: 50%;
  background: #00aecb;
  color: white;
  line-height: 1.4em;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  z-index: 1;
}

/* ShadchanFees/Charges icon styling */
span.glyphicon.glyphicon-usd.fees {
  background: black;
  border: 2px solid black;
  border-radius: 50%;
  color: white;
  font-size: 75%;
  padding: 2px;
}

/* In user display strings */
.rg-table span.glyphicon.glyphicon-usd.fees {
  float: right;
}

.rg-table.bor2 td:first-child {
  width: 40%;
}

.rg-table {
  page-break-inside: auto;
}

/* List page */
.list .girl-list {
  background: url("/images/DSC_7334s.jpg") center;
  padding: 10% 0;
}

.list .shidduch-list {
  padding: 4% 0;
}

/* make text be a little bit more separate from surroundings */
.list .shidduch-list h4 {
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.list .bochurim-list {
  padding: 10% 0;
  background: url("/images/DSC_5497.png") center;
}

.sublist {
  margin-top: 1em;
  margin-bottom: 1em;
}

.sublist > div {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Generic buttons */
.action-btn {
  padding: 1.5em 3em;
  border-radius: 100px;
  border: 1px none #57c9e4;
  background-color: #57c9e4;
  color: #fff;
}

.action-btn:hover {
  border: 1px none #fff;
  background-color: #fff;
  color: #57c9e4;
}

.action-btn-alt {
  padding: 15px 25px;
  border-radius: 100px;
  border: 1px none #e16f50;
  background-color: #e16f50;
  color: #fff;
}

.action-btn-alt:hover {
  border: 1px none #fff;
  background-color: #fff;
  color: #e16f50;
}

/* Only on medium+ screens */
@media (min-width: 700px) {
  .equal-height {
    display: flex;
    flex-direction: row;
  }

  #progress .progress-step {
    display: block;
  }

  /* generate the bars around */
  #progress .progress-step::after {
    content: " ";
    width: 110%;
    left: 50%;
    height: 25%;
    background: #ff6139;
    position: absolute;
    top: 12.5%;
    z-index: -1;
    border-top: 3px solid #00aecb;
    border-bottom: 3px solid #00aecb;
  }

  html[dir="rtl"] #progress .progress-step::after {
    left: -50%;
  }

  #progress .progress-step:last-of-type::after {
    /* hide the overflow of previous ones */
    border-top: 3px solid white;
    border-bottom: 3px solid white;
  }

  #progress .progress-step.active::after,
  #progress .progress-step.active ~ .progress-step::after {
    background-color: white;
  }

  #progress div.progress-step:last-child::after {
    /* Important is bad practice but can't force a higher priority */
    background-color: transparent !important;
    border: none;
  }
}

/* Card display of single profiles */

.card-display {
  display: flex;
  flex-wrap: wrap;
  align-content: stretch;
}

.card-display .panel {
  display: flex;
  width: 100%;
  padding-inline: 0.9em;
  box-shadow: none;
}

@media (min-width: 850px) {
  .card-display .panel {
    width: 50%;
  }
}

@media (min-width: 1260px) {
  .card-display .panel {
    width: 33.33%;
  }
}

@media (min-width: 1700px) {
  .card-display .panel {
    width: 25%;
  }
}

.single-profile > .row {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.single-profile {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  width: 100%;
}

.single-profile .single-profile-image {
  width: 240px;
  aspect-ratio: 1;
  box-sizing: content-box;
  padding: 0px;
  padding-inline-start: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-profile .single-profile-image img {
  aspect-ratio: 1;
  width: 100%;
}

.single-profile-info .single-profile-header {
  padding-top: 10px;
}

.single-profile-info .single-profile-header::before,
.single-profile-info .single-profile-header::after {
  content: none;
}

.single-profile .single-profile-info > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.single-profile .single-profile-data,
.single-profile-info .single-profile-header {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
}

.single-profile.profile-F .single-profile-image {
  color: #b4188e;
  background-color: #b4188e;
}

.single-profile.profile-M .single-profile-image {
  color: #5a91cc;
  background-color: #5a91cc;
}

.single-profile .single-profile-header h4 {
  font-size: 16px;
  line-height: 1.3em;
  min-height: 2.4em;
  color: inherit;
  margin: 0;
}

.single-profile .single-profile-info {
  flex: 1;
  background-color: white;
  min-height: 230px;
  padding-inline: 1em;
  box-sizing: content-box;
}

@media (max-width: 850px) {
  .single-profile .single-profile-image {
    width: 60%;
    aspect-ratio: initial;
  }

  .single-profile .single-profile-info {
    width: 60%;
    min-width: 50px;
    padding-inline: 0.5em;
  }

  .card-display .panel {
    padding-inline: 0;
  }
}

.single-profile .single-profile-header p.single-profile-parents,
.single-profile .single-profile-marital {
  color: #51463f;
  font-size: 10px;
  opacity: 75%;
  line-height: 14px;
  min-height: 3em;
  margin-block: 0;
}

.single-profile .single-profile-data p {
  display: flex;
  align-items: center;
  font-size: 10px;
  line-height: 1em;
  border-radius: 10px;
  color: inherit;
  height: 2.5em;
  margin-bottom: 10px;
  padding-inline-start: 15px;
}

.single-profile .single-profile-data:last-child {
  padding-bottom: 0.5em;
}

.single-profile.profile-F .single-profile-data p {
  background-color: #b4188e40;
}

.single-profile.profile-M .single-profile-data p {
  background-color: #5a91cc40;
}

.single-profile .single-profile-data .glyphicon {
  position: absolute;
  inset-inline-start: 5px;
  padding: 4px;
  border-radius: 50%;
  color: white;
  border: 2px solid;
  width: 22px;
  height: 22px;
}

.single-profile.profile-F .single-profile-data .glyphicon {
  background-color: #b4188e;
}

.single-profile.profile-M .single-profile-data .glyphicon {
  background-color: #5a91cc;
}

.single-profile-image svg {
  height: 100%;
  width: 100%;
  padding: 1em;
  object-fit: cover;
  color: white;
}
