refactor body styles in style.css for improved layout and visual consistency

This commit is contained in:
vista-man
2025-01-25 21:42:52 +01:00
parent 1869c164cf
commit ab5e9fee9d

View File

@@ -1,15 +1,19 @@
body { body {
font-family: sans-serif; font-family: sans-serif;
margin: 20px; margin: 0; /* Remove default top and bottom margins */
background-color: #f0f0f0; padding: 0; /* Remove default top and bottom padding */
background-image: linear-gradient(to bottom right,#8a09e0, #9909e0, #a809e0, #b709e0, #c709e0, #d609e0, #e509e0, #f409e0, #ff09e0); height: 100vh; /* Set body height to 100% of viewport height */
display: flex; /* Use flexbox for better layout control */
justify-content: center; /* Center the content horizontally */
align-items: center; /* Center the content vertically */
background-image: linear-gradient(to bottom right, #8a09e0, #9909e0, #a809e0, #b709e0, #c709e0, #d609e0, #e509e0, #f409e0, #ff09e0);
background-size: cover; /* Cover the entire viewport with the gradient */
} }
.container { .container {
max-width: 800px; max-width: 800px;
margin: 0 auto;
padding: 20px; padding: 20px;
background-color: #f8f8f8; background-color: #fff;
border-radius: 5px; border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.2); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.2);
} }