<div class="wrapper-404">
<div class="content-404">
<div class="text-bg">404</div>
<div class="monks-area">
<div class="monk monk-left">
<div class="monk-body"></div>
<div class="monk-head"></div>
<div class="monk-arm"></div>
</div>
<div class="monk monk-right">
<div class="monk-body"></div>
<div class="monk-head"></div>
<div class="monk-arm"></div>
</div>
</div>
</div>
</div>
<style>
/* Общий контейнер */
.wrapper-404 {
width: 100%;
height: 600px;
background-color: #f38630; /* Тот самый оранжевый */
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
font-family: sans-serif;
border-radius: 10px;
}
.content-404 {
position: relative;
width: 500px;
height: 300px;
}
/* Огромная цифра 404 на фоне */
.text-bg {
position: absolute;
width: 100%;
text-align: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 180px;
font-weight: 900;
color: rgba(0, 0, 0, 0.07);
z-index: 0;
pointer-events: none;
}
.monks-area {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
}
/* Общие стили для монахов */
.monk {
position: absolute;
bottom: 20px;
width: 100px;
height: 160px;
}
.monk-left { left: 80px; }
.monk-right { right: 80px; transform: scaleX(-1); } /* Зеркалим правого */
.monk-body {
position: absolute;
bottom: 0;
width: 90px;
height: 110px;
background-color: #333;
border-radius: 45px 45px 0 0;
}
.monk-head {
position: absolute;
top: 15px;
left: 20px;
width: 50px;
height: 50px;
background-color: #eab08c;
border-radius: 50%;
}
/* Рука и палка (как на видео) */
.monk-arm {
position: absolute;
background-color: #eab08c;
border-left: 8px solid rgba(19, 36, 44, 0.1);
border-radius: 50px;
height: 100px;
width: 32px;
left: 65px;
top: 45px;
transform-origin: 16px 16px; /* Точка вращения в плече */
animation: hit-action 1.2s infinite ease-in-out;
}
/* Палка в руке */
.monk-arm::after {
content: '';
position: absolute;
bottom: -45px;
left: 8px;
width: 12px;
height: 90px;
background-color: #604030;
border-radius: 5px;
}
/* Анимация ударов */
@keyframes hit-action {
0%, 100% { transform: rotate(-35deg); }
50% { transform: rotate(155deg); }
}
/* Смещение по времени для второго монаха (чтобы били по очереди) */
.monk-right .monk-arm {
animation-delay: 0.6s;
}
/* Адаптивность для мобилок */
@media (max-width: 500px) {
.wrapper-404 { height: 400px; }
.content-404 { transform: scale(0.7); }
}
</style>