.hidden {
  display: none;
}

:root {
  --font-family: "Plus Jakarta Sans", sans-serif;
  --color-1: #001a4b;
  --color-2: #263c66;

  --color-3: #818ca6;
  --color-4: #1d2a3a;
  --color-5: #edf8fd;
  --color-6: #1a1f2a;

  --color-8: #84818a;

  --color-9: #dce9fc;

  --color-10: #a2a2a2;

  --color-11: #af976d;
  --text-color-modal: #AEAEAE;
  --bg-primary: rgb(0, 26, 75);
  --summary-header: #737373;
  --link-color: #2688ff;

  --teal-1: #eef6f5;
  --gray-1: #f2f2f2;
  --gray-2: #e6e6e6;

  --border-radius-1: 0.3125rem;
  /* 5px */
  --border-radius-2: 0.625rem;
  /* 10px */
  --border-radius-3: 0.9375rem;
  /* 15px */

  --bold-font-weight: 600;
}

html {
  font-family: var(--font-family);
}

.custom-button {
  background-color: var(--bg-callout);
  color: var(--bg-callout-text);
  border: 0.125rem solid transparent;
  /* 2px */
}

.custom-button-minor {
  background-color: #fff;
  color: var(--text-dark);
  border: 0.125rem solid transparent;
  /* 2px */
}

.compact-container {
  max-width: 68.75rem;
  /* 1100px */
}

.toasts-container {
  max-width: 18.75rem;
  /* 300px */
  position: fixed;
  top: 0.625rem;
  /* 10px */
  right: 0.625rem;
  /* 10px */
}

.toasts-container .toast {
  transform: translateY(-7.5rem);
  /* -120% */
  position: fixed;
}


.toasts-container .toast-animate-in {
  position: relative;
  transition: 0.5s;
  transform: translateY(0%);
}

.toasts-container .toast-animate-out {
  transform: translateX(7.5rem);
  /* 120% */
  transition: 0.5s;
}

.from-below {
  transform: translateY(1.25rem);
  /* 20% */
}

:focus-visible {
  outline: none;
}

.focus-border:focus {
  border-color: #191919;
}

.border-3 {
  border-width: 0.1875rem;
  /* 3px */
}

shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(to right,
      #f6f7f8 0%,
      #edeef1 20%,
      #f6f7f8 40%,
      #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 50rem 6.25rem;
  /* 800px 100px */
  position: relative;

  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeholderShimmer;
  animation-timing-function: linear;
}

@keyframes placeholderShimmer {
  0% {
    background-position: -29.25rem 0;
    /* -468px 0 */
  }

  100% {
    background-position: 29.25rem 0;
    /* 468px 0 */
  }
}

.tooltip {
  background-color: #333;
  color: white;
  padding: 0.3125rem 0.625rem;
  /* 5px 10px */
  border-radius: 0.25rem;
  /* 4px */
  font-size: 0.8125rem;
  /* 13px */
}

.format-text h1 {
  font-size: 2.5rem;
  font-weight: var(--bold-font-weight);
  line-height: 1.2;
  margin-bottom: 0.625rem;
  /* 1rem */
}

.format-text h2 {
  font-size: 2rem;
  font-weight: var(--bold-font-weight);
  line-height: 1.2;
  margin-bottom: 0.625rem;
  /* 1rem */
}

.format-text h3 {
  font-size: 1.5rem;
  font-weight: var(--bold-font-weight);
  line-height: 1.2;
  margin-bottom: 0.625rem;
  /* 1rem */
}

.format-text h4 {
  font-size: 1.25rem;
  font-weight: var(--bold-font-weight);
  line-height: 1.2;
  margin-bottom: 0.625rem;
  /* 1rem */
}

.format-text a {
  color: var(--link-color);
  text-decoration: underline;
}

.format-text p,
.format-text li {
  font-size: 0.6875rem;
  /* 1.1rem */
}

.format-text code {
  font-size: 0.5625rem;
  /* 0.9rem */
}

.format-text p,
.format-text code {
  margin-bottom: 0.625rem;
  /* 1rem */
}

.format-text strong {
  font-weight: var(--bold-font-weight);
}

.format-text ul {
  margin-bottom: 0.625rem;
  /* 1rem */
  list-style-type: disc;
  margin-left: 1.25rem;
  /* 20px */
}

.format-text ol {
  margin-bottom: 0.625rem;
  /* 1rem */
  list-style-type: decimal;
  margin-left: 1.25rem;
  /* 20px */
}

.format-text code,
.format-text pre code {
  background-color: var(--gray-1);
  border-radius: 0.3125rem;
  /* 5px */
}

.format-text code {
  padding: 0.125rem 0.25rem;
  /* 2px 4px */
}

.format-text pre code {
  display: block;
  padding: 0.75rem;
  /* 12px */
}

.bg-color-1 {
  background-color: var(--color-1);
}

.color-1 {
  color: var(--color-1);
}

.border-color-1 {
  border-color: var(--color-1);
}

.bg-color-2 {
  background-color: var(--color-2);
}

.color-2 {
  color: var(--color-2);
}

.border-color-2 {
  border-color: var(--color-2);
}

.bg-color-3 {
  background-color: var(--color-3);
}

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

.border-color-3 {
  border-color: var(--color-3);
}

.bg-color-4 {
  background-color: var(--color-4);
}

.bg-color-5 {
  background-color: var(--color-5);
}

.bg-color-6 {
  background-color: var(--color-6);
}

.bg-color-8 {
  background-color: var(--color-8);
}

.color-8 {
  color: var(--color-8);
}

.bg-color-9 {
  background-color: var(--color-9);
}

.border-color-10 {
  border-color: var(--color-10);
}

.color-10 {
  color: var(--color-10);
}

.color-11 {
  color: var(--color-11);
}

.bg-color-11 {
  background-color: var(--color-11);
}

.hover\:bg-color-11:hover {
  background-color: var(--color-11);
  color: white;
}

.text-color-11 {
  color: var(--color-11);
}

.border-color-11 {
  border-color: var(--color-11);
}


table {

  width: 100%;
  border-collapse: collapse;
  /* margin-top: 20px; */
  border: 2px solid #f2f2f2;
}

.results-table {

  th,
  td {
    padding: 4px;
    text-align: left;
    padding-left: 10px;
    /* font-size: 14px; */
    /* justify-content: center; */
  }

  tr {
    height: 20px;
  }

  th {
    padding: 2px;
    /* text-align: left; */
    /* border-bottom: 1px solid #ddd; */
    padding-left: 10px;
    background-color: #eef6f5;
    color: #737373;
    font-weight: 500;
  }

  #modal-window th {
    text-align: center;
  }

  tr:nth-child(even) {
    background-color: #eef6f5;
  }

  tr:nth-child(odd) {
    background-color: white;
  }

  .btn-view,
  .btn-delete {
    padding: 8px 12px;
    text-decoration: none;
    margin-right: 10px;
    color: #fff;
    border: 1px solid #333;
    background-color: #333;
    border-radius: 4px;
  }

  .btn-delete {
    background-color: #ff0000;
    border: 1px solid #ff0000;
  }
}

.pagination {
  .prev {
    padding: 6px 12px;
    border-radius: 8px;
    border: solid 1px #c8c8d0;
  }

  .page {
    padding: 6px 12px;
    border-radius: 8px;
    margin: 0 10px;
  }

  .page.current {
    background-color: #af976d;
    color: white;
  }

  .next {
    padding: 6px 12px;
    border: solid 1px #c8c8d0;
    border-radius: 8px;
  }
}

.link:not(:target) {
  display: none;
}


.link:target {
  display: block;
}


.dark-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.placeholder-transparent::placeholder {
  color: transparent;
}

.no-border {
  border: none;
  background-color: transparent;
}

.text-gray {
  color: #84818A;
}

.top-15 {
  top: 15%;
}

.right-5 {
  right: 5%;
}


.bg-lightgreen {
  background-color: #eef6f5;
}

.custom-input {
  border: 1px solid #af976d;
  border-radius: 6px;

}

.custom-input:checked {
  background-color: #af976d;
}

.custom-input:checked::before {
  content: '-';
  font-weight: bold;
}

.manrope-font {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0px;
}

.manrope-text-color {
  color: #737373;
}

.sentence-style {
  font-weight: bold;
  color: #af976d;
}

.sentence-style strong {
  color: #000;
  text-decoration: underline;
}

.result-style {
  font-weight: bold;
  color: #000;
  text-decoration: underline;
}

.default-font {
  font-family: var(--font-family);
  font-size: 16px;

}


.genetic_ancestry_chart .horse {
  width: var(--horse-width, 50px);
  height: var(--horse-height, 50px);
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  background: white;
  border: 5px solid #af976d;
  position: relative;
  opacity: 0;
  transform: scale(0.2);

}

.genetic_ancestry_chart .horse.animation-triggered {
  opacity: 1;
  transform: scale(1);
}

.genetic_ancestry_chart .horse label {
  text-align: center;
  position: absolute;
  bottom: -80px;
  width: 160px;
  color: var(--color-1, black);
  font-size: 20px;
  line-height: 30px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  white-space: normal;
  overflow-wrap: break-word;

  &.show {
    opacity: 1;
  }
}






.flex-wrap-text {
  white-space: normal;
  overflow-wrap: break-word;
}

.horse .percentage {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #af976d;
  font-size: 1.9vh;
  bottom: 1.1vh;
  font-weight: bold;
}


.tacometer {
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;

  .knob {
    width: 100px;
    height: 100px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    position: absolute;
    bottom: -35px;
    left: 255px;
  }

  .labels {
    label {
      position: absolute;
      color: rgba(0, 0, 0, 0.4);
    }

    .very_low {
      transform: rotate(-80deg);
      left: -20px;
      bottom: 55px
    }

    .low {
      transform: rotate(-57deg);
      left: 0px;
      bottom: 150px;
    }
  }

  .dial {
    position: absolute;
    bottom: -10px;
    height: 320px;
    left: 275px;
    transition: transform 1s;
    transform-origin: center 296px;
    transform: rotate(-90deg);

    &.very_low {
      transform: rotate(-87deg);
    }

    &.low {
      transform: rotate(-65deg);
    }

    &.medium {
      transform: rotate(0deg);
    }

    &.high {
      transform: rotate(65deg);
    }

    &.very_high {
      transform: rotate(87deg);
    }
  }


  @media screen and (width: 768px) {
    .dial {
      position: absolute;
      bottom: 8px;
      height: 165px;
      left: 155.2px;
      transition: transform 1s;
      transform-origin: center 150px;
      transform: rotate(-90deg);

      &.very_low {
        transform: rotate(-87deg);
      }

      &.low {
        transform: rotate(-65deg);
      }

      &.medium {
        transform: rotate(0deg);
      }

      &.high {
        transform: rotate(65deg);
      }

      &.very_high {
        transform: rotate(60deg);
      }
    }

    .knob {
      width: 50px;
      height: 50px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      position: absolute;
      bottom: -8.5px;
      left: 145px;
    }
  }

  @media screen and (width: 1024px) {
    .dial {
      position: absolute;
      bottom: 8px;
      height: 220px;
      left: 215.2px;
      transition: transform 1s;
      transform-origin: center 210px;
      transform: rotate(-90deg);

      &.very_low {
        transform: rotate(-87deg);
      }

      &.low {
        transform: rotate(-65deg);
      }

      &.medium {
        transform: rotate(0deg);
      }

      &.high {
        transform: rotate(65deg);
      }

      &.very_high {
        transform: rotate(60deg);
      }
    }

    .knob {
      width: 65px;
      height: 65px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      position: absolute;
      bottom: -8.5px;
      left: 205px;
    }
  }

  @media screen and (min-width: 1025px) and (max-width: 1279px) {
    .dial {
      position: absolute;
      bottom: 8px;
      height: 220px;
      left: 215.2px;
      transition: transform 1s;
      transform-origin: center 210px;
      transform: rotate(-90deg);

      &.very_low {
        transform: rotate(-87deg);
      }

      &.low {
        transform: rotate(-65deg);
      }

      &.medium {
        transform: rotate(0deg);
      }

      &.high {
        transform: rotate(65deg);
      }

      &.very_high {
        transform: rotate(60deg);
      }
    }

    .knob {
      width: 65px;
      height: 65px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      position: absolute;
      bottom: -8.5px;
      left: 205px;
    }
  }

}



.toasts-container {
  max-width: 300px;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 20;
}

.toasts-container .toast {
  transform: translateY(-120%);
  position: fixed;
  background: #edf2fe;
  color: #3458c6;

  &.success {
    background: #e6f7eb;
    color: #008654;
  }

  &.issue {
    background: #feebec;
    color: #cf3036;
  }
}

.toasts-container .toast-animate-in {
  position: relative;
  transition: 0.5s;
  transform: translateY(0%);
}

.toasts-container .toast-animate-out {
  transform: translateX(120%);
  transition: 0.5s;
}

.zoom-in {
  transform: scale(5);
  /* Adjust the scale factor as needed */
}

/* Adjust the width of the Country of Birth column */
th:nth-child(4),
td:nth-child(4) {
  width: 15%;
  /* Adjust the width as needed */
}

/* Optionally, you can adjust the width for smaller screens */
@media (max-width: 768px) {

  th:nth-child(4),
  td:nth-child(4) {
    width: 20%;
    /* Adjust the width for smaller screens */
  }
}


.htmx-request .shown-while-loading {
  display: block;
}

.htmx-request .hidden-while-loading {
  display: none;
}

.shown-while-loading {
  display: none;
}

.htmx-request.faded-while-loading,
.htmx-request .faded-while-loading {
  opacity: 0.6
}

.shimmer {
  width: 100%
}

.shimmer>* {
  margin: var(--shimmer-block-default-margin, 0 0 10px 0);
}

.shimmer .circle,
.shimmer .rect {
  background: var(--shimmer-block-color-from, #f6f7f8);
  background-image: linear-gradient(to right, var(--shimmer-block-color-from, #f6f7f8) 0%, var(--color-to, #edeef1) 20%, var(--shimmer-block-color-from, #f6f7f8) 40%, var(--shimmer-block-color-to, #f6f7f8) 100%);
  background-repeat: repeat-y;
  background-size: 100% 50px;
  position: relative;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeholderShimmer;
  animation-timing-function: linear;
}

.shimmer .rect {
  height: var(--shimmer-block-height, 20px);
  border-radius: var(--shimmer-block-border-radius, 10px)
}

.shimmer .circle {
  border-radius: 100000px;
  width: calc(var(--shimmer-block-height, 20px) * 3);
  height: calc(var(--shimmer-block-height, 20px) * 3);
  animation-duration: .8s;
  animation-name: placeholderShimmerCircle;
}

.shimmer .circle.xs {
  width: var(--shimmer-block-height, 20px);
  height: var(--shimmer-block-height, 20px);
}

.shimmer .circle.sm {
  width: calc(var(--shimmer-block-height, 20px) * 2);
  height: calc(var(--shimmer-block-height, 20px) * 2);
}

.shimmer .circle.md {
  width: calc(var(--shimmer-block-height, 20px) * 4);
  height: calc(var(--shimmer-block-height, 20px) * 4);
}

.shimmer .circle.lg {
  width: calc(var(--shimmer-block-height, 20px) * 5);
  height: calc(var(--shimmer-block-height, 20px) * 5);
}

.shimmer .centered {
  margin-left: auto;
  margin-right: auto;
}

.shimmer .width-\.25 {
  width: 25%;
}

.shimmer .width-\.5 {
  width: 50%;
}

.shimmer .width-\.75 {
  width: 75%;
}

@keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

@keyframes placeholderShimmerCircle {
  0% {
    background-position: -80px 0;
  }

  100% {
    background-position: 80px 0;
  }
}

.bg-color-1-opacity-20 {
  background-color: rgba(0, 26, 75, 0.2);
}

.group-odin {
  display: flex;
  gap: 0.25rem;

  a {
    padding: .5rem 1rem;
    border-radius: 9999px;
    color: #fff;
    text-align: center;
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  a:hover,
  a.active {
    background-color: var(--color-2);
  }
}

.stallion-checkbox:checked {
  background-color: #38a169;
  color: white;
}

.stallion-checkbox.selected {
  background-color: #38a169;
  color: white;
}

/* Ensure the checkbox retains its size and appearance when selected */
.stallion-checkbox:checked::before {
  background-color: #38a169;
  border-color: #38a169;
}


.tom-option {
  display: flex;
  align-items: center;
}

.tom-option span {
  flex-grow: 1;
  text-align: center;
}

.mare-input::placeholder,
.stallion-input::placeholder {
  color: #000000;
}

.mare-input,
.stallion-input {
  color: #000000;
}

@media screen and (min-width: 768px) and (max-width: 1279px) {

  .container .flex {
    flex: 1 1 auto;
  }

  .container form {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
  }

  form .flex.border.rounded-lg {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .flex.flex-col.items-start {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .flex.flex-col.items-start .flex.flex-col.w-80 {
    width: 100%;
    max-width: 360px;
    margin-top: 20px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .container form {
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
    flex-direction: row;
    padding: 0px 14px;
  }


}



.active-checkbox {
  background-color: #007BFF;
  border: none !important;
}

#tooltip {
  position: relative;
  cursor: pointer;
  padding: 7px;
  font-size: 14px;
}

#tooltipText {
  position: absolute;
  width: max-content;
  right: -50%;
  top: -50px;
  transform: translateX(-50%);
  background-color: #af976d;
  color: #fff;
  whitespace: nowrap;
  padding: 10px 1.25rem;
  border-radius: 7px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 100;
}

#tooltipText::before {
  content: "";
  position: absolute;
  right: 45%;
  top: 100%;
  transform: translateX(-50%);
  border: 1.25rem solid;
  border-color: #af976d #0000 #0000 #0000;
}

#tooltip:hover #tooltipText {
  top: -100%;
  visibility: visible;
  opacity: 1;
}

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

.bg-color-for-veryhigh {
  background-color: #FF0000;
}

.bg-color-for-high {
  background-color: #FFA500;
}

.bg-color-for-average {
  background-color: #FFFF00;

}

.bg-color-for-low {
  background-color: #90EE90;
}

.bg-color-for-verylow {
  background-color: #006400;
}

.bg-color-interest {
  background-color: #af976d !important;
}