﻿

/* Animated Elephant Silhouette */
:root {
    --glow: 22px;
    /* not just 22 */
    --segStart: 569;
    /* where the tusk segment starts along the path */
    --segEnd: 677;
    /* where it ends */
}

.neon-elephant {
    --bg: RGBA(0, 0, 0, 0.0);
    --c1: #31eaff;
    --c2: #8a2cf6;
    --speed: 6s;
    --stroke: 2.2;
    --glow: 22px;
    background: var(--bg);
    background-image: var(--bgimg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    place-items: center;
    padding: 2rem;
    max-height: 600px;
    overflow: hidden;
}

    .neon-elephant svg {
        width: min(800px, 100%);
        height: auto;
        display: block;
        margin: 0 auto;
        overflow: visible;
        filter: drop-shadow(0 0 2px rgba(0,0,0,0.8)) drop-shadow(0 0 6px rgba(0,0,0,0.5));
    }

/* Traveling dash animation (normalized via pathLength=1000) */
.dash {
    animation: dash var(--speed) linear infinite;
    stroke-dashoffset: 0
}

    .dash.core {
        stroke-dasharray: 14 18
    }

    .dash.mid {
        stroke-dasharray: 21 27;
        animation-duration: calc(var(--speed) * 1.1)
    }

    .dash.big {
        stroke-dasharray: 42 54;
        animation-duration: calc(var(--speed) * 1.25)
    }

@keyframes dash {
    to {
        stroke-dashoffset: -1000
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash {
        animation: none !important
    }
}


/* Image Overlays */

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .bg-overlay.a {
        opacity: 0.8;
        mix-blend-mode: hard-light;
    }

    .bg-overlay.b {
        opacity: 0.4;
        mix-blend-mode: soft-light;
    }


#CenterIntro p {
    line-height: 2rem;
}

    #CenterIntro p img {
        max-width: 100%;
        height: auto;
        margin: 10px;
        box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
    }

figure {
    text-align: center;
}

figcaption {
    font-size: 0.7rem;
    margin-top: 4px;
    font-style: italic;
}

img.dark-img{
    box-shadow: 0 0 15px 1px var(--med-blue);
}

.mixed-paragraph {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

    .mixed-paragraph.left {
        grid-template-columns: auto 1fr;
    }

    .mixed-paragraph.right {
        grid-template-columns: 1fr auto;
    }

    .mixed-paragraph figure {
        max-width: 100%;
        margin: 5px 0 0 0;
    }

    .mixed-paragraph p {
        margin-top: 0;
    }

@media screen and (max-width: 900px) {
    #CenterIntro p {
        flex-direction: column;
        align-items: center;
    }

    .mixed-paragraph {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}


.emphasis figure img {
    border-radius: 7px;
}

figure.hover-swap {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 200px;
    height: 240px;
}

    .hover-swap img {
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.3s ease;
    }

        .hover-swap img.default {
            opacity: 1;
            z-index: 1;
        }

        .hover-swap img.hover {
            opacity: 0;
            z-index: 2;
        }

    .hover-swap:hover img.default {
        opacity: 0;
    }

    .hover-swap:hover img.hover {
        opacity: 1;
    }
