/*Roboto*/
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

/* Andromeda */
@font-face {
    font-family: 'Andromeda';
    src: url('../fonts/Andromeda-eR2n.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  /* DEMO Font */
  @font-face {
    font-family: 'Demo';
    src: url('../fonts/DEMO-bgt45.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Demo';
    src: url('../fonts/DEMO-bgt65.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* background-color: #f5f5f5; */ /* theme light */
    background-color: #0a0a0f;
    min-height: 100vh;
    outline: none;
    caret-color: transparent;
}

footer {
    font-family: 'Roboto', Arial, sans-serif;
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
    /* color: #666; */ /* theme light */
    /* background-color: #e3e3e3; */ /* theme light */
    color: #636b76;
    background-color: #0d1a29;
}

footer a, footer a:visited {
  color: #52978a;
}

footer a:hover, footer a:active {
  color: #5ac7b3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/*-------------- Start of header ---------------*/

.top-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.top-button {
    background-color: #8b6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}

.header {
    text-align: center;
    padding-bottom: 100px;
    padding-top: 30px;
    /* background-color: #c6ced7; */ /* theme light */
    /* background-color:#0d1a29; */
    background: linear-gradient(90deg, #0d1a29, #0d1a29, #12263f 50%, #0d1a29, #0d1a29);
}

.title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Andromeda', Arial, sans-serif; /*Nabulist, MaximumVoltage, FutureEdge, Demo, Catima, Andromeda*/
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    /* color: #21272c; */ /* theme light */
    color: #c7c7c7;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a4a9b0, #d2d5db 50%, #a4a9b0, transparent);
}

.description {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #86919f; /* #636b76; */
}

.section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -28px 0 60px 0;
    position: relative;
}

.section-line-right {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, #3c618b, #425e7d, #3d4965 50%, #3e4751, #1d2c3d);
    /* background: linear-gradient(90deg, #1d2c3d, #3e4751, #3d4965 50%, #3e4751, #1d2c3d); */
}

.section-line-left {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, #1d2c3d, #3e4751, #3d4965 50%, #425e7d, #3c618b);;
    /* background: linear-gradient(90deg, #1d2c3d, #3e4751, #3d4965 50%, #3e4751, #1d2c3d); */
}

.section-title-text {
    font-family: 'Demo', Arial, sans-serif;
    margin: 0 0;
    color:#304459; /* #2c3e50;*/
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    padding: 5px 20px;
    border-radius: 5px;
    z-index: 5;
    transition: color 4s linear;
}

#black-hole-trigger:hover ~ .section-title-text {
  color: transparent;
}

.section-title-text-moon {
  width: 130px;
  position: absolute;
  height: 130px;
  background-color: rgb(10, 10, 15);
  border-radius: 50%;
}

.effect-container {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 10;
}

#animation-container {
  position: absolute;
  width: 200px;
  height: 200px;
  display: none; /* Initially hidden */
  pointer-events: none; /* Let events pass through to elements below */
  transform: translate(-250%, -60%);
}

#black-hole-trigger:hover ~ #blackhole {
  box-shadow: 0 0 30px 5px rgb(255, 166, 0);
}

#blackhole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(10, 10, 15);
  /* box-shadow: 0 0 30px 5px rgba(0, 0, 255, 0.4); */
  box-shadow: 0 0 30px 5px rgb(64 64 113);
  cursor: pointer;
  z-index: 1;
  transition: box-shadow 4s linear;
}

/* Metallic rivets on section title */
.section-title-text::before, .section-title-text::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #897a74, #c7c7c7);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.section-title-text::before {
    left: -1px;
}

.section-title-text::after {
    right: -1px;
}

/*-------------- End of header ---------------*/

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 275px));
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.series-card {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(10, 10, 15, 0.2);
    transform: scale(1) translateZ(0);
}

.series-card:hover {
  transform-style: preserve-3d;
  transform: scale(1.05) translateZ(10px);
  z-index: 1;
}

/* Optional: Add a subtle border on hover */
.series-card:hover {
  box-shadow: 0 0 80px rgba(100, 110, 255, 0.3);
  border-color: rgba(100, 172, 255, 0.4);
}

/* green line linear effect on top */
.series-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

/* green line linear effect on bottom */
.series-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.series-card:hover::before, .series-card:hover::after {
  transform: scaleX(1);
}

.progress-bar {
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 2;
    cursor: help;
}

.progress-bar-fill {
    height: 100%;
    background: #4298b1;
    transition: width 0.3s ease;
}

.progress-tooltip {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.9);
}

.progress-bar:hover .progress-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.new-chapter-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
    transform: translateY(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.series-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
}

.series-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 20px;
    transform: translateY(0);
    height: 120px;
    transition: background-color 0.3s linear, height 0.3s ease;
}

.series-card:hover .series-content {
    background: rgba(0, 0, 0, 0.9);
    max-height: 100%;
}

.series-type {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.series-description {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 0.9em;
    line-height: 1.5;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.series-card:hover .series-description {
    opacity: 1;
}

/* Ensure smooth transition for all hover effects */
.series-card, .series-content, .series-description {
    will-change: transform, opacity;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 3.5rem;
    right: 0.5rem;
    background: #2c3e50;
    color: #c7c7c7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
	border-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #34495e;
}

@media (max-width: 768px) {
	.header {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	.title {
		font-size: 2.8rem;
	}
	
	.section-title::before,
    .section-title::after {
        width: 30%;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .series-card:hover {
        transform: none;
    }
    
	div:last-child .series-card {
		margin-bottom: 60px;
	}
	
    .series-content {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .series-description {
        opacity: 1;
    }
}