/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');

:root {
  --very-dark-blue: hsl(233, 47%, 7%);
  --dark-blue: hsl(244, 38%, 16%);
  --soft-violet: hsl(277, 64%, 61%);

  --main: hsla(0, 0%, 100%, 0.75);
  --stat: hsla(0, 0%, 100%, 0.6);
}

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

body {
  font-family: 'Lexend Deca', sans-serif;
}

main {
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--very-dark-blue);
}


article {
  display: flex;
  flex-direction: row-reverse;
  background-color: var(--dark-blue);
  border-radius: 8px;
  max-width: 800px;
  color: #fff;
  overflow: hidden;
}

@media (min-width: 350px) and (max-width: 768px) {
  article {
    flex-direction: column;
    max-width: 350px;
  }
}

article .right {
  display: flex;
  position: relative;
}

article .right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(277, 100%, 61%, 0.4);
}

article .right img {
  max-width:400px;
}

article .left {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

article .left .content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

article .left .content h1 {
  font-size: 28px;
}

article .left .content h1 span {
  color: var(--soft-violet)
}

article .left .content p {
  font-size: 14px;
  color: var(--stat)
}

article .left .stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;

}

article .left .star {
  font-size: 25px;
}

article .left .star p:last-child {
  color: var(--stat);
  text-transform: uppercase;
  font-size: 11px;
  margin-top: 8px;
  letter-spacing: 2px;
}

@media (min-width: 350px) and (max-width: 768px) {

article .right img {
  max-width: 350px;
}

  article .left {
    text-align: center;
    padding: 30px;
  }

  article .left .stars {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

}