/*------- CSS VARIABLES -----------*/

:root {
  /* colors */
  --color-green: hsl(75, 94%, 57%); /* primary */
  --color-white: hsl(0, 0%, 100%);
  --color-grey: hsl(0, 0%, 20%);
  --color-dark-grey: hsl(0, 0%, 12%);
  --color-off-black: hsl(0, 0%, 8%);
  --border-radius-1: 0.4rem;
}

/* FONT */
@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-VariableFont_slnt,wght.ttf");
}

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

main {
  width: 100%;
  min-height: calc(100vh - 15px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--color-off-black);
}

.card {
  width: 22rem;
  height: 35rem;
  border-radius: var(--border-radius-1);
  padding: 2rem;
  background-color: var(--color-dark-grey);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.card_profile{
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;   
    margin-bottom: 1rem;
    cursor: pointer;
    transition:  .4s ease;

}

.card_profile:hover{
    transform: scale(1.5);
    border: 2px solid var(--color-green);
}

.card_profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h2{
    color: var(--color-white);
    margin: 0.4rem 0;
    font-weight: 500;
}

.card h5{
    color: var(--color-green);
    font-weight: 400;
}

.card p{
    color: var(--color-white);
    font-size: 0.8rem;
    margin: 1rem 0;
}

ul.social-link{
    list-style: none;
    width: 100%;
}

ul.social-link li{
    position: relative;
    background-color: var(--color-grey);
    margin-bottom: 0.6rem;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    padding: 0.6rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--border-radius-1);
    cursor: pointer;
    transition: .4s ease;
    overflow: hidden;
    z-index: 1;
}

ul.social-link li::after{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    background-color: var(--color-green);
    height: 100%;
    width: 0%;
    z-index: -1;
    transition: 1s ease;
    
}

ul.social-link li:hover::after{
    width: 100%;
}

ul.social-link li:hover{
    color: var(--color-grey);
}


/* Footer */
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
