/**
                          ,
   ,-.       _,---._ __  / \
  /  )    .-'       `./ /   \
 (  (   ,'            `/    /|
  \  `-"             \'\   / |
   `.              ,  \ \ /  |
    /`.          ,'-`----Y   |
   (            ;        |   '
   |  ,-.    ,-'         |  /
   |  | (   |            | /
   )  |  \  `.___________|/
   `--'   `--'
    I'm aitji (also known as **Suriya Inchoo**)
    the host of the following websites
    * https://aitji.is-a.dev
    * https://pr.thatako.net or http://pr.thatako.ac.th

    If you're interested in contributing to the project,
    you're welcome to reach out to me on Discord my username is "aitji".  
    You can also submit an inquiry through the support ticket system available at https://aitji.is-a.dev/discord

    Further information about the project and licensing
    can be found at "https://council.thatako.net/LICENSE"

    Sincerely,  
    Suriya Inchoo (aitji)
*/

@import url("../styles/root.css");
@import url("../styles/nav.css");
@import url("../styles/home.css");

body {
  font-family: Prompt, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  font-size: 16px;
  word-wrap: break-word;
  line-height: 1.6;
  padding-top: 70px;
  transition: var(--transition);
}

hr {
  background-color: var(--text-color) !important;
  height: 2px;
  border: none;
}

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

.strong {
  font-weight: bold;
  font-weight: 700;
  color: var(--primary-color);
}

.un-strong {
  font-weight: normal;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

.text-mobile-left {
  text-align: center !important;
}

.left {
  text-align: left !important;
}

.mobile-hidden {
  display: block;
}

.pc-hidden {
  display: none;
}

footer {
  background-color: #0a3662;
  color: var(--header-text);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

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

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

.theme-monotone footer {
  background-color: #000000;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.form-control {
  background-color: var(--bs-body-bg) !important;
}

footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--header-text);
  text-decoration: underline;
}

.footer-section {
  color: var(--text-color);
}

.theme-light .footer-section,
.theme-contrast-light .footer-section,
.theme-monotone .footer-section {
  color: var(--bg-color);
}

.theme-dark .footer-copyright,
.theme-dark .footer-credit {
  color: var(--dark-color);
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--primary-color);
  color: var(--header-text);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTopBtn.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(-360deg);
}

.circle {
  border-radius: 50%;
}

.card {
  border: none;
  border-radius: 12px;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: 30px;
}

.card-header {
  background-color: var(--primary-color);
  color: var(--header-text);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: none;
}

.theme-contrast-dark .card-header {
  color: var(--text-color)
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-direction: column;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay.show {
  opacity: 1;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.lightbox-filename {
  font-weight: 600;
  color: #fff;
}

.lightbox-dimensions {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-actions {
  display: flex;
  gap: 10px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox-btn:active {
  transform: scale(0.95);
}

.lightbox-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

img {
  cursor: pointer;
}

.lightbox-zoom-slider {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  cursor: e-resize;
}

.zoom-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: e-resize;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  margin-top: -6px;
}

.zoom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Filled track for Webkit */
.zoom-range::-webkit-slider-runnable-track {
  background: linear-gradient(to right, white var(--slider-percent, 0%), rgba(255, 255, 255, 0.2) var(--slider-percent, 0%));
}

.zoom-range::-moz-range-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.zoom-range::-moz-range-progress {
  background: white;
  height: 8px;
  border-radius: 4px 0 0 4px;
}

.zoom-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: e-resize;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.zoom-range::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.zoom-value {
  font-size: 13px;
  color: white;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 45px;
  text-align: center;
}

@media (max-width: 768px) {
  .lightbox-header {
    padding: 10px 15px;
  }

  .lightbox-info {
    font-size: 12px;
  }

  .lightbox-filename {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lightbox-dimensions {
    font-size: 10px;
  }

  .lightbox-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .lightbox-actions {
    gap: 8px;
  }

  .lightbox-zoom-slider {
    bottom: 15px;
    padding: 8px 15px;
    gap: 10px;
    max-width: 90%;
  }

  .zoom-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .zoom-range {
    width: 120px;
  }

  .zoom-value {
    font-size: 12px;
    min-width: 40px;
  }

  .lightbox-img {
    max-width: 95%;
    max-height: 95%;
  }
}

.media-item img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.media-item:hover .overlay {
  opacity: 1;
}

#random-pic {
  height: 500px;
  transition: transform 0.5s ease, opacity 0.3s ease;
  position: relative;
}

/* @media (max-width: 480px) {
  .lightbox-dimensions {
    display: none;
  }
} */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .form-check-input {
    margin-top: 5px;
  }

  .mobile-hidden {
    display: none;
  }

  .pc-hidden {
    display: block;
  }

  .text-mobile-left {
    text-align: left !important;
  }
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hid-flow {
  overflow: hidden;
}
.sub-over-line {
  transition: var(--transition);
}
.sub-over-line:hover {
  color: var(--accent-color) !important;
}
.aitji-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  z-index: 9999;
  pointer-events: none;
  max-width: 280px;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(1.8);
  visibility: hidden;
}
.aitji-tooltip .aitji-text {
  display: block;
  margin: 0;
}
.aitji-tooltip .aitji-arrow {
  width: 0;
  height: 0;
  position: absolute;
  border: 7px solid transparent;
}
.aitji-tooltip.top .aitji-arrow {
  top: 100%;
  border-top-color: #1a1a1a;
  border-bottom: none;
}
.aitji-tooltip.bottom .aitji-arrow {
  bottom: 100%;
  border-bottom-color: #1a1a1a;
  border-top: none;
}
[title]:hover, [data-tooltip]:hover { position: relative; }
@keyframes theme-ripple {to {transform: scale(2);opacity: 0;}}