* {
    box-sizing: border-box;
}

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

.nav {
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

a {
    text-decoration: none;
    font-size: 1.1rem;
    margin-right: 10px;
}

a:hover {
    text-decoration: underline;
}

h2 {
    margin-top: 0;
}

.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.profile-text {
    flex: 1; 
}

.profile-image img {
    width: 350px;
    height: auto;
    display: block;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-family: inherit;
}

input[type="submit"],
input[type="reset"] {
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 10px;
}

@media (max-width: 800px) {
    .profile-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .profile-image img {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }

    .profile-text {
        width: 100%;
    }
}