* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-color);
}

body {
  margin: 0;
  display: flex;
  display: -ms-flexbox;
  display: -webkit-box;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  height: 100%;
}

button {
  text-transform: capitalize !important;
}

a {
  color: whitesmoke;
  font-family: Roboto, Regular, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: capitalize;
}

.card-body .card-text {
  font-family: Merriweather, Regular, serif !important;
}

h5, h6 {
  color: black;
}

.content-center-container {
  max-width: 640px;
}

.profile-info small {
  font-family: Roboto, Regular, sans-serif;
  color: grey;
}

.personal-description small {
  font-family: Roboto, Regular, sans-serif;
  color: grey;
}

.biography p {
  font-family: Merriweather, Regular, serif;
}

.biography-content .show-more-button {
    color: black;
    cursor: pointer;
    font-weight: bold;
}

.biography-content .long-text {
    display: none;
}

#stories-intro-text {
  padding-top: 75px;
}

#update-interests-button {
  text-transform: capitalize;
}

#actions {
  margin: 10% 0 10% 0;
}

#actions a {
  height: 100%;
  background-color: white;
  color: black;
  font-family: Merriweather, Regular,   serif;
}

#actions a h6 {
  font-family: Merriweather, Regular, serif;
  margin-top: 10%;
}

.navbar {
  /*box-shadow: 0px 3px 6px #00000029;*/
  /*height: 76px;*/
  /* background-color: var(--navbar-color); */
}

.navbar .logo {
  max-height: 4rem;
}

.full-width-section-colorized {
  background-color: var(--bg-color);
}

.add-interests {
  background-position: center center;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  /* background-repeat: no-repeat; */
  /* background-size: cover; */
  color: #FFF;
}

.add-interests a {
    text-decoration: underline;
}

.add-interests .btn.dropdown-toggle {
  background-color: #FFF;
  border: solid 1px var(--bs-gray-400);
}

.btn-submit,
.btn-submit:hover,
.btn-submit:active {
  background-color: var(--primary-color) !important;
  color: #FFF !important;
}

#admission-login {
  color: var(--login-text-color);
}

#social-icons-institution span {
  margin-right: 15px;
}

#social-icons-institution img {
  filter: brightness(0) saturate(100%) invert(var(--footer-color-filter));
}

.stories-list {
  background: linear-gradient(0deg, #000000b8, #0000009c), var(--stories-list-bg-color);
  background-position: center center;
  background-repeat: repeat;
  /* background-repeat: no-repeat; */
  /* background-size: cover; */
  color: #FFF;
}

.title {
  background-color: var(--secondary-color);
}

.title-white > a {
  color: white;
}

.title small {
  color: var(--text-color-light);
}

.tag {
  border: solid 1px var(--primary-color);
  color: var(--primary-color);
  background: var(--stories-list-bg-color);
  text-transform: capitalize;
  display: inline-block;
  overflow: visible; /* Changed from hidden to show all content */
  text-overflow: clip; /* Changed from ellipsis */
  font-size: 1rem;
  word-wrap: break-word; /* Enable word wrapping */
  word-break: break-word; /* Allow breaking words when necessary */
  hyphens: auto; /* Enable hyphenation for cleaner breaks */
}


.tag.tag-main-match {
  border: solid 1px var(--major-match-color);
  background-color: var(--major-match-color);
  color: white;
}

.tag.tag-secondary-match {
  border: solid 1px var(--major-match-color);
  color: var(--major-match-color);
  text-decoration: underline;
}

.tag.tag-no-match {
  border: solid 1px var(--no-match-color);
  color: var(--no-match-color);
}

.icon-in {
  background: url(../img/icon-in.svg) center center no-repeat;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
  fill: white;
  background-color: white;
}

.icon-fb {
  background: url(../img/icon-fb.svg) center center no-repeat;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
  fill: white;
  background-color: white;
}

.icon-ig {
  background: url(../img/icon-ig.svg) center center no-repeat;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
  fill: white;
  background-color: white;
}

.icon-x {
  background: url(../img/icon-x.svg) center center no-repeat;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
  fill: white;
  background-color: white;
}

.icon-ep {
  background: url(../img/icons/sports/elite_prospects.jpeg) center center no-repeat;
  background-size: 36px;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
  fill: white;
  background-color: white;
}

.icon-generic-link {
  background: url(../img/icon-link.svg) center center no-repeat;
  border: solid 1px var(--primary-color);
  width: 36px;
  height: 36px;
}

.icons-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.icon-links {
  background: url(../img/icon-heart.svg) center center no-repeat;
  background-color: var(--primary-color);
  width: 36px;
  height: 36px;
}

.icon-heart-filled {
  background: url(../img/icon-heart-filled.svg) center center no-repeat;
  background-color: var(--primary-color);
  width: 36px;
  height: 36px;
}

.icon-up {
  background: url(../img/icon-up.svg) center center no-repeat;
  background-color: var(--primary-color);
  width: 36px;
  height: 36px;
  bottom: 36px;
  right: 36px;
}

.icon-up:after {
  content: "Top";
  display: block;
  color: var(--primary-color);
  position: relative;
  top: 30px;
  font-size: .75rem;
}

/**/
.admission-input-textarea {
  width: 100%;
  height: auto;
}

.interest-input-wrapper {
  width: 100%;
}

/**/
.button-to-icon {
  background: none;
  padding: 0px;
  border: none;
}

.footer {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  background-color: var(--bg-footer);
}

.footer-dark {
  color: var(--footer-color);
}

/* select2 */
.select2-container--default {
  font-size: .9rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 0;
  background-color: var(--dropdown-text-background);
  color: var(--dropdown-selection-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  float: right;
  border-left: solid 2px #FFF;
  padding-left: 5px;
  color: var(--dropdown-selection-color);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: transparent;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #EFEFEF;
  color: #000;
}

.select2-container--default .fa-square {
  color: #e5e5e5;
}

.select2-container--default .fa-square-check,
.select2-container--default .fa-square-minus {
  color: var(--dropdown-selection-color);
}

.admission-footer {
  left: 0px;
  width: 100%;

  background: var(--bg-color) 0% 0% no-repeat padding-box;
  opacity: 1;
}

/* TODO: Move to a separate file. */
.create-account-box {
  top: 480px;
  left: 636px;
  width: 648px;
  height: 648px;

  background: var(--bg-color) 0% 0% no-repeat padding-box;
  background: #262626 0% 0% no-repeat padding-box; /* THEME CHANGE */
  box-shadow: 0px 3px 6px #00000029;
  opacity: 1;
}

.update-account-box {
  top: 480px;
  left: 636px;

  background: var(--bg-color) 0% 0% no-repeat padding-box;
  /* background: #262626 0% 0% no-repeat padding-box; */ /* THEME CHANGE */
  box-shadow: 0px 3px 6px #00000029;
  opacity: 1;
}

/* TODO: Move to a separate file. */
.login-box {
  top: 480px;
  left: 636px;
  width: 648px;

  background: var(--bg-color) 0% 0% no-repeat padding-box;
  /* background: #262626 0% 0% no-repeat padding-box; */ /* THEME CHANGE */
  box-shadow: 0px 3px 6px #00000029;
  opacity: 1;
}

.container-box {
  top: 480px;
  left: 636px;
  background: var(--bg-color) 0% 0% no-repeat padding-box;
  /* background: #262626 0% 0% no-repeat padding-box; */ /* THEME CHANGE */
  box-shadow: 0px 3px 6px #00000029;
  opacity: 1;

  color: black; /* THEME CHANGE var(--box-text-color);  */
}

.light-background-link {
  color: black;
}

.story-card {
  padding-bottom: 30px;
}

.fit-responsive-img {
  width: 100%;
}

.one-form-page-container {
  margin-top: 15%;
  margin-bottom: 10%;
}

footer h4 {
  color: white;
}

.text-contrasting-light {
  color: var(--text-contrasting-light);
}

.text-contrasting-light a {
  color: var(--text-contrasting-light);
}

.btn-contrasting-2 {
  background-color: var(--bg-color-btn-2); /* CHANGE: split this into a separate case*/
  color: var(--primary-color);
}

.stars-radio-btn {
  display: none;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating input {
  display: none;
}

.rating label {
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  position: relative;
}

.rating label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  mask-image: url("/static/harpier-recom-static/img/icons/star-rating.svg");
  -webkit-mask-image: url("/static/harpier-recom-static/img/icons/star-rating.svg");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.rating label:hover::before,
.rating label:hover ~ label::before,
.rating input:checked ~ label::before {
  mask-image: url("/static/harpier-recom-static/img/icons/star-rating-filled.svg");
  -webkit-mask-image: url("/static/harpier-recom-static/img/icons/star-rating-filled.svg");
}

h5 {
  margin-top: 15px;
}

/* Tooltip container */
.tooltips {
  position: relative;
  display: inline-block;
  border-bottom: 1px black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltips .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltips:hover .tooltiptext {
  visibility: visible;
}

.max-width-800 {
  max-width: 800px;
}

#actions button {
  background: #FFFFFF 0% 0% no-repeat padding-box;
  color: black;
  border: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px;
}

#actions .col-md-4 {
  display: flex;
  margin-bottom: 15px;
}

#actions form {
  width: 100%;
}

#actions button img {
  margin-bottom: 10px;
}

#actions button h6 {
  margin-bottom: 0;
}

.headline-light {
  color: var(--headline-3-color);
}

#actions > button {
  color: var(--actions-button-color);
}

.tooltips {
  position: relative;
  display: inline-block;
  border-bottom: 1px black; /* If you want dots under the hoverable text */
}

body {
  overflow-x: hidden;
}

.navbar-custom {
  background-color: var(--secondary-color);
}

#summary-section {
  margin-top: 6rem !important;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
  .tag {
    /*font-size: 0.9rem;*/
    /*padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;*/
  }

  .fit-responsive-img {
    width: 20%;
  }
}

@media (max-width: 576px) {
  .tag {
    /*font-size: 0.8rem;*/
    /*padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;*/
  }
}

@media (max-width: 400px) {
  .tag {
    /*font-size: 0.7rem;*/
    /*padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;*/
    margin-bottom: 0.25rem;
  }
}

.d-flex.flex-wrap.gap-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem !important;
}

/* Ensure parent container doesn't break the flow */
.tag-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For IE and Edge */
  white-space: nowrap;
}

.tag-container::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

p {
  font-family: Merriweather, Regular, serif;
}
