No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
.nav-item { | .nav-item { | ||
position: relative; /* Enables positioning of child elements */ | position: relative; /* Enables positioning of child elements */ | ||
width: | width: 150px; /* Fixed width for each grid item */ | ||
height: | height: auto; /* Allow flexible height for text wrapping */ | ||
border-radius: 8px; | border: 2px solid #ccc; /* Light border around each item */ | ||
border-radius: 8px; /* Rounded corners */ | |||
overflow: hidden; /* Ensures content stays within the bounds */ | overflow: hidden; /* Ensures content stays within the bounds */ | ||
transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */ | transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */ | ||
display: flex; /* Use flexbox for consistent alignment */ | display: flex; /* Use flexbox for consistent alignment */ | ||
flex-direction: column; /* Stack items vertically */ | flex-direction: column; /* Stack items vertically */ | ||
align-items: center; /* Center align items horizontally */ | |||
background-color: #fff; /* Optional light background for better contrast */ | |||
padding: 10px; /* Adds space inside the grid item */ | |||
} | |||
.nav-item:hover { | |||
transform: scale(1.05); /* Slight zoom effect on hover */ | |||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */ | |||
} | } | ||
.nav-item img { | .nav-item img { | ||
width: 100%; /* Ensure the image takes full width of the parent container */ | width: 100%; /* Ensure the image takes full width of the parent container */ | ||
height: | height: auto; /* Maintain aspect ratio */ | ||
object-fit: cover; /* Ensures the image covers the area */ | object-fit: cover; /* Ensures the image covers the area */ | ||
margin: | margin-bottom: 10px; /* Space below the image */ | ||
border-radius: 4px; /* Optional: round the image edges slightly */ | |||
} | } | ||
.nav-item span { | .nav-item span { | ||
text-align: center; /* Center the text */ | |||
font-size: 14px; /* Adjust text size */ | |||
text-align: center; /* Center the text | |||
font-size: 14px; | |||
font-weight: bold; | font-weight: bold; | ||
color: #333; /* Darker text color for readability */ | |||
line-height: 1.2; /* Adjust spacing for text wrapping */ | |||
line-height: 1; /* | word-wrap: break-word; /* Ensure long words wrap within the grid item */ | ||
} | } | ||
Line 56: | Line 55: | ||
margin-top: 20px; | margin-top: 20px; | ||
padding: 10px; | padding: 10px; | ||
background-color: rgba( | background-color: rgba(255, 255, 255, 0.8); /* Light background for footer */ | ||
color: # | color: #333; /* Dark text color for contrast */ | ||
border-radius: 12px; | border-radius: 12px; | ||
} | } |
Revision as of 05:15, 25 November 2024
/* Main page background */
body.page-Main_Page {
background: url('https://predictive-pulse.com/images/5ean444_winter_cabin_forest_snow_night_sky_stars_peaceful_reali_fc7e7992-0c1e-4564-bf78-2930ff9dc2f9.png') no-repeat center center fixed;
background-size: cover;
}
.mainpage-navigation {
display: flex;
flex-wrap: wrap; /* Allows items to wrap to the next line */
gap: 20px; /* Adds spacing between grid items */
justify-content: center; /* Centers the items horizontally */
padding: 20px;
}
.nav-item {
position: relative; /* Enables positioning of child elements */
width: 150px; /* Fixed width for each grid item */
height: auto; /* Allow flexible height for text wrapping */
border: 2px solid #ccc; /* Light border around each item */
border-radius: 8px; /* Rounded corners */
overflow: hidden; /* Ensures content stays within the bounds */
transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
display: flex; /* Use flexbox for consistent alignment */
flex-direction: column; /* Stack items vertically */
align-items: center; /* Center align items horizontally */
background-color: #fff; /* Optional light background for better contrast */
padding: 10px; /* Adds space inside the grid item */
}
.nav-item:hover {
transform: scale(1.05); /* Slight zoom effect on hover */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}
.nav-item img {
width: 100%; /* Ensure the image takes full width of the parent container */
height: auto; /* Maintain aspect ratio */
object-fit: cover; /* Ensures the image covers the area */
margin-bottom: 10px; /* Space below the image */
border-radius: 4px; /* Optional: round the image edges slightly */
}
.nav-item span {
text-align: center; /* Center the text */
font-size: 14px; /* Adjust text size */
font-weight: bold;
color: #333; /* Darker text color for readability */
line-height: 1.2; /* Adjust spacing for text wrapping */
word-wrap: break-word; /* Ensure long words wrap within the grid item */
}
/* Footer style */
.main-footer {
text-align: center;
margin-top: 20px;
padding: 10px;
background-color: rgba(255, 255, 255, 0.8); /* Light background for footer */
color: #333; /* Dark text color for contrast */
border-radius: 12px;
}