.roboto-condensed-<uniquifier> {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
body {
  font-family: "Roboto Condensed", sans-serif;
  background: #222;
  color: #fff;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  color: white;
  position: relative;
  background: #333;
  font-family: "Roboto Condensed", sans-serif;
}

.logo {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  z-index: 9999;
}

.nav-link {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
}

.nav-link li {
  display: flex;
  align-items: center;
}

.nav-link li a {
  color: white;
  text-decoration: none;
  padding: 7px 10px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link li:hover {
  background: #444;
  border-radius: 4px;
}

.nav-link li a img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #444;
}
  
/* ☰ Mobile Menü-Icon */
.menu-toggle i {
  -webkit-tap-highlight-color: transparent;
  font-size: 28px;
  cursor: pointer;
  display: none;
}

/* 📱 Sidebar Style */
/* Sidebar von oben nach unten */
.sidebar {
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: -100%; /* Start über dem Bildschirm */
  right: 0;
  width: 100%;
  max-height: 100%; /* geschlossen */
  background: #333;
  color: #fff;
  padding: 5px;
  transition: top 0.3s ease; /* Slide Down */
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  top: 0; /* Slide nach unten */
}

.close-btn {
  font-size: 30px;
  cursor: pointer;
  margin-top: 5px;
  margin-left: auto;
  margin-right: 22px;
}

.menu-toggle i:hover,
.close-btn i:hover {
  color: #ddd;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 25px 20px;
}

.sidebar ul li a {
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 3px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.sidebar ul li a:hover {
    color: gray;
}
      
/* Home */
.container__box {
  max-width:1000px; 
  margin:50px auto 40px; 
  text-align:center;
}
.container__d{
  width: 1000px;
  max-width: 100%;
  text-align: center;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 50px 5px;
  justify-content: flex-start;
}
.container__d a{
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.doujinshi{
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 194px;
  font-size: 0.9rem;
  background-color: rgba(81, 74, 74, 0.8);
  border-radius: 1px;
}
.cover{
  display: block;
  width: 194px;
  height: auto;
  max-height: 274px;
  object-fit: cover;
  margin: 0 0 0 0;
}

/* Spinner animation */
.spinner {
  width: 100px;
  height: 140px;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.spinner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: loading 1.2s infinite;
}

@keyframes loading {
  100% {
    left: 150%;
  }
}

.btn {
  width: 110px;
  margin: 10px 10px;
  clear: both;
  background: #333;
}
.btn a {
  -webkit-tap-highlight-color: transparent; 
  color: gray;
  text-decoration: none;
}
.btn a:hover, .btn:hover {
  color: black;
  background: gray;
}

.r_gallery {
  width: 1000px;
  max-width: 100%;
  text-align: center;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 50px 5px;
  justify-content: flex-start;
}
.r_name {
  width: 100%;
  text-align: left; /* linksbündig */
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.page-number {
  text-align: center;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 15px;
}

.image-container-wrapper {
  width: 100%;
  text-align: center; /* horizontal zentrieren */
  margin-top: 30px;
}

.image-container {
  position: relative;
  width: 420px;
  margin: 30 auto;
  cursor: pointer;
  display: inline-block;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Optional: Pfeile */
.arrow {
  position: absolute;
  top: 50%;
  font-size: 1rem;
  color: white;
  transform: translateY(-50%);
  pointer-events: none;
}
.arrow.left { left: 4px; }
.arrow.right { right: 4px; }

#gallery {
  -webkit-tap-highlight-color: transparent; /* Removes blue highlight on iOS/Android */
  outline: none; /* Removes focus outline */
  user-select: none; /* Optional: disable text selection */
}

#gallery:focus,
#gallery:active {
  outline: none;
}

span {
  color: white;
  background: #949494;
  margin-left: 5px;
  padding: 1px 4px;
  font-size: 0.9rem; 
}

/* Pagination */
/* Pagination Container */
.pagination {
  display: flex;
  gap: 5px;
  background-color: #222;
  padding: 6px 12px;
  margin-top: 60px;
  margin-bottom: 10px;
  border-radius: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pagination Links */
.pagination a {
  text-decoration: none;
  padding: 6px 12px;
  background-color: #222;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Hover Effekt */
.pagination a:hover {
  background-color: white;
  color: black;
}

/* Aktive Seite */
.pagination a.active {
  background-color: gray;
  color: white;
  cursor: default;
  pointer-events: none;
  font-weight: bold;
}

/* Disabled Buttons */
.pagination a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/**/
/* Gallery container */
#pictures {
  display: flex;
  flex-wrap: wrap;        /* wrap to next line */
  justify-content: center; /* center the images */
  gap: 6px;              /* space between images */
  padding: 10px;
}

/* Thumbnail images */
img.thumb {
  -webkit-tap-highlight-color: transparent;
  max-width: 170px;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: cover;      /* keep aspect ratio */
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 5px;
}

img.thumb:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; 
  top: 0;
  bottom: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  justify-content: center;
  align-items: center;
  margin-top: 10%;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* 📱 Responsive Anpassung */
@media screen and (max-width: 768px) {
  .search-bar {
    width: 180px;
    padding: 5px 8px;
    z-index: 9999;
  }
  .search-bar input {
    width: 180px;
    padding: 2px 6px;
  }
  .search-bar button {
    padding: 2px 6px;
    z-index: 9999;
  }
  .nav-link {
    display: none;
  }
  .menu-toggle i {
    display: block;
  }
  .container__d {
    width: 410px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 5px;
    justify-content: flex-start; /* ✅ center horizontally */
  }
  .r_gallery {
    width: 410px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 80px 5px;
    justify-content: flex-start; /* ✅ center horizontally */
  }
  .doujinshi {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ centers image and text together */
    text-align: center;
    width: 203px;
    font-size: 0.8rem;
    margin-right: -10px;
    margin-bottom: -10px;
  }
  .doujinshi p {
    margin: 2px 0 0 0;
  }
  .cover {
    display: block;
    width: 203px;
    height: auto;
    max-height: 286px;
    margin: 0 0 0 0;
  }
  
  #pictures {
    grid-template-columns: repeat(3, 1fr);
  }
  img.thumb {
    max-width: 120px;
    max-height: 120px;
  }
  .modal img {
    margin-top: 30%;
  }

  /**/
  .main-cover{
    text-align: left;
  }
  .main-cover .pic{
    float: none;
    display: block;
    margin: 20px auto 40px auto;
    height: auto;
    max-width: 70%;
  }
  .btn {
    margin: 15px auto;
    margin-left: 70px;
    margin-bottom: 30px;
    text-align: center;     /* centers text inside */
    white-space: nowrap;
    flex-direction: column;
  }
  .btn a {
    padding: 12px 94px;
    background: #333;
    font-size: 0.9rem;
  }
  .btn a:hover {
    color: black;
  }
  .main-cover h1 {
    text-align: left;
    margin-top: 10px;
  }
  .main-cover p {
    text-align: left;
    margin-top: 20px;
    margin-bottom: -10px;
  }
}
