﻿/* Popup overlay styling */
#popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999;
}
/* Popup content styling */
#popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Start with scale(0) */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: popup-appear 0.5s ease-out forwards; /* Add animation */
}
/* Define the animation */
@keyframes popup-appear {
    from {
        transform: translate(-50%, -50%) scale(0); /* Start small */
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1); /* End full size */
        opacity: 1;
    }
}
/* Close button styling */
.close-button {
    position: absolute;
    top: 2%;
    right: 25%;
    background: red;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
    .close-button:hover {
        background: darkred;
    }
/* Image styling */
#popup-image {
    max-width: 50%;
    height: 50%;
    border-radius: 5px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}
/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    #popup-content {
        width: 90%; /* Adjust popup size */
        height: auto;
        padding: 10px;
    }
    #popup-image {
        max-width: 63%;
        height: auto;
        position: absolute;
        top: -5rem;
        right: 4rem;
    }
    .close-button {
        background: red;
        position: absolute;
        top: -6rem;
        right: 2rem;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
    }
}
@media (max-width: 992px) {
    #imgrising {
        left: 70%;
        width: 25vw;
    }
}

@media (max-width: 768px) {
    #imgrising {
        display: none; /* hide on tablets and phones */
    }
}