/* Challenge by Frontend Mentor (https://www.frontendmentor.io?ref=challenge") 
   Coded by Ericsson Mura (https://github.com/ericssonmura/front-end-mentor-social-links-profile)
*/

:root {
  --green: hsl(75, 94%, 57%);
  --white: hsl(0, 0%, 100%);
  --gray-700: hsl(0, 0%, 20%);
  --gray-800: hsl(0, 0%, 12%);
  --gray-900: hsl(0, 0%, 8%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  box-sizing: inherit;
  font-size: 100%;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(--gray-900);
  color: var(--white);
  font-family: 'Inter', serif;
  line-height: 1;
  letter-spacing: 0px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a, a:visited{
  color: inherit;
  text-decoration: none;
}

p, cite, h1, h2, h3 {
  margin-top: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  width: 100%;
  display: block;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90rem;
  min-height: 100vh; 
  margin-inline: auto;
}

.profile__wrapper {
  padding: 1.5rem;
  width: 20.5rem;
  background-color: var(--gray-800);
  border-radius: 12px;
}

@media screen and (min-width: 48em) {
  .profile__wrapper {
    padding: 2.5rem;
    width: 24rem;
  }
}

.profile__wrapper .profile__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile__wrapper .profile__image img {
  width: 5.625rem;
  border-radius: 50%;
  margin-bottom: 1.875rem;
  transition: all 0.2s ease-in-out;
}

.profile__wrapper .profile__image img:hover {
  transform: scale(0.95);
}

.profile__wrapper h1 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile__wrapper h2 {
  margin-bottom: 1.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

.profile__wrapper p {
  margin-bottom: 1.625rem;
  font-size: 0.875rem;
  font-weight: 300;
}

.profile__wrapper .profile__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile__wrapper .profile__nav li {
  padding: 1rem 0;
  margin: 0.5rem 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--gray-700);
  border-radius: 8px;
  transition: transform 0.3s ease-in;
}

@media screen and (min-width: 48em) {
  .profile__wrapper .profile__nav li a {
    font-size: 0.8125rem;
  }
}

.profile__wrapper .profile__nav li:first-child {
  margin-top: 0;
}

.profile__wrapper .profile__nav li:last-child {
  margin-bottom: 0;
}

.profile__wrapper .profile__nav li:hover,
.profile__wrapper .profile__nav li:active {
  background-color: var(--green);
  cursor: pointer;
  transform: scale(0.98);
}

.profile__wrapper .profile__nav li:hover a,
.profile__wrapper .profile__nav li:active a {
  color: var(--gray-900);
  font-weight: 700;
}

.profile__wrapper .profile__nav li a {
  display: block;
}


