﻿ 
.overlayMsg {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    top: 0; /* Stay at the top */
    left: 0; /* Stay at the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for better visibility */
    z-index: 1; /* Sit on top */
    transition: opacity 0.3s ease; /* Smooth transition for overlay */
}

.popupMsg {
    position: fixed; /* Fixed position */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for the element's own size */
    z-index: 2; /* Sit above the overlay */
    width: 400px; /* Fixed width */
    max-width: 90%; /* Responsive width */
}

.notification-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between the boxes */
}

.success-box, .error-box {
    display: flex;
    align-items: center;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slide-in 0.5s ease forwards, fade-in 0.5s ease forwards;
    overflow: hidden; /* Prevent overflow of animations */
}

.success-box {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.error-box {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.icon {
    position: relative;
    margin-right: 15px;
}

.circle {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: bounce 0.5s infinite alternate;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.cross {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: transparent;
    border: 5px solid #f44336;
    transform: rotate(45deg);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: red;
        animation:pulse 1.03s infinite;
        /* Lighten the close button color on hover */
    }

/* Animation keyframes */
@keyframes slide-in {
    from {
        transform: translateY(-100%); /* Slide in from the top */
        opacity: 0; /* Start invisible */
    }

    to {
        transform: translateY(0); /* End at original position */
        opacity: 1; /* Fully visible */
    }
}

@keyframes fade-in {
    from {
        opacity: 0; /* Start invisible */
    }

    to {
        opacity: 1; /* Fully visible */
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0); /* Original position */
    }

    100% {
        transform: translateY(-10px); /* Bounce up */
    }
}

.checkmark {
    width: 50px;
    height: 50px;
    position: relative;
    display: inline-block;
}

.checkmark-circle {
    width: 50px;
    height: 50px;
    border: 5px solid #4caf50; /* Green border */
    border-radius: 50%; /* Circle shape */
    position: absolute;
    top: 0;
    left: 0;
    animation: scale 0.5s ease forwards; /* Scale animation */
}

.checkmark-stem {
    width: 5px;
    height: 20px;
    background-color: #4caf50; /* Green color */
    position: absolute;
    left: 20px;
    bottom: 15px;
    transform: rotate(45deg);
    animation: stem 0.5s ease forwards; /* Stem animation */
}

.checkmark-kick {
    width: 5px;
    height: 35px;
    background-color: #4caf50; /* Green color */
    position: absolute;
    left: 10px;
    bottom: 15px;
    transform: rotate(-45deg);
    animation: kick 0.5s ease forwards; /* Kick animation */
}

@keyframes scale {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes stem {
    0% {
        height: 0;
    }

    100% {
        height: 20px;
    }
}

@keyframes kick {
    0% {
        height: 0;
    }

    100% {
        height: 35px;
    }
}


 
 