From 991a7d0d27d01d7505d94dc48a7de513fd89da58 Mon Sep 17 00:00:00 2001 From: alireza parvaresh Date: Mon, 15 Sep 2025 11:21:53 +0330 Subject: [PATCH] renew style --- static/style.css | 157 +++++++++++++++++++++++++++-------------------- 1 file changed, 89 insertions(+), 68 deletions(-) diff --git a/static/style.css b/static/style.css index 82342c5..09a8dee 100644 --- a/static/style.css +++ b/static/style.css @@ -5,23 +5,12 @@ body { display: flex; justify-content: center; align-items: center; - height: 100vh; - margin: 0; /* Added to avoid default margin issues */ + min-height: 100vh; + margin: 0; + background: linear-gradient(to bottom right, #ed0b6d, #ff5fa4); + color: #fff; text-align: center; overflow-x: hidden; - background-color: #ed0b6d; - color: white; -} - -/* Textarea styling */ -textarea { - resize: vertical; - border-radius: 15px; - padding: 10px; - border: none; /* Improved by removing default border */ - width: 100%; /* Added to make it more responsive */ - max-width: 600px; /* Limit the width */ - box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Added slight shadow */ } /* Wrapper styling */ @@ -30,92 +19,124 @@ textarea { flex-direction: column; align-items: center; justify-content: center; - min-height: 100vh; - text-align: center; - padding: 20px; /* Added padding for responsiveness */ + padding: 40px 20px; + width: 100%; + max-width: 700px; } -/* Custom margins for various elements */ -.text-area-custom, -.submit-button-custom, -.label-custom { - margin-bottom: 35px; +/* Textarea styling */ +textarea { + resize: vertical; + border-radius: 15px; + padding: 15px; + border: none; + width: 100%; + max-width: 100%; + min-height: 150px; + font-size: 1rem; + line-height: 1.6; + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); + transition: box-shadow 0.3s ease-in-out; } -/* Submit button styling */ +textarea:focus { + outline: none; + box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); +} + +/* Button styling */ .submit-button-custom { - background-color: white; - color: #e5669c; + background-color: #fff; + color: #ed0b6d; border: none; - border-radius: 30px; - padding: 10px 20px; - margin-top: 20px; + border-radius: 50px; + padding: 12px 28px; + font-size: 1rem; + font-weight: bold; cursor: pointer; - transition: background-color 0.3s ease; /* Added transition */ + transition: all 0.3s ease; + margin-top: 20px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } .submit-button-custom:hover { - background-color: #f7f7f7; /* Hover effect for better UI */ + background-color: #f5f5f5; + transform: scale(1.05); } -/* Loader animation styling */ +/* Custom margins */ +.text-area-custom, +.submit-button-custom, +.label-custom { + margin-bottom: 30px; +} + +/* Loader animation */ .loader { - border: 16px solid #f3f3f3; - border-top: 16px solid #cf1563; + border: 12px solid #f3f3f3; + border-top: 12px solid #fff; + border-right: 12px solid #ed0b6d; border-radius: 50%; - width: 120px; - height: 120px; - animation: spin 2s linear infinite; + width: 90px; + height: 90px; + animation: spin 1.2s ease-in-out infinite; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); - display: none; /* Initially hidden */ + display: none; + z-index: 1001; } @keyframes spin { - 0% { - transform: translate(-50%, -50%) rotate(0deg); - } - 100% { - transform: translate(-50%, -50%) rotate(360deg); - } + 0% { transform: translate(-50%, -50%) rotate(0deg); } + 100% { transform: translate(-50%, -50%) rotate(360deg); } } -/* Overlay for modal or loader */ +/* Overlay background */ #overlay { position: fixed; - display: none; /* Initially hidden */ - width: 100%; - height: 100%; - top: 0; - left: 0; - background-color: rgba(0, 0, 0, 0.5); - z-index: 1; + display: none; + inset: 0; + background-color: rgba(0, 0, 0, 0.6); + z-index: 1000; } -/* Modal styling */ +/* Modal */ .modal { - display: none; /* Initially hidden */ + display: none; position: fixed; - z-index: 1; - left: 0; - top: 0; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgba(0, 0, 0, 0.4); /* Adjusted duplicate background property */ + inset: 0; + background-color: rgba(0, 0, 0, 0.4); + z-index: 1000; + overflow-y: auto; + animation: fadeIn 0.3s ease-out; } +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +/* Modal dialog */ .modal-dialog { - transition: all 0.3s ease-in-out; /* Added smoother transition */ + max-width: 600px; + margin: 100px auto; + transition: transform 0.3s ease-in-out; } +/* Modal content */ .modal-content { - margin-top: 10%; - background-color: white; /* Ensured content background is white */ - color: black; /* Text color inside modal */ - padding: 20px; /* Added padding for better readability */ - border-radius: 10px; /* Added rounding to match design */ - box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */ + background-color: #fff; + color: #333; + padding: 30px; + border-radius: 12px; + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); + text-align: right; + animation: slideDown 0.3s ease-out; +} + +@keyframes slideDown { + from { transform: translateY(-30px); opacity: 0; } + to { transform: translateY(0); opacity: 1; } }