@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;

  background-color: #ffffff;
  color: hsl(224, 30%, 27%);
}

/* =========================
   Main
   ========================= */

main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Main Container
   ========================= */

#first {
  width: min(100%, 736px);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0 auto;
  min-height: 512px;
}

/* =========================
   Result Section
   ========================= */

#first-1 {
  width: 50%;
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  color: hsl(0, 0%, 100%);

  background: linear-gradient(
    to bottom,
    hsl(252, 100%, 67%),
    hsl(241, 81%, 54%)
  );

  border-radius: 32px;

  position: relative;
  z-index: 2;
}

/* Result Heading */

#result-heading {
  margin: 0 0 28px;

  font-size: 24px;
  font-weight: 700;

  color: hsl(241, 100%, 89%);
}

/* =========================
   Score Circle
   ========================= */

#first-1 .rating {
  width: 200px;
  height: 200px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;

  background: linear-gradient(
    to bottom,
    hsla(256, 72%, 46%, 1),
    hsla(241, 72%, 46%, 0)
  );
}

/* Score Number */

#first-1 .rating p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#first-1 .rating #number-big {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color: hsl(0, 0%, 100%);
}

#first-1 .rating #number-small {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;

  color: hsla(241, 100%, 89%, 0.65);
}

/* =========================
   Result Text
   ========================= */

#first-1 #great {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

#first-1 .score-text {
  max-width: 260px;
  margin: 0;
  color: hsl(241, 100%, 89%);
  line-height: 1.5;
  font-size: 18px;
}

/* =========================
   Summary Section
   ========================= */

#first-2 {
  width: 50%;
  min-height: 512px;
  padding: 38px 40px;
  background-color: hsl(0, 0%, 100%);
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 10px 10px 30px hsla(224, 30%, 27%, 0.08);
  position: relative;
  z-index: 1;
}

/* Summary Heading */

#summary-heading {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 800;
  text-align: left;
  color: hsl(224, 30%, 27%);
}

/* =========================
   Summary List
   ========================= */

.lists {
  width: 100%;
}

.lists ul {
  padding: 0;
  margin: 0;

  list-style: none;
}

.lists ul li {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;

  padding: 0 16px;
  margin-bottom: 16px;

  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lists ul li:hover {
  transform: translateX(5px);

  box-shadow: 0 4px 10px hsla(224, 30%, 27%, 0.08);
}

/* =========================
   Category Colors
   ========================= */

/* Reaction */

.lists ul li:nth-of-type(1) {
  color: hsl(0, 100%, 67%);
  background-color: hsla(0, 100%, 67%, 0.08);
}

/* Memory */

.lists ul li:nth-of-type(2) {
  color: hsl(39, 100%, 56%);
  background-color: hsla(39, 100%, 56%, 0.08);
}

/* Verbal */

.lists ul li:nth-of-type(3) {
  color: hsl(166, 100%, 37%);
  background-color: hsla(166, 100%, 37%, 0.08);
}

/* Visual */

.lists ul li:nth-of-type(4) {
  color: hsl(234, 85%, 45%);
  background-color: hsla(234, 85%, 45%, 0.08);
}

/* =========================
   Icons
   ========================= */

.lists img {
  margin-right: 10px;
}

/* =========================
   List Numbers
   ========================= */

.lists ul li .list-number {
  margin-left: auto;
}

.lists .list-number .list-number-1 {
  color: hsl(224, 30%, 27%);
  font-weight: 800;
}

.lists .list-number .list-number-2 {
  color: hsla(224, 30%, 27%, 0.55);
  font-weight: 700;
}

/* =========================
   Continue Button
   ========================= */

#first-2 button {
  width: 100%;
  min-height: 56px;

  padding: 0 20px;
  margin-top: 8px;

  border: none;
  border-radius: 28px;

  font-family: inherit;
  font-size: 18px;
  font-weight: 700;

  color: hsl(0, 0%, 100%);
  background-color: hsl(224, 30%, 27%);

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

#first-2 button:hover {
  background: linear-gradient(
    to bottom,
    hsl(252, 100%, 67%),
    hsl(241, 81%, 54%)
  );

  transform: translateY(-2px);
}

#first-2 button:focus-visible {
  outline: 3px solid hsl(252, 100%, 67%);
  outline-offset: 3px;
}

/* =========================
   Attribution
   ========================= */

.attribution {
  width: 100%;
  text-align: center;
  font-size: 16px;
}

.attribution span {
  display: inline;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 767px) {
  main {
    min-height: auto;
  }

  #first {
    width: 100%;
    max-width: 500px;

    min-height: auto;

    flex-direction: column;

    margin: 0 auto;
  }

  #first-1 {
    width: 100%;

    min-height: auto;

    padding: 32px 24px 40px;

    border-radius: 0 0 32px 32px;
  }

  #first-2 {
    width: 100%;

    min-height: auto;

    padding: 32px 24px 40px;

    border-radius: 0;

    box-shadow: none;
  }

  #first-1 .rating {
    width: 180px;
    height: 180px;
  }

  #first-1 .rating #number-big {
    font-size: 64px;
  }
}

/* =========================
   Mobile - 480px
   ========================= */

@media (max-width: 480px) {
  body {
    font-size: 18px;
  }

  main {
    align-items: flex-start;
  }

  #first {
    width: 100%;
    max-width: none;
  }

  #first-1 {
    padding: 24px 24px 40px;
  }

  #result-heading {
    margin-bottom: 24px;
    font-size: 20px;
  }

  #first-1 .rating {
    width: 140px;
    height: 140px;

    margin-bottom: 22px;
  }

  #first-1 .rating #number-big {
    font-size: 56px;
  }

  #first-1 .rating #number-small {
    font-size: 14px;
  }

  #first-1 #great {
    font-size: 26px;
  }

  #first-1 .score-text {
    max-width: 280px;

    font-size: 16px;
  }

  #first-2 {
    padding: 28px 30px 32px;
  }

  #summary-heading {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .lists ul li {
    min-height: 56px;

    margin-bottom: 14px;

    padding: 0 14px;

    font-size: 15px;
  }

  #first-2 button {
    margin-top: 10px;
    font-size: 16px;
  }


  .attribution span {
    display: block;
  }
}

/* =========================
   Very Small Screens - 350px
   ========================= */

@media (max-width: 350px) {
  #first-1 {
    padding-left: 18px;
    padding-right: 18px;
  }

  #first-2 {
    padding-left: 20px;
    padding-right: 20px;
  }

  #first-1 .rating {
    width: 125px;
    height: 125px;
  }

  #first-1 .rating #number-big {
    font-size: 50px;
  }

  .lists ul li {
    font-size: 14px;
    padding: 0 12px;
  }
}