.notification { position: fixed; bottom: 20px; left: 20px; background-color: white; border: 1px solid #ccc; padding: 15px; box-shadow: 0 4px 8px rgba(255,0,0,0.3); border-radius: 20px; z-index: 1000; font-family: Arial, sans-serif; display: flex; align-items: center; animation: slideInOut 17s ease-in-out infinite; width: 350px; } .notification-content { display: flex; flex-direction: column; width: 100%; } .notification-header { display: flex; align-items: center; width: 100%; position: relative; } .notification-icon { width: 40px; height: 40px; margin-right: 10px; fill: red; } .notification-text { font-size: 14px; color: #333; flex: 1; } .notification-time { font-size: 12px; color: #888; margin-top: 5px; } .notification .close-btn { cursor: pointer; font-size: 16px; color: white; position: absolute; top: 5px; right: 10px; background-color: red; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; } .notification .close-btn:hover { background-color: darkred; } .video-title { color: blue; text-decoration: underline; } @keyframes slideInOut { 0% { transform: translateX(-150%); opacity: 0; } 10%, 90% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-150%); opacity: 0; } }