<?php
// CSS for red, white, and blue USA theme
header('Content-Type: text/css');
?>

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
}

/* Header styling */
header {
    background: #ffffff; /* White background */
    padding: 1rem 0; /* Add a little padding back */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid #dc143c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image {
    /* width: 60%; /* Shrink width down to 50% */
    height: auto; /* Height scales proportionally, keeping the full image */
    max-height: 150px; /* Optional safety limit so it doesn't get too tall on huge screens */
    display: block;
}

/* Main content area */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Subtitle */
.subtitle {
    font-size: calc(1.8rem * var(--scale, 1));
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    line-height: 1.4;
    border-bottom: 2px solid #ddd;
    padding-bottom: 1.5rem;
}

/* Questions container */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Question styling */
.question {
    background-color: white;
    border-left: 6px solid #dc143c; /* Crimson accent */
    padding: calc(1.5rem * var(--scale, 1));
    border-radius: 4px 12px 12px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.question.primary {
    border-left-color: #002868; /* Dark blue accent */
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.question.secondary {
    border-left-color: #dc143c; /* Crimson accent */
}

.question h2 {
    color: #002868; /* Dark blue */
    margin-bottom: 1rem;
    font-size: calc(1.6rem * var(--scale, 1));
    font-weight: 700;
    font-family: "Georgia", "Times New Roman", serif;
}

.question p {
    color: #444;
    font-size: calc(1.2rem * var(--scale, 1));
    line-height: 1.7;
}

/* Footer styling */
footer {
    background-color: #001f54; /* Dark blue */
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    .header-image {
        width: 50%; /* On tablets, it might need to be a bit larger so it's readable */
    }
    main {
        padding: 2rem 1rem;
    }
    .subtitle {
        font-size: calc(1.4rem * var(--scale, 1));
    }
    .question h2 {
        font-size: calc(1.3rem * var(--scale, 1));
    }
    .question p {
        font-size: calc(1rem * var(--scale, 1));
    }
}

@media (max-width: 480px) {
    .header-image {
        width: 80%; /* On phones, make it take up most of the screen width so it's readable */
    }
    .subtitle {
        font-size: calc(1.2rem * var(--scale, 1));
    }
}