From 39e0ba833210ebd18e280ae48b5f7ccef91ea6ee Mon Sep 17 00:00:00 2001 From: souvikpramanikgit Date: Wed, 9 Oct 2024 18:51:25 +0530 Subject: [PATCH] Add code --- style.css | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 67849fc0..44c5a829 100644 --- a/style.css +++ b/style.css @@ -1200,7 +1200,7 @@ justify-content: center; .popup-content { background-color: #fff; margin: 15% auto; - padding: 20px; + padding: 30px; border: 1px solid #888; border-radius: 10px; width: 100%; @@ -1208,7 +1208,6 @@ justify-content: center; position: relative; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } - /* Close Button */ .close-btn { position: absolute; @@ -1234,6 +1233,52 @@ justify-content: center; text-decoration: none; } +.popup { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.7); /* Background overlay */ + display: flex; + justify-content: center; + align-items: center; +} + +.popup-content { + position: relative; + background: white; + padding: 40px; /* Increased padding around content */ + padding-top: 60px; /* Extra top padding to account for close button */ + border-radius: 10px; + max-width: 500px; + text-align: center; +} + +.close-btn { + position: absolute; + top: 15px; + right: 15px; + width: 30px; + height: 30px; + font-size: 2rem; + cursor: pointer; + background-color: #ff4c4c; + color: #fff; + border-radius: 50%; + border: none; + display: flex; + justify-content: center; + align-items: center; + z-index: 1; +} + +.close-btn:hover { + background-color: #ff0000; + transform: scale(1.1); +} + + /* Button to check deals */ .popup-content button { background-color: #007bff;