﻿#bodyContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 1.25rem;
}

#alert {
    margin-bottom: 1.5rem;
}

#bodyMain h1 {
    margin-top: 0;
}

#bodyMain h3, #bodyMain h4, #bodyMain h5 {
    margin-top: 1em;
}

#homeFeatureRack {
    /*display: grid;
    grid-template-columns:*/ /*repeat(3, 1fr)*/ /*repeat(auto-fit, minmax(min(1em, 100%), 1fr));*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    gap: 0.85rem;
}

a.feature:link, a.feature:visited {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 180px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0;
    text-decoration: none;
    text-align: center;
    text-shadow: 0px 0px 2px rgba(0,0,0,1);
    border-radius: 5px;
    outline: 1px solid #CCC;
    outline-offset: 2px;
    color: rgba(255,255,255,1);
    font-size: 1rem;
}

a.feature:hover, a.feature:focus {
    color: rgba(255,255,255,0.9);
    outline-color: rgba(64, 149, 221, 0.85);
    outline-width: 2px;
    text-shadow: 0px 0px 8px rgba(255,255,255,0.65);
}

a.feature#featureRegister {
    background-image: url('../img/bkgd-woman_laptop-256.jpg');
    background-position-y: bottom;
}

a.feature#featureGetInvolved {
    background-image: url('../img/bkgd-hands_star-256.jpg');
    background-position-y: center;
}

a.feature#featureRumor {
    background-image: url('../img/bkgd-misinf-256.jpg');
    background-position-y: center;
}

a.feature span {
    flex: 1 1 auto;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.85);
    color: rgba(255,255,255,0.85);
    border-radius: 0 0 5px 5px;
    font-weight: 500;
}

a.feature:hover span, .feature:focus span {
    /*opacity: 1;*/
    background-color: rgb(0,0,0);
    color: rgb(255,255,255);
}

#faqs details {
    background-color: #f1ebdd;
    background: linear-gradient(90deg, rgba(245, 203, 103, 0.25) 0%, rgba(255, 255, 255, 1) 100%), url('../img/md_flag-artf-bkgd-1024.jpg');
    background-size: cover;
    background-attachment: fixed;
    border: 2px solid #c2b285;
    border-radius: 5px;
}

    #faqs details[open] {
        background: linear-gradient(90deg, rgb(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 1) 100%), url('../img/md_flag-artf-bkgd-1024.jpg');
    }

    #faqs details summary {
        background-color: rgba(255, 238, 200, 0.75);
        color: #675115;
        font-weight: 450;
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    #faqs summary:hover, #faqs summary:focus, #faqs details[open] summary {
        background-color: rgba(245, 203, 103, 0.75);
        box-shadow: none;
    }

    #faqs details summary + p {
        margin-top: .7em;
    }

    #faqs details summary::before {
        color: #8e783d;
    }

h2.strip {
    position: relative;
    /*margin-top: 1.5em;*/
    padding: .25em 0 .25em 0;
    text-align: center;
    border-radius: 4px 4px 0 0;
    background: #dce1e6;
    background-image: linear-gradient(90deg, rgba(235, 235, 235, 1) 0%, rgba(216, 216, 216, 1) 100%);
    box-shadow: inset 0 -4px 0 0 rgba(0,0,0,0.1);
    color: rgb(103, 105, 108);
}

#bodySide .bordered > ul {
    margin-left: 0.5rem;
}

#social h2, #election h2, #materials h2 {
    text-shadow: 0px 0px 2px rgba(0,0,0,.9);
    box-shadow: inset 0 -4px 0 0 rgba(0,0,0,0.3);
    color: #FFF;
}

#social h2 {
    background: #306a70;
    background-image: linear-gradient(90deg, #749497 0%, #306a70 100%);
}

    #social h2::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/icon-megaphone-80.png');
        background-blend-mode: screen;
        background-repeat: no-repeat;
        background-size: 80px;
        opacity: 0.25;
        z-index: 0;
        /*filter: brightness(0.5);*/
    }

#socialMediaPosts .post {
    display: flex;
    border: 1px solid #CCC;
    border-radius: 5px;
    padding: 2px;
    margin: 0.5rem 0;
    text-decoration: none;
    font-weight: 350;
}

    #socialMediaPosts .post img {
        border: 1px solid #CCC;
        border-radius: 5px;
        margin: 0;
        padding: 0;
    }

    #socialMediaPosts .post span {
        padding: 4px;
    }

#socialMediaPosts hr {
    margin: 0;
}

#election h2 {
    background: #73282c;
    background-image: linear-gradient(90deg, rgb(158, 87, 91) 0%, rgb(115, 40, 44) 100%);
}

    #election h2::after {
        content: '';
        position: absolute;
        top: 4px;
        left: 8px;
        width: 64px;
        height: 64px;
        background-image: url('../img/icon-mono-checkbox-64.png');
        background-repeat: no-repeat;
        opacity: 0.25;
        z-index: 0;
    }

#materials h2 {
    background: #305370;
    background-image: linear-gradient(90deg, rgb(114, 143, 182) 0%, rgb(53, 83, 124) 100%);
}

    #materials h2::after {
        content: '';
        position: absolute;
        top: 0;
        left: 8px;
        width: 64px;
        height: 64px;
        background-image: url('../img/icon-mono-materials-64.png');
        background-repeat: no-repeat;
        opacity: 0.25;
        z-index: 0;
    }

#bodySide > .bordered {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: stretch;
    padding: 0;
    border-radius: 4px;
}

#bodySide .bordered > h2.strip {
    margin: 0;
    border-radius: 4px 4px 0 0;
}



#bodySide .textBlock {
    padding: 0 1rem;
}

    #bodySide .textBlock.shaded {
        padding: 0.5rem 0.5rem;
        margin: 0 0.5rem;
    }

#bodySide .bordered hr {
    margin: 0 1rem;
    border-width: 1px;
}

#bodySide .textBlock > h3 {
    font-size: 1.25rem;
    margin: 0;
}

#bodySide .bordered .textBlock:last-child {
    margin-bottom: 1rem;
}

#events.spring h2 {
    background: #dce1e6;
    /*background: linear-gradient(to right, rgba(238, 208, 219, 1), rgba(203, 175, 185, 1) 75%), url("../img/bkgd-calendar-spring.jpg") no-repeat;*/
    /*background-blend-mode: screen;*/
    background-image: url("../img/bkgd-calendar-spring.jpg");
    background-size: cover;
    color: rgb(100, 47, 66);
    text-shadow: 0 0 2px #FFF, 0 0 7px #FFF;
}

#events.summer h2 {
    background: #dce1e6;
    /*background: linear-gradient(to right, rgb(239, 225, 190), rgb(224, 200, 142) 75%), url("../img/bkgd-calendar-summer.jpg") no-repeat;*/
    /*background-blend-mode: screen;*/
    background-image: url("../img/bkgd-calendar-summer.jpg");
    background-size: cover;
    color: rgb(84, 100, 0);
    text-shadow: 0 0 2px #FFF, 0 0 7px #FFF;
}

#events.fall h2 {
    background: #dce1e6;
    /*background: linear-gradient(to right, rgb(225, 207, 199), rgb(187, 155, 144) 75%), url("../img/bkgd-calendar-fall.jpg") no-repeat;*/
    /*background-blend-mode: screen;*/
    background-image: url("../img/bkgd-calendar-fall.jpg");
    background-size: cover;
    color: rgb(104, 66, 33);
    text-shadow: 0 0 5px rgba(255,255,255,0.5), 0 0 10px #FFF;
}

#events.winter h2 {
    background: #dce1e6;
    /*background: linear-gradient(to right, rgb(237, 244, 247), rgb(166, 192, 200) 75%), url("../img/bkgd-calendar-winter.jpg") no-repeat;*/
    /*background-blend-mode: screen;*/
    background-image: url("../img/bkgd-calendar-winter.jpg");
    background-size: cover;
    color: rgb(44, 89, 104);
    text-shadow: 0 0 2px #FFF, 0 0 7px #FFF;
}

#events td p {
    margin-bottom: 0;
}

#events .tableWrapper {
    margin-top: -1rem; /*compensate for .bordered flex gap*/
}

#events table {
    width: 100%;
    border-collapse: separate;
    border: none;
    font-size: 1rem;
}

#events th {
    text-wrap: nowrap;
    width: 8ch;
    text-align: center;
    font-weight: 450;
}

#events th, #events td {
    border-radius: 3px;
    /*font-size: 1rem;*/
}

/*-- Breakpoints ----------------------------------------------------------- */

/* High-resolution styles */
/*@media screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-width: 500px) {
    
}*/

@media screen and (min-width: 110ch) {

    #bodyContent {
        display: grid;
        grid-template:
            "bodyTop bodyTop" min-content
            "bodyMain bodySide" 1fr
            / minmax(min-content, 50rem) minmax(18rem, 1fr);
        gap: 0 1.5rem;
        width: 100%;
        justify-content: stretch;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    #alert {
        margin-bottom: 0;
    }

    #bodyMain {
        grid-area: bodyMain;
    }

    #bodySide {
        grid-area: bodySide;
        display: flex;
        flex-direction: column;
        justify-content: right;
        gap: 0.25rem;
    }

    #bodyMain, #bodySide {
        margin: 0;
        padding: 0;
    }

    .feature img {
        max-width: 100%;
    }

    ul.linkList li {
        line-height: unset;
    }
}

/*-- Accessibility Settings ------------------------------------------------ */


/*.highContrast #bodyContent a.feature:link, #bodyContent a.feature:visited {
    color: rgba(255,255,255,1);
}

.highContrast #bodyContent a.feature:hover, #bodyContent a.feature:focus {
    color: rgba(255,255,255,0.9);
}*/
.highContrast a.feature span {
    color: #FFF;
}

.highContrast #faqs details summary {
    background-color: rgba(255, 238, 200, 0.9);
    color: rgb(83, 67, 36);
}

.highContrast #faqs summary:hover,
.highContrast #faqs summary:focus,
.highContrast #faqs details[open] summary {
    background-color: rgba(255, 230, 175, 0.9);
    box-shadow: none;
}

.highContrast #faqs details[open] {
    background: #FFF;
}

.highContrast .strip {
    background: #dce1e6;
    background-image: linear-gradient(90deg, rgba(235, 235, 235, 1) 0%, rgba(216, 216, 216, 1) 100%);
    box-shadow: inset 0 -4px 0 0 rgba(0,0,0,0.1);
    color: rgb(60, 61, 62);
    font-weight: 500;
}

.highContrast #social h2 {
    background: #306a70;
    color: #FFF;
}

.highContrast #election h2 {
    background: #73282c;
    color: #FFF;
}

.highContrast #materials h2 {
    background: #305370;
    color: #FFF;
}
