@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500 800;
  src: url('./assets/fonts/HankenGrotesk-VariableFont_wght.ttf')
    format('truetype');
  font-display: swap;
}
:root {
  /* Primary */
  --Light-red: hsl(0, 100%, 67%);
  --Light-red-transparent: hsla(0, 100%, 67%, 0.05);
  --Orangey-yellow: hsl(39, 100%, 56%);
  --Orangey-yellow-transparent: hsla(39, 100%, 56%, 0.05);
  --Green-teal: hsl(166, 100%, 37%);
  --Green-teal-transparent: hsla(166, 100%, 37%, 0.05);
  --Cobalt-blue: hsl(234, 85%, 45%);
  --Cobalt-blue-transparent: hsla(234, 85%, 45%, 0.05);

  /* Gradients */
  --Light-slate-blue-background: hsl(252, 100%, 67%);
  --Light-royal-blue-background: hsl(241, 81%, 54%);
  --Violet-blue-circle: hsla(256, 72%, 46%, 1);
  --Persian-blue-circle: hsla(241, 72%, 46%, 0);

  /* 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%);
  --Dark-gray-blue-transparent: hsla(224, 30%, 27%, 0.5);
  --Shadow: hsla(224, 82%, 58%, 0.15);

  --Font-Hanken-Grotesk: 'Hanken Grotesk';
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--Font-Hanken-Grotesk);
  background-color: var(--Light-lavender);
}
.card {
  background-color: var(--White);
  max-width: 640px;
  margin: 0 auto;
  & .result {
    background: linear-gradient(
      var(--Light-slate-blue-background),
      var(--Light-royal-blue-background)
    );
    padding: 24px 58px 40px;
    color: var(--White);
    text-align: center;
    border-radius: 0px 0px 32px 32px;
    box-shadow: 0px 30px 60px var(--Shadow);
    & .title {
      font-size: 1.125rem;
      font-weight: 500;
      margin-bottom: 24px;
      color: var(--Light-lavender);
    }
    & .score {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      margin: 0 auto;
      background: linear-gradient(
        var(--Violet-blue-circle),
        var(--Persian-blue-circle)
      );
      display: grid;
      place-content: center;
      margin-bottom: 24px;
      & .number {
        font-size: 3.5rem;
        font-weight: 800;
      }
      & .of {
        color: var(--Light-lavender);
      }
    }
    & .subtitle {
      margin-bottom: 8px;
    }
    & .description {
      color: var(--Light-lavender);
    }
  }
  & .summary {
    padding: 24px 30px;
    color: var(--Dark-gray-blue);
    & .title {
      font-size: 1.125rem;
      margin-bottom: 24px;
    }
    & .summary-item {
      display: flex;
      justify-content: space-between;
      padding: 16px;
      border-radius: 12px;
      font-weight: 700;
      margin-bottom: 16px;
      & .data {
        display: flex;
        gap: 16px;
      }
      & .score {
        color: var(--Dark-gray-blue);
        & span {
          color: var(--Dark-gray-blue-transparent);
        }
      }
    }
    & .reaction {
      background-color: var(--Light-red-transparent);
      color: var(--Light-red);
    }
    & .memory {
      background-color: var(--Orangey-yellow-transparent);
      color: var(--Orangey-yellow);
    }
    & .verbal {
      background-color: var(--Green-teal-transparent);
      color: var(--Green-teal);
    }
    & .visual {
      background-color: var(--Cobalt-blue-transparent);
      color: var(--Cobalt-blue);
    }
  }
  & .continue-btn {
    width: 100%;
    background: var(--Dark-gray-blue);
    color: var(--White);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 128px;
    padding: 16px;
    border: none;
    cursor: pointer;
    &:hover {
      background: linear-gradient(
        var(--Light-slate-blue-background),
        var(--Light-royal-blue-background)
      );
    }
  }
}
@media (width >= 740px) {
  body {
    height: 100vh;
    display: grid;
    place-content: center;
  }
  .card {
    display: flex;
    max-width: unset;
    width: 736px;
    border-radius: 32px;
    & .result {
      border-radius: 32px;
      width: 368px;
      & .title {
        font-size: 1.5rem;
        margin-bottom: 32px;
      }
      & .score {
        width: 200px;
        height: 200px;
        margin-bottom: 36px;
        & .number {
          font-size: 4.5rem;
        }
        & .of {
          font-size: 1.125rem;
        }
      }
      & .subtitle {
        font-size: 2rem;
      }
      & .description {
        font-size: 1.125rem;
      }
    }
    & .summary {
      flex: 1;
      & .title {
        font-size: 1.5rem;
        margin-bottom: 28px;
      }
      & .summary-item {
        font-size: 1.125rem;
      }
      & .continue-btn {
        margin-top: 24px;
      }
    }
  }
}
