/* Global Styles */

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

:root {
  --white: #fff;
  --black: #000;
  --grey: #a4a4a4;
  --navy-950: #303b59;
  --navy-200: #cac9ff;
  --navy-50: #ecf2ff;
  --blue-800: #1125d6;
  --blue-50: #f3f4fd;
  --yellow-400: #ffb21e;
  --yellow-50: #fffbf4;
  --red-400: #ff5555;
  --red-50: #fff6f6;
  --green-500: #00bb8f;
  --green-50: #f2fcf9;
  --gradient-1: linear-gradient(#4d21c9, #2521c9);
  --gradient-2: linear-gradient(#7755ff, #2f2ce9);
  --text-preset-1-fs: 4.5rem;
  --text-preset-1-fw: 800;
  --text-preset-2-fs: 3.5rem;
  --text-preset-2-fw: 800;
  --text-preset-3-fs: 2rem;
  --text-preset-3-fs: 700;
  --text-preset-3-lh: 130%;
  --text-preset-4-fs: 1.5rem;
  --text-preset-4-fw: 700;
  --text-preset-4-lh: 130%;
  --text-preset-5-fs: 1.125rem;
  --text-preset-5-fw: 700;
  --text-preset-5-lh: 130%;
  --text-preset-5-med-fs: 1.125rem;
  --text-preset-5-med-fw: 500;
  --text-preset-5-med-lh: 130%;
  --text-preset-6-fs: 1rem;
  --text-preset-6-fw: 700;
  --text-preset-6-lh: 130%;
  --text-preset-6-med-fs: 1rem;
  --text-preset-6-med-fw: 500;
  --text-preset-6-med-lh: 130%;
}

/* Main Styles */

body {
  font-family: 'Hanken Grotesk', Arial, Helvetica, sans-serif;
}

.card {
  min-width: 18.75rem;
}

.results-section {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-right-radius: 2.5rem;
  border-bottom-left-radius: 2.5rem;
  background: var(--gradient-2);
  width: 100%;
  height: 22.25rem;
  text-align: center;
}

.results-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
.out-of,
.rating-text {
  color: var(--navy-200);
}

h1 {
  margin-block-end: 1.5rem;
  font-weight: var(--text-preset-1-fw);
  font-size: var(--text-preset-5-fs);
  line-height: var(--text-preset-5-lh);
}

.score-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-block-end: 1.5rem;
  border-radius: 50%;
  background: var(--gradient-1);
  width: 8.75rem;
  height: 8.75rem;
}

.number-score,
.word-rating {
  color: var(--white);
}

.number-score {
  font-weight: var(--text-preset-2-fw);
  font-size: var(--text-preset-2-fs);
}

.out-of {
  font-size: var(--text-preset-6-fs);
  line-height: var(--text-preset-6-lh);
}

.word-rating {
  margin-block-end: 0.5rem;
  font-weight: var(--text-preset-4-fw);
  font-size: var(--text-preset-4-fs);
  line-height: var(--text-preset-4-lh);
}

.rating-text {
  width: 16.25rem;
  font-size: var(--text-preset-6-med-fs);
  line-height: var(--text-preset-6-med-lh);
}

.summary-section {
  padding: 3rem;
}

h2 {
  align-self: flex-start;
  color: var(--navy-950);
  font-weight: var(--text-preset-5-fw);
  font-size: var(--text-preset-5-fs);
  line-height: var(--text-preset-5-lh);
}

.summary-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem;
  padding: 0 1.5rem;
  width: 100%;
  height: 3.5rem;
}

.summary-catergory {
  display: flex;
  gap: 1rem;
}

h3 {
  font-weight: var(--text-preset-6-med-fw);
  font-size: var(--text-preset-6-med-fs);
  line-height: var(--text-preeset-6-med-lh);
}

.summary-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--text-preset-6-fw);
  font-size: var(--text-preset-6-fs);
  line-height: var(--text-preset-6-lh);
}

.summary-item-score {
  color: var(--navy-950);
}

.one-hundred {
  color: var(--grey);
}

.reaction-header {
  color: var(--red-400);
}

.memory-header {
  color: var(--yellow-400);
}

.verbal-header {
  color: var(--green-500);
}

.visual-header {
  color: var(--blue-800);
}

.reaction {
  background-color: var(--red-50);
}

.memory {
  background-color: var(--yellow-50);
}

.verbal {
  background-color: var(--green-50);
}

.visual {
  background-color: var(--blue-50);
}

button {
  transition: background 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  border-radius: 4rem;
  background-color: var(--navy-950);
  height: 3.5rem;

  color: var(--white);
  font-weight: var(--text-preset-5-fw);
  font-size: var(--text-preset-5-fs);
  line-height: var(--text-preset-5-lh);
}

button:hover {
  background: var(--gradient-2);
}

@media screen and (min-width: 51.25rem) {
  body {
    background-color: var(--blue-50);
  }

  main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
  }
  .card {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: 2rem 2rem 2rem var(--navy-200);
    border-radius: 2.5rem;
    background-color: var(--white);
    width: 42.875rem;
    height: 32rem;
  }

  .results-section {
    border-radius: 2.5rem;
    width: 21.125rem;
    height: 32rem;
  }
}
