@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: Helvetica, Arial, sans-serif;
}
body.modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes loadingShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.title-box {
  position: fixed;
  display: inline-block;
  background-color: rgb(0, 0, 0);
  padding: 12px 45px;
  margin: 20px 0 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}
.title-box.hidden {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
}
.title-box h1 {
  font-size: 2.5rem;
  color: #fff;
  white-space: nowrap;
}

.current-letter-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: auto;
  height: auto;
  background: #000;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}
.current-letter-button:hover {
  background: #333;
}

.alphabet-nav {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
}
.alphabet-nav.visible {
  transform: scale(1);
  opacity: 1;
}
.alphabet-nav button {
  padding: 0.4rem 0.6rem;
  margin: 2px 0;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s, color 0.3s, background-color 0.3s;
  transform-origin: center;
}
.alphabet-nav button:hover {
  transform: scale(1.4);
}
.alphabet-nav button.active {
  transform: scale(1.2);
  font-weight: bold;
}
.alphabet-nav button.active:hover {
  transform: scale(1.4);
}

.alphabet-nav button:nth-child(1):hover {
  color: hsl(0, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 34, 34, 0.6);
}

.alphabet-nav button:nth-child(2):hover {
  color: hsl(137.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 195, 81, 0.6);
}

.alphabet-nav button:nth-child(3):hover {
  color: hsl(275, 70%, 45%);
  text-shadow: 0 0 8px rgba(128, 34, 195, 0.6);
}

.alphabet-nav button:nth-child(4):hover {
  color: hsl(52.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 175, 34, 0.6);
}

.alphabet-nav button:nth-child(5):hover {
  color: hsl(190, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 168, 195, 0.6);
}

.alphabet-nav button:nth-child(6):hover {
  color: hsl(327.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 34, 121, 0.6);
}

.alphabet-nav button:nth-child(7):hover {
  color: hsl(105, 70%, 45%);
  text-shadow: 0 0 8px rgba(75, 195, 34, 0.6);
}

.alphabet-nav button:nth-child(8):hover {
  color: hsl(242.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(41, 34, 195, 0.6);
}

.alphabet-nav button:nth-child(9):hover {
  color: hsl(20, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 88, 34, 0.6);
}

.alphabet-nav button:nth-child(10):hover {
  color: hsl(157.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 195, 135, 0.6);
}

.alphabet-nav button:nth-child(11):hover {
  color: hsl(295, 70%, 45%);
  text-shadow: 0 0 8px rgba(182, 34, 195, 0.6);
}

.alphabet-nav button:nth-child(12):hover {
  color: hsl(72.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(162, 195, 34, 0.6);
}

.alphabet-nav button:nth-child(13):hover {
  color: hsl(210, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 115, 195, 0.6);
}

.alphabet-nav button:nth-child(14):hover {
  color: hsl(347.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 34, 68, 0.6);
}

.alphabet-nav button:nth-child(15):hover {
  color: hsl(125, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 195, 48, 0.6);
}

.alphabet-nav button:nth-child(16):hover {
  color: hsl(262.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(95, 34, 195, 0.6);
}

.alphabet-nav button:nth-child(17):hover {
  color: hsl(40, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 142, 34, 0.6);
}

.alphabet-nav button:nth-child(18):hover {
  color: hsl(177.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 195, 188, 0.6);
}

.alphabet-nav button:nth-child(19):hover {
  color: hsl(315, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 34, 155, 0.6);
}

.alphabet-nav button:nth-child(20):hover {
  color: hsl(92.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(108, 195, 34, 0.6);
}

.alphabet-nav button:nth-child(21):hover {
  color: hsl(230, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 61, 195, 0.6);
}

.alphabet-nav button:nth-child(22):hover {
  color: hsl(7.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 55, 34, 0.6);
}

.alphabet-nav button:nth-child(23):hover {
  color: hsl(145, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 195, 101, 0.6);
}

.alphabet-nav button:nth-child(24):hover {
  color: hsl(282.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(148, 34, 195, 0.6);
}

.alphabet-nav button:nth-child(25):hover {
  color: hsl(60, 70%, 45%);
  text-shadow: 0 0 8px rgba(195, 195, 34, 0.6);
}

.alphabet-nav button:nth-child(26):hover {
  color: hsl(197.5, 70%, 45%);
  text-shadow: 0 0 8px rgba(34, 148, 195, 0.6);
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  transition: opacity 0.5s;
  z-index: 1000;
}

.loader {
  animation: pulse 1.5s infinite;
}

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  margin: 10px 0;
  grid-column: 1/-1;
}
.loading-indicator .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

.section-loading {
  text-align: center;
  padding: 20px;
  grid-column: 1/-1;
  opacity: 0.7;
}

.letter-section {
  padding: 0rem 1rem 6rem;
  contain: content;
  position: relative;
  min-height: 100px;
  padding-bottom: 0px;
}
.letter-section:first-child .letter-header {
  padding-top: 6rem;
}

.letter-header {
  position: relative;
  text-align: left;
  background: transparent;
  padding: 0rem 1rem 0.2rem 1rem;
  font-size: 2.3rem;
  box-shadow: none;
  margin-left: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  contain: layout style;
}

.image-item {
  height: 150px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.2s, opacity 0.3s;
  background-color: #f5f5f5;
}
.image-item:hover {
  transform: translateY(-2px);
}
.image-item:hover img {
  filter: brightness(0.4);
}
.image-item:hover::before {
  filter: brightness(0.4);
}
.image-item:hover::after {
  opacity: 1;
}
.image-item img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: filter 0.3s, opacity 0.3s;
  opacity: 0;
}
.image-item img.loaded {
  opacity: 1;
}
.image-item::after {
  content: attr(data-word);
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-family: Helvetica, Arial, sans-serif;
  z-index: 2;
}
.image-item.loading {
  position: relative;
}
.image-item.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0, #f8f8f8, #f0f0f0);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
  z-index: 1;
  transition: filter 0.3s, opacity 0.3s;
}
.image-item.loading:hover::before {
  opacity: 0.4;
}
.image-item.loaded::before {
  animation: none;
  opacity: 0;
}
.image-item.error {
  opacity: 0.8;
}
.image-item.error::before {
  content: attr(data-word);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  background-color: #f5f5f5;
  border: 2px dashed #ccc;
  animation: none;
}
.image-item.error::after {
  content: none !important;
}
.image-item.error:hover {
  transform: none;
}
.image-item.error:hover::after {
  opacity: 0;
}

.load-more-btn {
  grid-column: 1/-1;
  margin: 2rem auto;
  color: black;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: opacity 0.3s;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  position: relative;
}
.load-more-btn::after {
  content: "▼";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.load-more-btn:hover {
  opacity: 60%;
}
.load-more-btn:hover::after {
  transform: translateX(-50%) translateY(3px);
}
.load-more-btn:disabled {
  cursor: not-allowed;
}
.load-more-btn:disabled::after {
  opacity: 0.3;
}
.load-more-btn.loading {
  position: relative;
  color: transparent;
}
.load-more-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.info-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: auto;
  height: auto;
  background: #000;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
  font-family: serif;
  font-style: italic;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}
.info-button:hover {
  background: #555;
}

.hamburger-button {
  display: none; /* Hide the hamburger button since we're using the letter button now */
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  z-index: 149;
  opacity: 0;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
  will-change: opacity;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  height: auto;
  max-height: 75vh;
  min-height: 300px;
  background: white;
  z-index: 150;
  transform: translate(-50%, 100vh);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}
.info-modal.visible {
  transform: translate(-50%, -50%);
}
.info-modal-header {
  margin-bottom: 0;
  padding: 1.5rem 2rem;
  background-color: #000;
  flex-shrink: 0;
}
.info-modal-header h2 {
  padding: 0.3rem 1rem;
  font-size: 2.3rem;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}
.info-modal-content {
  padding: 1rem 3rem 3rem 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
  overflow-y: auto;
}
.info-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 2;
}
.info-modal-close:hover {
  color: #000;
}

.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 1000;
  animation: fadeOut 5s forwards;
}

.load-trigger {
  width: 100%;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    padding: 0.4rem;
    margin: 0.4rem;
    grid-auto-rows: 1fr;
  }
  .image-item {
    aspect-ratio: 1;
    height: auto;
  }
  .image-item::after {
    font-size: 1.1rem;
    bottom: 3%;
    left: 3%;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
  }
  .title-box {
    margin: 0;
    padding: 6px 10px;
    width: auto;
  }
  .title-box h1 {
    font-size: 1.6rem;
  }
  .alphabet-nav {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
  }
  .alphabet-nav.visible {
    transform: translateY(0);
    opacity: 1;
  }
  .alphabet-nav button {
    margin: 0;
    font-size: 1.1rem;
    padding: 8px;
    color: black;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
  }
  .alphabet-nav button:hover {
    transform: scale(1.1);
  }
  .alphabet-nav button.active {
    font-weight: bold;
    transform: scale(1.1);
  }
  .current-letter-button {
    right: 10px;
    bottom: 10px;
    font-size: 18px;
    padding: 10px 15px;
    background: #000;
    color: white;
  }
  .info-button {
    padding: 10px 15px;
    font-size: 16px;
    left: 10px;
    bottom: 10px;
  }
  .info-modal {
    width: 95%;
    height: 90vh;
    max-height: 90vh;
  }
  .info-modal-header {
    padding: 1rem 1.5rem;
  }
  .info-modal-header h2 {
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
  }
  .info-modal-content {
    padding: 1rem 1.5rem 2rem;
    font-size: 1rem;
  }
  .info-modal-close {
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.2rem;
  }
  .letter-section {
    padding: 0rem 0.4rem 3rem;
  }
  .letter-section:first-child .letter-header {
    padding-top: 3.5rem;
  }
  .letter-header {
    padding: 0rem 0.4rem 0.4rem 0.8rem;
    font-size: 1.6rem;
    margin-left: 0.4rem;
  }
  #loading-screen {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    padding: 0.3rem;
    margin: 0.3rem;
  }
  .image-item::after {
    font-size: 1rem;
  }
  .title-box h1 {
    font-size: 1.4rem;
  }
  .letter-header {
    font-size: 1.4rem;
  }
  .load-more-btn {
    font-size: 1rem;
  }
  .load-more-btn::after {
    font-size: 0.7rem;
    bottom: 8px;
  }
  .alphabet-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .alphabet-nav button {
    font-size: 1rem;
    padding: 6px;
  }
}/*# sourceMappingURL=styles.css.map */