@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: whitesmoke;
}

.tooltip-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    background-color: rgb(255, 255, 255);
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgb(211, 211, 211);
}

.tooltip-container:hover {
    background-color: rgb(220, 220, 220);
}

.text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(0, 0, 0);
}

.svgIcon {
    width: 16px;
    height: auto;
}

.tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%);
    padding: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 15px rgb(205, 205, 205);
    border-radius: 12px;
    color: rgb(34, 34, 34);
    width: 370px;
}

.tooltip .image-name {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tooltip .image-name .svgIcon {
    height: 50px;
    width: 50px;
    border: 2px solid black;
    padding: 5px;
    border-radius: 50%;
}

.tooltip .follow {
    margin: 10px 0;
    font-size: 13px;
}

.tooltip .description {
    font-size: 13px;
    margin-bottom: 10px;
}

.tooltip button {
    background-color: rgb(48, 48, 48);
    color: white;
    border-radius: 25px;
    padding: 7px 12px;
    cursor: pointer;
}

.tooltip button:hover {
    background-color: black;
}

.tooltip::before {
    position: absolute;
    content: "";
    height: 0.6em;
    width: 0.6em;
    bottom: -0.2em;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    background-color: rgb(255, 255, 255);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .tooltip {
        width: 300px;
        padding: 10px;
    }

    .tooltip .image-name .svgIcon {
        height: 40px;
        width: 40px;
    }

    .tooltip .follow,
    .tooltip .description {
        font-size: 12px;
    }

    .tooltip button {
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .tooltip {
        width: 250px;
        padding: 8px;
    }

    .tooltip .image-name .svgIcon {
        height: 35px;
        width: 35px;
    }

    .tooltip .follow,
    .tooltip .description {
        font-size: 11px;
    }

    .tooltip button {
        padding: 4px 8px;
    }
}