﻿/* LIST MODE: normal flow, no transitions */
#card-container.list-mode .card {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    /* optional list spacing */
    width: 100%;
    min-height: 240px;
    margin-bottom: 10px;
}

/* FOCUS MODE: stack cards and fade */
#card-container.focus-mode {
    position: relative;
    /*overflow: hidden;*/
    height:fit-content;
    min-height: 350px;             
}

#card-container.focus-mode .card { /* <-- space here */
    position: absolute;
    inset: 0;
    width: 100%;    
    margin: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

#card-container .card.hidden {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none; /* <-- no stray spaces */
}

/* Temporary guard to kill transitions during bulk updates */
#card-container.no-anim .card {
    transition: none !important;
}

/* (Optional) Your width constraint */
#card-container {
    width: 100%;
    max-width: 555px;
    margin: 0 auto;
}




@media print {
    .navbar{
        display:none;
    }

    .footer{
        display:none;
    }

    .card {
        width: 49%;
        height: 1.8in;
        margin: 0;
        padding: 0;
        /*overflow: hidden;*/
    }
 
    #card-container {
        width: 100%;
        margin: 0;
        padding:0;
        display: flex;
        gap: 4px;
        justify-content: space-evenly;
        flex-wrap: wrap;
        row-gap: 1.5rem;
        page-break-after: always;
    }

    .votername {
        width: 50%;
        font-size: 9pt;
        line-height: 75%;
        text-align: left;
        font-weight: bold;
    }

    .voterstreetaddress {
        width: 50%;
        overflow: hidden;
        font-size: 9pt;
        line-height: 75%;
        text-align: left;
    }

}


    a {
        text-decoration: solid;
        color: blue;
    }

    .voter {
        width: 560px;
        font-size: 10pt;
        padding: 2px;
        line-height:105%;
    }

.votereven {
    width: 560px;
    font-size: 10pt;
    line-height: 105%;
    padding: 2px;
    margin: 3;
    background-color: lightblue;
}

.votername {
    width: 300px;
    font-size: 12pt;
    line-height: 105%;
    text-align: left;
    font-weight: bold;
}

.voterstreetaddress {
    width: 300px;
    overflow: hidden;
    font-size: 10pt;
    line-height: 105%;
    text-align: left;
}

.votercitycounty {
    width: 500px;
    display: block;
    font-size: 9pt;
    line-height: 105%;
    font-weight: 800;
    text-align: left;
}

.voteroneline {
    width: 570px;
    overflow: hidden;
    font-size: 10pt;
    line-height: 105%;
    text-align: left;
}

    .voterinfotitle {
        font-size: 14pt;
        font-weight: 800;
        color: darkseagreen;
        text-align: left;
        margin-bottom: 4px;
    }

    .voterinfotitleinbuttonleft {
        font-size: 12pt;
        font-weight: 800;
        color: darkseagreen;
        text-align: left;
        float: left;
        margin-bottom: 4px;
        width: 30%;
        padding: 0 10px;
        border: 0;
    }

    .voterinfotitleinbuttonright {
        font-size: 12pt;
        font-weight: 800;
        color: darkseagreen;
        text-align: right;
        float: right;
        margin-bottom: 4px;
        padding: 0 10px;
        width: 30%;
        border: 0;
    }


    .voterinfotitleright {
        font-size: 14pt;
        font-weight: 800;
        color: darkseagreen;
        text-align: right;
        margin-bottom: 4px;
    }

    .voterinfotitle2area {
        margin-left: 14px;
    }

    .voterinfotitle2 {
        font-size: 12pt;
        font-weight: 600;
        color: black;
        text-align: left;
        margin-bottom: 4px;
    }

    .voterinfo {
        width: 100%;
        max-width: 575px;
        font-size: 14pt;
        margin: 10px 0;
        padding: 4px;
    }

    .eventinfotitle {
        font-size: 12pt;
        font-weight: 800;
        color: darkgray;
        text-align: left;
        margin: 0;
    }

    .eventinfo {
        width: 100%;
        max-width: 575px;
        font-size: 11pt;
        margin: 0;
        padding: 4px;
    }

    .eventinfotight {
        width: 100%;
        max-width: 575px;
        font-size: 11pt;
        margin: 0;
        padding: 4px;
    }

    .eventinfonarrow {
        width: 300px;
        max-width: 575px;
        font-size: 14pt;
        margin: 10px 0;
        padding: 4px;
    }

    .ButtonSpacerL {
        margin-left: 4px;
    }

    .voterinfonarrow {
        width: 300px;
        max-width: 575px;
        font-size: 14pt;
        margin: 10px 0;
        padding: 4px;
    }

    .voterinfonarrower {
        width: 200px;
        max-width: 575px;
        font-size: 14pt;
        margin: 10px 0;
        padding: 4px;
    }