body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #f4f4f4; /* Light background color for the body */
}

main {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure content is above the water */
}

#container {
    position: relative;
    background: url('images/sandy-texture.jpg') repeat;
    width: 100%;
    height: 100%;
    background-size: auto;
    overflow: hidden;
    background-color: #ccc; /* Just for visualization */
}

#water {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Initial height of the water */
    background: 
        linear-gradient(to bottom, rgba(0, 0, 255, 0.9), rgba(0, 0, 170, 0.5)), /* Main gradient */
        linear-gradient(to bottom, rgb(250, 250, 250), rgba(119, 160, 192, 0.2)); /* Light reflection */
    background-size: cover, cover, cover; /* Ensure all layers cover the element */
    z-index: 1; /* Ensure water is behind the content */
    transition: height 2s ease-in-out; /* Smooth transition for height changes */
}

#crab {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 3; /* Ensure crab is above the water and content */
    user-select: none;
    transition: transform 0.5s ease; /* Smooth transition for movement */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

#fish {
    position: absolute;
    top: 0;
    right: 0px; /* Start off-screen */
    font-size: 2rem;
    z-index: 2; /* Ensure fish is above the water but below the crab */
    transition: transform 5s linear; /* Smooth transition for swimming */
    display: none; /* Initially hidden */
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

#emoji {
    position: absolute;
    font-size: 2rem;
    z-index: 2; /* Ensure emoji is above the water and content */
    display: none; /* Initially hidden */
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

#counter {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    color: white;
    font-family: sans-serif;
    z-index: 5; /* Ensure counter is above everything else */
    display: none; /* Initially hidden */
}