diff --git a/index.css b/index.css index 93b95a8..7229f11 100644 --- a/index.css +++ b/index.css @@ -1,3 +1,159 @@ + +/* Base styles */ +html, body { + margin: 0; + padding: 0; + min-height: 100%; + background-color: #c8ffcd; + overflow-x: hidden; /* Prevent horizontal scrolling */ +} + +body { + font-family: Arial, sans-serif; + display: flex; + flex-direction: column; + min-height: 100vh; +} + +/* Navbar styling */ +.navbar { + background-color: #c8ffcd; + color: #6fd34e; + position: fixed; + top: 0; + left: 0; + z-index: 1000; + width: 100%; + height: 80px; +} + +/* Menu container styling */ +.menu-container { + position: sticky; + top: 0; + z-index: 999; + background-color: #c8ffcd; + padding: 15px; + width: 100%; + box-sizing: border-box; +} + +/* Content container */ +.content-container { + flex: 1; + padding: 20px; + width: 100%; + box-sizing: border-box; + margin-top: 80px; + background-color: #c8ffcd; +} + +/* Content divs */ +.content-div { + display: none; + padding: 2rem; + border: 1px solid #ddd; + border-radius: 8px; + text-align: center; + font-size: 1.25rem; + width: 100%; + box-sizing: border-box; + margin: 0 auto; + overflow-x: auto; /* Allow horizontal scroll for table if needed */ +} + +/* Table styling */ +.custom-table { + width: 100%; + min-width: 800px; /* Minimum width to prevent squishing */ + margin: 20px 0; + background-color: #f9f9fb; + border-radius: 10px; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); +} + +/* Table cell responsiveness */ +.custom-table th, +.custom-table td { + padding: 14px 16px; + word-wrap: break-word; + min-width: 100px; /* Minimum width for cells */ +} + +/* Footer styling */ +.footer { + background-color: rgba(0, 0, 0, 0.8); + color: #FFFFFF; + width: 100%; + box-sizing: border-box; + padding: 15px 20px; + margin-top: auto; /* Push footer to bottom */ +} + +/* Responsive adjustments */ +@media (max-width: 768px) { + .content-container { + padding: 10px; + } + + .content-div { + padding: 1rem; + } + + .menu-container { + padding: 10px; + } + + .custom-table { + font-size: 0.9rem; + } + + .footer { + padding: 10px; + flex-direction: column; + align-items: center; + gap: 10px; + } +} + +/* Mobile responsiveness */ +@media (max-width: 480px) { + .navbar { + height: 60px; + } + + .content-container { + margin-top: 60px; + } + + #typing-effect { + font-size: 24px; + letter-spacing: 2px; + } + + .btn-group-toggle { + flex-direction: column; + } + + .btn-group-toggle .btn { + width: 100%; + margin: 5px 0; + } +} + +/* Table container for horizontal scrolling */ +.table-container { + width: 100%; + overflow-x: auto; + background-color: #c8ffcd; +} + +/* Ensure content doesn't overflow horizontally */ +.container-fluid { + max-width: 100%; + padding: 0 15px; + box-sizing: border-box; +} html, body { height: 100%; /* Ensure the html and body take full height */ margin: 0; /* Remove default margin */ @@ -7,19 +163,43 @@ body { font-family: Arial, sans-serif; display: flex; flex-direction: column; - + min-height: 100vh; /* Use minimum height instead of fixed height */ + overflow-y: auto; /* Allow body to scroll */ +} + +.footer { + background-color: rgba(0, 0, 0, 0.8); /* Dark translucent background */ + color: #FFFFFF; + display: flex; + align-items: center; + justify-content: space-between; + padding: 15px 20px; + font-family: Arial, sans-serif; + box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */ + width: 100%; /* Ensures it spans across the page */ } +.footer a { + color: #00bcd4; /* Light blue accent color */ + text-decoration: none; + font-size: 16px; + margin-right: 10px; + transition: color 0.3s ease; +} + +.footer a:hover { + color: #ffffff; /* White on hover */ +} /* Navbar styling */ .navbar { - background-color: #c8ffcd; /* Light Green */ - color: #6fd34e; /* Text Color */ - position: sticky; /* Sticky position */ - top: 0; /* Stick to the top */ - z-index: 1000; /* Ensure it stays on top of other content */ - width: 100%; /* Ensure full-width */ - padding: 0; /* Remove default padding */ - height: 80px; /* Set a fixed height for the navbar */ + background-color: #c8ffcd; + color: #6fd34e; + position: fixed; /* Change to fixed */ + top: 0; + left: 0; + z-index: 1000; + width: 100%; + height: 80px; } /* Flex properties for container */ @@ -28,7 +208,7 @@ body { justify-content: center; /* Center horizontally */ align-items: center; /* Center vertically */ height: 100%; /* Make it take full height of the navbar */ - flex-wrap: wrap; /* Allow items to wrap on smaller screens */ + flex-wrap: wrap; } @media (max-width: 1700px) { @@ -82,12 +262,13 @@ body { } .menu-container { - height: auto; /* Increased height */ + position: sticky; + top: 0; /* Change to 0 to stick to very top */ + z-index: 999; /* Just below navbar */ background-color: #c8ffcd; - padding: 15px 0; /* Added padding for vertical spacing */ - overflow-y: auto; /* Prevent overflow */ + padding: 15px 0; + width: 100%; } - .btn-group-toggle { width: 100%; /* Full width for better distribution */ display: flex; /* Use flexbox for buttons */ @@ -123,32 +304,32 @@ body { } .content-container { - flex: 1; /* Allow content container to grow and fill available space */ + flex: 1; display: flex; - flex-direction: column; /* Stack content vertically */ - align-items: stretch; /* Make children stretch to full width */ + flex-direction: column; + align-items: stretch; padding: 20px; - width: 100vw; /* Full viewport width */ - height: auto; /* Adjust height based on content */ - overflow: auto; /* Allow scrolling if content is too tall */ - margin: 0; /* Remove margin */ - background-color: #c8ffcd; + width: 100vw; + height: auto; /* Remove fixed height */ + margin: 0; + background-color: #c8ffcd; + overflow: visible; /* Change from auto to visible */ } -/* Individual Content Div Styling */ +/* Modify the content-div styling */ .content-div { - display: none; /* Initially hidden */ - padding: 2rem; /* Initial padding */ + display: none; + padding: 2rem; border: 1px solid #ddd; border-radius: 8px; text-align: center; - font-size: 1.25rem; /* Initial font size */ - width: 98%; /* Take 98% of the container width */ - height: auto; /* Let height adjust based on content */ + font-size: 1.25rem; + width: 98%; + height: auto; color: #333333; - margin: 0 auto; /* Center within container */ - overflow-y: auto; /* Enable vertical scrolling */ - max-height: calc(100vh - 200px); /* Limit height */ + margin: 0 auto; + overflow: visible; /* Change from auto to visible */ + max-height: none; /* Remove max-height constraint */ } /* Colors for each content div */ @@ -170,41 +351,51 @@ body { } /* Table Styling */ +.table-wrapper { + width: 100%; + overflow-x: auto; + margin: 20px 0; + border-radius: 10px; + background-color: #f9f9fb; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); +} + +/* Base table styles */ .custom-table { width: 100%; + min-width: 600px; /* Minimum width to prevent squishing */ border-collapse: separate; border-spacing: 0; - margin: 20px 0; font-size: 1.1rem; text-align: left; - border-radius: 10px; /* Rounded corners */ - overflow: hidden; /* Keeps rounded corners on the edges */ - box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */ - background-color: #f9f9fb; /* Light aesthetic background */ + background-color: #f9f9fb; } /* Table Header */ .custom-table th { - background-color: #e0f7fa; /* Light teal background */ + background-color: #e0f7fa; font-weight: bold; padding: 14px 16px; - color: #00796b; /* Dark teal text color */ + color: #00796b; border-bottom: 2px solid #b2dfdb; - border: 1px solid rgba(0, 0, 0, 0.1); /* Thin black border for distinction */ + border: 1px solid rgba(0, 0, 0, 0.1); + position: sticky; + top: 0; } /* Table Cells */ -.custom-table th, .custom-table td { +.custom-table th, +.custom-table td { padding: 14px 16px; color: #333333; - border: 1px solid rgba(0, 0, 0, 0.1); /* Thin black border for distinction */ + border: 1px solid rgba(0, 0, 0, 0.1); } /* Table Images */ .custom-table img { width: 50px; height: auto; - border-radius: 5px; /* Rounded image corners */ + border-radius: 5px; } /* Links */ @@ -220,14 +411,14 @@ body { /* Hover Effect */ .custom-table tbody tr { - transition: background-color 0.3s ease; /* Smooth hover transition */ + transition: background-color 0.3s ease; } .custom-table tbody tr:hover { - background-color: #e0f2f1; /* Slightly darker teal on hover */ + background-color: #e0f2f1; } -/* Rounded corners for top row only */ +/* Rounded corners */ .custom-table thead tr:first-child th:first-child { border-top-left-radius: 10px; } @@ -238,46 +429,36 @@ body { /* Responsive adjustments */ @media (max-width: 768px) { - .content-container { - padding: 15px; /* Reduce padding on smaller screens */ - } - - .content-div { - padding: 1.5rem; /* Reduce padding */ - font-size: 1rem; /* Smaller font size */ - width: 95%; /* Allow more width on smaller screens */ + .table-wrapper { + margin: 15px 0; + border-radius: 8px; } .custom-table { - font-size: 1rem; /* Adjust font size for tables */ + font-size: 1rem; } - .custom-table th, .custom-table td { - padding: 10px; /* Reduce padding in table cells */ + .custom-table th, + .custom-table td { + padding: 10px; } } @media (max-width: 480px) { - .content-container { - padding: 10px; /* Further reduce padding for very small screens */ - } - - .content-div { - padding: 1rem; /* Further reduce padding */ - font-size: 0.9rem; /* Smaller font size for very small screens */ - width: 100%; /* Use full width */ + .table-wrapper { + margin: 10px 0; + border-radius: 6px; } .custom-table { - font-size: 0.9rem; /* Further reduce font size */ + font-size: 0.9rem; } - .custom-table th, .custom-table td { - padding: 8px; /* Further reduce padding in table cells */ + .custom-table th, + .custom-table td { + padding: 8px; } } - - #typing-effect { font-family: 'Courier New', monospace; color: #009900;