/* public_html/css/whatsapp_button.css */

/* Base styles for floating buttons */
.fixed-bottom-element {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it's above most content */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Size of the button */
    height: 60px; /* Size of the button */
    border-radius: 50%; /* Make it circular */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fixed-bottom-element:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* WhatsApp Button Specific Styles */
.whatsapp-floating-button {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    font-size: 30px; /* Icon size */
    bottom: 90px; /* Position above Discord button (60px height + 10px margin) */
    right: 20px; /* Align with Discord button */
}

.whatsapp-floating-button:hover {
    background-color: #1DA851; /* Darker green on hover */
}

/* Ensure icons are centered */
.whatsapp-floating-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide the button by default, JS will show it */
.whatsapp-floating-button.hidden {
    display: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .fixed-bottom-element {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px; /* Adjust for smaller screens */
        right: 15px;
    }

    .whatsapp-floating-button {
        bottom: 75px; /* Adjust position for smaller screens (50px height + 10px margin) */
        right: 15px;
    }
}
