/*
 Theme Name:   LNChild
 Theme URI:    http://wiredbynumbers.com/
 Description:  A child theme for the Legacy News theme.
 Author:       wbn
 Author URI:   http://wiredbynumbers.com
 Template:     legacy-news
 Version:      1.0.0
*/

/* single post heading top padding */
h1.entry-title-jamie {
	padding-top: 20px !important;
	text-align: center !important;
}

/* single post author and post date centre align */
body.single-post .entry-meta {
    text-align: center;
    display: block; /* Override display: flex */
}

body, .post-exerpt, .entry-content, .post-content {
    font-size: 1.06em !important; /* You can adjust this value */
}

/* Custom Screenplay Formatting */

.screenplay-block {
    /* Base font settings for all screenplay elements */
    font-family: 'Courier New', Courier, monospace;
    font-size: 12pt;
    line-height: 1.2;
    
    /* Ensure all default margins are reset for consistency */
    margin: 0;
    padding: 0;
}

/* Scene heading: Top-level spacing */
.screenplay-block.screenplay-scene-heading {
    text-transform: uppercase;
    text-align: left;
    margin-top: 1.5em; 
    margin-left: 10%;
    margin-bottom: 0.5em;
}

/* Action: Resets top margin if it follows a scene heading */
.screenplay-block.screenplay-action {
    text-align: left;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Character: No space below */
.screenplay-block.screenplay-character {
    text-align: center;
    text-transform: uppercase;
    margin-top: 1em;
    margin-bottom: 0; 
}

/* Parenthetical: No space above or below, should be tight with character and dialogue */
.screenplay-block.screenplay-character + .screenplay-block.screenplay-parenthetical {
    text-align: left;
    margin-left: 35%; 
    margin-right: 35%;
    margin-top: 0;
    margin-bottom: 0;
}

/* Dialogue: No space above */
.screenplay-block.screenplay-dialogue {
    text-align: left;
    margin-left: 2.5in; 
    margin-right: 2.4in;
    margin-top: 0; /* Ensures it is flush with the element above */
    margin-bottom: 1em;
}

/* The dialogue that immediately follows a parenthetical should have a margin */
.screenplay-block.screenplay-parenthetical + .screenplay-block.screenplay-dialogue {
    margin-top: 0em;
}

/* ---- NSFW Content Warning Styles ---- */
.nsfw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 9999; /* Ensure it's on top of everything */
}

.nsfw-overlay h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.nsfw-overlay p {
    font-size: 1.2em;
    max-width: 600px;
}

#nsfw-agree {
    background-color: #ff0000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
}

.nsfw-content {
    display: none; /* This is what hides the post content initially */
}