/* General Body and Page Structure */
body {
  background-image: url("bg2.jpg");
  background-repeat: repeat;
  background-size: auto;
  margin: 0;
  padding: 10px;
  font-family: "Georgia", serif;
  color: #ddd;
  overflow-x: hidden;
  position: relative;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border: 2px solid #ff6688;
}

.skip-link:focus {
  top: 0;
  color: #ff6688;
}

/* Centered content (replaces deprecated center tag) */
.centered-content {
  text-align: center;
}

/* Dark overlay for mysterious mood - lighter than before */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: -1;
}

/* Headings */
h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.8em;
  color: #f0f0f0;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(60, 0, 90, 0.5);
  border-bottom: 3px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
}

h2 {
  font: italic 160% "Georgia", serif;
  color: #ccc;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
}

p {
  font-family: "Georgia", serif;
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1em;
  color: #ddd;
}

/* Links */
a {
  color: #b3a0ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.4s ease, text-shadow 0.4s ease, outline 0.2s ease;
}

a:hover {
  color: #ff6688;
  text-shadow: 0 0 6px rgba(255, 102, 136, 0.7);
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
.tab-button:focus,
.gallery-item:focus {
  outline: 3px solid #ff6688;
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(255, 102, 136, 0.8);
}

a:focus-visible,
button:focus-visible,
.tab-button:focus-visible {
  outline: 3px solid #ff6688;
  outline-offset: 2px;
}

/* Main Content Box */
.text {
  width: 95%;
  max-width: 900px;
  margin: 15px auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(15, 15, 25, 0.88);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

/* Portrait GIF */
.about-portrait {
  display: block;
  margin: 0 auto 15px auto;
  width: 150px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Footer */
.footer {
  font: italic 105% "Georgia", serif;
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dotted rgba(255, 255, 255, 0.06);
  color: #aaa;
}

/* Header & Navigation */
.header-container {
  width: 95%;
  max-width: 900px;
  margin: 20px auto;
  padding: 15px; /* added padding here */
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(15, 15, 25, 0.9);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  text-align: center;
}

.banner-area {
  padding: 10px; /* added padding */
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1); /* subtle border */
  border-radius: 6px;
}

.banner-area img {
  max-width: 100%;
  height: auto;
  display: block;
  /* removed padding on image to avoid overflow */
}

/* Navigation Container */
.navigation-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-top: 1px dotted rgba(255, 255, 255, 0.06);
}

.nav-button {
  color: #b3a0ff;
  font-weight: bold;
  font-family: "Verdana", sans-serif;
  text-shadow: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  font-size: 0.85em;
}

.nav-button:hover {
  color: #ff6688;
  text-shadow: 0 0 6px rgba(255, 102, 136, 0.7);
}

.nav-button.active {
  color: #fff;
  border-bottom: 2px solid #ff6688;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-button {
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  background-color: rgba(50, 50, 70, 0.7);
  margin: 5px;
  font-weight: bold;
  color: #ccc;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.4s ease, color 0.4s ease, outline 0.2s ease;
  outline: none;
}

.tab-button:hover {
  background-color: rgba(80, 80, 100, 0.9);
  color: #fff;
}

.tab-button.active {
  background-color: rgba(100, 100, 130, 0.95);
  color: #fff;
}

.tab-content {
  display: none;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(15, 15, 25, 0.88);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  border-radius: 0 0 10px 10px;
}

.tab-content.active {
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  justify-items: center;
}

.gallery-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(20, 20, 30, 0.88);
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.3s ease, outline 0.2s ease;
  outline: none;
}

.gallery-item:hover {
  box-shadow: 0 0 18px rgba(255, 102, 136, 0.8);
}

/* Fix images and videos in gallery to maintain aspect ratio */
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* prevent stretching */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
}

/* Gallery item text */
.gallery-item-info {
  margin-top: 6px;
  font-size: 0.85em;
  color: #aaa;
  font-family: "Georgia", serif;
  user-select: none;
}

/* Slideshow Overlay */
.slideshow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 5, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

.slideshow-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slideshow-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  background: #111;
  border-radius: 12px;
  padding: 15px 20px 30px 20px;
  box-shadow: 0 0 40px rgba(255, 102, 136, 0.8);
  overflow: hidden;
  text-align: center;
}

.slideshow-content img,
.slideshow-content video {
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.slideshow-info {
  color: #ccc;
  font-size: 0.95em;
  margin-top: 6px;
  font-family: "Georgia", serif;
  user-select: none;
}

/* Slideshow controls */
.prev,
.next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: 40px;
  height: 40px;
  color: #ff6688;
  font-weight: bold;
  font-size: 28px;
  border-radius: 50%;
  background: rgba(20, 0, 20, 0.7);
  user-select: none;
  z-index: 11002;
  box-shadow: 0 0 10px rgba(255, 102, 136, 0.8);
  transition: background 0.3s ease, outline 0.2s ease;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;

  /* Center the arrow glyph horizontally & vertically */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Vertical centering relative to viewport */
  transform: translateY(-50%);
  line-height: 1;
  padding: 0;
  margin: 0;
  text-align: center;
}

.prev {
  left: 25px;
}

.next {
  right: 25px;
}

/* Hover effect */
.prev:hover,
.next:hover {
  background: rgba(40, 0, 40, 0.9);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  .prev,
  .next {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
}

/* Close button */
.close-slideshow {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 40px;
  color: #ff6688;
  background: rgba(20, 0, 20, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 40px;
  text-align: center;
  user-select: none;
  z-index: 11001;
  transition: background 0.3s ease, outline 0.2s ease;
  outline: none;
}

.close-slideshow:hover {
  background: rgba(40, 0, 40, 0.9);
}

/* Responsive adjustments */

/* Mobile (small screens) */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .prev,
  .next {
    width: 30px;
    height: 30px;
    font-size: 24px;
    padding-top: 5px;
  }
  .close-slideshow {
    font-size: 32px;
    width: 40px;
    height: 40px;
    line-height: 32px;
  }
}

/* Desktop and larger tablets */
@media (min-width: 900px) {
  /* Increase text size by 20% */
  h1 {
    font-size: 3.36em; /* 2.8em * 1.2 */
  }
  h2 {
    font-size: 192%; /* 160% * 1.2 */
  }
  p {
    font-size: 1.2em; /* 1em * 1.2 */
  }

  /* Make gallery thumbnails and items larger */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}
