:root {
  /* Primary */
  --light-red: hsl(0, 100%, 67%);
  --orangey-yellow: hsl(39, 100%, 56%);
  --green-teal: hsl(166, 100%, 37%);
  --cobalt-blue: hsl(234, 85%, 45%);

  --light-red-transparent: hsla(0, 100%, 67%, 6%);
  --orangey-yellow-transparent: hsla(39, 100%, 56%, 6%);
  --green-teal-transparent: hsla(166, 100%, 37%, 6%);
  --cobalt-blue-transparent: hsla(234, 85%, 45%, 6%);

  /* Gradients */
  --light-slate-blue: hsl(252, 100%, 67%); /* Background */
  --light-royal-blue: hsl(241, 81%, 54%); /* Background */
  --violet-blue: hsla(256, 72%, 46%, 1); /* Circle */
  --persian-blue: hsla(241, 72%, 46%, 0); /* Circle */

  /* Neutral */
  --white: hsl(0, 0%, 100%);
  --pale-blue: hsl(221, 100%, 96%);
  --light-lavender: hsl(241, 100%, 89%);
  --dark-gray-blue: hsl(224, 30%, 27%);
  --light-dark-gray-blue: hsla(224, 30%, 27%, 0.3);
}

html {
  box-sizing: border-box;
}

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

body {
  background-color: var(--pale-blue);
}

body p {
  font-size: 18px;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
}

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

.summary-container {
  background-color: var(--white);
  border-radius: 2rem;
}

/* Overview Section */
.overview {
  background-image: linear-gradient(
    var(--light-slate-blue),
    var(--light-royal-blue) 95%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 2.5rem 3.2rem;
  border-radius: 0 0 2rem 2rem;
}

.overview h2 {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  color: var(--light-lavender);
  font-size: 1rem;
}

.overview h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  color: white;
  font-size: 1.5rem;
}

.overview p {
  text-align: center;
  font-size: 1rem;
  color: var(--light-lavender);
}

.result-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-image: linear-gradient(var(--violet-blue), var(--persian-blue));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-circle h1 {
  color: var(--white);
  font-size: 4rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
}

.result-circle p {
  color: var(--light-lavender);
  font-weight: 700;
}

.result-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.summary {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.summary h2 {
  color: var(--dark-gray-blue);
  font-size: 1.3rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-items div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.summary-items div dt strong {
  font-size: 1rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
}

.summary-items div dd {
  color: var(--light-dark-gray-blue);
  font-size: 1rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
}
.summary-items div dd strong {
  color: var(--dark-gray-blue);
}

.summary-items div:nth-child(1) {
  background-color: var(--light-red-transparent);
}
.summary-items div:nth-child(2) {
  background-color: var(--orangey-yellow-transparent);
}
.summary-items div:nth-child(3) {
  background-color: var(--green-teal-transparent);
}
.summary-items div:nth-child(4) {
  background-color: var(--cobalt-blue-transparent);
}

.summary-items div:nth-child(1) dt strong {
  color: var(--light-red);
}
.summary-items div:nth-child(2) dt strong {
  color: var(--orangey-yellow);
}
.summary-items div:nth-child(3) dt strong {
  color: var(--green-teal);
}
.summary-items div:nth-child(4) dt strong {
  color: var(--cobalt-blue);
}

.summary-items dt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.summary button {
  width: 100%;
  border: 0;
  background-color: var(--dark-gray-blue);
  color: var(--white);
  border-radius: 3rem;
  padding: 1rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1rem;
  transition: 0.4s;
}

.summary button:hover {
  background-color: var(--light-royal-blue);
}

.attribution {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-size: 14px;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  main {
    justify-content: center;
    align-items: center;
  }
  .summary-container {
    display: flex;
    max-width: 42rem;
  }

  .result-circle {
    width: 200px;
    height: 200px;
  }

  .overview {
    flex: 1;
    border-radius: 2rem;
    justify-content: space-between;
  }
  .summary {
    flex: 1;
    padding: 2rem;
  }

  .summary button {
    margin-top: 0rem;
  }
}
