body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.background {
    z-index: -10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for contrast */
}

.content {
    position: relative;
    z-index: 10; /* Ensure content is above background */
    color: white;
    text-align: center;
    padding-top: 25px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    /* background-color: rgba(255, 255, 255, 0.2); */
    animation: circle-move 10s linear infinite;
    opacity: 0.5;
    filter: blur(2px);
}

@keyframes circle-move {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100vw, 100vh) scale(1);
    }
}

.line {
    position: absolute;
    width: 2px; /* Line width */
    background-color: rgba(255, 255, 255, 0.2);
    animation: lineMove 10s linear infinite;
    filter: blur(1px);
}

@keyframes lineMove {
    0% {
        height: 50px; /* Change this height as needed */
        transform: rotate(0deg) translateY(0);
    }
    100% {
        height: 50px; /* Change this height as needed */
        transform: rotate(360deg) translateY(0);
    }
}

.heart {
    position: relative;
    width: 100px;
    height: 90px;
    animation: heartbeat 2.5s infinite; /* Apply the heartbeat animation */
    filter: blur(2px);
    opacity: 0.9;
}

.heart:before,
.heart:after {
    position: absolute;
    content: "";
    left: 50px;
    top: 0;
    width: 50px;
    height: 80px;
    background: #8d4343;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:after {
    left: 0;
    background: #8d2242;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Animation Keyframes */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.2); /* Scale to 120% */
    }
}

.pacman {
    width: 0px;
    height: 0px;
    left: 500px;
    border-right: 60px solid transparent; /* Right side */
    border-top: 60px solid #9e7a13;           /* Top side */
    border-left: 60px solid #9e7a13;          /* Left side */
    border-bottom: 60px solid #9e7a13;        /* Bottom side */
    border-top-left-radius: 60px;        /* Top-left corner */
    border-top-right-radius: 60px;       /* Top-right corner */
    border-bottom-left-radius: 60px;     /* Bottom-left corner */
    border-bottom-right-radius: 60px;    /* Bottom-right corner */
    /* */ animation: pacman-eat 0.8s infinite; /* */       /* Apply eating animation */
    filter: blur(3px);
    opacity: 0.8;
}

/* Animation Keyframes */
@keyframes pacman-eat {
    0%, 100% {
        border-top: 60px solid #9e7a13c;      /* Full mouth */
        border-right: 60px solid transparent;
        border-left: 60px solid #9e7a13c;
        border-bottom: 60px solid #9e7a13c;
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
        transform: translate(0, 0) scale(0.5);
    }

    50% {
        border-top: 30px solid #9e7a13c;      /* Mouth closes */
        border-left: 60px solid #9e7a13c;     /* Keep left side */
        border-right: 60px solid transparent;
        border-bottom: 60px solid #9e7a13c;    /* Keep bottom */
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
        transform: translate(25vw, 0) scale(0.7);
    }
}

.score-circle {
    /* Position the element fixed relative to the viewport */
    position: fixed;
    bottom: 20px; /* Adjust distance from the bottom */
    right: 45px;  /* Adjust distance from the right */

    /* Create the circular shape */
    height: 35px;
    width: 35px;
    background-color:#a9a9a9; /* Dark Gray color */
    border-radius: 50%; /* Makes the square element a perfect circle */

    /* Center the score text inside the circle */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Add some visual styling */
    color:  #fff0f5; /* Lavender Blush color */
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Ensure it's on top of other content */
}

.score-text {
    /* Additional styling for the text if needed */
    line-height: 1; /* Helps with vertical alignment */
    animation: score-bounce 1.2s infinite;
}

.score-label {
  display: none; /* Hidden by default and takes no space */
}

.score-circle:hover .score-label {
  display: block; /* Becomes visible and occupies space on hover */
}

/* Animation Keyframes */
@keyframes score-bounce {
    0%, 30%, 100% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.25); /* Scale to 120% */
    }
}
