.Story-new {
    padding:20px;
    color:white;
}
.Story-new h2 {
     border: 2px solid #1f1f1f;
     background-color: #1f1f1f;
     margin: 0px 10px;
     padding: 0px 20px;
     margin-bottom: 20px;
     font-size: 24px;
     border-left: 4px solid #00ffcc;
     padding-left: 10px;
}


.ListStory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 40px;
  padding: 10px;
}
.Story-card {
  background-color: #1f1f1f;
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 10px rgba(0,255,213,0.2);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.Story-card:hover {
  box-shadow: 0 0 10px #00ffc8, 0 0 20px #00ffc8, 0 0 30px #00ffc8;
}


.Story-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.Story-card a {
  text-decoration: none;
  color:#aaa;
}

.name-Story {
    font-weight: bold;
    margin: 10px;
    text-align: center;
}
.chapter {
    margin:0px 10px 10px 10px;
    font-size:14px;
    font-weight: bold;
    color:#aaa;
    text-align: center;
}


.phan-trang {
  text-align: center;
  margin-top: 20px;
}
.phan-trang button {
  padding: 8px 12px;
  margin: 0 5px;
  border: none;
  border-radius: 6px;
  background-color: #444;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}
.phan-trang button:hover {
  background-color: #00cc66;
}
.phan-trang .active-page {
  background-color: #00cc66;
  font-weight: bold;
}

.flicker {
  animation: sparkle 3s infinite;
  font-weight: bold;
  color: #00ffcc;
}

@keyframes sparkle {
  0%   { color: #ff0000; }
  10% { color: orange; text-shadow: 0 0 10px orange; }
  20% { color: #ffff00; }
  30% { color: #00ff00; }
  40% { color: #0000ff; }
  50% { color: #4b0082; }
  60% { color: #9400d3; }
  70% { color: #ff0000;}
  80% { color: orange; text-shadow: 0 0 10px orange; }
  90% { color: #ffff00; text-shadow: 0 0 10px #ffff00; }
  100% { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
}
