diff --git a/style.css b/style.css index 9c2dd63..7830970 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,6 @@ +/* General Styles */ body { - font-family: Arial, sans-serif; + font-family: 'Roboto', Arial, sans-serif; /* Updated to use Roboto font */ line-height: 1.6; margin: 0; padding: 0; @@ -8,10 +9,25 @@ body { display: flex; flex-direction: column; background-image: url('bg.webp'); - background-attachment: fixed; + background-attachment: fixed; background-size: cover; } +.hero { + text-align: center; + padding: 100px 0; + background: linear-gradient(to right, #00c6ff, #0072ff); + color: white; +} + +.profile-pic { + width: 150px; + height: 150px; + border-radius: 50%; + border: 5px solid white; + margin-bottom: 20px; +} + header { background-color: #333; color: #fff; @@ -41,7 +57,7 @@ section { max-width: 800px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - width: 80%; /* Adjusts the width of the boxes */ + width: 80%; } section h2 { @@ -58,3 +74,68 @@ footer { width: 100%; margin-top: 20px; } + +/* Dark Mode Styles */ +body.dark-mode { + background-color: #333; + color: #f4f4f4; +} + +body.dark-mode .hero { + background: linear-gradient(to right, #003366, #000066); +} + +body.dark-mode section { + background-color: #444; + color: #ddd; +} + +body.dark-mode header, +body.dark-mode footer { + background-color: #222; +} + +body.dark-mode nav ul li a { + color: #ddd; +} + +body.dark-mode a { + color: #66f; +} + +button.dark-mode-toggle { + position: fixed; + bottom: 20px; + right: 20px; + padding: 10px 20px; + border: none; + background-color: #0072ff; + color: white; + cursor: pointer; + border-radius: 5px; + font-size: 16px; +} + +/* Responsive Styles */ +@media (max-width: 768px) { + nav ul li { + display: block; + margin: 10px 0; + } + + section { + width: 90%; + } +} + +@media (max-width: 480px) { + .profile-pic { + width: 120px; + height: 120px; + } + + button.dark-mode-toggle { + padding: 8px 16px; + font-size: 14px; + } +}