Assignment1/styles.css
2024-12-26 17:21:54 +05:30

573 lines
11 KiB
CSS

/* Style the navigation menu */
.body{
font-family: 'Inter', sans-serif;
}
html {
scroll-behavior: smooth;
}
.topnav {
overflow: hidden;
background-color: #333;
position: relative;
}
/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
display: none;
}
/* Style navigation menu links */
.topnav a {
color: white;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
display: block;
}
/* Style the hamburger menu */
.topnav a.icon {
background: black;
display: block;
position: absolute;
right: 0;
top: 0;
}
/* Add a grey background color on mouse-over */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Style the active link (or home/logo) */
.active {
background-color: #333;
color: white;
}
/* General Hero Section Styling (Applies to all breakpoints) */
.hero {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: linear-gradient(to right, #0f2027, #203a43, #2c5364),
url('download.jpg') no-repeat center center/cover;
color: white;
text-align: center;
padding: 0 2rem;
}
.hero-content {
max-width: 800px;
}
.hero-content h1 {
font-size: 3rem;
font-weight: 600;
margin-bottom: 1rem;
}
.hero-content p {
font-size: 1.2rem;
margin-bottom: 2rem;
line-height: 1.5;
}
.cta-button {
display: inline-block;
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 5px;
background-color: #00bcd4;
color: white;
text-decoration: none;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: #008c9e;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body and general wrapper styles */
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
color: #333;
}
.wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
p {
font-size: 1.1rem;
color: #555;
margin-bottom: 30px;
}
/* Card styles */
.content-box {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.card {
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
position: relative;
}
#pricing{
margin-top: 20px;
text-align: center;
}
.header{
background-color: #23abdc"
}
#team{
margin-top: 20px;
text-align: center;
}
.team-description{
text-align: center;
}
.card i {
font-size: 3rem;
color: #3498db;
margin-bottom: 15px;
}
.card h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
}
.card p {
font-size: 1rem;
color: #555;
}
/* Hover effects with images */
.card:nth-child(1):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/marketing.webp');
background-size: cover;
color: white;
}
.card:nth-child(2):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/images.jpeg');
background-size: cover;
color: white;
}
.card:nth-child(3):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/call-center.jpg');
background-size: cover;
color: white;
}
.card:nth-child(4):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/social-media.jpg');
background-size: cover;
color: white;
}
.card:nth-child(5):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/coperate.webp');
background-size: cover;
color: white;
}
.card:nth-child(6):hover {
background: linear-gradient(45deg,
rgba(10, 114, 233, 0.8) 0%,
rgba(51, 163, 249, 0.8) 100%),
url('images/creative.webp');
background-size: cover;
color: white;
}
.columns {
float: left;
width: 33.3%;
padding: 8px;
margin-bottom: 20px;
}
.price {
list-style-type: none;
border: 1px solid #eee;
margin: 0;
padding: 0;
-webkit-transition: 0.3s;
transition: 0.3s;
}
.price:hover {
box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2)
}
.price .header {
background-color: #111;
color: white;
font-size: 25px;
}
.price li {
border-bottom: 1px solid #eee;
padding: 20px;
text-align: center;
}
.price .grey {
background-color: #eee;
font-size: 20px;
}
.button {
display: inline-block;
padding: 1rem 2rem;
background-color: #00bcd4;
color: white;
text-decoration: none;
font-size: 1rem;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.team-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
text-align: center;
}
/* Styling each team member */
.team-member {
border: 1px solid #ddd;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-color: #f9f9f9;
transition: transform 0.3s;
}
.team-member:hover {
transform: translateY(-10px);
}
.team-member img {
width: 100%;
height: auto;
}
.team-member h3 {
margin: 15px 0 5px;
font-size: 1.25em;
color: #333;
}
.team-member p {
color: #777;
font-size: 0.95em;
}
/* Social links */
.social-links {
margin-top: 10px;
justify-content: center;
}
.social-links a {
margin: 0 5px;
color: #555;
font-size: 1.2em;
transition: color 0.3s;
}
.social-links a:hover {
color: #007BFF;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
input[type=text], input[type=email], input[type=tel], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
background-color: #00bcd4;
color: white;
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
text-align: center;
display: block;
margin: 0 auto;
transition: background-color 0.3s ease;
}
/* When moving the mouse over the submit button, add a darker green color */
/* Add a background color and some padding around the form */
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
/* Footer styles */
footer {
background-color: #333;
color: white;
padding: 20px 0;
text-align: center;
}
.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}
.footer-links, .social-links {
display: flex;
gap: 15px;
}
.footer-links a, .social-links a {
color: white;
text-decoration: none;
font-size: 14px;
}
.footer-links a:hover, .social-links a:hover {
text-decoration: underline;
}
.copyright {
margin-top: 10px;
font-size: 12px;
}
/* Responsive Design */
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.content-box {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
padding: 15px;
}
.card i {
font-size: 2.5rem;
}
.card h2 {
font-size: 1.3rem;
}
.card p {
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.8rem;
}
.content-box {
grid-template-columns: 1fr;
}
.card {
padding: 10px;
}
.card i {
font-size: 2rem;
}
.card h2 {
font-size: 1.2rem;
}
.card p {
font-size: 0.9rem;
}
}
/* Responsive Design */
/* Desktop (1200px and above) */
@media (min-width: 1200px) {
.hero {
padding: 0 5rem;
}
.hero-content h1 {
font-size: 4rem; /* Larger text for desktop */
}
.hero-content p {
font-size: 1.5rem; /* Larger description text */
}
.cta-button {
font-size: 1.2rem;
padding: 1.2rem 2.5rem;
}
}
/* Tablet (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
.hero {
padding: 0 3rem;
}
.hero-content h1 {
font-size: 3rem;
}
.hero-content p {
font-size: 1.2rem;
}
.cta-button {
font-size: 1rem;
padding: 1rem 2rem;
}
}
/* Mobile (320px to 767px) */
@media (max-width: 767px) {
.hero {
flex-direction: column; /* Stack content vertically */
padding: 2rem 1rem;
}
.hero-content h1 {
font-size: 2rem;
}
.hero-content p {
font-size: 1rem;
margin-bottom: 1.5rem;
}
.cta-button {
font-size: 0.9rem;
padding: 0.8rem 1.5rem;
}
}
@media only screen and (max-width: 600px) {
.columns {
width: 100%;
}
}