CSS IN website

 /* css reset */

*{
    margin: 0px;
    padding: 0px;
}
html{
    scroll-behavior: smooth;
}

/* CSS Variables */
:root{
    --navbar-height: 59px;
}

/* Navigaqtion Bar */
#navbar{
    display: flex;
    align-items: center;
    position: sticky;
}

/* Navigation Bar: Logo and Image */
#logo{
margin: -3px -5px;
}

#logo img{
    margin: 8px 30px;
    height: 40px;
}
#navbar{
    position: absolute;
    top: 0px;
}

/* Navigation Bar: list Styling */
 #navbar ul{
    display: flex;
    font-family: 'Acme', sans-serif;
 }

 #navbar::before{
    content: "";
    background-color: black;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.4;
 }

 #navbar ul li{

   list-style: none;
   font-size: 1.3rem;
 }

 #navbar ul li a{
     color: white;
     display: block;
     padding: 3px 22px;
     border-radius: 20px;
     text-decoration: none;
 }

 #navbar ul li a:hover{
    color: black;
    background-color: white;
 }
  
 /* Home section */
 #home{
     display: flex;
     flex-direction: column;
     height: 600px;
     padding: 3px 200px;
    justify-content: center;
    align-items: center;

 }

 #home::before{
    content: "";
    position: absolute;
    background:url('../harrybackground.jpg')no-repeat center center/cover;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.89;
     
 }

 #home h1{
     color: white;
     text-align: center;
     font-family: 'Bree Serif', serif;
 }

 #home p{
     color: white;
     text-align: center;
     font-size: 1.5rem;
     font-family: 'Baloo 2', cursive;
 }
/* services section */
#services{
    margin: 34px; 
    display: flex;
}
#services .box{
    border: 2px solid brown;
    padding: 12px;
    margin: 3px 6px;
    border-radius: 23px;
    background-color: #e1dddd;
    
}

#services .box img{
    height: 160px;
    margin: auto;
    display: block;
}


#services.box p{
    font-family: 'Bree Serif', serif;
}
#services{}
#services{}
#services{}

/* Clients section */
#client-section{
    position: relative;

}
#clients img{
    height: 124px;
}

#client-section::before{
 content:"" ;
 position: absolute;
 background: url('pizzabackground.jpg');
 width: 100%;
 height: 100%;
 z-index: -1;
 opacity: 0.5;
}

#clients{
    display: flex;
    justify-content: center;
    align-items: center;
}
.client-item{
    padding:34px; 
     
}

#clients img{
   height: 124px;
}
/* contact section */
#contact{
position:relative;
}
#contact::before{
content: "";
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.7;
background: url('contact.jpg') no-repeat center center/cover;
}

#contact-box{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 34px;

}

#contact-box input, 
#contact-box textarea{
    width: 100%;
    padding: 0.5rem;
    border-radius: 9px;
    font-size: 1.3rem;
}
#contact-box form{
    width: 40%;
    
}

#contact-box label{
    font-size: 1.3rem;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


footer{
    background: black;
    color: white;
    padding: 9px 20px;

}

 /* utility classes */
 .h-primary{
     font-size: 3.8rem;
     padding: 31px;
     font-family: 'Acme', sans-serif;
 }
 .h-secondary{
     font-size: 2.3rem;
     padding: 31px;
     font-family: 'Acme', sans-serif;

 }
 .btn{
     padding: 6px 20px;
     border: 2px solid white;
     background-color: brown;
     color: white;
     margin: 17px;
     font-size: 1.5rem;
     border-radius: 10px;
     cursor: pointer;
 }

 .center{
     text-align: center;

 }







Comments

Popular posts from this blog

Normal BST to Balanced BST

Flatten BST to sorted list

fast input out using buffer class