@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudziMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY5LjYxMDIuY29sb3I6IzAwNjdFMjvC8W5vbWVvcnM6MmNhcmludC8qojMTMwLzI4NC8xNTUnZmlsbC1ydWxlPSJldmVub2RkIj4KPC9nPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* --- Superhero Gallery Styles --- */
.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.main-image-container {
    position: relative;
    display: inline-block;
}

.main-image {
    height: 600px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    border-radius: 16px;
    transition: transform 0.3s;
    display: block;
    position: relative;
    z-index: 2;
}

/* Animation1: Speeding in from left */
.speed-in {
    animation: speed-in-anim 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes speed-in-anim {
    0% {
        transform: translateX(-120vw) scale(1.1);
        opacity: 0;
    }

    80% {
        transform: translateX(0) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Animation2: Superhero landing */
.landing {
    animation: landing-anim 0.9s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes landing-anim {
    0% {
        transform: translateY(-120vh) scaleY(1.2);
        opacity: 0;
    }

    80% {
        transform: translateY(0) scaleY(0.95);
        opacity: 1;
    }

    85% {
        transform: translateY(0) scaleY(1.05) scaleX(0.95);
    }

    90% {
        transform: translateY(0) scaleY(0.98) scaleX(1.02);
    }

    100% {
        transform: translateY(0) scaleY(1) scaleX(1);
    }
}

.landing-shake {
    animation: landing-shake-anim 0.3s linear;
}

@keyframes landing-shake-anim {
    0% {
        transform: translateY(0) scale(1);
    }

    20% {
        transform: translateY(0) scale(1.05) rotate(-2deg);
    }

    40% {
        transform: translateY(0) scale(0.98) rotate(2deg);
    }

    60% {
        transform: translateY(0) scale(1.03) rotate(-1deg);
    }

    80% {
        transform: translateY(0) scale(1) rotate(1deg);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Animation3/4/5: GIF overlays */
.explosion-gif, .star-gif, .sparkle-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: auto;
    z-index: 20;
    pointer-events: none;
    animation: overlay-fade 0.5s linear;
}

@keyframes overlay-fade {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Animation6: Hero Glow */
.hero-glow {
    box-shadow: 0 60px 20px #FFD600, 0 120px 40px #2979FF;
    animation: glow-anim 0.7s linear;
}

@keyframes glow-anim {
    0% {
        box-shadow: 0 0 #FFD600, 0 0 #2979FF;
    }

    40% {
        box-shadow: 0 60px 20px #FFD600, 0 120px 40px #2979FF;
    }

    80% {
        box-shadow: 0 60px 20px #FFD600, 0 120px 40px #2979FF;
    }

    100% {
        box-shadow: 0 0 #FFD600, 0 0 #2979FF;
    }
}

.hero-glow-impact {
    animation: glow-impact-anim 0.3s linear;
}

@keyframes glow-impact-anim {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08) rotate(-2deg);
    }

    60% {
        transform: scale(0.97) rotate(2deg);
    }

    100% {
        transform: scale(1);
    }
}

/* Animation7: Zoom In From Distance */
.zoom-in {
    animation: zoom-in-anim 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes zoom-in-anim {
    0% {
        transform: scale(0.1) rotate(-8deg);
        opacity: 0;
    }

    80% {
        transform: scale(1.05) rotate(2deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.zoom-in-impact {
    animation: zoom-in-impact-anim 0.3s linear;
}

@keyframes zoom-in-impact-anim {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08) rotate(-2deg);
    }

    60% {
        transform: scale(0.97) rotate(2deg);
    }

    100% {
        transform: scale(1);
    }
}

/* Animation8: Spin In */
.spin-in {
    animation: spin-in-anim 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes spin-in-anim {
    0% {
        transform: scale(0.1) rotate(-360deg);
        opacity: 0;
    }

    80% {
        transform: scale(1.05) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.spin-in-impact {
    animation: spin-in-impact-anim 0.3s linear;
}

@keyframes spin-in-impact-anim {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08) rotate(-2deg);
    }

    60% {
        transform: scale(0.97) rotate(2deg);
    }

    100% {
        transform: scale(1);
    }
}

.side-image {
    max-width: 180px;
    max-height: 180px;
    border-radius: 12px;
    filter: blur(1px);
    opacity: 0.5;
    transition: transform 0.3s;
}

.comic-bubble {
    position: absolute;
    width: 300px;
    height: auto;
    pointer-events: none;
    z-index: 10;
    opacity: 0.95;
}

.top-left {
    top: 30px;
    left: 20vw;
    transform: rotate(-10deg);
}

.top-right {
    top: 30px;
    right: 20vw;
    transform: rotate(10deg);
}

.comic-pop {
    animation: comic-pop-anim 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes comic-pop-anim {
    0% {
        transform: scale(0.2) rotate(-10deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: scale(0.95) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.hero-count-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 50px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    text-align: center;
    font-size: 1.3em;
    z-index: 10000;
    letter-spacing: 1px;
}

.speed-lines {
 position: absolute;
 top:0;
 left:0;
 width:600px;
 height:600px;
 z-index:1;
 pointer-events: none;
 animation: speed-lines-fade 0.8s linear;
}

@keyframes speed-lines-fade {
0% { opacity:0; }
20% { opacity:1; }
80% { opacity:1; }
100% { opacity:0; }
}
/* --- End Superhero Gallery Styles --- */
