/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    color: #d4d4d4;
    background: #0a0a0a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background overlay with starry effect */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('https://via.placeholder.com/1920x1080/1a1a1a/0a0a0a?text=Starry+Background') no-repeat center center;*/
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
    animation: twinkle 10s infinite;
}

.background-overlay.vault-background {
    background: url('stone-altar.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    animation: flicker 5s infinite;
}

.background-overlay.contact-background {
    background: url('stone-altar.jpg') no-repeat center -500px;
    background-size: cover;
    opacity: 0.4;
    animation: flicker 5s infinite;
}

.background-overlay.index-altar-background {
    background: url('book.jpg') no-repeat center -500px;
    background-size: cover;
    opacity: 0.4;
    animation: flicker 5s infinite;
}

.background-overlay.about-altar-background {
    background: url('stone-altar-2.jpg') no-repeat center -100px;
    background-size: cover;
    opacity: 0.4;
    animation: flicker 5s infinite;
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px #a10000, 0 0 20px #a10000; }
    50% { box-shadow: 0 0 15px #a10000, 0 0 30px #a10000; }
}

/* Header styles */
header {
    text-align: center;
    padding: 2rem 1rem;
}

.site-title {
    font-size: 3.5rem;
    color: #a10000;
    text-shadow: 0 0 10px rgba(161, 0, 0, 0.5);
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: #d4d4d4;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #a10000;
}

/* Intro section (homepage) */
.intro {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.sigil-placeholder {
    width: 150px;
    height: 15px;
    margin: 0 auto 1rem;
    /*background: url('https://via.placeholder.com/150/1a1a1a/a10000?text=Sigil') no-repeat center;*/
    background-size: contain;
    animation: pulse 2s infinite;
}

.intro-text {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #a10000;
    color: #d4d4d4;
    text-decoration: none;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #d4d4d4;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* Prophecy section (homepage) */
.prophecy {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.prophecy h2 {
    font-size: 1.8rem;
    color: #a10000;
    margin-bottom: 1rem;
}

#prophecy-text {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-style: italic;
}

.prophecy button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.prophecy button:hover {
    background: #a10000;
}

/* Trials section */
.trials {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.trials h2 {
    font-size: 1.8rem;
    color: #a10000;
    margin-bottom: 1rem;
}

.trials ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.trials ul li {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 0.5rem;
}

/* Cosmic Events section */
.cosmic-events {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.cosmic-events h2 {
    font-size: 1.8rem;
    color: #a10000;
    margin-bottom: 1rem;
}

#cosmic-text {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-style: italic;
}

.cosmic-events button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cosmic-events button:hover {
    background: #a10000;
}

/* Relics section */
.relics {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.relics h2 {
    font-size: 1.8rem;
    color: #a10000;
    margin-bottom: 1rem;
}

.relics ul {
    list-style: none;
    padding: 0;
}

.relics ul li {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.relic-image {
    width: 100px;
    height: auto;
    border: 2px solid #a10000;
    border-radius: 5px;
    animation: glow 2s infinite;
}

/* About section */
.about {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    /*background: url('https://via.placeholder.com/800x400/2a2a2a/1a1a1a?text=Parchment') no-repeat center;*/
    background-size: cover;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.about h2, .about h3 {
    color: #a10000;
    margin-bottom: 1rem;
}

.about p, .about ul {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 1.5rem;
}

.about ul {
    list-style: none;
    padding: 0;
}

.about ul li {
    margin-bottom: 0.5rem;
}

.oracle-placeholder {
    width: 200px;
    height: 20px;
    margin: 0 auto 1rem;
    /*background: url('https://via.placeholder.com/200/1a1a1a/a10000?text=Oracle') no-repeat center;*/
    background-size: contain;
    animation: pulse 2s infinite;
}

/* Cosmic Alignment section */
.cosmic-alignment {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #a10000;
    border-radius: 5px;
}

.cosmic-alignment h2 {
    color: #a10000;
    margin-bottom: 1rem;
}

#alignment-text {
    font-size: 1rem;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1rem;
}

.cosmic-alignment button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cosmic-alignment button:hover {
    background: #a10000;
}

/* Riddle section */
.riddle {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 2rem auto;
    background: url('scroll-background.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

.riddle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.riddle > * {
    position: relative;
    z-index: 1;
}

.riddle h2 {
    color: #a10000;
    margin-bottom: 1rem;
}

#riddle-text {
    font-size: 1rem;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1rem;
}

#riddle-answer {
    padding: 0.5rem;
    width: 80%;
    max-width: 300px;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.riddle button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.riddle button:hover {
    background: #a10000;
}

#riddle-feedback {
    font-size: 1rem;
    margin-top: 1rem;
}

/* Vault section */
.vault {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    background: url('scroll-background.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

.vault::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.vault > * {
    position: relative;
    z-index: 1;
}

.vault h2, .vault h3 {
    color: #a10000;
    margin-bottom: 1rem;
}

.codex-excerpt {
    font-size: 1.1rem;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #a10000;
    border-radius: 5px;
}

.vault ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.vault ul li {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 0.5rem;
}

.pledge-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pledge-form input {
    padding: 0.5rem;
    width: 80%;
    max-width: 300px;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.pledge-form button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pledge-form button:hover {
    background: #a10000;
}

.form-note {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-style: italic;
}

/* Contact section */
.contact {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #a10000;
    border-radius: 5px;
}

.contact h2 {
    color: #a10000;
    margin-bottom: 1rem;
}

.oracle-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.oracle-form input {
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.oracle-form button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.oracle-form button:hover {
    background: #a10000;
}

.oracle-response {
    font-size: 1rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Contact form section */
.contact-form {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 2rem auto;
    background: url('scroll-background.jpg') no-repeat center;
    background-size: cover;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.contact-form h2 {
    color: #a10000;
    margin-bottom: 1rem;
}

.scroll-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-form input,
.scroll-form textarea {
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    background: rgba(26, 26, 26, 0.8);
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
}

.scroll-form textarea {
    resize: vertical;
}

.scroll-form button {
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #a10000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.scroll-form button:hover {
    background: #a10000;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }

    .about, .vault, .contact, .contact-form, .trials, .cosmic-events, .relics {
        padding: 2rem 1rem;
    }

    .oracle-placeholder, .sigil-placeholder {
        width: 150px;
        height: 150px;
    }

    .relic-image {
        width: 80px; /* Smaller image on mobile */
    }
}