body {
    background-color: #fceabb; /* Light yellow background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#infoContainer {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#gameTitle {
    font-size: 36px; /* Larger font size */
    color: #ff6f61; /* Reddish-orange color */
    margin-top: 0;
    margin-bottom: 10px; /* Added margin at the bottom */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Shadow effect */
}

#gameInfo {
    font-size: 18px; /* Increased font size */
    color: #003f88; /* Deep blue color */
    margin-top: 5px;
}

#gameContainer {
    position: relative;
    width: 400px;
    height: 400px;
    background-color: #90e0ef; /* Light blue background */
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Prevent emojis from going out of the box */
}

#gameBoard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#player {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    margin-bottom: 10px;
    animation: bounce 0.5s infinite alternate; /* Bouncing animation */
}

.fruit, .obstacle {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 40px;
    animation: fall 5s linear forwards;
}

#score {
    position: absolute;
    top: 20px; /* Adjusted position */
    right: 20px; /* Adjusted position */
    font-size: 24px; /* Larger font size */
    z-index: 1; /* Ensure score is displayed above other elements */
    color: #ff6f61; /* Reddish-orange color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Shadow effect */
}

#timer {
    position: absolute;
    top: 60px; /* Adjusted position */
    right: 20px; /* Adjusted position */
    font-size: 24px; /* Larger font size */
    z-index: 1; /* Ensure timer is displayed above other elements */
    color: #003f88; /* Deep blue color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Shadow effect */
}

@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(400px);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}






#infoContainer {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease;
}

#gameTitle {
    font-size: 36px;
    color: #ff6f61;
    margin-top: 0;
    margin-bottom: 10px;
}

#gameInfo {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
}

#gameContainer {
    position: relative;
    width: 400px;
    height: 400px;
    background-color: #7ed56f;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 1s ease;
    margin-top: 100px;
}

#gameBoard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
}

.fruit, .obstacle {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 40px;
    animation: fall 5s linear forwards;
}

#score, #timer {
    position: absolute;
    font-size: 20px;
    color: #fff;
}

#score {
    top: 20px;
    left: 20px;
}

#timer {
    top: 60px;
    left: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(400px);
    }
}

