willowmecreations/style.css

143 lines
2.9 KiB
CSS
Raw Normal View History

2023-12-08 06:21:25 +00:00
body {
2023-12-10 20:34:29 +00:00
background: linear-gradient(to bottom, #FFDAB9, #FFFACD); /* gradient from light peach to cream */
2023-12-08 06:21:25 +00:00
color: #006400; /* dark green */
2023-12-10 21:24:28 +00:00
font-family: Lora, 'Times New Roman', Times, serif;
2023-12-08 06:21:25 +00:00
line-height: 1.6;
2023-12-10 21:24:28 +00:00
margin: 0;
padding: 0;
box-sizing: border-box;
2023-12-08 06:21:25 +00:00
}
.container {
2023-12-10 21:24:28 +00:00
padding: 20px;
}
.info {
padding: 2px 16px;
2023-12-08 06:21:25 +00:00
display: flex;
flex-direction: column;
2023-12-10 21:24:28 +00:00
justify-content: center;
align-items: center;
}
.meat {
margin: 20px auto; /* Adds a margin to the top and bottom, and auto-aligns the left and right */
padding: 20px; /* Adds padding inside the div */
max-width: 800px; /* Limits the width of the content to 800px */
background-color: #fff; /* Sets the background color to white */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow around the div */
}
.main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2023-12-08 06:21:25 +00:00
}
.news {
height:222px;
width:222px;
}
h1, h2 {
2023-12-10 20:34:29 +00:00
color: #333333; /* dark grey */
2023-12-08 06:21:25 +00:00
}
2023-12-10 21:24:28 +00:00
h1, h2, p {
margin-bottom: 20px;
2023-12-08 06:21:25 +00:00
}
a {
2023-12-10 20:34:29 +00:00
color: #000080; /* dark blue */
2023-12-08 06:21:25 +00:00
text-decoration: none;
}
a:hover {
2023-12-10 20:34:29 +00:00
color: #800000; /* maroon */
2023-12-08 06:21:25 +00:00
}
.fab {
2023-12-10 20:34:29 +00:00
color: #000080; /* dark blue */
2023-12-08 06:21:25 +00:00
}
2023-12-10 21:24:28 +00:00
.card {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
width: 100%; /* This will make the card take up the full width of its container */
margin-bottom: 20px; /* This adds some space between the cards */
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
2023-12-08 06:21:25 +00:00
.card img {
width: 40%; /* adjust as needed */
height: auto; /* maintain aspect ratio */
display: block; /* center the image */
margin: 0 auto;
}
.container {
display: flex;
padding: 50px;
}
.header, .topnav {
flex: 1;
2023-12-10 21:24:28 +00:00
text-align: center;
}
.topnav a {
margin: 0 10px;
color: #006400;
text-decoration: none;
transition: color 0.3s ease;
}
.topnav a:hover {
color: #800080;
}
2023-12-08 06:21:25 +00:00
2023-12-10 21:24:28 +00:00
.footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background-color: #f2f2f2; /* This will make the background of the footer a light grey */
padding: 20px 0; /* This adds some vertical padding */
}
.footer div {
flex: 1 1 200px; /* This will make the divs take up equal space and wrap as needed */
margin: 10px;
text-align: center; /* This will center the text within each div */
2023-12-10 20:34:29 +00:00
}
2023-12-10 21:24:28 +00:00
/* Add box shadow to header and footer */
.header, .footer {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Add hover effect to "Go to top" button */
2023-12-10 20:34:29 +00:00
#myBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
border: none;
outline: none;
background-color: red;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 10px;
font-size: 18px;
2023-12-10 21:24:28 +00:00
transition: background-color 0.3s ease;
2023-12-10 20:34:29 +00:00
}
#myBtn:hover {
background-color: #555;
2023-12-08 06:21:25 +00:00
}