@font-face {
  font-family: "Hanken Grotesk";
  src: url(./assets/fonts/HankenGrotesk-VariableFont_wght.ttf)
    format("truetype-variations");
  font-weight: 0 1000;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body,
.result,
.container,
.subjects,
.total {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*  */
  font-family: "Hanken Grotesk";
}
li {
  list-style-type: none;
}

:root {
  --opacity: 0.1;
}

.result {
  display: flex;
  max-width: 100vw;
}

.container {
  padding: 30px;
  width: 375px;
  max-width: 100%;
}

.score {
  gap: 20px;
  background: linear-gradient(hsl(252, 100%, 67%), hsl(241, 80%, 54%));
  border-radius: 0px 0px 27px 27px;
  color: hsl(241, 100%, 89%);
  font-size: 13px;
  padding-bottom: 40px;
}
.score h3 {
  font-size: 18px;
  font-weight: 700;
}

.total {
  justify-content: center;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  background: linear-gradient(hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
  margin-bottom: 5px;
}
.total h1 {
  color: white;
  font-size: 50px;
  font-weight: 900;
}
.score strong {
  color: white;
  font-size: 22px;
  letter-spacing: 1px;
}
.total p {
  color: hsl(221, 100%, 96%, 0.4);
  font-size: 15px;
}
.message {
  text-align: center;
  padding: 0px 30px;
  font-size: 15px;
}
.summary {
  /* the second container with the "summary" heading and the <ul> container */
  gap: 25px;
  padding-top: 20px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 900;
  opacity: 0.9;
}
.heading {
  font-size: 18px;
}
.subjects {
  /* the <ul> containing the subjects */
  gap: 15px;
  width: 100%;
}

.subjects li {
  /* the individual subjects i.e reaction, memory, e.t.c */
  display: flex;
  flex-direction: row;
  padding: 18px;
  width: 100%;
  gap: 18px;
  justify-content: space-between;
  border-radius: 6px;
  font-weight: 700;
}
li strong {
  /* the score over 100 */
  color: black;
}
li .mark {
  color: hsla(224, 30%, 27%, 0.6);
}
.subjects > :first-child {
  color: hsla(0, 100%, 67%, 0.9);
  background: hsla(0, 100%, 67%, var(--opacity));
}

.subjects > :nth-child(2) {
  color: hsla(39, 100%, 56%);
  background: hsla(39, 100%, 56%, var(--opacity));
}
.subjects > :nth-child(3) {
  color: hsl(166, 100%, 37%);
  background: hsl(166, 100%, 37%, var(--opacity));
}
.subjects > :nth-child(4) {
  color: hsl(234, 85%, 45%);
  background: hsl(234, 85%, 45%, var(--opacity));
}
.subjects .button {
  background: hsl(224, 30%, 27%);
  justify-content: center;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  margin-top: 10px;
}
.button:hover {
  background: linear-gradient(hsl(252, 100%, 67%), hsl(241, 80%, 54%));
}
.subject {
  margin-right: auto;
}

@media only screen and (min-width: 990px) {
  body {
    height: 100vh;
    justify-content: center;
  }
  .result {
    flex-direction: row;
    gap: 0px;
    border-radius: 27px;
    height: 500px;
    box-shadow: 5px 0px 10px 0px hsla(241, 100%, 89%, 0.5);
  }
  .container {
    height: 100%;
    border-radius: 27px;
    width: 370px;
    justify-content: center;
    padding: 40px;
  }
  .score {
    gap: 30px;
  }
  .total {
    width: 200px;
    height: 200px;

    margin-bottom: 5px;
  }
  .total h1 {
    font-size: 65px;
  }
  .score h3 {
    font-size: 23px;
    font-weight: 500;
  }
  .score strong {
    font-size: 32px;
  }
  .total p {
    font-size: 20px;
  }
  .message {
    font-size: 18px;
    padding: 0px 25px 25px 5px;
  }

  .summary {
    font-size: 18px;
  }
  .heading {
    font-size: 23px;
  }
  .subjects li {
    opacity: 0.8;
  }
  .subjects .button {
    margin-top: 25px;
  }
  .attribution {
    margin-top: 30px;
  }
}
