/* Global Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Body Styling */
html,
body {
    display: grid;
    height: 100%;
    place-items: center;
    background: #ecf0f1;
}

/* Wrapper Styling */
.wrapper {
    width: 360px;
    height: 70px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15),
        -5px -5px 15px rgba(0, 0, 0, 0.15);
}

/* List Reset */
ul {
    list-style: none;
}

/* Icon List Styling */
.icon_list {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Individual Icon Content */
.icon_list .icon_content {
    margin: 0 10px;
    position: relative;
}

/* Tooltip Styling */
.icon_list .icon_content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.icon_list .icon_content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

/* Icon Container Styling */
.icon_list .icon_content span {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.icon_list .icon_content span:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

/* Icon Styling */
.icon_list .icon_content span a {
    position: relative;
    z-index: 1;
    font-size: 28px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #4d4d4d;
}

.icon_list .icon_content span:hover a {
    color: #fff;
}

/* Filled Background for Icons */
.icon_list .icon_content span .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.icon_list .icon_content span:hover .filled {
    height: 100%;
}

/* Social Media Specific Colors */
.icon_list .icon_content span[data-social="facebook"] .filled,
.icon_list .icon_content span[data-social="facebook"]~.tooltip {
    background-color: #006ce8;
}

.icon_list .icon_content span[data-social="whatsapp"] .filled,
.icon_list .icon_content span[data-social="whatsapp"]~.tooltip {
    background-color: #1db954;
}

.icon_list .icon_content span[data-social="pinterest"] .filled,
.icon_list .icon_content span[data-social="pinterest"]~.tooltip {
    background-color: #bd081c;
}

.icon_list .icon_content span[data-social="github"] .filled,
.icon_list .icon_content span[data-social="github"]~.tooltip {
    background-color: #000;
}

.icon_list .icon_content span[data-social="instagram"] .filled,
.icon_list .icon_content span[data-social="instagram"]~.tooltip {
    background: linear-gradient(#f9ce34, #ee2a7b, #6228d7);
}

/* Responsive Styles */

/* Tablet styles - reduce by 30% */
@media (max-width: 1024px) and (min-width: 768px) {
    .wrapper {
        width: 252px;
        height: 49px;
    }

    .icon_list .icon_content {
        margin: 0 7px;
    }

    .icon_list .icon_content .tooltip {
        font-size: 10px;
        padding: 4px 7px;
        top: -20px;
    }

    .icon_list .icon_content span {
        width: 35px;
        height: 35px;
    }

    .icon_list .icon_content span a {
        font-size: 20px;
    }
}

/* Mobile styles - reduce by 50% */
@media (max-width: 767px) {
    .wrapper {
        width: 180px;
        height: 35px;
    }

    .icon_list .icon_content {
        margin: 0 5px;
    }

    .icon_list .icon_content .tooltip {
        font-size: 8px;
        padding: 3px 5px;
        top: -5px;
    }

    .icon_list .icon_content span {
        width: 25px;
        height: 25px;
    }

    .icon_list .icon_content span a {
        font-size: 14px;
    }
}