Responsive Web Design: Creating Engaging Navigation and Layouts
School
York University**We aren't endorsed by this school
Course
BIO 10
Subject
Mechanical Engineering
Date
Dec 11, 2024
Pages
5
Uploaded by CorporalPower2739
body {margin: 0; /* Removes default body margin to prevent whitespace */padding-top: 60px; /* Adjust for fixed nav height */}nav {background-color: black;color: #fff;padding: 10px 20px;display: flex;justify-content: space-between;align-items: center;width: 100%; /* Ensures the nav spans the full width */box-sizing: border-box; /* Includes padding in width calculation */position: fixed; /* Keeps the nav at the top if scrolling */top: 0;left: 0;z-index: 1000; /* Ensures the nav is above other content */}.nav-left, .nav-center, .nav-right {display: flex;align-items: center;flex-wrap: wrap; /* Allows items to wrap if the screen is narrow */}.nav-center {flex-grow: 1;justify-content: center;text-align: center;}nav a {color: #fff;text-decoration: none;margin: 0 15px;font-size: 16px;transition: color 0.3s;}nav a:hover {color: #f1c40f;}/* Horizontal line under the section heading */.section-line {width: 80%; /* Adjust width of the line */border: 0;height: 1px;background-color: #0a0a0a; /* Dark color for the line */margin: 20px 0; /* Space above and below the line */display: block;margin-left: auto;margin-right: auto; /* Center the line */}
/* Section heading style */.section-heading {font-size: 40px;font-weight: bold;color: #0a0a0a;text-align: center;margin: 40px 0 20px 0;letter-spacing: 2px;text-transform: uppercase;}/* Section for "Meet Our Chefs" */.signature-dishes {display: flex;justify-content: space-between;align-items: center;width: 100%;max-width: 1400px;margin: 0 auto; /* Center the container */padding: 20px;}.dish {position: relative;flex: 1;margin: 0 10px;overflow: hidden;border-radius: 10px;transition: transform 0.3s ease, box-shadow 0.3s ease;height: 650px; /* Ensure all blocks are the same height */}.dish img {width: 100%;height: 100%; /* Make the images fill the height */object-fit: cover; /* Make sure the image covers the area without distorting */border-radius: 10px;transition: transform 0.3s ease;}.big-letter {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);font-size: 150px;font-family: 'Times New Roman', serif;font-weight: bold;color: rgba(255, 255, 255, 0.8);z-index: 2;text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);pointer-events: none;transition: transform 0.3s ease, color 0.3s ease;}.dish:hover {transform: scale(1.05);box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);}