
.floating-menu-container {
    position: fixed;
    bottom: 180px;
   
    right: 20px; 
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-menu-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.floating-menu-button:hover {
    background-color: #0056b3;
}


.floating-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg); 
    transform-origin: center center;

    width: 0; 
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.floating-menu-items.show {
    width: 280px; 
    height: 280px; 
    opacity: 1;
    pointer-events: auto;
    
    transform: translate(-50%, -50%) rotate(-90deg); 
}


.floating-menu-items.show + .floating-menu-button {
   
    transform: rotate(0deg); 
}



.moon-item {
    position: absolute; 
    display: flex;
   
    justify-content: flex-start;
    align-items: center;
    width: 120px; 
    height: 45px; 
   
    border-radius: 45px 0 0 45px; 
    text-decoration: none;
    color: white;
    font-size: 14px;
  
    padding-left: 20px; 
    padding-right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;

    opacity: 0;
    
    transform: translateY(0) rotate(0deg) scale(0);
    
    transform-origin: 100% 50%; 
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}


.floating-menu-items.show .moon-item {
    opacity: 1;
   
    transform: translateX(-80px) scale(1) rotate(var(--item-rotate, 0deg)); 
    transition-delay: var(--item-delay); 
}



.floating-menu-items.show .moon-item:nth-child(1) { 
    --item-delay: 0.05s;
    
    --item-rotate: 0deg;
    transform: translateX(-80px) scale(1) rotate(0deg);
}
.floating-menu-items.show .moon-item:nth-child(2) { 
    --item-delay: 0.1s;
  
    --item-rotate: 45deg;
    transform: translateX(-80px) scale(1) rotate(45deg);
}
.floating-menu-items.show .moon-item:nth-child(3) { 
    --item-delay: 0.15s;
   
    --item-rotate: 90deg;
    transform: translateX(-80px) scale(1) rotate(90deg);
}
.floating-menu-items.show .moon-item:nth-child(4) { 
    --item-delay: 0.2s;
    
    --item-rotate: 135deg;
    transform: translateX(-80px) scale(1) rotate(135deg);
}
.floating-menu-items.show .moon-item:nth-child(5) { 
    --item-delay: 0.25s;
    
    --item-rotate: 180deg;
    transform: translateX(-80px) scale(1) rotate(180deg);
}


.moon-item:hover {
    filter: brightness(1.1);
    z-index: 10;
}



.color-red { background-color: #dc3545; }
.color-blue { background-color: #007bff; }
.color-green { background-color: #28a745; }
.color-purple { background-color: #6f42c1; }
.color-orange { background-color: #fd7e14; }


.back-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: gold;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none; 
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.back-to-top-button:hover {
    background-color: #daa520;
}