:root {
    --background-color: rgba(15, 18, 28, 0.9);
    --border-color: #a7b0d1;
    --glow-color: #7d93ff;
    --text-color: #e3e8ff;
    --highlight-color: #fdd87a;
    --font-main: 'Lato', sans-serif;


    
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    /* NEW: Your requested background image */
    background-image: url('https://i.redd.it/syya7v8uqb681.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

/* NEW: Dark overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 15px var(--glow-color), 0 0 5px var(--glow-color) inset;
    backdrop-filter: blur(5px);
}

header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-shadow: 0 0 5px var(--glow-color);
}

header h1 { margin: 0; color: var(--highlight-color); }

/* NEW: Character Profile styles */
.character-profile {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
}
.character-profile strong { color: var(--highlight-color); }

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

button {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-color);
    background-color: rgba(44, 50, 70, 0.8);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-shadow: 0 0 3px var(--glow-color);
}

button:hover {
    background-color: var(--glow-color);
    color: #fff;
    box-shadow: 0 0 10px var(--glow-color);
}

main { padding: 20px; text-align: center; }

/* --- ENHANCED Submission Card --- */
.submission-card {
    background-color: rgba(10, 12, 20, 0.5);
    border: 1px solid #4a5168;
    border-radius: 5px;
    padding: 15px;
    margin: 15px auto;
    width: 90%;
    text-align: left;
    position: relative; /* Needed for the tag */
    overflow: hidden; /* Keeps the tag neat */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.submission-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px var(--glow-color);
}




.submission-card p { margin: 0 0 10px 0; }
.submission-card small { opacity: 0.7; display: block; margin-top: 10px; }

/* --- Form and Navigation Styles --- */
textarea {
    width: 90%; padding: 10px; background-color: rgba(10, 12, 20, 0.8);
    border: 1px solid var(--border-color); border-radius: 5px;
    color: var(--text-color); font-family: var(--font-main);
    font-size: 1em; margin-bottom: 15px;
}
textarea:focus { outline: none; box-shadow: 0 0 10px var(--glow-color); }

/* NEW: Style for the back link */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--highlight-color);
    cursor: pointer;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.load-more-button {
    margin-top: 20px;
    /* It will inherit the base 'button' style, but you can add more here */
    background-color: var(--highlight-color);
    color: #111;
    font-weight: bold;
}