223 lines
3.4 KiB
CSS
223 lines
3.4 KiB
CSS
/* Reset and global styles */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Roboto", Arial, sans-serif;
|
|
transition: all 0.3s ease; /* Smooth transitions */
|
|
}
|
|
|
|
/* Body styles */
|
|
body {
|
|
background-color: #f9f9f9;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Header styles */
|
|
header {
|
|
background-color: #2c3e50;
|
|
padding: 15px 0;
|
|
width: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.project-name {
|
|
color: #ffffff;
|
|
font-size: 1.8em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.burger-menu {
|
|
background: none;
|
|
border: none;
|
|
color: #ffffff;
|
|
font-size: 1.8em;
|
|
cursor: pointer;
|
|
display: none;
|
|
}
|
|
|
|
.menu {
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
header li {
|
|
margin: 15px;
|
|
}
|
|
|
|
header a {
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
header a:hover {
|
|
background-color: #34495e;
|
|
}
|
|
|
|
/* Article styles */
|
|
article {
|
|
margin-top: 80px;
|
|
margin-bottom: 50px;
|
|
padding: 20px;
|
|
width: 90%;
|
|
max-width: 800px;
|
|
background-color: #ffffff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
|
|
text-align: left;
|
|
}
|
|
|
|
h1 {
|
|
color: #333333;
|
|
margin-bottom: 20px;
|
|
font-size: 2.5em;
|
|
}
|
|
|
|
p.text {
|
|
color: #555555;
|
|
line-height: 1.6;
|
|
margin-bottom: 20px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin-bottom: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
button {
|
|
padding: 12px 24px;
|
|
margin: 1em 0;
|
|
border: none;
|
|
background-color: #3498db;
|
|
color: #ffffff;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
nav {
|
|
margin: 20px;
|
|
}
|
|
|
|
.folder-list {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.folder-list-item {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.folder-link {
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
font-weight: bold;
|
|
display: block;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
background-color: #2c3e50;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.folder-link:hover {
|
|
background-color: #34495e;
|
|
}
|
|
|
|
.folder-link:active {
|
|
transform: scale(0.98); /* Slight scale down on click */
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media (max-width: 1000px) {
|
|
.burger-menu {
|
|
display: block;
|
|
}
|
|
|
|
.menu {
|
|
display: none;
|
|
flex-direction: column;
|
|
background-color: #2c3e50;
|
|
position: absolute;
|
|
top: 100%; /* Adjusted position */
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 999;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu.active {
|
|
display: flex;
|
|
padding: 10px;
|
|
}
|
|
|
|
header {
|
|
padding: 10px 0;
|
|
height: auto;
|
|
}
|
|
|
|
.header-content {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.project-name {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
header li {
|
|
margin: 0;
|
|
padding: 10px;
|
|
}
|
|
|
|
header a {
|
|
width: 100%;
|
|
padding: 12px 0;
|
|
text-align: center; /* Center align the menu items */
|
|
}
|
|
|
|
article {
|
|
margin-top: 140px; /* Increase margin-top for better readability */
|
|
padding-top: 20px;
|
|
margin-bottom: 20px; /* Adjust margin-bottom for consistency */
|
|
}
|
|
}
|