.library-header {
    width: 100%;
    text-align: center;
    padding: 2em;
    position: relative;

}

.library-header h2 {
    margin-top: 1em;
}

.library-header h1:hover{
    color: #ffd700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 50px rgba(212, 175, 55, 0.5);
}


.library-story {
    max-width: 750px;
    margin: 40px auto 60px auto;
    padding: 2.2em 2.5em;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;

    color: #e8ddc3;

    border: 3px solid #8b6914;
    border-radius: 18px;

    background: linear-gradient(145deg,
        rgba(26, 24, 44, 0.92),
        rgba(45, 35, 66, 0.92));

    backdrop-filter: blur(8px);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.75),
        inset 0 0 25px rgba(212,175,55,0.15),
        0 0 35px rgba(212,175,55,0.15);

    position: relative;
}

.library-story::before,
.library-story::after {
    content: "✶";
    position: absolute;
    font-size: 1.6rem;
    color: #d4af37;
    opacity: 0.7;
}

.library-story::before {
    top: 10px;
    left: 18px;
}

.library-story::after {
    bottom: 10px;
    right: 18px;
}

.library-story h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #ffd700;
    letter-spacing: 3px;
    text-shadow:
        0 0 12px rgba(255,215,0,0.5),
        0 0 25px rgba(212,175,55,0.3);
}


.library-story p {
    margin-bottom: 1.2em;
}

.whisper {
    margin-top: 25px;
    font-style: italic;
    color: #d8c8ff;
    font-size: 1.2rem;
    text-shadow: 0 0 12px rgba(180,140,255,0.5);
    opacity: 0.95;
}

.magic-realms {
    margin-top: 80px;
    text-align: center;
}

.realm-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.realm-card {
    width: 260px;
    padding: 25px;
    border: 2px solid #d4af37;
    border-radius: 14px;
    background: rgba(26, 24, 44, 0.85);
    color: #f4e4c1;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.realm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.realm-card h3 {
    margin-bottom: 10px;
    color: #ffd700;
}