:root {
  --primary-color: #f9d40f;
  --primary-color-light: rgba(255, 193, 6, 0.57);
  --secondary-color: #404040;
  --background-color: #f7f7f7;
  --border-color: #cecece;
  --text-color: #252626;
  --link-color: #091f2f;
  --success-color: #28a745;
  --error-color: #dc3545;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}

.font-monospace {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.taggitselect2,
.modelselect2multiple,
.select2-selection {
  padding: 0;
}

.select2-container {
  min-width: 100% !important;
}

.logo {
  width: 100px;
}

.max-width-600 {
    max-width: 600px;
    margin-left: auto; /* To center the element */
    margin-right: auto; /* To center the element */
}


.y-scroll,
.regular {
  margin-right: 0;
  margin-left: 0;
  overflow: auto hidden;
  display: flex;
  flex-flow: row nowrap !important;
  justify-content: flex-start !important;
  max-width: 100%;
}

.y-scroll .poster-wrapper,
.y-scroll>a,
.regular .poster-wrapper,
.regular>a {
  margin-right: 10px !important;
  flex-shrink: 0;
}


.modelselect2multiple {
  overflow: scroll;
  height: 64px;
}

.show-on-hover {
  display: none;

  /* position: absolute;
  margin-top: 45px; */
}

.show-on-hover-container:hover .show-on-hover {
  display: block;
}

.content,
p {
  word-break: break-word;
}

.text-darkgrey {
  color: rgb(56 56 56);
}

.bg-highlighted {
  background-color: #f9d40f54;
}

.text-underlined {
  text-decoration: underline;
}

/* stylelint-disable selector-class-pattern */
.website-submit-page .form-control,
.website-submit-page .select2-container--default .select2-selection--multiple {
  background-color: #fff !important;
  border: 1px solid #f0f0f0 !important;
}
/* stylelint-enable selector-class-pattern */

.date-inline-select {
  width: auto;
  display: inline-block;
}


.font-weight-bolder {
  font-weight: 800 !important;
}

.font-weight-semibold {
  font-weight: 500 !important;
}



.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 var(--primary-color);
  transform: translateY(-1px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  border-color: var(--primary-color);
  background-color: var(--primary-color-light);
  color: var(--secondary-color);
  box-shadow: 0 2px 0 var(--primary-color) !important;
  transform: translateY(-2px) !important;
}

.btn-outline-primary:active {
  border-color: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
}


/* Optional: Adjusting the color for the disabled state */
.btn-primary:disabled {
    background-color: #666; /* Lighter color for disabled state */
    border-color: #666; /* Lighter border color for disabled state */
}

.btn-warning, .btn-primary {
  background-color: rgb(255 193 6 / 57%);
  border-color: rgb(255 193 6 / 57%);
  position: relative !important;
  color: #404040 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 #f6c900;
  transform: translateY(-1px);
  transition: none;

  /* align center x and y */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: rgb(255 193 6 / 57%) !important;
  border-color: rgb(255 193 6 / 57%) !important;
  box-shadow: 0 2px 0 #f6c900 !important;
  transform: translateY(-2px) !important;
}

.btn-warning:focus, .btn-warning:active,
.btn-primary:focus, .btn-primary:active {
  background-color: rgb(255 193 6 / 57%) !important;
  border-color: rgb(255 193 6 / 57%) !important;
  box-shadow: 0 0 0 #f6c900 !important;
  transform: translateY(-0) !important;
}


.btn-outline-secondary {
  background-color: #f7f7f7;
  border-color: #cecece;
  position: relative !important;
  color: #404040 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 #cecece;
  transform: translateY(-1px);
  transition: none;

  /* align center x and y */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
  background-color: #f7f7f7 !important;
  border-color: #cecece !important;
  box-shadow: 0 2px 0 #cecece !important;
  transform: translateY(-2px) !important;
}

.btn-outline-secondary:focus, .btn-outline-secondary:active {
  background-color: #f7f7f7 !important;
  border-color: #cecece !important;
  box-shadow: 0 0 0 #cecece !important;
  transform: translateY(-0) !important;
}

.btn-warning:disabled, .btn-primary:disabled {
  background-color: rgb(255 193 6 / 57%);
  border-color: rgb(255 193 6 / 57%);
  color: #404040 !important;
  box-shadow: 0 5px 0 #f6c900!important;
  transform: translateY(-5px)!important;
}

.btn-outline-secondary:disabled {
  background-color: #f7f7f7;
  border-color: #cecece;
  color: #404040 !important;
  box-shadow: 0 1px 0 #cecece!important;
  transform: translateY(-1px)!important;
}



.nav-pills > li > a.active {
    background-color: #545454 !important;
}


.upvotes-container {
  font-size: 10px;
}


/*
  F.A.Q
*/


.faq-container h2 {
  font-weight: 800;
  font-size: 2.5rem;
  color: #091f2f;
  text-transform: uppercase;
}

.accordion-section .panel-default>.panel-heading {
  border: 0;
  background-color: #f4f4f4;
  padding: 0;
}

.accordion-section .panel-default .panel-title a {
  display: block;
  font-size: 1.2rem;
  color: #252626;
  text-decoration: none;
}

.accordion-section .panel-default .panel-title a::after {
  font-size: 3rem;
  content: "▲";
  color: #252626;
  float: right;
  margin-top: -12px;
}

.accordion-section .panel-default .panel-title a.collapsed::after {
  content: "▼";
}

.accordion-section .panel-default .panel-body {
  font-size: 1.2rem;
}


/*
  SOCIAL LOGIN - Google Button
*/

.google-btn {
  width: 230px;
  height: 42px;
  background-color: #4285f4;
  border-radius: 2px;
  box-shadow: 0 3px 4px 0 rgb(0 0 0 / 25%);
}

.facebook-btn {
  width: 230px;
  height: 42px;
  background-color: #3b5998;
  border-radius: 2px;
  box-shadow: 0 3px 4px 0 rgb(0 0 0);
}

.email-btn {
  background-color: #313336;
}

.google-btn .google-icon-wrapper {
  position: absolute;
  margin-top: 1px;
  margin-left: 1px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background-color: #fff;
}

.google-btn .google-icon {
  position: absolute;
  margin-top: 11px;
  margin-left: 11px;
  width: 18px;
  height: 18px;
}

.google-btn .btn-text {
  float: right;
  margin: 11px 20px 0 0;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.facebook-btn .btn-text {
  margin: 11px 11px 0 0;
}

.email-btn .btn-text {
  margin: 11px 25px 0 0;
}

.google-btn:hover {
  box-shadow: 0 0 6px #4285f4;
}

.google-btn:active {
  background: #1669F2;
}

.email-btn:active {
  background-color: #212224;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #555;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 0.5px solid #555;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}

.div {
  line-break: normal;
}

.toasts-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1051;
  width: 320px;
  max-width: 90%;
  pointer-events: none; /* Allow clicking through container but not toasts */
}

.toast {
  opacity: 1;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: white;
  animation: toast-in-right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto; /* Re-enable pointer events for toasts */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast.hide {
  animation: toast-out-right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(100%);
}

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

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

.toast-header {
  border-bottom: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.toast-header .close {
  padding: 0;
  margin-left: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.7;
  text-shadow: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}

.toast-header .close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

/* Toast Types */
.toast-header.bg-success {
  background-color: var(--success-color) !important;
  color: white;
}

.toast-header.bg-info {
  background-color: var(--info-color) !important;
  color: white;
}

.toast-header.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--secondary-color);
}

.toast-header.bg-danger {
  background-color: var(--error-color) !important;
  color: white;
}

/* Status icons */
.toast-header::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.toast-header.bg-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.toast-header.bg-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

.toast-header.bg-warning::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

.toast-header.bg-danger::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

/* Ensure toasts stack nicely on mobile */
@media (max-width: 576px) {
  .toasts-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .toast {
    margin-bottom: 8px;
  }
  
  .toast-header {
    padding: 12px 14px;
    font-size: 0.875rem;
  }
}

/* Add subtle scale effect when hovering */
.toast:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Checkmarks */
.form-check {
  padding-left: 0;
}

.form-check-input {
    display: none;
}

.form-check-label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 18px;
}

.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #fff;
}

.form-check-input:checked + .form-check-label::before {
    background-color: #1ACC00;
    border-color: #1ACC00;
}

#signup-form .form-check-input:checked + .form-check-label::before {
    background-color: #4169e1;
    border-color: #4169e1;
}

.form-check-label::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    display: none;
}

.form-check-input:checked + .form-check-label::after {
    display: block;
}

/* .rounded-pill.btn-light {
  background-color: #fff;
}
.rounded-pill.btn-light.active {
  background-color: #f9d40f !important;
  border-color: rgb(254, 212, 147) !important;
} */


.form-category legend {
  width: auto !important;
  padding: 6px 12px !important;
  text-align: left;
  display: block;
  font-weight: 500;
  font-style: normal;
  position: relative;
  background-color: rgb(241 241 241);
  border-radius: 5px;
  border: 1px solid rgb(228 228 228);
  font-size: 118%;
}


.text-decoration-none {
    text-decoration: none;
}

.text-decoration-none:hover {
    text-decoration: none;
}



/* Decorate system messages */

.toast {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.toast.success,
.toast.success .toast-header,
.toast.success button {
    background-color: var(--success-color);
    color: white;
}

.toast.error,
.toast.error .toast-header,
.toast.error button {
    background-color: var(--error-color);
    color: white;
}

.toast.info,
.toast.info .toast-header,
.toast.info button {
    background-color: var(--info-color);
    color: white;
}

.toast.warning,
.toast.warning .toast-header,
.toast.warning button {
    background-color: var(--warning-color);
    color: var(--secondary-color);
}


.htmx-request + form {
    opacity: 0.5;
    pointer-events: none;
}

.htmx-indicator{
    opacity:0;
    display: none;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator{
    opacity:1;
    display: initial;
}

.htmx-request.htmx-indicator{
    opacity:1;
    display: initial;
}

@media (max-width: 767.98px) {
    .h3-smaller {
        font-size: 1.25rem; /* smaller font-size for small screens */
    }
}


.jumbotron {
  padding: 1rem 0;

  .image-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 10px;
      height: 413px;

  }

  .image-item {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  }

  .image-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .image-item:first-child {
      grid-column: 1 / 3;
      grid-row: 1 / 3;
  }

  .overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      color: white;
      padding: 10px;
      z-index: 1;
      display: block; /* always visible */

      /* background: rgba(66, 66, 66, 0.5); */
  }

  .overlay span { /* additional description */
      display: none; /* hidden by default */
      font-size: 0.8rem;
  }

  .image-item:hover .overlay span {
      display: block; /* shown on hover */
  }

  .overlay h3 {
      margin: 0;
      font-size: 1rem;
  }

  .overlay p {
      margin: 0;
      font-size: 0.8rem;
  }

  .image-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgb(66 66 66 / 60%) 0%, rgb(66 66 66 / 30%) 100%);
      pointer-events: none;
  }

  @media (max-width: 768px) {
      .image-grid {
          grid-template-columns: 1fr 1fr;
          grid-template-rows: auto;
          height: auto;
      }

      .image-item {
          height: 200px;
      }

      .image-item:first-child {
          grid-column: 1 / 3;
          grid-row: 1;
      }

  }
}


.social-icon {
  transition: fill 0.3s ease;
  fill: #343a40;
}

.twitter-icon:hover {
  fill: #1DA1F2;
}

.telegram-icon:hover {
  fill: #24A1DE;
}


.card {
  border: none;
  transition: all 0.3s ease;
}


.list-unstyled li {
  margin-bottom: 0.5rem;
}


.twitter-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #f8f9fa;
  border-radius: 25px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}
.twitter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.twitter-button svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}