body {
    font-family: sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin-top: 30px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
}

.code-box {
    background: #f4f4f4;
    padding: 15px;
    border-left: 5px solid #ccc;
    font-family: monospace;
}

.download-btn {
    background: #0078d4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background: #005a9e;
}

.nav-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.nav-btn:hover {
    background: #545b62;
}

header {
    margin-bottom: 30px;
}

main section {
    margin-bottom: 20px;
}

main p {
    margin: 10px 0;
}

footer {
    margin-top: 50px;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

footer nav p {
    margin: 5px 0;
}

footer a {
    color: #0078d4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: disc;
    padding-left: 30px;
}

li {
    margin: 8px 0;
}

a {
    color: #0078d4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.image-gallery {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.image-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.image-item img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    .nav-btn,
    .download-btn {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}