@import url('https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+TC&display=swap');

/* Base styles */
body {
    font-family: 'WDXL Lubrifont TC', sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Index menu */
.static-logo {
    padding: 16px 0 8px;
    text-align: center;
}

.static-logo img {
    width: 64px;
    margin: 0 auto;
    display: block;
}

h1 {
    margin: 8px 0 4px;
    font-size: 1.8rem;
}

p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #aaa;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  padding: 0 24px; /* keeps buttons from touching screen edges */
}

.menu-button {
  width: 100%;
  max-width: 300px;
  padding: 20px 0;
  font-size: 24px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-button:hover {
    background: #555;
}

            /* list.html */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Medium screens (tablets/small laptops) */
@media (max-width: 1024px) {
    .comic-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Small screens (phones) */
@media (max-width: 600px) {
    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comic-grid a {
    display: block;
    text-decoration: none;
}

.comic-grid img {
    width: 100%;
    border-radius: 5px;
    border: 2px solid #fff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.comic-grid img:hover {
    transform: scale(1.05);
    border-color: #1e90ff;
}

.page-label {
    margin-top: 4px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}


            /* Comic Pages */
/* Comic container */
.comic-container {
    max-width: 100vw;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.comic-frame {
    width: 100%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 1 / 1; /* square placeholder, 580x580 feel */
    border: 2px solid #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111; /* optional placeholder bg */
    overflow: hidden;
    box-sizing: border-box;
}

/* Triangle loader */
.loading-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 155px solid #222; /* dark gray */
    z-index: 0;
}

/* Image sits above */
.comic-frame img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
    z-index: 1;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
    gap: 10px;
}

.nav-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-empty {
    justify-content: flex-start;
}

.nav-home {
    justify-content: flex-end;
}

.nav-arrow {
    justify-content: center;
}

.nav-button {
    padding: 12px 24px;
    font-size: 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    min-width: 48px;
    text-align: center;
}

.nav-button:hover {
    background: #555;
    transform: scale(1.05);
}

.nav-placeholder {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    font-size: 20px;
    opacity: 0;
}



            /* Moblie stuff */
            
/* Hide mobile header by default */
.mobile-header {
  display: none;
}

/* Show mobile header on phones */
@media screen and (max-width: 600px) {
  .mobile-header {
    display: block;
    padding: 20px 0;
    text-align: center;
  }

  .logo {
    text-decoration: none;
  }

  .logo img {
    width: 64px;
    margin: 0 auto 10px;
  }

  .mobile-title {
    font-size: 1.5rem;
    margin: 0;
  }

  .mobile-author {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
  }
}

