/* Base styles for the entire site */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Support for header buttons without icons */
.auth-buttons .btn,
.auth-buttons .btn-register,
.auth-buttons .btn-login,
.auth-buttons .btn-profile,
.auth-buttons .btn-logout {
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

/* Fix for button spacing */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Variables */
:root {
  --primary-color: #ff7700;
  --secondary-color: #ffa200;
  --accent-color: #f0c419;
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --danger-color: #e74c3c;
  --success-color: #2ecc71;
  --manga-border-color: #000;
  --manga-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
  --body-font: "Nunito", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  --heading-font: "Montserrat", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* ninjaschoolonline Theme Colors */
  --ninjaschoolonline-orange: #ff6700;
  --ninjaschoolonline-blue: #0070bb;
  --ninjaschoolonline-black: #000000;
  --ninjaschoolonline-red: #d50000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  background-image: url("../images/background.gif");
  background-size: cover;
  background-attachment: fixed;
  color: var(--dark-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper box-sizing for all elements */
* {
    box-sizing: border-box;
}

/* Manga Container */
.manga-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Manga Style Elements */
.manga-panel {
  background-color: white;
  border: 3px solid var(--manga-border-color);
  box-shadow: var(--manga-shadow);
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.manga-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    transparent 60%,
    rgba(0, 0, 0, 0.03) 100%
  );
  pointer-events: none;
}

.manga-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--ninjaschoolonline-orange);
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000,
    -2px -2px 0 #000;
  -webkit-text-stroke: 1px black;
  transform: rotate(-2deg);
}

.manga-subtitle {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--ninjaschoolonline-orange);
  text-shadow: 1px 1px 0 #000;
}

/* Update manga buttons to have simpler effects */
.manga-btn {
  font-family: var(--heading-font);
  font-weight: 600;
  display: inline-block;
  padding: 10px 20px;
  background-color: white; /* Changed to white background */
  color: black; /* Changed to black text */
  text-decoration: none;
  border: 2px solid var(--manga-border-color);
  border-radius: 5px;
  box-shadow: 2px 2px 0 var(--manga-border-color);
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.1s ease;
  margin: 5px;
}

.manga-btn:hover {
  transform: translateY(-2px);
}

.manga-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--manga-border-color);
}

/* Header */
.manga-header {
  margin-bottom: 20px
}

.header-content {
  display: flex;
  justify-content: space-between; /* Keep this to push logo left and nav right */
  align-items: center;
  background-color: white;
  padding: 10px 20px;
  border: 3px solid var(--ninjaschoolonline-orange);
  box-shadow: var(--manga-shadow);
  border-radius: 10px;
}

.logo-container {
  text-align: left; /* Changed from center to left */
}

.logo {
  max-height: 80px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 8px; /* Add gap between buttons */
  justify-content: flex-end; /* Right align the navigation buttons */
}

.nav-link {
  margin: 0 3px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 3px solid var(--ninjaschoolonline-orange);
  z-index: 1000;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.bottom-nav-item i {
  font-size: 1.5rem;
}

.user-icon {
  background-color: var(--ninjaschoolonline-orange);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--manga-border-color);
  transform: translateY(-20px);
  position: relative;
  z-index: 10;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.login-btn {
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
}

/* ninjaschoolonline-themed elements */
.ninjaschoolonline-scroll {
  background-size: cover;
  border: none;
  box-shadow: none;
  padding: 30px;
}

.ninjaschoolonline-btn {
  background: linear-gradient(to bottom, #ff8c00, #ff6700);
  color: #fff;
  border: 2px solid #000;
  text-shadow: 1px 1px 0 #000;
}

.ninjaschoolonline-btn:hover {
  background: linear-gradient(to bottom, #ff6700, #ff4500);
}

.ninjaschoolonline-link {
  color: #ff6700;
  font-weight: bold;
  text-decoration: underline;
}

/* Chakra glow effect */
.chakra-glow {
  box-shadow: 0 0 10px 2px rgba(255, 103, 0, 0.7);
  animation: chakraPulse 2s infinite alternate;
}

@keyframes chakraPulse {
  0% {
    box-shadow: 0 0 10px 2px rgba(255, 103, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 20px 5px rgba(255, 103, 0, 0.9);
  }
}

/* Jutsu animation */
@keyframes jutsuHand {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(5deg);
  }
  50% {
    transform: scale(1.1) rotate(-5deg);
  }
  75% {
    transform: scale(1.05) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.jutsu-animation {
  animation: jutsuHand 1s forwards;
}

/* Character Section */
.characters-section {
  margin-bottom: 40px;
}

.character-card {
  display: block; /* Changed to block from flex */
  background-color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  position: relative;
  width: 200px;
  min-width: 200px;
  padding: 0; /* Removed padding */
  margin: 5px;
  overflow: hidden;
}

/* Large image container - full focus */
.character-large-image {
  width: 100%;
  height: 250px; /* Increased height for better display */
  overflow: hidden;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.character-large-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hide all character info, title, and small images */
.character-info,
.character-title,
.character-small-image,
.character-thumbs,
.character-carousel {
  display: none;
}

/* Enhanced Character Small Icon Display */
.character-small-icon-display {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.character-small-icon {
  width: 80px;
  height: 80px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
  background-color: transparent;
}

/* Character Thumbnail Style Enhancements */
.thumb-image {
  position: relative;
  margin-bottom: 5px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 2px solid var(--manga-border-color);
  color: white;
  font-size: 1.5rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.character-thumb:hover .thumb-image {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.character-thumb.active .thumb-image {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transform: translate(1px, 1px);
}

/* Character List Section - Fixed Structure */
.character-thumbnails-container {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px dashed var(--manga-border-color);
}

.thumbnails-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--ninjaschoolonline-orange);
  font-weight: bold;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 8px;
}

.thumbnails-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--ninjaschoolonline-orange), transparent);
}

.character-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.character-thumb {
  cursor: pointer;
  width: 80px;
  text-align: center;
  padding: 8px 5px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.character-thumb:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 103, 0, 0.1);
}

.character-thumb.active {
  background-color: rgba(255, 103, 0, 0.15);
  border-color: var(--ninjaschoolonline-orange);
}

.thumb-image {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 0 auto;
  font-size: 1.5rem;
  color: white;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.thumb-name {
  margin-top: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.manga-footer {
  margin-top: 30px;
  margin-bottom: 70px;
  padding: 0;
  position: relative;
}

/* Enhanced comic-style footer */
.comic-panel-footer {
  position: relative;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f0f0f0' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM10 37a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm10-17h20v20H20V20zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/g%3E%3C/svg%3E");
  margin: 0 auto 20px;
  max-width: 800px;
  padding: 20px 30px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
  border: 4px solid #000;
  border-radius: 8px;
}

/* Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s infinite;
}

/* Enhanced Character Section */
.characters-section {
  position: relative;
}

.character-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background-color: transparent; /* Remove background */
  border: none; /* Remove border */
  box-shadow: none; /* Remove shadow */
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px; /* Larger clickable area */
}

.nav-arrow {
  max-width: 25px; /* Making arrow size smaller (was 30px) */
  height: auto;
  filter: drop-shadow(2px 2px 0 var(--manga-border-color));
}

.character-nav:hover {
  background-color: transparent; /* Keep transparent on hover */
  transform: translateY(-50%) scale(1.2); /* Slightly larger on hover */
}

.character-nav:hover .nav-arrow {
  filter: brightness(1.2) drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5));
}

.character-nav.prev {
  left: 5px;
}

.character-nav.next {
  right: 5px;
}

/* Enhanced Comic-Style Section Headers */
.comic-heading {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  font-family: var(--heading-font);
}

.comic-heading h2 {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
  border: 3px solid var(--manga-border-color);
  border-radius: 10px;
  box-shadow: var(--manga-shadow);
  transform: rotate(-2deg);
  font-size: 2rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
  -webkit-text-stroke: 1px black;
  margin: 0 auto;
}

.comic-heading::before {
  content: "";
  display: block;
  height: 3px;
  width: 80%;
  background-color: var(--manga-border-color);
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 0;
}

.comic-heading.orange h2 {
  background-color: var(--primary-color);
}

.comic-heading.yellow h2 {
  background-color: var(--accent-color);
  color: var(--dark-color);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
  -webkit-text-stroke: 1px var(--dark-color);
}

.comic-heading.blue h2 {
  background-color: #3498db;
}

.comic-heading h2::after {
  content: "★";
  display: inline-block;
  margin-left: 10px;
}

.comic-heading h2::before {
  content: "★";
  display: inline-block;
  margin-right: 10px;
}

/* Animation for comic headings */
@keyframes headingPulse {
  0% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(-1deg) scale(1.05);
  }
  100% {
    transform: rotate(-2deg) scale(1);
  }
}

.comic-heading h2:hover {
  animation: headingPulse 1s ease infinite;
}

/* Comic Speech Bubble */
.comic-speech-bubble {
  position: relative;
  background-color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 20px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.comic-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: var(--manga-border-color) transparent;
  display: block;
}

.comic-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 32px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: white transparent;
  display: block;
  z-index: 1;
}

/* Comic Thought Bubble */
.comic-thought-bubble {
  position: relative;
  background-color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.comic-thought-bubble::before,
.comic-thought-bubble::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: white;
  border: 3px solid var(--manga-border-color);
}

.comic-thought-bubble::after {
  height: 15px;
  width: 15px;
  bottom: -20px;
  right: 30%;
}

.comic-thought-bubble::before {
  height: 8px;
  width: 8px;
  bottom: -30px;
  right: 25%;
}

/* Comic Sound Effect */
.comic-sound {
  display: inline-block;
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(-5deg);
  text-shadow: 2px 2px 0 var(--manga-border-color);
  -webkit-text-stroke: 1px black;
  animation: pulsate 1s infinite alternate;
  margin: 20px 0;
}

@keyframes pulsate {
  0% {
    transform: scale(1) rotate(-5deg);
  }
  100% {
    transform: scale(1.1) rotate(-3deg);
  }
}

/* Enhanced Manga Panel with Comic Effects */
.manga-panel-enhanced {
  background-color: white;
  border: 3px solid var(--manga-border-color);
  box-shadow: var(--manga-shadow);
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transform: rotate(-0.5deg);
}

.manga-panel-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM10 37a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm10-17h20v20H20V20zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Comic Action Button */
.comic-action-btn {
  font-family: var(--heading-font);
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--ninjaschoolonline-orange);
  color: white;
  text-decoration: none;
  border: 3px solid var(--manga-border-color);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--manga-border-color);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.comic-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s ease;
}

.comic-action-btn:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 6px 0 var(--manga-border-color);
}

.comic-action-btn:hover::before {
  left: 100%;
}

.comic-action-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--manga-border-color);
}

/* Comic Page Flipping Animation */
@keyframes pageFlip {
  0% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: rotateY(-15deg) scale(1.03);
    box-shadow: 15px 0 10px rgba(0, 0, 0, 0.1);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
}

.page-flip-effect {
  animation: pageFlip 1.5s ease-in-out;
  transform-origin: left center;
  transform-style: preserve-3d;
}

/* Comic Frame Divider */
.comic-divider {
  height: 5px;
  background-image: repeating-linear-gradient(
    to right,
    var(--manga-border-color),
    var(--manga-border-color) 10px,
    transparent 10px,
    transparent 20px
  );
  margin: 30px 0;
  position: relative;
}

/* Comic Frame Corner Decoration */
.comic-corner-decoration {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--manga-border-color);
  z-index: 2;
}

.corner-top-left {
  top: -2px;
  left: -2px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-top-right {
  top: -2px;
  right: -2px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.corner-bottom-left {
  bottom: -2px;
  left: -2px;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.corner-bottom-right {
  bottom: -2px;
  right: -2px;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* Comic Alert Box */
.comic-alert {
  background-color: var(--ninjaschoolonline-orange);
  color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 12px;
  padding: 15px;
  position: relative;
  text-align: center;
  margin: 20px 0;
  box-shadow: var(--manga-shadow);
  transform: rotate(-1deg);
}

.comic-alert::before {
  content: "!");
  position: absolute;
  top: -20px;
  left: 20px;
  background-color: var(--ninjaschoolonline-orange);
  color: white;
  width: 30px;
  height: 30px;
  border: 3px solid var(--manga-border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Comic Focus Highlight */
.comic-focus {
  position: relative;
  display: inline-block;
}

.comic-focus::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 0, 0.3) 0%,
    rgba(255, 255, 0, 0) 70%
  );
  z-index: -1;
  animation: focusPulse 2s infinite alternate;
}

@keyframes focusPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* Comic Style Form Elements */
.comic-input {
  border: 3px solid var(--manga-border-color);
  border-radius: 8px;
  padding: 10px 15px;
  font-family: var(--body-font);
  font-size: 1rem;
  background-color: white;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 15px;
}

.comic-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.3), inset 2px 2px 5px rgba(0, 0, 0, 0.1);
  border-color: var(--ninjaschoolonline-orange);
}

.comic-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: var(--heading-font);
  color: var(--dark-color);
  transform: rotate(-1deg);
  transform-origin: left;
}

/* Comic Style Checkbox */
.comic-checkbox {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 600;
}

.comic-checkbox input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkbox-mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 5px;
}

.comic-checkbox:hover input ~ .checkbox-mark {
  background-color: #f5f5f5;
}

.comic-checkbox input:checked ~ .checkbox-mark {
  background-color: var(--ninjaschoolonline-orange);
}

.checkbox-mark:after {
  content: "";
  position: absolute;
  display: none;
}

.comic-checkbox input:checked ~ .checkbox-mark:after {
  display: block;
}

.comic-checkbox .checkbox-mark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Comic Style Radio Button */
.comic-radio {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 15px;
  font-weight: 600;
}

.comic-radio input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.radio-mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: white;
  border: 3px solid var(--manga-border-color);
  border-radius: 50%;
}

.comic-radio:hover input ~ .radio-mark {
  background-color: #f5f5f5;
}

.comic-radio input:checked ~ .radio-mark {
  background-color: white;
  border-color: var(--ninjaschoolonline-orange);
}

.radio-mark:after {
  content: "";
  position: absolute;
  display: none;
}

.comic-radio input:checked ~ .radio-mark:after {
  display: block;
}

.comic-radio .radio-mark:after {
  top: 5px;
  left: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ninjaschoolonline-orange);
}

/* Enhanced Action Button */
.action-btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: bold;
  padding: 12px 20px;
  background-color: var(--ninjaschoolonline-orange);
  color: white;
  border: 3px solid #000;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  z-index: 1;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.action-btn:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.action-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 #000;
}

/* Comic Starburst */
.comic-starburst {
  position: relative;
  display: inline-block;
  background: var(--ninjaschoolonline-orange);
  color: white;
  font-family: var(--heading-font);
  font-weight: bold;
  font-size: 1.2em;
  padding: 20px;
  text-align: center;
  clip-path: polygon(
    50% 0%,
    65% 35%,
    100% 35%,
    70% 57%,
    80% 100%,
    50% 75%,
    20% 100%,
    30% 57%,
    0% 35%,
    35% 35%
  );
  transform: rotate(-5deg);
}

/* Comic Header Caption */
.comic-caption {
  position: relative;
  display: inline-block;
  padding: 8px 15px;
  background: var(--ninjaschoolonline-orange);
  color: white;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 10px;
  transform: rotate(-2deg);
  margin: 0 0 20px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* Page Background Patterns */
.halftone-pattern {
  background-image: radial-gradient(#000 1px, transparent 2px);
  background-size: 15px 15px;
  background-position: center;
}

.dot-pattern {
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
}

.line-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    #000,
    #000 1px,
    transparent 1px,
    transparent 10px
  );
}

/* Comic style loading spinner */
.comic-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--ninjaschoolonline-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.comic-spinner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--ninjaschoolonline-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(0.8); opacity: 0.3; }
}

/* Comic tooltips */
.comic-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.comic-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: white;
  color: black;
  text-align: center;
  border: 3px solid var(--manga-border-color);
  border-radius: 10px;
  padding: 10px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0;
  transition:
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  font-weight: normal;
  font-style: normal;
  font-size: 0.9rem;
}

.comic-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: var(--manga-border-color) transparent transparent transparent;
}

.comic-tooltip .tooltip-text::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border-width: 7px;
  border-style: solid;
  border-color: white transparent transparent transparent;
  z-index: 1;
}

.comic-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) rotate(0deg);
}

/* Fixed Character Showcase Styles */
.character-showcase {
  position: relative;
  padding: 15px;
  overflow: hidden;
  background-color: white;
}

.character-display-container {
  margin-bottom: 20px;
}

.character-display-area {
  position: relative;
  min-height: 300px;
}

.character-details {
  display: none;
}

.character-details.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Character showcase grid improvements */
.character-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

/* Fixed image container size for desktop */
.character-large-image-container {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px; /* Fixed height for container */
  width: 100%;
  max-width: 500px; /* Maximum width */
  margin: 0 auto; /* Center horizontally */
}

/* Improved image sizing and positioning */
.character-large-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 3px solid var(--manga-border-color);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  display: block; /* Essential for proper sizing */
}

/* Skills Icon (small icon) styling */
.character-small-icon-display {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 15px;
  background-color: transparent;
  padding: 0;
}

.character-small-icon {
  width: auto;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background-color: transparent;
}

/* No Characters Message */
.no-characters-message {
  padding: 30px;
  text-align: center;
  color: #666;
  font-style: italic;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature slider fixes - show images properly */
.features-slider {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 10px 0 50px;
}

.feature-slide {
  display: block;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.feature-slide:hover {
  transform: rotate(0);
}

/* Fixed dimensions for feature images */
.feature-image {
  width: 100%;
  max-width: 945px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  background-color: #f5f5f5; /* Light background in case image is loading */
}

/* Ensure images maintain proper dimensions */
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Comic frame container for feature sections */
.feature-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Comic Navigation Buttons - restore visibility */
.swiper-button-next.comic-nav-button,
.swiper-button-prev.comic-nav-button {
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--manga-border-color);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  color: var(--ninjaschoolonline-orange) !important;
  transition: all 0.3s ease;
}

.swiper-button-next.comic-nav-button:after,
.swiper-button-prev.comic-nav-button:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-button-next.comic-nav-button:hover,
.swiper-button-prev.comic-nav-button:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

/* Enhanced pagination bullets */
.features-slider .swiper-pagination {
  bottom: 10px;
  position: absolute;
  width: 100%;
  text-align: center;
}

.features-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--manga-border-color);
  opacity: 1;
  margin: 0 5px;
}

.features-slider .swiper-pagination-bullet-active {
  background: var(--ninjaschoolonline-orange);
  box-shadow: 0 0 5px rgba(255, 103, 0, 0.7);
}

/* Hero Section Enhancements */
.hero-section {
  margin-bottom: 40px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px 0;
  transform: rotate(-1deg);
}

.hero-banner img {
  width: 100%;
  display: block;
}

/* Improved Hero Buttons Container for Better Balance */
.hero-buttons-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
  max-width: 500px; /* Control max width for better layout */
}

/* Equal width buttons with minimum width */
.hero-buttons .manga-btn {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix icon alignment in buttons */
.hero-buttons .manga-btn i {
  margin-right: 8px;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
}

/* Support for removing blue background from user icon in footer */
.footer .user-icon,
.footer-nav .user-icon,
.footer-menu .user-icon {
  background-color: transparent !important;
}

/* Additional support for header buttons with proper spacing */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.auth-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

/* Fix specific to index page */
.home-page .auth-buttons .btn,
.home-page .auth-buttons .btn-register,
.home-page .auth-buttons .btn-login {
  min-width: 90px;
  font-size: 0.9rem;
}

/* GLOBAL AUTH BUTTON STYLES FOR CONSISTENCY */
.btn, 
.btn-register, 
.btn-login, 
.btn-profile, 
.btn-logout {
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

/* FIX FOR HEADER STRUCTURE */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}