@import url("https://fonts.googleapis.com/css?family=Bungee");

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle, #2b2b2b 0%, #111 100%);
    color: white;
    font-family: "Bungee", cursive;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

svg {
    width: 80%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.error-text {
    font-size: 100px;
}

h1 {
    font-size: clamp(24px, 5vw, 40px);
    margin: 20px 0 10px;
    color: #e62326; /* Цвет тревоги */
}

p {
    font-family: sans-serif; /* Для длинного текста лучше читаемый шрифт */
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.btn {
    background: #2ebf8f;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(42, 167, 204, 0.4);
}

.btn:hover {
    background: #fff;
    color: #2ebf8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 167, 204, 0.6);
}

/* Элементы робота */
.lightblue {
    fill: #444;
}

.eye {
    /* Значения по умолчанию, если JS не сработал */
    cx: calc(130px + (var(--mouse-x, 0) * 10px));
    cy: calc(65px + (var(--mouse-y, 0) * 10px));
}

.alarm {
    animation: alarmOn 0.6s infinite alternate;
}

@keyframes alarmOn {
    from { fill: #e62326; filter: drop-shadow(0 0 0px red); }
    to { fill: #ff0000; filter: drop-shadow(0 0 10px red); }
}

/* Контейнер для робота и цифр */
.robot-container {
    position: relative;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px; /* Для 3D эффекта наклона */
}

#robot-guard {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: floating 3s ease-in-out infinite; /* Эффект левитации */
    transition: transform 0.1s ease-out; /* Для наклона за мышью */
    z-index: 2;
    position: relative;
}

/* Цифры 403 на заднем плане */
.error-code {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(90px, 20vw, 180px);
    font-family: 'Bungee', cursive;
    color: rgba(255, 255, 255, 0.05); /* Полупрозрачные цифры */
    z-index: 1;
    pointer-events: none;
}

/* Анимация левитации */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Мигалка */
.alarm-light {
    animation: blink 0.5s infinite alternate;
}

@keyframes blink {
    from { fill: #e62326; filter: blur(0px); }
    to { fill: #ff4d4d; filter: blur(4px); }
}

/* Зрачок */
#eyef {
    transition: all 0.05s linear;
}