.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  width: 100%;
  z-index: 1;
  background-color: var(--secondary-color);
  border-radius: 5px;
}

.avatar img {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-right: 1em;
  border: 2px solid var(--primary-color);
}

.avatar {
  display: block;
  margin-bottom: 10px;
}

.about-me {
  display: flex;
  align-items: center;
  /* This will align the content vertically */
  height: 100%;
  /* You might need to specify a height */
  margin-bottom: 20px;
  width: 100%;
}

.profile .avatar {
  flex: 1;
}

.profile .username {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.profile textarea {
  border: 1px solid var(--border-color);
  padding: 5px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  resize: none;
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  outline-color: var(--primary-color);
  height: 30px;
  margin-right: 10px;
}

.profile .toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 6px;
}

.upload-avatar input[type="file"] {
  display: none;
}

.upload-avatar label {
  cursor: pointer;
}

.about-me textarea {
  min-height: 50px;
}

.banner {
  width: calc(100% - 30px); /* Adjust for padding */
  overflow: hidden; /* Ensures no spillover if the image is larger than the container */
  position: fixed;
  max-width: 850px;
  border: 2px solid var(--primary-color);
}

.banner img {
  width: 100%;
  height: 120px;
  display: block; /* Ensures it's a block-level element */
  margin: 0 auto; /* Center the image */
}