:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --nav-bg: var(--bg-color);
    --nav-border: #ccc;
    --nav-hover: #f0f0f0;
    --link-color: #0066cc;
}

@media (max-width:768px) {

    .nav-row {
        flex-direction: column;
        width: 100%;
    }

    .nav a {
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

    body.dark {
        --bg-color: #303030;
        --text-color: #ffffff;
        --nav-bg: var(--bg-color);
        --nav-border: #555;
        --nav-hover: #505050;
        --link-color: #4da3ff;
    }

a {
    color: var(--link-color);
}

    a:hover {
        text-decoration: none;
    }

.nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-main {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-left {
    flex: 1;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav a {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
}

    .nav a:hover {
        background: var(--nav-hover);
    }

    .nav a.active {
        font-weight: bold;
        border-bottom: 3px solid var(--text-color);
    }

.modeswitcher {
    cursor: pointer;
    padding: 10px 15px;
    font-size: 20px;
    user-select: none;
    transition: transform 0.2s ease;
}

    .modeswitcher img {
        height: 20px;
        width: auto;
        display: block;
        transition: transform 0.15s ease;
    }

    .modeswitcher:hover img {
        transform: scale(1.0);
    }

.footer {
    text-align: center;
    padding: 30px;
}

.isw-table {
    margin: 20px auto;
    border-collapse: collapse;
}

    .isw-table a {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 15px;
    }

    .isw-table span {
        display: flex;
        align-items: center;
    }

    .isw-table td {
        padding: 10px 20px;
        vertical-align: middle;
        text-align: left;
    }

.content {
    padding-left: 20px;
    padding-right: 20px;
}

    .content h1 {
        margin-bottom: 20px;
        text-align: center;
    }

.photo-album {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    width: fit-content;
}

.footer-link {
    text-align: center;
    margin: 10px auto;
}

.footer-link a {
    display: inline-block;
}

.footer-link img {
    transition: opacity 0.2s ease;
}

.footer-link img:hover {
    opacity: 0.8;
}