/*make sure that the header etc. fills the full page*/
html, body {
    margin: 0;
    padding: 0;
    margin-top: 5px;
}

/*Sets universal font*/
html {
    font-family: "Arial", sans-serif;
}

/*Sets background for landing page*/
html {
    background: url(background.jpg) no-repeat left center fixed;
    background-color: #D9D9D9;
    background-size: cover;
    background-position: center;
}

/*Headings alignment and color*/
h1 {
    text-align: center;
    font-size: 32px;
    color: #000444;
}

h2 {
    text-align: center;
    font-size: 30px;
    color: #000444;
}

h3 {
    margin-left: 25px;
    font-size: 24px;
    color: #000444;
    text-align: center;
}

h4 {
    margin-left: 25px;
    font-size: 24px;
    color: black;
    text-align: center;
}

/*Makes links red globally*/
a {
    color: #FF0000;
    text-decoration: none;
}

/*Makes paragraphs have margins and font size*/
p {
    margin-left: 25px;
    margin-right: 25px;
    font-size: 18px;
}

/*Sets the contact line's font size and aligns center*/
#contact {
    text-align: center;
    font-size: 20px;
}

.alignp {
    text-align: center;
}

/*Center logos*/
#chapterlogos {
    text-align: center;
}

/*Places Page Title*/
.pagetitle {
    margin-top: -150px;
} 

/*Navbar*/
.navbar {
    width: 100vw;
    box-sizing: border-box;
    font-size: 18px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: -10px;
    background-color: #000444;
    opacity: 1;
    color: black;
}

.navbar a {
    color: white;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: fit-content;
}

.navbar li {
    display: inline-block;
    float: none;
    margin: 0 10px;
    padding: 10px 20px;
}

#for-ie {
    color: black;
}

#navbartext {
    color: white;
}

#applications {
    text-align: center;
    font-style: italic;
}

#container {
    margin-right: 400px;
    margin-left: 400px;
    border: 2px dashed transparent;
    height: 125px;
    text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
}

.lnkd, .fb, .twtr {
    width: 100px;
    height: 100px;
    vertical-align: top;
    display: inline-block;
    zoom: 1;
}

.stretch {
    width: 100%;
    display: inline-block;
    font-size: 0;
    line-height: 0;
}

iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq {
    padding: 20px 0;
    border-bottom: 1px solid black;
    padding-left: 10px;
}

.faq .question {
    color: #000444;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.faq .answer {
    font-size: 18px;
    margin: 0;
    margin-left: 30px;
    line-height: 1.6;
}

/* ========== NEW STYLES FOR main-message PAGE ========== */
.main-message {
    width: 50%;
    margin: 0px auto;
    padding: 20px;
    text-align: center;
}

.callout-image {
    width: 69%;
    height: auto;
    margin-top: 30px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .navbar li {
        display: block;
        padding: 15px 0;
        margin: 0 auto;
        font-size: 20px;
    }

    .navbar ul {
        width: 100%;
    }

    html {
        background-position: center center;
    }

    .main-message {
        width: 75%;
    }

    h1, h2, h3, h4, p {
        font-size: 110%;
    }
}

/* === NEW STYLES FOR TAKE ACTION TEMPLATES === */
.action-buttons {
    text-align: center;
    margin: 30px 0;
}

.action-buttons button {
    background-color: #000444;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.action-buttons button:hover {
    background-color: #333366;
}

.template-box {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid #000444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #000444;
    text-align: left;
}

.template-content {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #000444;
    text-align: left;
    white-space: normal;
    line-height: 1.6;
    word-wrap: break-word;
}

.template-box .brackets {
    color: red;
    font-weight: bold;
}

/* Toggle visibility for template boxes */
.template-box {
    display: none;
}

.template-box.show {
    display: block;
}

/* === NEW LAYOUT FOR ACTION BLOCKS === */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.action-block {
    width: 100%;
    max-width: 800px;
}

/* Restore button styles inside action-blocks */
.action-block button {
    background-color: #000444;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    margin: 10px auto;
    font-size: 18px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: block;
}

.action-block button:hover {
    background-color: #333366;
}

/* Style for resource links list */
.resource-list {
    margin-left: 25px;
    margin-right: 25px;
    font-size: 18px;
    list-style-type: disc;
    padding-left: 40px;
    text-align: left;
}

.resource-list li {
    margin-bottom: 10px;
}

.resource-list a {
    color: #000444;
    font-weight: bold;
    text-decoration: underline;
}

/* Make specific resource links red */
.resource-list a[href*="commoncause"],
.resource-list a[href*="ballotpedia"] {
    color: #FF0000;
    font-weight: bold;
    text-decoration: underline;
}

/* Align Take Action page text left only on that page */
.take-action-page .main-message {
    text-align: left;
}

.take-action-page .main-message p,
.take-action-page .main-message li,
.take-action-page .main-message .template-content {
    font-size: 18px;
    line-height: 1.6;
}

/* X and FB icons */
.social-icons {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.social-icons img {
    width: 60px;
    height: auto;
    margin: 0 15px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* Make iframe responsive and centered */
.responsive-iframe-wrapper {
    max-width: 760px;
    margin: 50px auto 0 auto;
    padding: 0 10px;
}

.responsive-iframe-wrapper iframe {
    width: 100%;
    height: 500px;
    display: block;
}