body {
    font-family: Arial, sans-serif;
    background-color: #A0A0A0;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    scroll-behavior: smooth;
    min-height: 100vh;
    margin: 0;
}

.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    overflow-x: auto;
}

.box {
    background-color: #C0C0C0;
    margin: 10px;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 10px 10px 20px #666;
}

.box h2 {
    background-color: #2F2F5F;
    color: white;
    padding: 10px;
    text-align: center;
    margin: -20px -20px 10px;
}

.navigator,
.links {
    width: 200px;
    flex-shrink: 0;
    height: 400px;
    overflow-y: auto;
}

.navigator a, .links a {
    display: block;
    background-color: #D0D0D0;
    color: black;
    text-decoration: none;
    margin: 5px 0;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
    box-shadow: inset 1px 1px 3px #888;
}

.navigator a:hover, .links a:hover {
    background-color: #AAA;
}

.content {
    position: relative;
    padding-top: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
}

.content p {
    margin: 10px 0;
    line-height: 1.5;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: #2F2F5F;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.avatar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.job-title {
    margin-top: 0;
    margin-bottom: 20px;
}

.section {
    text-align: left;
    margin-top: 30px;
}

.section h2 {
    background-color: #2F2F5F;
    color: white;
    padding: 10px;
    margin: -20px -20px 20px;
}

/* Align text left for the rest of the content */
.content > *:not(.header):not(.avatar-container):not(h1):not(.job-title) {
    text-align: left;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        min-height: calc(100vh - 80px);
    }

    .navigator,
    .content {
        max-width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .content {
        height: auto;
        min-height: calc(100vh - 80px - 60px);
        padding: 15px;
        box-sizing: border-box;
    }

    .hamburger-menu {
        display: block;
    }

    .navigator {
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        width: 250px;
        background-color: #C0C0C0;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .navigator.active {
        left: 0;
    }

    .navigator h2 {
        margin-top: 50px;
    }

    .navigator nav {
        display: flex;
        flex-direction: column;
    }

    .links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #C0C0C0;
        padding: 10px 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .links h2 {
        display: none;
    }

    .links a {
        margin: 0;
        padding: 8px 12px;
        font-size: 0.9em;
        border-radius: 20px;
        background-color: #2F2F5F;
        color: white;
        transition: background-color 0.3s ease;
    }

    .links a:hover {
        background-color: #1F1F3F;
    }

    .links .link-text {
        display: none;
    }

    .links a {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 10px;
    }

    .container {
        min-height: calc(100vh - 70px);
    }

    .content {
        padding: 10px;
    }

    .box {
        padding: 15px;
    }

    .box h2 {
        font-size: 1.2em;
    }

    .navigator a, .links a {
        padding: 8px;
    }

    .links a {
        padding: 6px 10px;
        font-size: 1em;
    }
}

@media print {
    body {
        padding: 0;
        background-color: white;
    }

    .container {
        display: block;
    }

    .box {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .navigator,
    .links,
    .hamburger-menu {
        display: none;
    }

    .content {
        max-width: 100%;
        overflow: visible;
        height: auto;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: black;
    }

    h2 {
        background-color: white;
        color: black;
        border-bottom: 1px solid black;
    }
}

@media screen and (min-width: 768px) {
    .avatar {
        width: 300px;
        height: 300px;
    }
}
