@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap'); body { margin: 0; padding: 0; font-family: "Russo One", sans-serif; height: 100vh; overflow: hidden; } .notification { position: fixed; padding: 25px 50px; border-radius: 10px; color: #fff; text-align: center; z-index: 1000; box-sizing: border-box; transition: all 0.5s ease-in-out; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; } .notification.show { opacity: 1; visibility: visible; } .notification.hide { opacity: 0; visibility: hidden; } .circle { position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; margin-top: 5px; } #announcement-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; color: white; z-index: 2; } .progress-ring { position: relative; z-index: 1; transform: rotate(-90deg); } .progress-ring__circle { transition: stroke-dashoffset 0.1s linear; stroke-dasharray: 138; stroke-dashoffset: 0; } h1 { margin: 0; font-size: 22px; font-weight: bold; text-shadow: 1px 1px 3px black; } p { margin: 8px 0 0; font-size: 15px; opacity: 0.9; } .notification.top-left-pos, .notification.top-right-pos, .notification.bottom-left-pos, .notification.bottom-right-pos { transform: none; /* Fontos! */ } .notification.top-center-pos { top: 20px; left: 50%; bottom: auto; right: auto; transform: translateX(-50%); } .notification.bottom-center-pos { bottom: 20px; left: 50%; top: auto; right: auto; transform: translateX(-50%); } .notification.center-pos { top: 50%; left: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); } .notification.fade-in.show { animation: fadeInAnimation 0.5s forwards; } .notification.fade-in.hide { animation: fadeOutAnimation 0.5s forwards; } @keyframes fadeInAnimation { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeOutAnimation { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } } .notification.slide-in.show { animation: slideInFromRight 0.6s forwards; } .notification.slide-in.hide { animation: slideOutToRight 0.6s forwards; } @keyframes slideInFromRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOutToRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } #positioningOverlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.7); z-index: 1001; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 50px; box-sizing: border-box; } #positioningOverlay.hidden { display: none; } #draggableNotification { position: absolute; cursor: grab; background-color: rgba(50, 50, 50, 0.9); border: 2px dashed #00bfff; transition: none; pointer-events: auto; width: 300px; height: 200px; } #draggableNotification .circle { background-color: #00bfff; } #draggableNotification h1, #draggableNotification p { color: white; } #draggableNotification .fa-arrows-alt { color: white; font-size: 24px; } #draggableNotification .progress-ring { display: none; } #positioningOverlay button { padding: 10px 20px; margin: 0 10px; background-color: #00bfff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.2s; } #positioningOverlay button:hover { background-color: #008fcc; } #positioningOverlay button#cancelPositionBtn { background-color: #f44336; } #positioningOverlay button#cancelPositionBtn:hover { background-color: #d32f2f; }