html {
  display:flex;
  justify-content:center;
  min-height:100vh;
  background-color: #f4f4f4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
  width: 90%;
  max-width: 500px;
  background-color: #fff;
  padding: 1.2rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 1rem 0rem;
  display: flex;
  flex-direction: column;
  align-self: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

header > img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

header > h1, header > h2 {
  padding: 0;
  margin: 0;
}

header > h1 {
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  font-size: 1.5em;
  color: #555;
  text-decoration: none;
}

main {
  flex-grow: 1;
}

section {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}
.xsection-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link {
    display: flex;
    background-color: #f0f0f0;
    padding: 0.62rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
    min-height: 2.4rem;
}
.link:hover {
    background-color: #ddd;
}

.link > a {
  display: flex;
  flex-grow: 1;
  align-items: center;
  overflow: hidden;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.link-text {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
}

.link-icon {
  width: 2.1rem;
  height: 2.1rem;
  background-color: transparent;
  border-radius: 0.6rem;
  flex-shrink: 0;
  display: flex;
  justify-content:center;
  align-items: center;
  overflow: hidden;
}

.link-icon > img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover; 
}

.link-text > * {
  text-overflow: ellipsis;
  overflow: hidden;
}

.button-more {
  background-color: transparent;
  color: #555;
  border: 0;
  margin: -0.62rem -0.62rem -0.62rem 0;
  border-radius: 0 1rem 1rem 0;
  width: 3rem;
  flex-shrink: 0;
}
.button-more:hover {
    color: #000;
}

section h3 {
  margin-bottom: 0;
}

footer {
  text-align: right;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f4f4f4;
}