* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, #3c86f5, #f25f5f); /* Added a subtle gradient */

}

#main {

    position: relative;

    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#panel {
    height: 80%;
    width: 80%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    background-color: black;
    box-shadow: rgba(0, 0, 0, 0.50) 0px 54px 55px, rgba(0, 0, 0, 0.50) 0px -12px 30px, rgba(0, 0, 0, 0.50) 0px 4px 6px, rgba(0, 0, 0, 0.50) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
#panel-top {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background-color: #cce5ff;
    color: #004488;

}

.elem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box {
    padding: 10px 20px;
    background-color: white;
    color: #004488;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

#Bubble-box {
    width: 100%;
    height: calc(100% - 100px);
    background-color: #3f78cd;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* overflow: auto; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble {
    height: 50px;
    width: 50px;
    background-color: red;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added shadow for 3D feel */
    transition: transform 0.1s ease-in-out; /* Added transition for smooth animation */
}

.bubble:hover {
    transform: scale(1.1); /* Slightly increased scale on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.bubble:active {
    transform: scale(0.95); /* Slight shrink effect on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reset shadow on click */
}

.special-bubble {
    border: 2px solid gold;
    color: black; /* Adjust text color for better visibility */
    font-size: 1.5em;
    box-shadow: 0 4px 8px gold; /* Add a gold shadow/glow */
}

#game-over {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 50px auto;
    width: 80%; /* Adjust as needed */
    max-width: 500px;
}

#game-over h2 {
    color: #e63946;
    margin-bottom: 10px;
}

#game-over p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#game-over button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    display: block; /* Add this line */
    margin: 10px auto; /* Keep the buttons centered */
}

/* Style for the container of the buttons to ensure they stack */
body > div:nth-child(3),
body > div:nth-child(4) {
    display: block; /* Ensure these divs are block-level */
    text-align: center; /* Keep the buttons centered within their divs */
    margin-top: 20px; /* Maintain the top margin */
}