/* Minimalistic Button in Bottom-Right Corner */
#openModalBtn {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 60px; /* Distance from the right */
    padding: 8px 18px; /* Adjust button size */
    background-color: #fae502; /* Yellow background */
    color: #000000; /* Black text color */
    border: none;
    border-radius: 8px; /* Rounded corners */
    font-size: 15px; /* Base font size */
    cursor: pointer;
    z-index: 1000; /* Keep it above other content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Added transform for smooth scaling */
}

/* Button Hover Effect */
#openModalBtn:hover {
    background-color: #f7d900; /* Slightly darker yellow on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Button Active Effect */
#openModalBtn:active {
    background-color: #e6ca00; /* Darker pressed yellow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow when button is pressed */
}

/* Scale up on screens wider than 1024px */
@media (min-width: 1024px) {
    #openModalBtn {
        transform: scale(1.3);
    }
}

/* Modal Styles - Centered with animation */
/* Modal Styles - Centered with animation */
.modal {
    display: none;
    position: fixed;
    z-index: 999999; /* Ensure modal is above other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    animation: fadeIn 0.4s ease-in-out; /* Modal fade-in effect */
    overflow: auto; /* Allow scrolling */
}

/* Adjust modal content */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px; /* Rounded corners */
    width: 80%;
    max-width: 500px;
    max-height: 80vh; /* Limit height */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    transform: translateY(-50px);
    animation: slideUp 0.5s ease forwards; /* Slide-up effect */
}
/* Media Query for mobile devices (screens 768px or smaller) */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto 10%; /* Apply this margin on mobile */
    }
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Animation - Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Modal Animation - Slide-up Effect */
@keyframes slideUp {
    0% {
        transform: translateY(50px);
    }
    100% {
        transform: translateY(0);
    }
}