/* Centering the button */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4; /* Light background */
}

/* Button Styling */
.group {
    position: relative;
    display: inline-flex;
    height: 50px;
    width: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background-color: #222; /* Dark button */
    color: #ddd; /* Light text */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

/* Expand effect on hover */
.group:hover {
    width: 130px;
    border-radius: 30px;
}

/* Text Animation */
.button-text {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Show text on hover */
.group:hover .button-text {
    transform: translateX(-10px);
    opacity: 1;
}

/* Icon Position */
.icon {
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease-in-out;
}