﻿.us-voting-map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

    .us-voting-map-container svg {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
    }


        /* =========================================================
   Every state
   ========================================================= */

        .us-voting-map-container svg path {
            stroke: #ffffff;
            stroke-width: 1.5;
            stroke-linejoin: round;
            transition: filter 0.25s ease, opacity 0.25s ease;
        }


        /* =========================================================
   Map-wide gradient
   ========================================================= */

        /*
    The actual gradient definition is contained
    inside US_Map.svg.
*/

        .us-voting-map-container svg .state {
            fill: url("#usVotingGradient");
        }


            /* =========================================================
   State receiving a vote
   ========================================================= */

            .us-voting-map-container svg .state.state-voted {
                fill: #FFD9C8;
                stroke: #FFF7E6;
                stroke-width: 2.5;
                filter: drop-shadow(0 0 2px #FFFFFF) drop-shadow(0 0 5px #FFF4C4) drop-shadow(0 0 10px #FFD15A) drop-shadow(0 0 18px #FF9E42) drop-shadow(0 0 30px rgba(255, 91, 55, 0.80));
            }


/* =========================================================
   Voting notification popup
   ========================================================= */

.us-voting-message {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 390px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.10);
    color: #08284E;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}


    /* Popup visible state */

    .us-voting-message.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    /* =========================================================
   Red glowing notification indicator
   ========================================================= */

    .us-voting-message::before {
        content: "";
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        margin-top: 1px;
        border-radius: 50%;
        background: #ff4b4b;
        box-shadow: 0 0 5px rgba(255, 75, 75, 0.90), 0 0 12px rgba(255, 75, 75, 0.60), 0 0 20px rgba(255, 75, 75, 0.35);
    }


/* =========================================================
   Notification text
   ========================================================= */

.voting-message-text {
    display: block;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: #08284E;
}

    .voting-message-text > div {
        display: block;
    }

    .voting-message-text .state-name {
        font-weight: 700;
    }


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .us-voting-map-container {
        width: 100%;
        max-width: 100%;
    }

        .us-voting-map-container svg {
            width: 100%;
            height: auto;
        }

    .us-voting-message {
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: calc(100% - 24px);
        padding: 14px 18px;
        border-radius: 16px;
    }

        .us-voting-message::before {
            flex: 0 0 14px;
            width: 14px;
            height: 14px;
        }

    .voting-message-text {
        font-size: 14px;
        line-height: 1.3;
    }
}
