
body {
    margin: 0; 
    height: 100vh; 
    display: flex;
    justify-content: center; 
    align-items: center;     
background: linear-gradient(to bottom, #1b2031, #5b1f74);
}
.game {
    width: 900px;
    height: 400px;
    border: 1px solid black;
    margin: auto;
    position: relative;
    overflow: hidden;
background-color: #1b2030;
}

#elgato {
    width: 50px;
    height: 50px;
    background-image: url('img/elgato.png');
background-size: cover;
position: absolute;
    top: 330px;
    left: 50px;
    z-index: 5;
    transform: scaleX(-1);
    animation: idle 1.2s ease-in-out infinite;
    @keyframes idle {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.97); }
    100% { transform: scaleY(1); }
}
}

#guard {
    width: 35px;
    height: 50px;
background-image: url('img/guard.png');
background-size: cover;
    position: absolute;
    top: 330px;
    left: 880px;
    z-index: 5;
}

#gameover {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
background: red;
    color: white;
    padding: 20px;
    font-size: 32px;
    font-weight: 20;
    border-radius: 20px;
    color: #ffd8a8;
    text-shadow: 0 0 20px rgba(255,200,150,0.6);
    z-index: 00;
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
   
    font-weight: bold;
    z-index: 10;
    font-size: 20px;
color: #fff;
text-shadow: 0 0 10px rgba(255,255,255,0.4);
transition: transform 0.2s ease;
}

#restart {
    display: none;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
padding: 10px 20px;
font-size: 20px;
z-index: 10; 
}
                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
.cloud {
    position: absolute;
    width: 120px;
    height: 60px;
    background-image: url('img/cloud.png');
background-size: cover;
opacity: 0.7;
z-index: 1;
}

.cloud {
    position: absolute;
    width: 120px;
    height: 80px;
    background-image: url('img/cloud.png');
background-size: cover;
opacity: 0.7;
z-index: 1;
}
/* backround */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #1b2031, #3b3f5e);
overflow: hidden;
}

/* evil cat */
.catty {
    position: absolute;
    width: 220px;
    opacity: 0.15;
pointer-events: none;
z-index: 0;
animation: float 6s ease-in-out infinite;
}

.catty.left {
    left: 40px;
bottom: 40px;
}

.catty.right {
    right: 40px;
    top: 40px;
transform: scaleX(-1);
}


.game {
    position: relative;
    z-index: 5;
box-shadow: 0 0 60px rgba(0,0,0,0.6);
border-radius: 12px;
}

 
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
   100% { transform: translateY(0); }
}

.title-wrap {
    position: absolute;
    top: 40px;
text-align: center;
z-index: 10;
pointer-events: none;
}


.title-main {
    font-size: 64px;
    letter-spacing: 6px;
    margin: 0;
    font-family: 'Arial', sans-serif;
color: #ffffff;
    text-shadow:
        0 0 10px rgba(255,255,255,0.4),
        0 0 25px rgba(120,140,255,0.6),
        0 0 60px rgba(80,100,255,0.8);
animation: glow 3s ease-in-out infinite;
}


.title-sub {
     margin-top: 8px;
    font-size: 18px;
letter-spacing: 3px;
color: rgba(200,210,255,0.7);
text-transform: uppercase;
}


@keyframes glow {
    0% {
        text-shadow:
            0 0 10px rgba(255,255,255,0.4),
            0 0 25px rgba(120,140,255,0.6),
            0 0 60px rgba(80,100,255,0.8);
    }
    50% {
        text-shadow:
            0 0 20px rgba(255,255,255,0.8),
            0 0 40px rgba(140,160,255,1),
            0 0 90px rgba(100,120,255,1);
    }
    100% {
        text-shadow:
            0 0 10px rgba(255,255,255,0.4),
            0 0 25px rgba(120,140,255,0.6),
            0 0 60px rgba(80,100,255,0.8);
    }
}
.game, #restart {
        border-radius: 18px;
}

#particles {
        position: absolute;
       left: 0;
        top: 0;
    width: 100%;
    height: 100%;
pointer-events: none;
    overflow: hidden;
}


.particle {
    position: absolute;
    width: 6px;
height: 6px;
    background: rgba(255,255,255,0.8);
border-radius: 50%;
    animation: particle 600ms ease-out forwards;
}

@keyframes particle {
    0% {
        transform: translate(0,0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}
.signature {
    position: fixed;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    font-family: Arial, sans-serif;
    pointer-events: none;
    user-select: none;
}
.game {
    cursor: url('img/cat-cursor.png'), auto;
}