@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap");

:root {
  /*====COLORS====*/

  /*====PRIMARY====*/
  --VD-Magenta: hsl(300, 43%, 22%);
  --S-pink: hsl(333, 80%, 67%);
  --VS-pink: hsla(333, 80%, 67%, 0.2);

  /*====NEUTRAL====*/
  --DG-Magenta: hsl(303, 10%, 53%);
  --LG-Mangenta: hsl(300, 24%, 96);
  --White: hsl(0, 0%, 100%);

  /*====FONT====*/
  --FF: "League Spartan", sans-serif;
}
*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/*====GENERAL====*/

.center {
  margin: 0 auto;
  text-align: center;
}

html {
  inline-size: 100vw;
  min-block-size: 100vh;
  font-size: 15px;
  padding: 1rem;
}

body {
  max-inline-size: 100%;
  block-size: auto;
  display: flex;
  flex-direction: column;
  font-family: var(--FF);
  gap: 2rem;
  margin: 0 auto;
  background-image: url("/images/bg-pattern-top-mobile.svg"),
    url("/images/bg-pattern-bottom-mobile.svg");
  background-repeat: no-repeat, no-repeat;
  background-size: contain, contain;
  background-position: -20px -50px, 40px 400px;

  scroll-behavior: smooth;
}

h1 {
  inline-size: 100%;
  font-size: 3rem;
  font-weight: 700;
  color: var(--VD-Magenta);
}

.head p {
  display: flex;
  flex-flow: column nowrap;
}

p {
  color: var(--VD-Magenta);
}

.stars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 10s ease-in-out;
}

.star {
  inline-size: 100%;
  block-size: auto;
  padding: 0.5rem;
  color: var(--DG-Magenta);
  background-color: var(--VS-pink);
  border-radius: 0.5rem;
  gap: 1rem;
}

.padding {
  gap: 1rem;
}

.profiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block-end: 2rem;
}

.style {
  inline-size: 10%;
  block-size: 10%;
  border-radius: 50%;
  margin-inline-end: 2rem;
}

.profile {
  inline-size: 100%;
  block-size: max-content;
  background-color: var(--VD-Magenta);
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  color: var(--White);
  margin-inline: auto;
}

.name {
  color: var(--White);
  font-weight: 700;
}

.status {
  color: var(--S-pink);
}

.caption {
  display: flex;
  flex-flow: row nowrap;
  color: var(--White);
  padding-block-end: 1rem;
}

q {
  line-height: 1.5rem;
}

.one {
  animation: one 3s infinite linear;
}

.two {
  animation: two 3s infinite linear;
}

.three {
  animation: three 3s infinite linear;
}

.four {
  animation: four 3s infinite linear;
}

.five {
  animation: five 3s infinite linear;
}

@keyframes one {
  0% {
    transform: translateY(-4px);
  }
  10% {
    transform: translateY(-8px) scale(1.5);
  }
  30% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes two {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-4px);
  }
  30% {
    transform: translateY(-8px) scale(1.5);
  }
  50% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes three {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(-8px) scale(1.5);
  }
  70% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes four {
  0% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-4px);
  }
  70% {
    transform: translateY(-8px) scale(1.5);
  }
  90% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes five {
  0% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-4px);
  }
  90% {
    transform: translateY(-8px) scale(1.5);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 30rem) {
  html {
    display: flex;
    flex-direction: column;
  }
  .stars {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .star {
    inline-size: auto;
    min-inline-size: 27.7rem;
  }

  .profiles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .profile {
    inline-size: 25rem;
    min-inline-size: 18rem;
  }
}

@media (min-width: 65rem) {
  html {
    display: grid;
    place-content: center;
    block-size: 100vh;
  }

  body {
    display: grid;
    max-inline-size: 100%;
    grid-template-areas:
      "hd str"
      "cap cap";
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;

    background-image: url("/images/bg-pattern-top-desktop.svg"),
      url("/images/bg-pattern-bottom-desktop.svg");
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
    background-origin: padding-box;
    background-position: -200px -180px, 250px 100px;
  }

  .head :is(h1, p) {
    margin: 0;
    text-align: start;
  }

  .head {
    grid-area: hd;

    display: flex;
    flex-direction: column;
    inline-size: 80%;
    gap: 2rem;
  }

  .stars {
    inline-size: 100%;
    grid-area: str;
    position: relative;
    align-content: flex-end;
  }

  .star {
    max-inline-size: 100%;
    display: flex;
    flex-wrap: nowrap;
  }

  .star p {
    margin-inline-start: 1rem;
  }

  .padding {
    display: flex;
    padding: 1rem;
  }

  .profiles {
    grid-area: cap;
    flex-direction: row;
    justify-content: space-between;
  }

  .profile {
    padding: 1.5rem;
    max-inline-size: 20rem;
  }

  .star:first-child {
    transform: translateX(-4rem);
  }

  .star:nth-child(2) {
    transform: translateX(-2rem);
  }

  .profile:nth-child(2) {
    transform: translateY(2rem);
  }

  .profile:last-child {
    transform: translateY(4rem);
  }
}

@media (min-width: 80rem) {
  html {
    padding: calc(30% / 2);
  }
}
