﻿:root {
    --yellow: #F5C518;
    --dark: #1C2B3A;
    --mid: #2E4A5F;
    --light: #F9F9F6;
    --gray: #C8D4DC;
}


.err500-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 40px;
    pointer-events: none;
    z-index: 0;
}

.err500-light-fixture {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: err500-swing 4s ease-in-out infinite;
    transform-origin: top center;
}

    .err500-light-fixture:nth-child(2) {
        animation-delay: .6s;
    }

    .err500-light-fixture:nth-child(3) {
        animation-delay: 1.2s;
    }

    .err500-light-fixture:nth-child(4) {
        animation-delay: .3s;
    }

    .err500-light-fixture:nth-child(5) {
        animation-delay: .9s;
    }

@keyframes err500-swing {
    0%,100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

.err500-cord {
    width: 2px;
    height: 60px;
    background: #aaa;
}

.err500-shade {
    width: 70px;
    height: 34px;
    background: #ddd;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    position: relative;
}

    .err500-shade::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 12px;
        background: #e8e8e8;
        border-radius: 0 0 30px 30px;
    }

.err500-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding: 60px 80px 80px;
    max-width: 1400px;
    width: 95%;
    animation: err500-fadeUp .7s ease both;
}

@keyframes err500-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.err500-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.err500-error-code {
    font-family: 'Black Ops One', sans-serif;
    font-size: clamp(100px, 18vw, 180px);
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -4px;
    filter: drop-shadow(4px 6px 0 #c9a200);
    animation: pulse 3s ease-in-out infinite;
}



@keyframes err500-pulse {
    0%,100% {
        filter: drop-shadow(4px 6px 0 #c9a200);
    }

    50% {
        filter: drop-shadow(4px 6px 14px #f5c51888);
    }
}

.err500-label {
    font-size: clamp(14px, 2.4vw, 22px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 4px;
    text-transform: uppercase;
}

    .err500-label span {
        font-weight: 900;
        display: block;
    }

.err500-desc {
    font-size: 15px;
    color: #6b8090;
    max-width: 280px;
    line-height: 1.6;
    margin-top: 6px;
}

.err500-btn {
    margin-top: 20px;
    display: inline-block;
    padding: 14px 32px;
    background: var(--yellow);
    color: var(--dark);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 4px 4px 0 #c9a200;
    transition: transform .15s, box-shadow .15s;
}

    .err500-btn:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 #c9a200;
    }

.err500-right {
    position: relative;
    flex-shrink: 0;
    width: 360px;
}

.err500-circuit {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 160px;
    height: 200px;
    opacity: .25;
}

.err500-server {
    position: relative;
    width: 200px;
    margin: 0 auto;
}

.err500-monitor {
    position: absolute;
    top: -70px;
    right: -10px;
    width: 110px;
    height: 80px;
    background: #e0e6ea;
    border-radius: 8px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,.2);
    animation: err500-flicker 2.5s ease-in-out infinite;
}

@keyframes err500-flicker {
    0%,100%,94% {
        opacity: 1;
    }

    95% {
        opacity: .4;
    }

    97% {
        opacity: 1;
    }

    98% {
        opacity: .6;
    }
}

.err500-monitor-face {
    font-size: 28px;
    color: var(--yellow);
    font-weight: 900;
    line-height: 1;
}

.err500-monitor-mouth {
    width: 30px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    margin-top: 6px;
}

.err500-monitor-stand {
    width: 30px;
    height: 8px;
    background: #c8cfd4;
    border-radius: 0 0 3px 3px;
    margin: 0 auto;
}

.err500-rack-body {
    background: var(--dark);
    border-radius: 6px 6px 4px 4px;
    padding: 8px;
    box-shadow: 6px 8px 20px rgba(0,0,0,.3);
}

.err500-rack-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--mid);
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 5px 8px;
    height: 26px;
}

.err500-rack-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
}

.err500-rack-dots {
    display: flex;
    gap: 3px;
}

.err500-rack-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--yellow);
    animation: err500-blink 1.8s ease-in-out infinite;
}

    .err500-rack-dot:nth-child(2) {
        animation-delay: .3s;
    }

    .err500-rack-dot:nth-child(3) {
        animation-delay: .6s;
    }

@keyframes err500-blink {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

.err500-rack-bottom {
    display: flex;
    justify-content: center;
    padding: 6px 0 2px;
}

.err500-power-port {
    width: 14px;
    height: 14px;
    background: #111;
    border-radius: 50%;
    border: 2px solid #444;
}

.err500-cable-wrap {
    position: absolute;
    bottom: 0;
    left: 60px;
    width: 130px;
    height: 80px;
    pointer-events: none;
}

.err500-dog-wrap {
    position: absolute;
    bottom: 0;
    left: -100px;
    animation: err500-dogBounce 3s ease-in-out infinite;
}

@keyframes err500-dogBounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.err500-outlet {
    position: absolute;
    bottom: 30px;
    left: -130px;
    width: 40px;
    height: 40px;
    background: #3a4e5e;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.err500-outlet-slot {
    width: 6px;
    height: 10px;
    background: #1a2a38;
    border-radius: 2px;
}

.err500-outlet-slots {
    display: flex;
    gap: 6px;
}

.err500-spark {
    position: absolute;
    bottom: 36px;
    left: -88px;
    font-size: 18px;
    animation: err500-sparkAnim 1.2s ease-in-out infinite;
}

@keyframes err500-sparkAnim {
    0%,100% {
        opacity: 1;
        transform: scale(1) rotate(-10deg);
    }

    50% {
        opacity: .3;
        transform: scale(1.4) rotate(10deg);
    }
}

.err500-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0,0,0,.15) 0%, transparent 70%);
}
