@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  --BGCOLOR-PRIMARY-RED: hsl(0, 100%, 67%);
  --BGCOLOR-PRIMARY-YELLOW: hsl(39, 100%, 56%);
  --BGCOLOR-PRIMARY-TEAL: hsl(166, 100%, 37%);
  --BGCOLOR-PRIMARY-BLUE: hsl(234, 85%, 45%);

  --BGCOLOR-GRADIENT-SLATE-BLUE: hsl(252, 100%, 67%);
  --BGCOLOR-GRADIENT-ROYAL-BLUE: hsla(241, 81%, 54%, 0.87);

  --BGCOLOR-GRADIENT-VIOLET-BLUE: hsla(256, 72%, 46%, 1);
  --BGCOLOR-GRADIENT-PERSIAN-BLUE: hsla(241, 72%, 46%, 0);

  --BGCOLOR-WHITE: hsl(0, 0%, 100%);
  --BGCOLOR-PALE-BLUE: hsl(221, 100%, 96%);
  --BGCOLOR-LAVENDER: hsl(241, 100%, 89%);
  --BGCOLOR-GRADIENT-GRAY-BLUE: hsl(224, 30%, 27%);

  --FONTSIZE: 1.1rem;
}

html {
  font-family: "Hanken Grotesk", serif;
  font-size: var(--FONTSIZE);
}

main {
  min-height: 40vh;
  background-color: var(--BGCOLOR-WHITE);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.reaction,
.memory,
.verbal,
.visual {
  color: var(--BGCOLOR-PRIMARY-RED);
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  background-color: hsla(0, 100%, 67%, 0.036);
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.memory {
  color: var(--BGCOLOR-PRIMARY-YELLOW);
  background-color: hsla(39, 100%, 56%, 0.052);
}

.verbal {
  color: var(--BGCOLOR-PRIMARY-TEAL);
  background-color: hsla(166, 100%, 37%, 0.044);
}

.visual {
  color: var(--BGCOLOR-PRIMARY-BLUE);
  background-color: hsla(234, 85%, 45%, 0.021);
}
.reaction img,
.memory img,
.verbal img,
.visual img {
  padding-right: 0.2rem;
}

.score {
  color: var(--BGCOLOR-GRADIENT-GRAY-BLUE);
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 40vh;
  background-color: var(--BGCOLOR-GRADIENT-ROYAL-BLUE);
  background-image: linear-gradient(
    to top right,
    var(--BGCOLOR-PRIMARY-BLUE),
    var(--BGCOLOR-GRADIENT-SLATE-BLUE)
  );
  border-radius: 0 0 30px 30px;
}

header p {
  text-align: center;
  color: var(--BGCOLOR-WHITE);
  opacity: 0.8;
  font-size: 0.8rem;
  width: 70%;
}

h1 {
  color: var(--BGCOLOR-LAVENDER);
  font-size: 0.8rem;
  opacity: 0.8;
  padding: 0.8em;
}

h2 {
  color: var(--BGCOLOR-WHITE);
  opacity: 0.8;
  font-size: 1.3rem;
  padding: 1rem;
}

h3 {
  color: var(--BGCOLOR-GRADIENT-GRAY-BLUE);
  font-size: 0.9rem;
  font-weight: bolder;
  margin-bottom: 0.9rem;
}

.result {
  background-image: linear-gradient(
    to bottom right,
    var(--BGCOLOR-PRIMARY-BLUE),
    var(--BGCOLOR-GRADIENT-PERSIAN-BLUE)
  );
  border-radius: 50%;
  border: none;
  min-width: 100px;
  min-height: 100px;
  color: var(--BGCOLOR-LAVENDER);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result p:last-child {
  opacity: 0.7;
}

.result__number {
  font-weight: 700;
  font-size: 2.5rem;
}

button {
  background-color: var(--BGCOLOR-GRADIENT-GRAY-BLUE);
  color: var(--BGCOLOR-WHITE);
  padding: 0.8rem;
  margin-bottom: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 15px;
  font-weight: bolder;
  cursor: pointer;
}

button:hover {
  background-color: var(--BGCOLOR-GRADIENT-ROYAL-BLUE);
}

footer {
  margin-top: 10vh;
}

@media only screen and (min-width: 753px) {
  body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--BGCOLOR-PALE-BLUE);
    opacity: 0.9;
  }

  main {
    background-color: var(--BGCOLOR-WHITE);
    border-radius: 0 30px 30px 0;
    padding: 2rem;
    margin-right: 2rem;
  }

  header {
    margin-left: 2rem;
    border-radius: 30px;
  }

  main,
  header {
    min-height: 60vh;
    margin-top: 10vh;
    place-content: center;
  }
}

@media only screen and (min-width: 1000px) {
  body {
    width: 80vw;
    height: auto;
    margin-top: 10vh;
    margin-left: 10vw;
  }
}

@media only screen and (min-width: 1000px) and(min-width: 1440px) {
  body {
    width: 80vw;
    height: auto;
    margin-top: 10vh;
    margin-left: 10vw;
  }
}

@media only screen and (min-width: 1441px) {
  body {
    width: 50vw;
    height: auto;
    margin-top: 10vh;
    margin-left: 25vw;
  }
}
