html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial;
  margin: 40px 0 0 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background-color: #252525;
  color: #D3D3D3;
}

.profile-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 600px;
  padding: 110px 20px 20px;
  background-color: #000;
  color: silver;
  text-align: center;
  border: 1px solid transparent;
  border-image: url("border.svg") 84 / 40 round;
  /* margin-top: 60px; */
}

.profile-pic {
  width: 150px;
  margin-right: 20px;
  border-radius: 50%;
}

.profile-text {
  flex: 1;
  line-height: 1.6;
  text-align: left;
  padding: 0px 40px 0px 40px;
}

.profile-text h2 {
  text-align: center;
}

.profile-text p {
  font-size: 1.1rem;
}

.profile-name {
  font-size: 2em;
  font-weight: bold;
}

.logo {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;         /* responsive width */
  max-width: 400px;
  height: auto;
  z-index: 2;
}

.email {
  max-width: 78px;
  margin: 10px 5px 0 0;
}

.linked {
  max-width: 70px;
}

.github {
  max-width: 70px;
}

a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent; /* Mobile tap highlight */
}

a:visited,
a:focus,
a:hover,
a:active {
  text-decoration: none;
  color: inherit;
  outline: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 160px;
  }

  .profile-container {
    flex-direction: column;
    align-items: center;
    width: auto;
  }

  .profile-pic {
    margin-right: 0;
    margin-top: -20px;
    margin-bottom: 20px;
  }

  .profile-text {
    text-align: left; /* Center text on smaller screens */
    flex: none; /* Prevent text from taking up extra space */
  }
  
  .profile-text {
    padding: 0px 10px 0px 20px;
  }

  .logo {
    max-width: 250px;
    top: 0px;
  }
}
