.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.status-message {
    width: fit-content;
    height: fit-content;
    margin: 20px 20px -10px 20px;
    padding: 10px;
    font: 400 16px Arial;
    font-style: italic;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5);
}

.status-message.success {
    background-color: rgb(14, 118, 14);
}

.status-message.error {
    background-color: rgb(120, 27, 27);
}

.section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 80%;
    max-width: 700px;
    height: fit-content;
    border: 2px solid var(--golden);
    border-radius: 10px;
    margin-top: 40px;
    position: relative;
    padding: 10px;
}

/* Scaling User Information section for narrow screens */
@container contentPanel (max-width: 700px) {
    .info-section {
        flex-direction: column;
    }

    .user-details-section {
        flex-direction: row;
        flex: 1;
        width: 100%;
        padding: 5px;
    }
}

.content-panel header {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--leaf);
    padding: 0 5px;
    font-size: 24px;
}


/* -- User Information section styling -- */

.avatar-section {
    margin: 0 5px;
    width: 200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-section>img {
    height: 180px;
    width: auto;
    aspect-ratio: 1 / 1;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bronze);
    box-sizing: border-box;
    margin-bottom: 10px;
}

.profile-button {
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    height: 25px;
    background-color: var(--golden);
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 50ms ease-in-out;
    overflow: hidden;
    flex: none;
}

.profile-button:active {
    transform: scale(0.95);
    background-color: var(--bronze);
}

.profile-button img {
    height: 70%;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: fill;
    margin-right: 3px;
}

.profile-button span,
.edit-button span {
    font-size: 15px;
    transform: translateY(-1px);
}

.user-details-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px;
}

.user-details-section>span {
    font-size: 18px;
}

.user-details-container {
    height: 35px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    margin: 5px 0;
}

.user-details-input {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    border: 1px solid black;
    padding: 0 92px 0 5px;
    font-size: 16px;
}

.user-details-input:active,
.user-details-input:focus {
    outline: none;
    box-shadow: 0 0 5px 1px black;
}

.edit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    height: 98%;
    background-color: var(--golden);
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 50ms ease-in-out;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.edit-button:active {
    transform: scale(0.95) translateY(-53%);
    background-color: var(--bronze);
}

.edit-button img {
    height: 60%;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: fill;
    margin-right: 3px;
}

.username {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 35px;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    border: 1px solid black;
    margin: 5px 0 0 0;
    padding: 0 5px;
    font-size: 16px;
}

.username:active,
.username:focus {
    outline: none;
    box-shadow: 0 0 5px 1px black;
}

/* -- About Me section styling -- */
.bio-section {
    flex-direction: column;
}

.prompt-section {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 10px;
}

.prompt-section>span {
    flex: 1;
    font-size: 18px;
}

@container contentPanel (385px <= width <= 420px) {
    .prompt-section>span {
        font-size: 16px;
    }
}

@container contentPanel (355px < width < 385px) {
    .prompt-section>span {
        font-size: 14px;
    }
}

@container contentPanel (max-width: 355px) {
    .prompt-section>span {
        font-size: 12px;
    }
}

.prompt-section button {
    margin: 0 0 0 10px;
    height: 100%;
}

.bio-input {
    width: 100%;
    resize: none;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    border: 1px solid black;
    padding: 5px;
    font-size: 16px;
}

.bio-input:active,
.bio-input:focus {
    outline: none;
    box-shadow: 0 0 5px 1px black;
}

/* -- Security section styling -- */

.security-section {
    gap: 30px;
    align-items: flex-start;
}

.pw-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pw-container {
    position: relative;
    height: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.pw-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-100%);
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    overflow: hidden;
}

.pw-container button:active {
    transform: translateY(-100%) scale(0.9);
}

.pw-container button img {
    object-fit: fill;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.security-section input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    border: 1px solid black;
    padding: 5px;
    font-size: 16px;
}

.security-section input:active,
.security-section input:focus {
    outline: none;
    box-shadow: 0 0 5px 1px black;
}

.security-section span {
    font-size: 18px;
    margin: 10px 0;
}

.security-section button {
    margin-top: 10px;
    width: 80%;
    align-self: flex-end;
}

.security-section button span {
    font-size: 16px;
}

/* Scaling Security section for narrow screens */
#Security-Top-Section {
    flex: 1;
    display: flex;
    margin: 0;
}

#Security-Bottom-Section {
    flex: 2;
    display: flex;
    gap: 30px;
    margin: 0;
}

@container contentPanel (561px <= width <= 860px) {
    .security-section {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    #Security-Top-Section {
        width: 445px;
    }

    #Security-Top-Section .pw-container {
        width: 207px;
    }
}

@container contentPanel (max-width: 560px) {
    .security-section {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    #Security-Bottom-Section {
        flex-direction: column;
        gap: 5px;
    }
}