body {
    background-color:sandybrown;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Center the content vertically */
}

#container {
    background-color: saddlebrown;
    height: 860px;
    width: 1290px;
    border: 5px solid black;
    border-radius: 20px;
    overflow: hidden;
}

#panel1 {
    height: 400px;
    width: 400px;
    border: 5px dashed darkgreen;
    background-color: lightblue;
    float: left;
    margin: 10px;
    border-radius: 20px;
}
#ball {
    height: 200px; /* Adjust height for apple shape */
    width: 250px;  /* Adjust width for apple shape */
    position: relative;
    background-color: darkred; /* Base color of the apple */
    border-radius: 80px 80px 119px 119px; /* Adjusted for a flatter bottom */
    margin-left: 50px;
    margin-top: 100px;
}

/* Add a leaf to the apple */
.leaf {
    position: absolute;
    width: 30px; /* Width of the leaf */
    height: 15px; /* Height of the leaf */
    background-color: #4caf50; /* Leaf color */
    border-radius: 10px; /* Rounded leaf */
    top: -5px; /* Position above the apple */
    left: 100px; 
    transform: rotate(-45deg); 
}
.leaf2 {
    position: absolute;
    width: 60px; /* Width of the leaf */
    height: 50px; /* Height of the leaf */
    background-color: #4c8f50; /* Leaf color */
    border-radius: 10px; /* Rounded leaf */
    top: -10px; /* Position above the apple */
    left: 200px; 
    transform: rotate(-45deg); 
}

#panel2 {
    background-color: seagreen;
    height: 400px;
    width: 400px;
    border: 5px dashed #222222;
    float: left;
    margin: 10px;
    border-radius: 20px;
    transition: background-color 0.5s ease;
}

.slide {
    height: 130px;
    width: 480px;  
    background-image: url('img/witch.png');
    background-size: contain; 
    background-repeat: no-repeat; /* Prevent image from repeating */
    background-position: center; /* Center the image */
    margin: 10px;
    border-radius: 20px;
    transition: filter 0.5s ease; /* Smooth transition for filter effect */
}

.slidedown {
    margin-top: 280px; /* Adjust vertical position */
    filter: invert(1); /* Invert colors */ 
}


.panel-slidedown {
    background-color: rgba(106, 160, 0, 0.7); 
}

#panel3 {
    height: 400px;
    width: 400px;
    border: 5px dashed black;
    background-color: rebeccapurple;
    float: left;
    margin: 10px;
    border-radius: 20px;
}

#bomb {
    height: 300px; 
    width: 350px;  
    background-color: darkorange; /* Base color of the bomb */
    border-radius: 225px 225px 170px 170px; 
    position: relative; 
    margin: 20px;
    cursor: pointer; 
    
}

#panel4 {
    height: 400px;
    width: 400px;
    border: 5px dashed #90f;
    background-color: black;
    float: left;
    margin: 10px;
    border-radius: 20px;
}

span {
    height: 46px;
    width: 110px;
    margin: 10px 10px;
    border-radius: 30px;
    float: left;
}
.candy-container {
    width: 80px;  /* Fixed width */
    height: 100px;  /* Fixed height */
    display: inline-block;
    vertical-align: top;  /* Ensure containers stay aligned */
    margin: 5px;
    position: relative;  /* Relative positioning for the candy inside */
}

.candy {
    background-color: #fff; /* White top */
    clip-path: polygon(
            50% 0%,    /* Top center */
            75% 90%,   /* Bottom-right */
            25% 90%    /* Bottom-left */
    );
    height: 100px;  /* Smaller size */
    width: 80px;   /* Smaller width */
    margin: 5px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50% 50% 30% 30%; /* Rounded corners */
    display: inline-block;  /* Prevent layout shift */
    transition: background-color 0.5s ease; /* Smooth transition */
    animation: none;
}

/* Add the yellow and orange stripes for candy corn */
.candy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #ffcc00; /* Yellow middle section */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.candy::after {
    content: '';
    position: absolute;
    top: 75%;
    left: 0;
    width: 100%;
    height: 25%;
    background-color: #ff7518; /* Orange bottom section */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Shrink and grow animation */
@keyframes shrinkGrow {
    0% {
        width: 80px; /* Original size */
        height: 100px;
    }
    50% {
        width: 80px; /* Shrunk size */
        height: 50px;
        margin-top: 10px;
    }
    100% {
        width: 80px; /* Back to original size */
        height: 100px;
    }
}

/* When candy is clicked, trigger the shrink-grow animation */
.candy.shrink-grow {
    animation: shrinkGrow 3s forwards;
}

/* Hover effect: Pulsate between specific colors */
.candy:hover {
    animation: pulsateCandy 3s infinite;
}

/* Animation for pulsating between colors */
@keyframes pulsateCandy {
    0% {
        background-color: #fff; /* White */
    }
    33% {
        background-color: #ffcc00; /* Yellow */
    }
    66% {
        background-color: #ff7518; /* Orange */
    }
    100% {
        background-color: #fff; /* White */
    }
}

#panel5 {
    height: 400px;
    width: 400px;
    border: 5px dashed #90f;
    background-color: black;
    float: left;
    margin: 10px;
    border-radius: 20px;
}

#bat {
    display: none;
    height: 340px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

#pull {
    height: 50px;
    width: 100px;
    display: block;
    position: relative;
    left: 150px;
    background-color: lightyellow;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

#panel6 {
    height: 400px;
    width: 400px;
    border: 5px dashed black;
    background-color: seagreen;
    float: left;
    margin: 10px;
    border-radius: 20px;
}
.outline {
    width: 200px; /* Match the image size */
    height: 180px;
    background-image: url('img/catoutline.png'); 
    background-size: contain; /* Scale to fit */
    background-repeat: no-repeat; 
    margin-left: 80px;
    top: 180px ;
    left: 100px;
    position: relative;
    
}
.draggable {
    width:200px; 
    height: 180px;
    cursor: pointer;
    position: absolute; /* Position it to be draggable */
    top: 450px; /* Reset top and left to 0 for alignment */
    left: 570px;
}