You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/3-terrarium/solution/style.css

210 lines
3.1 KiB

body {
font-family: helvetica, arial, sans-serif;
}
h1 {
color: #3a241d;
text-align: center;
}
#left-container {
left: 0px;
}
#right-container {
right: 0px;
}
.container {
background-color: #eee;
width: 15%;
top: 0px;
position: absolute;
height: 100%;
padding: 10px;
}
.plant-holder {
position: relative;
height: 13%;
left: -10px;
}
.plant {
position: absolute;
max-width: 150%;
max-height: 150%;
z-index: 2;
}
/*https://codepen.io/Rotarepmi/pen/rjpNZY*/
.jar-walls {
height: 80%;
width: 60%;
background: #d1e1df;
border-radius: 1rem;
position: absolute;
bottom: 0.5%;
left: 20%;
opacity: 0.5;
z-index: 1;
}
.jar-top {
width: 50%;
height: 5%;
background: #d1e1df;
position: absolute;
bottom: 80.5%;
left: 25%;
opacity: 0.7;
z-index: 1;
}
.jar-bottom {
width: 50%;
height: 1%;
background: #d1e1df;
position: absolute;
bottom: 0%;
left: 25%;
opacity: 0.7;
}
.dirt {
width: 60%;
height: 5%;
background: #3a241d;
position: absolute;
border-radius: 0 0 1rem 1rem;
bottom: 1%;
left: 20%;
opacity: 0.7;
z-index: -1;
}
.jar-glossy-long {
width: 3%;
height: 20%;
border-radius: 2rem;
background: #ddfbff;
position: absolute;
bottom: 20%;
left: 5%;
}
.jar-glossy-short {
width: 3%;
height: 5%;
border-radius: 2rem;
background: #ddfbff;
position: absolute;
bottom: 45%;
left: 5%;
}
/* ...existing code... */
/* Navigation Bar Styles */
nav {
background: linear-gradient(90deg, #d1e1df 60%, #b2c9c6 100%);
box-shadow: 0 2px 8px rgba(58,36,29,0.08);
padding: 0.5rem 0;
margin-bottom: 1rem;
}
nav ul {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
list-style: none;
margin: 0;
padding: 0;
}
nav li a {
color: #3a241d;
text-decoration: none;
font-size: 1.1rem;
font-weight: 600;
transition: color 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
}
nav li a:hover, nav li a:focus {
background: #e6f2f0;
color: #2d7c6f;
box-shadow: 0 2px 8px rgba(45,124,111,0.08);
}
/* Font Awesome Icon Styles */
.fas, .fab {
color: #2d7c6f;
font-size: 1.2em;
vertical-align: middle;
transition: color 0.2s;
}
nav li a:hover .fas,
nav li a:hover .fab {
color: #3a241d;
}
header h1 .fas {
color: #3a241d;
margin-right: 0.5rem;
font-size: 1.3em;
}
header p .fas {
color: #2d7c6f;
margin-left: 0.3rem;
}
footer {
background: #d1e1df;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
font-size: 1rem;
color: #3a241d;
border-top: 2px solid #b2c9c6;
}
footer a {
color: #2d7c6f;
text-decoration: none;
margin: 0 0.5rem;
font-weight: 600;
transition: color 0.2s;
}
footer a:hover, footer a:focus {
color: #3a241d;
text-decoration: underline;
}
footer .fab, footer .fas {
margin-right: 0.3rem;
font-size: 1.1em;
vertical-align: middle;
}
/* Responsive adjustments for navigation */
@media (max-width: 700px) {
nav ul {
flex-direction: column;
gap: 1rem;
}
nav li a {
font-size: 1rem;
padding: 0.5rem 0.5rem;
}
}
/* ...existing code... */