:root {
    --primary-color: #FF6500;
    --secondary-color: #4A90E2;
    --background-dark: #121212;
    --background-light: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-gradient: linear-gradient(135deg, var(--primary-color), #FF8F40);
      --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --content-width: min(65ch, 100% - 2rem);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
  }

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

  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  header {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 1rem 0;
  }

  nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
  }

  nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: var(--primary-color);
  }

  main {
    padding: 2rem 0;
  }

  h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .image-item {
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    cursor: pointer;
  }

  .image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 101, 0, 0.3);
  }

  .image-container {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
  }

  .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-actions {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    background-color: var(--background-light);
  }

  .btn {
    background-color: var(--primary-color);
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 3px;
  }

  .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
  }

  #load-more {
    display: block;
    margin: 2rem auto;
  }

  footer {
    background-color: var(--background-light);
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }

  #back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  #back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
  }

  @media (max-width: 768px) {
    .image-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }

  /* Lightbox styles */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }

  .lightbox-nav:hover {
    background-color: rgba(255, 101, 0, 0.5);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }

  .lightbox-close:hover {
    background-color: rgba(255, 101, 0, 0.5);
  }

  .about-section {
    background-color: var(--background-light);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
  }

  .about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .about-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .stats-section {
    background-color: var(--background-light);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
  }

  .stats-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }

  .stats-table th,
  .stats-table td {
    padding: 0.5rem;
    border: 1px solid var(--secondary-color);
    text-align: left;
  }

  .stats-table th {
    background-color: var(--secondary-color);
    color: var(--text-primary);
  }

  .stats-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .why-use-section {
    background-color: var(--background-light);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
  }

  .why-use-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .why-use-section ul {
    list-style-type: none;
    padding-left: 0;
  }

  .why-use-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
  }

  .why-use-section li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
  }

  .faq-section {
    background-color: var(--background-light);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
  }

  .faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .faq-item {
    margin-bottom: 1.5rem;
  }

  .faq-question {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
  }

  .faq-answer {
    margin-left: 1rem;
  }

  footer ul a {
    color: white;
    margin: 3px;
  }

            .character-grid {
              display: grid;
              grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
              gap: 1rem;
              margin-bottom: 2rem;
            }
      
            .character-item {
              background-color: var(--background-light);
              border-radius: 8px;
              overflow: hidden;
              transition: transform 0.3s ease;
            }
      
            .character-item:hover {
              transform: translateY(-5px);
            }
      
            .character-item img {
              width: 100%;
              height: 200px;
              object-fit: cover;
            }
      
            .character-item h3 {
              padding: 0.5rem;
              text-align: center;
            }

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0.5rem;
  background-color: var(--background-light);
}

/* Button styles with responsive adjustments */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  color: var(--text-primary);
  background-color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-height: 32px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.download-btn {
  background-color: #3182ce;
  color: white;
  border: none;
}

.download-btn:hover {
  background-color: #2c5282;
}

.copy-link-btn {
  background-color: #48bb78;
  color: white;
}

.copy-link-btn:hover {
  background-color: #38a169;
}

.share-btn {
  background-color: #ed8936;
  color: white;
}

.share-btn:hover {
  background-color: #dd6b20;
}

.btn:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* SVG icon styles */
.btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* Loading spinner animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Modern Header Styles */
.site-header {
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 28px;
  }
}