*{
    box-sizing: border-box;
}

html,body{
    margin: 0;
    padding: 0;
    cursor: crosshair;
}

.backg{
    display: none;
    background: url(../images/backbrick-2.jpg) no-repeat center center; 
    background-size: cover;
    width: 100vw;
    height: 100vh; 
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative; 
}

.obj-1{
    height: 100px;
    width: 100px;
    z-index: 5;
    background: radial-gradient(circle, 
        red 20%,  
        white 20%,
        white 40%,
        red 40%,  
        red 60%,  
        white 60%,
        white 80%,
        red 80%   
    );
    border-radius: 50%;
    position: absolute;
    top: 100%;
    animation: object-move 2s linear infinite; 
}


@keyframes object-move {
    0% {
        transform: translateY(0%); 
    }
    100% {
        transform: translateY(-100vh);
    }
}

@keyframes p_up {
    0%{
        transform: translateY(0); 
    }
    100%{
        transform: translateY(-200%);
    }
}
@keyframes p_down {
    0%{
        transform: translateY(0); 
    }
    100%{
        transform: translateY(200%);
    }
}
@keyframes p_left {
    0%{
        transform: translateX(0); 
    }
    100%{
        transform: translateX(-200%);
    }
}
@keyframes p_right {
    0%{
        transform: translateX(0); 
    }
    100%{
        transform: translateX(200%);
    }
}
.piece{
    background-color: red;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: absolute;
    display: none;
    animation:none;
}

.bullet{
    background-color: #000000d0;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    display: none;
}

.score{
    position: absolute;
    top: 0;
    left: 5px;
    z-index: 2;
    text-shadow: 1px 2px 4px #ffffff;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.time{
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 2;
    text-shadow: 1px 2px 4px #ffffff;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.start_btn {
    font-size: 48px;
    padding: 20px 50px;
    border: 3px solid green;
    color: white;
    background-color: green;
    position: absolute;
    cursor: pointer;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 128, 0, 0.3);
}

.start_btn:hover {
    background-color: darkgreen;
    color: white;
    box-shadow: 0 12px 20px rgba(0, 128, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.start_btn:active {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 128, 0, 0.4);
}


.gameover {
    font-family: 'Arial Black', sans-serif;
    font-size: 64px;
    text-transform: uppercase;
    color: red;
    text-shadow: 3px 3px 5px black, -3px -3px 5px #ffcccc;
    text-align: center;
    display: none;
    position: absolute;
    top: 20%;
    left: 37%;
    animation: fadeIn 2s ease-in-out, pulse 1.5s infinite;
}

#game_title{
    font-family: 'Arial Black', sans-serif;
    font-size: 64px;
    color: black;
    margin: 0;
    padding: 0;
    text-shadow: 3px 3px 5px black, 3px 3px 5px #ffffffd0;
    position: absolute;
    top: 0;
    left: 37%;
    z-index: 5;

}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes score_update {
    0% {
        transform: scale(2);
        color: rgb(111, 255, 111);
    }
    100% {
        transform: scale(1);
        color: black;
    }
}

#score {
    display: inline-block; /* Ensure transform works */
    transition: transform 1s ease;
}



.bigg{
    left: 65px;
    transform: scale(2);
    transition: transform 2s ease-in-out, left 2s ease;
}