@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--primary-color: #211c84;
--secondary-color: #4d55cc;
--accent-color: #7a73d1;
}
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
background: #f4f4f4;
color: #333;
scroll-behavior: smooth;
font-family: "Roboto", sans-serif;
font-weight: 500;
font-style: normal;
}
header {
background: var(--primary-color);
color: #fff;
text-align: center;
padding: 20px;
font-size: 1.8em;
font-weight: 700;
}
header img {
width: 30px;
object-fit: contain;
}
header span {
display: flex;
align-items: center;
justify-content: center;
}
.container {
display: flex;
flex-direction: column;
max-width: 900px;
margin: 20px auto;
background: #fff;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.toc {
background: #f9f9f9;
padding: 15px;
margin-bottom: 20px;
border-radius: 5px;
}
.toc h2 {
font-size: 1.2em;
margin-bottom: 10px;
color: #333;
}
.toc ul {
list-style: none;
padding-left: 10px;
}
.toc ul li {
margin-bottom: 5px;
}
.toc a {
text-decoration: none;
color: #35424a;
font-weight: 500;
}
.toc a:hover {
text-decoration: underline;
}
section {
scroll-margin-top: 20px;
margin-bottom: 40px;
}
h2 {
color: #35424a;
border-bottom: 2px solid #ddd;
padding-bottom: 10px;
margin-bottom: 15px;
}
p {
text-align: justify;
}
@media (min-width: 768px) {
.container {
display: flex;
flex-direction: row;
gap: 20px;
}
.toc {
width: 30%;
position: sticky;
top: 20px;
align-self: flex-start;
margin-bottom: 0;
}
.content {
width: 70%;
}
}
footer {
text-align: center;
padding: 10px;
background: #35424a;
color: #fff;
margin-top: 20px;
}
.back-to-top {
position: fixed;
right: 20px;
bottom: 20px;
background: var(--accent-color);
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 50px;
cursor: pointer;
display: none;
font-size: 16px;
z-index: 100;
transition: background 0.3s ease;
}
.back-to-top:hover {
background: #1f2a30;
}