body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to bottom, #9ed9f0 54%, #54961d 60%, #54961d 70%, #32CD32 100%);
    margin: 0;
}

.pokeball {
    position: relative;
    width: 200px;
    height: 200px;
    border: 10px solid black;
    border-radius: 50%;
    background: white;
    transition: transform 0.5s ease; /* Smooth transition for the transform property */
    /* Add solid shadow */
    box-shadow: -10px 30px 0px -15px rgba(0, 0, 0, 0.2); /* x-offset, y-offset, blur-radius, spread-radius, color */
}

.pokeball:hover {
    animation: rock 1s infinite ease-in-out;
}

@keyframes rock {
    0%, 100% {
        transform: rotate(-15deg) translateX(-15px);
    }
    50% {
        transform: rotate(15deg) translateX(15px);
    }
}

.top-half {
    position: absolute;
    width: 100%;
    height: 50%;
    background: red;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    top: 0;
    left: 0;
    overflow: hidden;
}

.bottom-half {
    position: absolute;
    width: 100%;
    height: 50%;
    background: white;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    bottom: 0;
    left: 0;
}

.middle-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    background: black;
    z-index: 1;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    background: white;
    border: 10px solid black;
    border-radius: 50%;
    z-index: 1;

}

.inner-circle {
    position: absolute;
    top: 28%;
    left: 28%;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    margin-left: -10px;
    background: white;
    border-radius: 50%;
    border: 6px solid black;
}

.shine {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
