0% found this document useful (0 votes)
6 views28 pages

margin

The document is a CSS stylesheet that defines the styling for a webpage, including layout, colors, typography, and responsive design elements. It features styles for various sections such as the header, home, offers, about, product, banner, and gallery, ensuring a cohesive and visually appealing user experience. Media queries are included to adjust the layout for different screen sizes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views28 pages

margin

The document is a CSS stylesheet that defines the styling for a webpage, including layout, colors, typography, and responsive design elements. It features styles for various sections such as the header, home, offers, about, product, banner, and gallery, ensuring a cohesive and visually appealing user experience. Media queries are included to adjust the layout for different screen sizes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

*{

margin: 0;

padding: 0;

box-sizing: border-box;

text-decoration: none;

list-style: none;

scroll-behavior: smooth;

html::-webkit-scrollbar-track{

background: transparent;

html::-webkit-scrollbar-thumb{

background: #5a74c1;

border-radius: 10px;

html::-webkit-scrollbar{

width: 10px;

body{

background: rgb(244, 221, 237);

/* Header Start */

.header{

background: white;

width: 100%;

box-shadow: 0px 1px 1px black;

}
.header nav{

position: relative;

display: flex;

max-width: calc(100% - 200px);

margin: 0 auto;

height: 70px;

align-items: center;

justify-content: space-between;

nav .content{

display: flex;

align-items: center;

nav .content .links{

margin-left: 80px;

display: flex;

nav .content .logo a img{

width: 150px;

nav .content .links li{

list-style: none;

line-height: 70px;

#first{

color: #38548b;

.content .links li a,
.content .links li label{

color: black;

font-size: 18px;

padding: 9px 17px;

font-weight: bold;

border-radius: 5px;

transition: all 0.3s ease;

.content .links li label{

display: none;

.content .links li a:hover,

.content .links li label:hover{

color: #388b6f;

.header .search-icon,

.header .menu-icon{

color: #388b6f;

font-size: 18px;

line-height: 70px;

width: 70px;

text-align: center;

cursor: pointer;

.header .menu-icon{

display: none;

.header #show-search:checked ~ .search-icon i::before{


content: "\f00d";

.header .search-box{

position: absolute;

height: 100%;

max-width: calc(100% - 50px);

width: 100%;

opacity: 0;

pointer-events: none;

transition: all 0.3s ease;

.header #show-search:checked ~ .search-box{

opacity: 1;

pointer-events: auto;

.search-box input{

width: 100%;

height: 100%;

border: none;

outline: none;

font-size: 17px;

color: black;

background: white;

padding: 0 100px 0 15px;

.search-box input::placeholder{

color: black;

}
.search-box .go-icon{

position: absolute;

right: 10px;

top: 50%;

transform: translateY(-50%);

line-height: 60px;

width: 70px;

background: transparent;

border: none;

outline: none;

color: #388b6f;

font-size: 20px;

cursor: pointer;

.header input[type="checkbox"]{

display: none;

/* Responsive */

@media screen and (max-width:1250px){

.header nav{

max-width: 100%;

padding: 0px 20px;

nav .content .links{

margin-left: 30px;

.content .links a{
padding: 8px 13px;

.header .search-box{

max-width: calc(100% - 100px);

.header .search-box input{

padding: 0px 100px 0px 15px;

@media screen and (max-width: 900px){

.header .menu-icon{

display: block;

.header #show-menu:checked ~ .menu-icon i::before{

content: "\f00d";

nav .content .links{

display: block;

position: fixed;

background: white;

height: 100%;

width: 100%;

top: 70px;

left: -100%;

margin-left: 0;

max-width: 350px;

overflow: auto;

padding-bottom: 100px;
transition: all 0.3s ease;

nav #show-menu:checked ~ .content .links{

left: 0%;

.content .links li{

margin: 15px 20px;

.content .links li a,

.content .links li label{

line-height: 40px;

font-size: 20px;

display: block;

padding: 8px 18px;

cursor: pointer;

.content .links li a.desktop-link{

display: none;

/* Header End */

/* Home Section Start */

.home{

width: 100%;

height: 100vh;
background-image: linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0.1)), url(./images/home-
bg.jpg);

background-repeat: no-repeat;

background-size: cover;

background-position: 0% 0%; /* Top-left corner */

background-position: 100% 0%; /* Top-right corner */

background-position: 0% 100%; /* Bottom-left corner */

background-position: 100% 100%; /* Bottom-right corner */

.home .main-text{

text-align: center;

padding: 150px 10% 10px;

.main-text h1{

font-size: 60px;

color: #fff;

text-shadow: 0px 0px 1px black;

.home .main-text p{

color: white;

margin-top: 5px;

#btn{

width: 200px;

height: 36px;

font-weight: bold;

background: white;
color: #388b6f;

letter-spacing: 1px;

border: 2px solid #388b6f;

border-radius: 5px;

margin-top: 10px;

transition: 0.5s;

cursor: pointer;

#btn:hover{

background-color: #388b6f;

color: white;

/* Home Section End */

/* Top Section Card Start */

.offers{

padding: 10px 8% 20px;

background: #f3f3f3;

.offer-content{

display: grid;

grid-template-columns: repeat(3, 1fr); /* Three equal columns */

align-items: center;

gap: 2rem; /* Adjust gap for more space between icons */

justify-items: center; /* Center all items in each grid cell */


margin-top: 30px;

.offer-content .row{

display: flex;

flex-direction: column;

align-items: center; /* Center icon and text horizontally */

justify-content: center; /* Center icon and text vertically */

text-align: center; /* Ensure text is centered under the icon */

background: #fff; /* Optional, for background contrast */

padding: 20px;

border-radius: 10px;

box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

cursor: pointer;

.offer-content .row i{

font-size: 50px;

color: #388b6f;

margin-bottom: 10px; /* Space between icon and text */

.offer-content .row h3{

margin: 0;

font-size: 18px;

font-weight: 600;

color: #388b6f;

}
.offer-content .row p{

margin: 0;

font-size: 14px;

color: #777;

@media (max-width:920px){

.offer-content{

grid-template-columns: 1fr; /* Stack icons in a single column on smaller screens */

/* Top Section Card End */

/* About Section Start */

.about {

padding: 150px 8% 120px;

display: grid;

grid-template-columns: repeat(2, 1fr);

align-items: center;

gap: 1.5rem;

justify-items: center; /* This will center the content horizontally */

.about-img {
display: flex;

justify-content: center; /* Center the image horizontally */

align-items: center; /* Center the image vertically if needed */

.about-img img {

max-width: 530px;

height: auto;

width: 100%;

border-radius: 10px;

box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

.about-text {

display: flex;

flex-direction: column;

justify-content: center; /* Vertically center the text */

.about-text h3 {

color: #388b6f;

font-size: 30px;

line-height: 1;

.about-text p {

color: black;

letter-spacing: 1px;
margin-bottom: 4rem;

margin-top: 10px;

#about-btn {

width: 150px;

height: 35px;

background: white;

border: 2px solid #388b6f;

color: #388b6f;

font-weight: bold;

border-radius: 5px;

transition: 0.5s;

cursor: pointer;

#about-btn:hover {

background: #388b6f;

color: white;

@media (max-width: 920px) {

.about {

grid-template-columns: 1fr;

.about-img {

text-align: center;
order: 2;

.about-img img {

width: 100%;

height: auto;

max-width: 100%;

/* About Section End */

/* Product Section Start */

/* Product Section Start */

.product {

padding: 10px 8% 120px;

.main-txt {

text-align: center;

.main-txt h3 {

font-size: 36px;

text-transform: uppercase;

font-weight: 600;
color: #388b6f;

text-shadow: 0px 1px 1px black;

.card-content {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ensures consistent sizing


*/

align-items: stretch; /* Ensures cards stretch to the same height */

gap: 1rem; /* Adjusted gap for better spacing */

margin-top: 30px;

.card-content .row {

background: #f3f3f3;

position: relative;

overflow: hidden;

border-radius: 10px;

cursor: pointer;

display: flex; /* Flex container for image and text */

flex-direction: column; /* Stacks image and content vertically */

justify-content: flex-start; /* Aligns content at the top */

height: 100%; /* Ensures all rows are of the same height */

.row img {

width: 100%; /* Ensures image spans the full width of its container */

height: auto; /* Maintains aspect ratio */


display: block;

object-fit: cover; /* Crops the image to fit within the container */

border-radius: 10px 10px 0 0; /* Rounded top corners for the image */

.card-body {

padding: 15px; /* Increased padding for better spacing */

text-align: center;

display: flex;

flex-direction: column;

justify-content: space-between; /* Distributes space evenly between elements */

flex-grow: 1; /* Ensures the body takes up remaining space in the card */

.card-body h3 {

margin-top: 10px;

font-size: 24px; /* Reduced font size for better scaling */

font-weight: 550;

color: #388b6f;

text-shadow: 0px 1px 1px black;

.card-body p {

font-weight: 500;

margin-top: 5px;

letter-spacing: 1px;

}
.card-body h5 {

margin-top: 5px;

font-size: 18px;

.card-body button {

width: 130px;

height: 40px; /* Increased height for better appearance */

font-weight: 550;

margin-top: 10px;

background: transparent;

color: #388b6f;

border-radius: 5px;

border: 2px solid #388b6f;

transition: 0.5s;

cursor: pointer;

.card-body button:hover {

background: #388b6f;

color: white;

@media (max-width: 920px) {

.card-content {

grid-template-columns: 1fr; /* Single-column layout for smaller screens */

}
/* Product Section End */

/* Banner Start */

.banner{

width: 100%;

height: 60vh;

background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),
url(./images/bannerr.jpg);

background-repeat: no-repeat;

background-size: cover;

.banner-content{

text-align: center;

padding: 150px 10% 10px;

.banner-content h5{

color: white;

font-size: 18px;

letter-spacing: 2px;

font-weight: 500;

text-shadow: 0px 1px 1px black;

.banner-content h3{

color: #f3f3f3;

font-size: 38px;
letter-spacing: 2px;

font-weight: bold;

text-shadow: 0px 1px 1px black;

.banner-content p{

color: white;

font-size: 16px;

margin-top: 5px;

letter-spacing: 2px;

font-weight: 500;

text-shadow: 0px 1px 1px black;

.banner-content button a{

text-decoration: none;

color: white;

font-weight: bold;

.banner-content button{

width: 160px;

height: 36px;

margin-top: 10px;

background: transparent;

border: 2px solid white;

border-radius: 5px;

transition: 0.5s;

cursor: pointer;

.banner-content button:hover{
background: #388b6f;

border: none;

/* Banner End */

/* Our Galary Start */

.gallary {

padding: 0px 8% 120px;

.gallary h3 {

text-align: center;

font-size: 36px;

text-transform: uppercase;

font-weight: 600;

color: #388b6f;

text-shadow: 0px 1px 1px black;

.gallary-img {

margin-top: 30px;

display: grid;

grid-template-columns: 1fr 1fr; /* Create two columns */

gap: 20px; /* Add spacing between grid items */

}
.gallary-img .img1,

.gallary-img .img2 {

display: flex;

justify-content: center;

align-items: center;

.gallary-img .img3 {

display: flex;

justify-content: center;

align-items: center;

grid-column: span 2; /* Make the third image span across both columns */

.gallary-img img {

width: 100%;

max-width: 500px; /* Limit maximum width */

height: 300px; /* Set uniform height */

object-fit: cover; /* Maintain aspect ratio */

border-radius: 5px;

box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

transition: 0.3s;

cursor: pointer;

.gallary-img img:hover {

transform: translateY(-10px);

}
/* Responsive design for smaller screens */

@media (max-width: 920px) {

.gallary-img {

grid-template-columns: 1fr; /* Stack all images in one column */

.gallary-img img {

width: 100%;

height: auto;

max-width: 100%;

/* Our Galary End */

/* Contact Section Start */

.contact{

display: grid;

grid-template-columns: repeat(2, 1fr);

align-items: center;

gap: 2.5rem;

padding: 100px 8% 120px;

background: #f3f3f3;

.content-text{
margin-bottom: 10px;

.content-text h2{

font-size: 30px;

font-weight: 700;

margin-bottom: 10px;

text-shadow: 0px 1px 1px black;

.content-text h2 span{

color: #388b6f;

.content-text p{

font-weight: bold;

.list{

margin-top: 16px;

.list li{

margin-bottom: 12px;

.list li a{

display: block;

color: #388b6f;

font-weight: bold;

font-size: 15px;

transition: 0.3s ease;

.contact-form form{
position: relative;

.contact-form form input,

form textarea{

width: 100%;

padding: 10px;

background: white;

color: black;

border: none;

outline: none;

font-size: 15px;

border-radius: 5px;

margin-bottom: 10px;

.contact-form textarea{

resize: none;

height: 160px;

.contact-form .submit{

display: inline-block;

font-size: 15px;

background: #388b6f;

color: white;

width: 160px;

transition: 0.5s;

cursor: pointer;

.contact-form .submit:hover{
width: 175px;

@media (max-width:920px){

.contact{

grid-template-columns: 1fr;

max-width: 100%;

/* Contact Section End */

/* Review Section Start */

.review{

padding: 120px 8% 120px;

background: white;

.review-content{

display: grid;

grid-template-columns: repeat(auto-fit, minmax(250px, auto));

align-items: center;

gap: 2.5rem;

margin-top: 5rem;

.box{

background: #f3f3f3;

padding: 35px 45px;

height: 50vh;

border-radius: 8px;
transition: 0.5s ease;

text-align: center;

.img img{

width: 100px;

border-radius: 100px;

.review .star i{

color: rgba(255, 153, 0);

margin-top: 10px;

@media (max-width:920px){

.review-content{

grid-template-columns: 1fr;

/* Review Section End */

/* Footer Start */

#footer{

width: 100%;

background: #f3f3f3;

.footer-content{

text-align: center;

padding-top: 5%;
}

.footer-content .logo img{

width: 250px;

.footer-content p{

font-weight: 550;

letter-spacing: 1px;

.socail-links i{

margin-top: 20px;

padding: 10px;

border-radius: 5px;

font-size: 20px;

background: black;

color: white;

margin-left: 10px;

margin-bottom: 10px;

transition: 0.5s ease;

cursor: pointer;

.socail-links i:hover{

background: #388b6f;

.footer-bottom-content{

text-align: center;

margin-top: 10px;

.footer-bottom-content p{
font-size: 17px;

font-weight: 550;

.footer-bottom-content p a{

color: #388b6f;

font-weight: 600;

/* Footer End */

html{

scroll-behavior: smooth;

.arrow{

position: fixed;

background-color: #388b6f;

border-radius: 50px;

height: 50px;

bottom: 40px;

right: 50px;

text-decoration: none;

text-align: center;

line-height: 50px;

You might also like