/* General Styles */

html, body {
    overflow-x: hidden;
}

body {
    background-color: #d30000; /* Dark red background */
    font-family: "Trispace", serif;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
    position: relative; /* Needed for footer positioning */
}

body.intro-page {
    background-color: #ffffff; /* White background for intro page */
}

h1, h2, p {
    font-family: "Trispace", serif;
}

h1 {
    font-size: 2.5em; /* Font size for headings */
    font-weight: bold; /* Font weight for headings */
    margin-bottom: 20px; /* Margin below headings */
}

h2 {
    color: #ffffff;
}

p {
    font-size: 1.3em; /* Font size for paragraphs */
    line-height: 1.6; /* Line height for paragraphs */
    margin-bottom: 15px; /* Margin below paragraphs */
    font-weight: bold;
}

.red-text {
    color: #d30000; /* Red color */
    font-weight: bold; /* Optional: Make the text bold */
}

/* Navigation Wrapper */
.nav-wrapper {
    height: 100px; /* Fixed height for the navigation bar */
    background-color: #d30000; /* Red background for nav */
    padding: 10px 0; /* Add padding for spacing */
}

/* Top Navigation Bar */
nav {
    width: 100%; /* Full width */
    height: 100%; /* Fill the height of the wrapper */
    display: flex;
    align-items: center; /* Center the links vertically */
    justify-content: center; /* Center the links horizontally */
}

/* Navigation List */
nav ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically by default (mobile) */
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Space between navigation items */
}

/* Navigation List Items */
nav ul li {
    margin: 0; /* Remove default margin */
}

/* Navigation Links */
nav ul li a {
    color: #ffffff; /* White text color */
    font-family: "Trispace", serif;
    text-decoration: none; /* Remove underline */
    font-size: 1.2em; /* Adjust font size as needed */
    padding: 10px 15px; /* Add padding for clickable area */
}

nav ul li a:hover {
    color: #000000; /* Black text on hover */
    transition: color 0.3s ease-in-out; /* Smooth transition */
}

/* Main content area */
main {
    padding-top: 60px; /* Adjust this value based on the height of the navigation bar */
    padding-bottom: 60px; /* Add padding to prevent content from overlapping the footer */
}

/* Styles for the intro page sections */
.intro-page section {
    width: 90%; /* Full width for mobile */
    padding: 20px; /* Add padding to contain text */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: left; /* Align text to the left */
    border-radius: 15px; /* Add rounded corners */
    background-color: #ffffff;
    margin: 40px auto; /* Center sections and add spacing */
}

/* Clear floats */
.intro-page::after {
    content: "";
    display: table;
    clear: both;
}

/* Footer styles */
footer {
    width: 100%;
    text-align: center; /* Center the text */
    padding: 20px 0;
    color: #000000; /* Black text color */
    position: relative; /* Stick footer to the bottom */
    margin-top: 50px; /* Add margin to create space above the footer */
    bottom: 0;
    left: 0;
}

/* Splash Container */
.splash-container {
    position: relative; 
    width: 100%;
    height: 100vh; /* Full viewport height */
}

/* Splash Title */
.splash-title {
    position: absolute;
    width: 90%; /* Default size for mobile */
    max-width: 800px; /* Prevents it from being too large */
    height: auto;
    bottom: 10px; /* Adjust position for mobile */
    right: 20px; /* Adjust position for mobile */
}

/* Blinking Arrow Button */
.arrow-button {
    position: absolute;
    bottom: 60px; /* Adjust as needed */
    left: 80%; /* Adjust position for mobile */
    transform: translateX(-50%);
    text-align: center;
}

.arrow-icon {
    width: 100px; /* Adjust size for mobile */
    height: auto;
    animation: blink 1s ease-in-out infinite alternate; 
}

/* Blinking Animation */
@keyframes blink {
    0%, 100% {
        opacity: 1; /* Fully visible */
    }
    50% {
        opacity: 0.0; /* Fully transparent */
    }
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevents interaction */
    overflow: hidden;
    z-index: 999; /* Ensures stars are visible */
}

.star {
    position: absolute;
    top: -20px;
    font-size: var(--star-size, 40px); /* Use CSS variable for font size */
    color: #ffffff; /* White color */
    animation: fall linear infinite;
    opacity: 0; /* Initially hide the stars */
}

.star::before {
    content: "☣"; /* Biohazard symbol */
    display: block;
}

/* Individual star positions and animation speeds */
.star:nth-child(1) { left: 10%; animation-duration: 7s; animation-delay: 0s; }
.star:nth-child(2) { left: 20%; animation-duration: 9s; animation-delay: 1s; }
.star:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: 2s; }
.star:nth-child(4) { left: 40%; animation-duration: 8s; animation-delay: 3s; }
.star:nth-child(5) { left: 50%; animation-duration: 10s; animation-delay: 4s; }
.star:nth-child(6) { left: 60%; animation-duration: 12s; animation-delay: 1s; }
.star:nth-child(7) { left: 70%; animation-duration: 9s; animation-delay: 2s; }
.star:nth-child(8) { left: 80%; animation-duration: 11s; animation-delay: 3s; }
.star:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: 4s; }
.star:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 0s; }

@keyframes fall {
    from {
        transform: translateY(-10vh);
        opacity: 0; /* Start with opacity 0 */
    }
    10% {
        opacity: 1; /* Gradually increase opacity */
    }
    to {
        transform: translateY(110vh);
        opacity: 0; /* End with opacity 0 */
    }
}

/* Columns for "Politics" Page */
.politics-page .text-wrap-container {
    width: 80%; /* Adjust width as needed */
    margin: auto;
    position: relative;
    text-align: justify;
    padding-bottom: 150px; /* Add padding to create space above the footer */
}

.politics-page .text-columns {
    column-count: 2; /* Two columns */
    column-gap: 40px; /* Space between columns */
    text-align: justify;
    margin-top: 40px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 60px;
}

/* Prevent content from breaking unevenly */
.politics-page .text-columns p {
    break-inside: avoid; /* Prevent paragraphs from splitting across columns */
    margin-bottom: 15px; /* Consistent spacing between paragraphs */
}

/* Ensure headings don't break awkwardly */
.politics-page .text-columns h2 {
    break-inside: avoid; /* Prevent headings from splitting across columns */
    margin-top: 0; /* Remove extra space above headings */
}

/* Image Centering for Politics Page */
.politics-page .center-image {
    display: block;
    width: 1000px;
    height: auto;
    margin: 10px auto;
}

/* Ensure consistent column heights */
.politics-page .text-columns > p {
    break-inside: avoid;
}

/* Columns for "The Control of Truth" Page */
.control-page .text-wrap-container {
    width: 80%;
    margin: auto;
    position: relative;
    text-align: justify;
}

.control-page .text-columns {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-top: 120px;
    padding: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.control-page .text-left,
.control-page .text-right {
    width: 47%;
    padding: 25px; /* Retain padding for spacing */
    background-color: transparent; 
}

/* Content Container */
.content-container {
    width: 80%;
    margin: 0 auto;
    position: relative; /* Ensures absolute positioning is relative to this container */
    text-align: center;
    padding-top: 60px;
}

/* Keep solutions list centered */
.solutions-list {
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual Solution */
.solution {
    width: 100%;
    text-align: center;
}

.solution h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #d30000;
}

.solution p {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
}

/* Style for sections to provide spacing */
section {
    position: relative;
    max-width: 80%;
    margin: 0 auto 50px;
    padding: 20px 0;
}

/* General image styling */
.section-image {
    position: absolute;
    width: 625px; /* Adjust as needed */
    height: auto;
}

/* Right-side images */
.right-image {
    right: 140px; /* Moves image to the right */
    top: 13%; /* Centers the image to the section */
    transform: translateY(-50%);
}

/* Left-side images */
.left-image {
    left: 75px; /* Moves image to the left */
    top: 50%; /* Centers the image to the section */
    transform: translateY(-50%);
}
/* Hide devilheads1 and devilheads2 at a specific breakpoint */
@media (max-width: 1450px) { 
    .devilheads1, .devilheads2 {
        display: none;
    }
}

/* Devil Head Containers */
.devilhead-container {
    position: absolute;
    top: 100px;
    width: 300px; /* Adjust width as needed */
    z-index: -1; /* Ensures it stays behind the text */
}

.devilhead-left {
    left: -140px; /* Adjust distance from the left edge */
}

.devilhead-right {
    right: -140px; /* Adjust distance from the right edge */
}

/* Devil Head Images */
.devilhead {
    width: 100%; /* Make images fill their container */
    height: auto;
    opacity: 1;
    margin-bottom: 20px; /* Space between images */
}

/* Flip the right-side images horizontally */
.devilhead-right .devilhead {
    transform: scaleX(-1); /* Horizontal flip */
}

/* Hide devil heads on smaller screens */
@media (max-width: 1024px) {
    .devilhead-container {
        display: none;
    }
}

/* Position the devil head image */
#devilhead {
    position: absolute;
    right: -250px; /* Adjust distance from the list */
    top: 80px; /* Moves slightly below the start of the list */
    width: 300px; /* Resize as needed */
    height: auto;
}
/* Hide the image on smaller screens */
@media (max-width: 1300px) {
    #devilhead {
        display: none;
    }
}

.vertical-marquee-container {
    position: fixed;
    top: 0;
    left: 5%;
    width: 60px; /* Adjust width to fit rotated text */
    height: 100%;
    overflow: hidden;
    background-color: #d30000;
    color: #ffffff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-marquee {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    animation: vertical-marquee 20s linear infinite;
}

/* Vertical Marquee Animation */
@keyframes vertical-marquee {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(100%);
    }
}

.vertical-marquee p {
    margin: 0;
    padding: 20px 0; /* Adjust spacing */
    white-space: nowrap;
    transform: rotate(-90deg); /* Rotate the text 90 degrees */
    transform-origin: center;
    writing-mode: horizontal-tb; /* Force horizontal text flow */
    text-align: center;
}

/* Media Queries for Responsive Design */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .intro-page section {
        width: 45%; /* Adjust width for tablet */
    }

    .intro-page section:nth-of-type(1),
    .intro-page section:nth-of-type(2),
    .intro-page section:nth-of-type(3) {
        margin-top: 60px; /* Adjust spacing for tablet */
    }

    .control-page .text-columns {
        gap: 60px;
    }

    .control-page .text-left,
    .control-page .text-right {
        width: 48%;
        padding: 30px;
    }

    /* Splash Title for Tablet */
    .splash-title {
        width: 80%; /* Adjust width for tablet */
        max-width: 700px; /* Increase max-width */
        bottom: 3%;
        right: 100px; /* Adjust position for tablet */
    }

    /* Arrow Button for Tablet */
    .arrow-button {
        bottom: 80px; /* Adjust position for tablet */
        left: 85%; /* Adjust position for tablet */
    }

    .arrow-icon {
        width: 150px; /* Adjust size for tablet */
    }

    /* Switch navigation list to horizontal layout */
    nav ul li a {
        font-size: 1.5em; /* Adjust font size for tablet */
    }

    /* Switch navigation list to horizontal layout */
    nav ul {
        flex-direction: row; /* Align items horizontally */
        justify-content: center; /* Center items horizontally */
        gap: 30px; /* Increase space between items for tablet */
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {

    .intro-page.with-background {
        position: relative;
        z-index: 0; /* Ensure the intro-page has a lower z-index */
    }

    .intro-page.with-background::before {
        content: "";
        position: fixed; /* Use fixed positioning for the background */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('images/poppies.png') no-repeat; /* Add your background image */
        background-position: 90% 115%; /* Move the background image down and to the left */
        background-size: 18%; /* Ensure the image covers the entire background */
        opacity: 0.2; /* Adjust the opacity as needed */
        z-index: -1; /* Ensure the pseudo-element is behind the content */
    }

    .intro-page section {
        width: 50%; /* Adjust width for desktop */
        background-color: rgba(255, 255, 255, 0); /* Semi-transparent white background */
    }

    .intro-page section:nth-of-type(1) {
        float: left;
        margin-left: 15%; /* Space from the left edge */
    }

    .intro-page section:nth-of-type(2) {
        float: right;
        margin-right: 15%; /* Space from the right edge */
    }

    .intro-page section:nth-of-type(3) {
        float: left;
        margin-left: 15%; /* Space from the left edge */
        margin-bottom: 10%;
    }

    .control-page .text-columns {
        max-width: 70%;
        margin-top: 150px;
    }

    .control-page .text-left,
    .control-page .text-right {
        width: 48%;
        background-color: transparent;
        padding: 35px;
    }

    nav ul li a {
        font-size: 2em; /* Adjust font size for desktop */
    }

    nav ul {
        gap: 40px; /* Increase space between items for desktop */
    }

    /* Splash Title for Desktop */
    .splash-title {
        width: 75%; /* Adjust width for desktop */
        max-width: 900px; /* Prevents it from being too large */
        bottom: 5px;
        right: 165px;
    }

    /* Arrow Button for Desktop */
    .arrow-button {
        bottom: 100px; /* Adjust position for desktop */
        left: 90%; /* Adjust position for desktop */
    }

    .arrow-icon {
        width: 200px; /* Adjust size for desktop */
    }
}

 /* Adjust Devil Head Positioning for Larger Screens */
 #devilhead {
    right: -200px; /* Adjust for larger screens */
    top: 150px; /* Slightly lower on desktop */
    width: 425px; /* Make slightly larger */
}