mirror of
https://github.com/PR0M3TH3AN/Survival-Data.git
synced 2025-09-07 06:48:46 +00:00
133 lines
2.0 KiB
CSS
133 lines
2.0 KiB
CSS
/* General styles */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #121212;
|
|
color: #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
header {
|
|
background-color: #1f1f1f;
|
|
color: white;
|
|
padding: 20px;
|
|
text-align: center;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
width: 100%;
|
|
}
|
|
|
|
header h1 {
|
|
margin: 0;
|
|
}
|
|
|
|
nav ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
nav ul li {
|
|
margin: 5px 10px;
|
|
}
|
|
|
|
nav ul li a {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
nav ul li a:hover {
|
|
background: #007BFF;
|
|
}
|
|
|
|
main {
|
|
padding: 20px;
|
|
max-width: 800px;
|
|
width: 100%;
|
|
}
|
|
|
|
section {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.2em;
|
|
margin: 0;
|
|
padding: 10px;
|
|
background-color: #1f1f1f;
|
|
color: white;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid #007BFF;
|
|
border-radius: 5px;
|
|
transition: background 0.3s;
|
|
text-align: center;
|
|
}
|
|
|
|
h2:hover {
|
|
background-color: #007BFF;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
display: none; /* Hide the list by default */
|
|
margin: 0;
|
|
background-color: #2a2a2a;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
}
|
|
|
|
ul li {
|
|
padding: 10px;
|
|
border-bottom: 1px solid #444;
|
|
}
|
|
|
|
ul li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
ul li a {
|
|
text-decoration: none;
|
|
color: #007BFF;
|
|
display: block;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
ul li a:hover {
|
|
background: #333;
|
|
}
|
|
|
|
footer {
|
|
background-color: #1f1f1f;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 10px 0;
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 600px) {
|
|
header h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
h2 {
|
|
font-size: 1em;
|
|
}
|
|
nav ul {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
}
|