@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --mainGray: #4E5150;
  --lightGray1: #A9A9A9;
  --lightGray2: #BDBDBD;
  --lightGray3: #E5E5E5;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  color: var(--mainGray);
}

::-webkit-scrollbar {
  width: .4rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--mainGray);
  border-radius: .4rem;
}

html,
body {
  min-height: 100dvh;
}

body {
  padding: 2rem 10rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.user_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
}

.user_info figure {
  width: 10rem;
  height: 10rem;
  border-radius: 1rem;
  overflow: hidden;
}

.user_info figure img {
  width: 100%;
  height: 100%;
}

.user_info .name {
  font-size: 1.5rem;
}

.user_info .location {
  font-size: .8rem;
  color: var(--lightGray1);
}

.account_info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.account_info .data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 4rem;
  width: 6rem;
  background-color: var(--lightGray3);
  border-radius: .4rem;
}

.account_info .data .amount {
  font-size: 1.1rem;
  font-weight: 700;
}

.account_info .data .title {
  font-size: .8rem;
  color: var(--lightGray2);
}

main {
  padding: 3rem 1rem;
}

main section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

main section figure {
  background-color: var(--lightGray3);
  border-radius: 1rem;
  overflow: hidden;
}

main section figure:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

main section figure:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

main section figure:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

main section figure:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
}

main section figure:nth-child(5) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

main section figure:nth-child(6) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

main section figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms linear;
  cursor: pointer;
}

main section figure img:hover {
  transform: scale(120%);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
}

footer p {
  font-size: .8rem;
  color: var(--lightGray1);
}

footer p a {
  text-decoration: none;
  font-weight: 700;
  color: inherit;
}

/* ? Responsive */

@media (max-width: 1023px) {
  body {
    padding: 1rem 0;
  }

  header {
    gap: .8rem;
  }

  .user_info {
    gap: .6rem;
  }

  .user_info figure {
    width: 6rem;
    height: 6rem;
  }

  .user_info .name {
    font-size: .9rem;
  }

  .user_info .location {
    font-size: .6rem;
  }

  .account_info {
    gap: 1rem;
  }

  .account_info .data {
    width: 5rem;
    height: 3rem;
    gap: .2rem;
  }

  .account_info .data .amount,
  .account_info .data .title {
    font-size: .8rem;
  }
}
