diff --git a/index.html b/index.html index 26fb861..7a2b9d5 100644 --- a/index.html +++ b/index.html @@ -470,8 +470,68 @@ font-size: 0.9rem; } } - - + /* General Container Styling */ + /* General Container Styling */ +.home .container { + position: relative; /* To position the text overlay relative to the container */ +} + +/* Image Container */ +.image-container { + position: relative; + width: 100%; +} + +.image-container img { + width: 100%; + height: auto; + border-radius: 20px; +} + +/* Text Overlay Styling */ +.text-overlay { + position: absolute; + top: 30%; + left: 5%; + width: 40%; /* Adjust width of the text block */ + transform: translateY(-20%); + color: #333; /* Adjust text color to fit the background */ +} + +.text-overlay h2 { + font-size: 36px; + font-weight: bold; + margin-bottom: 20px; + color: #e63946; /* Optional color for the header */ +} + +.text-overlay p { + margin-bottom: 20px; + font-size: 18px; + line-height: 1.6; + color: #555; +} + +/* Responsive for Smaller Screens */ +@media (max-width: 768px) { + .text-overlay { + width: 90%; /* Wider text block for smaller screens */ + left: 5%; + top: 30%; /* Adjust the positioning for mobile */ + } + + .text-overlay h2 { + font-size: 28px; + } + + .text-overlay p { + font-size: 16px; + } + +} + + +
@@ -499,8 +559,16 @@Wherever you're going,there's a carpool that will
get you there for less.