.menu-container {
    position: absolute;
    margin: 1.75em auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    bottom: 8%; /* Position from the top */
    left: 50%; /* Keep it centered horizontally */
    transform: translateX(-50%); /* Ensure it's exactly centered horizontally */
}

.cont, .menu, .btn-menu {
    position: absolute;
    color: #fff;
    border-radius: 100%;
    background: #333333;
    padding: 10px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-menu {
    width: 50px;
    height: 50px;
    z-index: 10;
}

.menu {
    font-size: 0px;
    width: 0px;
    height: 0px;
    transform: translateY(0px); /* Remove translateX, only use translateY */
    cursor: pointer;
}

.menu:nth-child(1), .menu:nth-child(2), .menu:nth-child(3), .menu:nth-child(4),
.menu:nth-child(5), .menu:nth-child(6), .menu:nth-child(7), .menu:nth-child(8) {
    transition: all 0.3s;
}

.menu-container .menu.animate {
    opacity: 1;
}

.menu-container .menu.animate:nth-child(1) {
    width: 60px;
    height: 60px;
    transform: rotate(0deg) translateY(150px) rotate(0deg); /* Move up (positive value) */
}

.menu-container .menu.animate:nth-child(2) {
    width: 60px;
    height: 60px;
    transform: rotate(140deg) translateY(150px) rotate(-140deg); /* Move up */
}

.menu-container .menu.animate:nth-child(3) {
    width: 60px;
    height: 60px;
    transform: rotate(100deg) translateY(150px) rotate(-100deg); /* Move up */
}

.menu-container .menu.animate:nth-child(4) {
    width: 60px;
    height: 60px;
    transform: rotate(180deg) translateY(150px) rotate(-180deg); /* Move up */
}

.menu-container .menu.animate:nth-child(5) {
    width: 60px;
    height: 60px;
    transform: rotate(220deg) translateY(150px) rotate(-220deg); /* Move up */
}

.menu-container .menu.animate:nth-child(6) {
    width: 60px;
    height: 60px;
    transform: rotate(260deg) translateY(150px) rotate(-260deg); /* Move up */
}

.menu-container .menu.animate:nth-child(7) {
    width: 80px;
    height: 80px;
    transform: rotate(100deg) translateY(150px) rotate(-100deg); /* Move up */
}

.menu-container .menu.animate:nth-child(8) {
    width: 80px;
    height: 80px;
    transform: rotate(315deg) translateY(150px) rotate(-315deg); /* Move up */
}

.btn-menu:focus {
    outline: none;
    background: #333333;
}

div.times {
    position: absolute;
    font-size: 50px;
    opacity: 0;
    transition: all 0.4s;
}

div.times.animate {
    transform: rotate(360deg);
    opacity: 1;
    font-size: 50px;
    position: absolute;
    top: -30%; /* Move the times icon upwards */
}

.btn-menu .circle {
    position: absolute;
    border: 2px solid #fff;
    width: 25px;
    height: 25px;
    background: transparent;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.4s;
}

.btn-menu .circle.animate {
    width: 0px;
    height: 0px;
    opacity: 0;
}

.menu-icons {
    width: 25px !important;
}
