body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Overall layout: two columns */
.container {
    display: flex;
    height: 100vh;
}

/* Left side menu */
.menu {
    width: 25%;
    background-color: #2c3e50;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    color: white;
}

.menu h2 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.menu a:hover {
    background-color: #34495e;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* Right side content */
.content {
    width: 75%;
    padding: 40px;
    background-color: #ecf0f1;
    overflow-y: auto;
}

.content h1 {
    color: #2c3e50;
    font-size: 2.5em;
}

.content h2 {
    color: #2c3e50;
    font-size: 2em;
}

.content h3 {
    color: #2c3e50;
    font-size: 1.75em;
}

.content h4 {
    color: #2c3e50;
    font-size: 1.5em;
}

.content h5 {
    color: #2c3e50;
    font-size: 1.25em;
}

.content h1 h2 h3 h4 h5{
    color: #2c3e50;
    font-weight: bold;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.content p {
    color: #34495e;
    font-size: 1.2em;
    line-height: 1.6em;
}

ul,ol {
    margin: 0;
    padding-left: 20px;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    color: #34495e;
}

li {
    margin-bottom: 10px;
    padding-left: 10px;
    line-height: 1.5;
    position: relative;
}

li::before {
    color: #2c3e50;
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
}

.button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.link-button {
    display: inline-block;
    padding: 15px 25px;
    font-size: 1.2em;
    color: white;
    background-color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.link-button:hover {
    background-color: #34495e;
}

/* Gallery and modal styles */ 
.gallery { 
display: flex; 
justify-content: center; 
gap: 10px; 
margin-top: 20px; 
}

.gallery img {
height: 150px;
width: auto;
cursor: pointer;
border: 2px solid #ccc;
border-radius: 5px;
}

.gallery img:hover {
border-color: #555;
}

.modal { 
display: none; 
position: fixed; 
top: 0; 
left: 0; 
width: 100%; 
height: 100%; 
background: rgba(0, 0, 0, 0.8); 
justify-content: center; 
align-items: center; 
}

.modal img { 
max-width: 90%; 
max-height: 90%; 
border-radius: 10px; 
}

.modal:target { 
display: flex; 
}

.modal a { 
position: absolute; 
top: 20px; 
right: 20px; 
color: white; 
text-decoration: none; 
font-size: 24px; 
}

#myBtn {
    position: absolute;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #34495e;
}

/* Tartalomjegyzék konténer */
#table-of-contents {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#table-of-contents h1 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

/* Tartalomjegyzék linkek */
#table-of-contents a {
    display: block;
    margin: 5px 0;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 1.1em;
    color: #34495e;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

#table-of-contents a:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* Hierarchikus tagolás (ha ul/li-t használsz) */
#table-of-contents ul {
    list-style: none;
    padding-left: 10px;
}

#table-of-contents li {
    margin-bottom: 5px;
}

/* H2 vagy mélyebb szintek behúzása */
#table-of-contents a[data-level="2"] {
    margin-left: 10px;
}

#table-of-contents a[data-level="3"] {
    margin-left: 20px;
}

#table-of-contents a[data-level="4"] {
    margin-left: 30px;
}