/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}

/* Body */
body {
    background-color: #0b0b0b; /* dark background */
    color: #f5f5f5; /* readable text */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1a0000; /* dark red header */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff2a2a; /* red */
}

header nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ff2a2a;
}

/* About Section */
.about {
    padding: 50px;
    text-align: center;
}

.about h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff2a2a;
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

/* Books Section */
.books-section {
    padding: 50px;
}

.books-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff2a2a;
    text-align: center;
}

/* Scrollable container */
.books-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
}

.book-card {
    min-width: 200px;
    background-color: #1a0000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s;
    cursor: pointer;
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.book-card h3 {
    color: #ff2a2a;
    margin-bottom: 5px;
}

.book-card p {
    color: #f5f5f5;
    margin-bottom: 5px;
}

.book-card:hover {
    transform: scale(1.05);
}

/* Secret Ai Page - Ai in left corner */
.ai-secret-page {
    height: 100vh;
    width: 100%;
    background-color: #0b0b0b; /* dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff2a2a;
    text-align: center;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
}


/* Ai image in corner */
.ai-corner {
    position: absolute;
    left: 1px;
    bottom: 0px;
    width: 600px;
    height: auto;
    z-index: 0;
    opacity: 0.9;
}


/* Message box stays centered */
.ai-secret-page .secret-message {
    z-index: 1; /* above Ai */
}

.ai-secret-page .secret-message h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px #000;
}

.ai-secret-page .secret-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px #000;
}

.ai-secret-page .secret-message a {
    padding: 12px 25px;
    background-color: #1a0000;
    color: #ff2a2a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.ai-secret-page .secret-message a:hover {
    background-color: #ff2a2a;
    color: #1a0000;
}

/* Characters Section */
.characters-section {
    padding: 50px;
    text-align: center;
}

.characters-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff2a2a;
}

.characters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.character-card {
    display: block;
    width: 200px;
    background-color: #1a0000;
    padding: 15px;
    border-radius: 8px;
    color: #f5f5f5;
    text-decoration: none;
    transition: transform 0.3s;
}

.character-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.character-card h3 {
    color: #ff2a2a;
    margin-bottom: 5px;
}

.character-card p {
    margin-bottom: 5px;
}

.character-card:hover {
    transform: scale(1.05);
}

/* Character Page */
.character-page {
    padding: 50px;
}

.character-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.character-img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ff2a2a;
}

.character-info {
    max-width: 600px;
}

.character-info h1 {
    font-size: 2.5rem;
    color: #ff2a2a;
    margin-bottom: 15px;
}

.character-info .bio {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f5f5f5;
}

/* Stats Table */
.character-stats {
    margin-top: 40px;
}

.character-stats h2 {
    font-size: 2rem;
    color: #ff2a2a;
    margin-bottom: 15px;
}

.character-stats table {
    width: 100%;
    max-width: 700px;
    margin: auto;
    border-collapse: collapse;
    color: #f5f5f5;
}

.character-stats th, .character-stats td {
    border: 1px solid #ff2a2a;
    padding: 10px 15px;
    text-align: left;
}

.character-stats th {
    background-color: #1a0000;
}

/* Powers & Relationships */
.character-powers, .character-relationships {
    margin-top: 40px;
}

.character-powers h2, .character-relationships h2 {
    font-size: 2rem;
    color: #ff2a2a;
    margin-bottom: 15px;
}

.character-powers ul, .character-relationships ul {
    list-style: disc;
    margin-left: 30px;
}

.character-powers li, .character-relationships li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
