body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: black;
    background-image: url(summer-event-background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    animation: waveBackground 5s ease-in-out 1; /* Run the animation once */
}
.title {
    margin-top: 20px;
    background-color: aliceblue;
    height: 100px;
    width: 300px;
    position: absolute; /* Position the title absolutely */
    top: 0; /* Align it to the top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%) translateY(-100%); /* Start off-screen (top) */
    line-height: 50px; /* Vertically center the text */
    text-align: center; /* Center the text inside the title */
    font-size: 18px; /* Adjust font size */
    border-radius: 10px; /* Optional: Add rounded corners */
    font-family: 'Pacifico', cursive; /* Apply the summery font */
    color: #ff9966; /* Optional: Add a summery color */
    animation: slideInTitle 2s ease-out forwards; /* Apply slide-in animation */
}

.cursor-trail {
    position: absolute;
    width: 10px; /* Size of the trail */
    height: 10px;
    background-color: #ff9966; /* Summery color */
    border-radius: 50%; /* Make it circular */
    pointer-events: none; /* Prevent interference with clicks */
    box-shadow: 0 0 10px rgba(255, 153, 102, 0.8); /* Add a glowing effect */
    animation: fadeOut 0.5s ease-out forwards; /* Fade out animation */
}

#game-container {
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 0 auto;
    overflow: hidden;
}

#score-display {
    text-align: center;
    font-size: 24px;
    font-family: 'Pacifico', cursive;
    color: #ff9966;
    margin: 20px 0;
}

#ice-lolly {
    position: absolute;
    width: 50px;
    height: 100px;
    background-image: url('ice-lolly.png'); /* Replace with the path to your image */
    background-size: cover; /* Ensure the image covers the entire element */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for depth */
    display: none; /* Initially hidden */
}

#play-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    font-family: 'Pacifico', cursive;
    color: #fff;
    background-color: #ff9966;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#play-button:hover {
    background-color: #ff7744; /* Darker shade on hover */
}

.instructions {
    position: fixed;
    top: 50%; /* Start vertically centered */
    left: -300px; /* Start off-screen to the left */
    background-color: #ff9966; /* Summery color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Pacifico', cursive;
    font-size: 16px;
    opacity: 0; /* Initially invisible */
    transform: translateY(-50%); /* Center vertically */
    transition: all 0.5s ease; /* Smooth transition */
}

.instructions.visible {
    top: 50%; /* Vertically centered */
    left: 50%; /* Horizontally centered */
    transform: translate(-50%, -50%); /* Perfectly center the element */
    opacity: 1; /* Make visible */
}

@keyframes waveBackground {
    0%, 100% {
        background-position: center;
    }
    50% {
        background-position: 50% 60%; /* Slightly shift the position */
    }
}

@keyframes slideInTitle {
    0% {
        transform: translateX(-50%) translateY(-100%); /* Start off-screen (top) */
    }
    100% {
        transform: translateX(-50%) translateY(0); /* End at the normal position */
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1; /* Fully visible */
        transform: scale(1); /* Normal size */
    }
    100% {
        opacity: 0; /* Fully transparent */
        transform: scale(0.5); /* Shrink slightly */
    }
}