

.dock {
    width: fit-content;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgb(84 82 82 / 44%);
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    transition: height 0.25s ease, padding 0.25s ease;
    height: 3.5rem;
    border-radius: 15px;
    -webkit-border-radius:;
    -moz-border-radius:;
    -ms-border-radius:;
    -o-border-radius:;
    box-shadow: 2px 1px 6px 3px #7c7c7cc7;
    
}

@media (max-width: 768px) {
    .dock {
        width: 90%;
        margin: auto;
        height:4.5rem;
    }

    .dock-icon span {
        opacity: 1 !important;
        height: 1px !important;
        overflow:visible !important;
    }
    .dock-icon{
        font-size:10px !important;
    }
}

.dock:hover {
    height: 4.5rem;
    padding: 20px 25px;
}

.dock-icon img {
    width: 35px;
    opacity: 1;
    transition: width 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.dock:hover .dock-icon img {
    width: 2rem;
    object-fit: contain;
}

.dock-icon:hover img {
    transform: scale(1.25);
    opacity: 1;
}

.dock-icon {
    font-weight:bold;
    font-size: 12px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    color: var(--theme-dark-blue);
    align-items: center;
}

    .dock-icon span {
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, height 0.3s ease;
    }

/* When the whole dock is hovered */
.dock:hover .dock-icon span {
    opacity: 1;
    height: auto;
}


