* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Century Gothic', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: #f15922;
    color: #000;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


header h1 {
    margin: 0;
    white-space: nowrap;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex: 1;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 1.2em;
}



#back-to-top {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: #f15922;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s;
}

main {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 20px;
    margin: 10px auto;
    background: transparent;
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
}

section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#toc ul li a {
    color: #000000;
    text-decoration: none;
}

#toc ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    header h1 {
        margin-right: 10px;
    }

    nav ul {
        padding: 0;
    }

    nav ul li {
        margin-left: 10px;
    }
}

footer {
    text-align: left;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    color: #000;
    width: 100%;
    height: 15%;
}

footer a {
    color: #000;
    text-decoration: none;
}

.logos-container {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    padding-right: 20px;
}

.logos-container .logo {
    max-width: 150px;
    margin: 0 10px;
}

.gallery img {
    width: 100%;
    max-width: 300px;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    opacity: 0.7;
}

.image-viewer {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.image-viewer .close:hover,
.image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.image-viewer .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.image-viewer #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

@media only screen and (max-width: 700px) {
    .image-viewer .modal-content {
        width: 100%;
    }
}