diff --git a/Css-files/content.css b/Css-files/content.css index 03ef653b..d77ae9d7 100644 --- a/Css-files/content.css +++ b/Css-files/content.css @@ -41,11 +41,23 @@ body { margin-top: -5rem; } +/* Base navbar styles */ .navbar { padding: 8px 10px; + overflow: hidden; + transition: background-color 0.3s ease; /* Smooth transition for background */ +} + +/* Styles for scrolled navbar */ +.navbar.scrolled { + background-color: rgba(20, 43, 93, 0.8); /* Darker background when scrolled */ } + +/* Unchanged navbar styles */ .navbar ul { overflow: hidden; + margin: 0; /* Reset margin */ + padding: 0; /* Reset padding */ } .navbar li { @@ -53,6 +65,7 @@ body { list-style: none; padding: 8px 20px; } + .navbar li:hover { opacity: 0.7; } @@ -63,19 +76,20 @@ body { color: white; font-size: 1.3rem; } + .navbarbg { - padding: 8px 0; - background-color: hsl(20, 43%, 93%); - text-align: left; + padding: 7px 0; + background-color: hsl(20, 43%, 93%); + text-align: left; } .navbarbg ul { - display: inline-block; - padding-left: 0; + display: inline-block; + padding-left: 0; } .navbarbg li { - display: inline-block; + display: inline-block; list-style: none; margin: 0 10px; } @@ -84,7 +98,7 @@ body { padding: 5px 10px; text-decoration: none; color: white; - font-size: 1.3rem; + font-size: 1rem; } .navbarbg li:hover { diff --git a/Html-files/contact.html b/Html-files/contact.html index b6a5bb2b..d1d7dbb3 100644 --- a/Html-files/contact.html +++ b/Html-files/contact.html @@ -1057,7 +1057,11 @@