
.notification, .notification2 {
    width: 360px;
    padding: 15px;
    background-color: white;
    border-radius: 16px;
    border: 1px solid #000;
    position: fixed;
    top: 40px;
    right: 15px;
    transform: translateY(200%);
    -webkit-animation: noti 2s ease-in-out 1s both;
    animation: noti 2s ease-in-out 1s both;
}

.notification2 {
    display: none;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.notification-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: capitalize;
    padding: 0;
    margin: 0;
}

.notification-close, .notification-close2 {
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F2F5;
    font-size: 14px;
    font-weight: bold;
    color: #000 !important;
}

.notification-container {
    display: flex;
    align-items: flex-start;
}

.notification-media {
    position: relative;
}

.notification-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    -o-object-fit: cover;
    object-fit: cover;
}

.notification2 .notification-user-avatar {
    width: 60px;
    height: auto;
    border-radius: 0;
}

.notification-reaction {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: white;
    background-image: linear-gradient(45deg, #0070E1, #14ABFE);
    font-size: 14px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.notification-content {
    width: 100%;
    padding-left: 20px;
    line-height: 1.2;
}

.notification-text {
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 0;
    margin: 0;
    font-size: 16px;
}

.notification-timer {
    color: #1876F2;
    font-weight: 600;
    font-size: 12px;
}

.notification-status {
    position: absolute;
    right: 15px;
    top: 50%;
    /* transform: translateY(-50%); */
    width: 15px;
    height: 15px;
    background-color: #1876F2;
    border-radius: 50%;
}
/* New CSS for close button */
.notification-close, .notification-close2 {
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

    .notification-close:hover, .notification-close2:hover {
        color: #555;
    }

.pop-button {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
    font-size: 16px;
}

    .pop-button:hover {
        background-color: #0056b3;
        color: #fff;
    }

@-webkit-keyframes noti {
    0%, 100% {
        transform: translateY(-20%);
    }

    25% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15%);
    }

    75% {
        transform: translateY(0);
    }
}

@keyframes noti {
    0%, 100% {
        transform: translateY(-20%);
    }

    25% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15%);
    }

    75% {
        transform: translateY(0);
    }
}
@media (max-width: 480px) {
    .notification, .notification2 {
        position: fixed;
        width: 90%; /* Adjust the width as needed */
        max-width: none; /* Reset max-width if previously set */
        top: 50px; /* Reset top positioning */
        bottom: auto; /* Position at the bottom */
        transform: translateY(0); /* Reset any previous transformations */
    }
}