/* Global styles */
body {
  background: linear-gradient(145deg, #0d0d0d, #1c1c1c); /* Dark gradient for depth */
  background-color: #0d0d0d; /* Fallback solid dark color */
  color: #ffffff; /* Default text color for readability */
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Navbar */
.nevbar {
  background: #111;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.nev a {
  color: #ff3333;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.nev a:hover {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
}

/* Sign-in Button */
#sign-in-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s;
}

#sign-in-btn:hover {
  background: #990000;
  box-shadow: 0 0 10px #ff0000;
}

/* Carousel */
.carousel {
  border-radius: 10px;
  overflow: hidden;
  height: 670px;
}

.carousel-inner img {
  height: 100%;
  object-fit: contain;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 0, 0, 0.7);
  border-radius: 50%;
}

/* App Section */
#app {
  padding: 20px;
  text-align: center;
}

/* Button Styling */
button {
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

button:hover {
  transform: scale(1.1);
}

/* Killer Glow Effect */
@keyframes neon-glow {
  0% { text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff3333; }
  100% { text-shadow: 0 0 10px #ff3333, 0 0 15px #ff0000, 0 0 20px #990000; }
}

h1, h2, h3, h4, h5, h6 {
  color: #ff3333;
  animation: neon-glow 1.5s infinite alternate;
}

/* Footer */
.footer {
  background-color: #1b1b1b;
  color: #ddd;
  padding: 2rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  color: #ff3333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff3333;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 1.2rem;
  color: #ddd;
  transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
  color: #ff3333;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}
/* Custom Slider */
.custom-slider {
  width: 100%;
  max-width: 1000px;
  margin: 100px;
  position: relative;
  border: 2px solid #ff3333;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.slider-wrapper {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 300%; /* Ensures smooth sliding for 3 slides */
}

.slider-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.slider-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 5px;
  margin-right: 15px;
  object-fit: cover;
}


.slider-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #ff3333;
}
.slider-description {
  font-size: 1rem; /* Ensure good readability */
  line-height: 1.5; /* Adjust line spacing for better visibility */
  color: #ddd; /* Keep the text color */
  margin: 0; /* Reset any extra margin */
  padding: 0 10px; /* Add some horizontal padding to prevent clipping */
  overflow-wrap: break-word; /* Wrap long words correctly */
  word-break: break-word; /* Prevent text from breaking out of the container */
  text-align: left; /* Align the text properly */
}

.slider-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px; /* Add padding around the text for spacing */
  box-sizing: border-box; /* Include padding in the element's dimensions */
}


/* novel list */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #660000; /* Deep, dark red background for a bloody vibe */
}

.card {
  background: linear-gradient(to bottom right, #ffcccc, #ff9999);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(255, 77, 77, 0.5);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 3px solid rgba(255, 77, 77, 1);
  position: relative;
  height: 500px;
}

.card:hover {
  animation: hoverEffect 0.8s ease-in-out forwards;
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.7);
  transform: scale(1.08) rotateY(10deg);
  border: 3px solid #ff0000;
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  border-radius: 20px 20px 0 0;
}

.card:hover .card-image {
  transform: rotate(-2deg) scale(1.1);
  filter: brightness(1.2);
}

.card-title {
  margin: 10px 10px 5px;
  font-size: 24px;
  font-weight: bold;
  color: #ff4d4d;
  transition: color 0.3s ease-in-out;
}

.card-title:hover {
  color: #ffffff;
  text-decoration: underline;
}

.card-genre {
  margin: 0 10px 15px;
  font-size: 16px;
  color: #000000;
  font-weight: bold;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card:hover .card-genre {
  color: #ff4d4d;
  transform: scale(1.2) rotate(-5deg);
}

.card-content {
  padding: 20px;
  border-top: 3px solid rgba(255, 77, 77, 0.8);
  color: #990000;
  font-size: 14px;
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .card {
    height: 470px;
  }

  .card-image {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  .card {
    height: 450px;
  }

  .card-image {
    height: 260px;
  }
}

/* Refined hover animation */
@keyframes hoverEffect {
  0% {
    transform: scale(1) rotateY(0);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.5);
  }
  30% {
    transform: scale(1.05) rotateY(-5deg);
  }
  50% {
    transform: scale(1.08) rotateY(5deg);
  }
  100% {
    transform: scale(1.08) rotateY(10deg);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.7);
  }
}
