:root {
  --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-slate-blue: hsl(252, 100%, 67%);
  --light-royal-blue: hsl(241, 81%, 54%);
  --violet-blue: hsla(256, 72%, 46%, 1);
  --persian-blue: hsla(241, 72%, 46%, 0);
  --white: hsl(0, 0%, 100%);
  --pale-blue: hsl(221, 100%, 96%);
  --light-lavender: hsl(241, 100%, 89%);
  --dark-gray-blue: hsl(224, 30%, 27%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--pale-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Hanken Grotesk', sans-serif;
  height: 100vh;
}

.card {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 700px;
  background-color: white;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 2em;
  overflow: hidden;
}

.result {
  background: linear-gradient(to bottom, var(--light-slate-blue), var(--light-royal-blue));
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  color: var(--white);
  border-radius: 2em;
}

#p1 {
  color: var(--light-lavender);
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 1em;
}

.score #sp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  font-size: 3em;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--violet-blue), var(--persian-blue));
  color: var(--white);
  margin-bottom: 1em;
}

#sp2 {
  font-size: 0.4em;
  color: var(--light-lavender);
  display: block;
}

#sp3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.desc {
  font-size: 0.9em;
  color: var(--light-lavender);
  padding: 0 1em;
}

.summary {
  background-color: var(--white);
  padding: 2em;
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 1em;
}

.summary-title {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--dark-gray-blue);
  margin-bottom: 0.5em;
  text-align: left;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9em;
}

.summary-item img {
  width: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.reaction {
  background-color: hsla(0, 100%, 67%, 0.1);
  color: hsl(0, 100%, 67%);
}
.reaction:hover{
  box-shadow: 2px 2px 6px;
}

.memory {
  background-color: hsla(39, 100%, 56%, 0.1);
  color: hsl(39, 100%, 56%);
}
.memory:hover{
  box-shadow: 2px 2px 6px;
}

.verbal {
  background-color: hsla(166, 100%, 37%, 0.1);
  color: hsl(166, 100%, 37%);
}
.verbal:hover{
  box-shadow: 2px 2px 6px;
}

.visual {
  background-color: hsla(234, 85%, 45%, 0.1);
  color: hsl(234, 85%, 45%);
}
.visual:hover{
  box-shadow: 2px 2px 6px;
}

.continue-btn {
  width: 100%;
  padding: 1em;
  border-radius: 2em;
  border: none;
  background-color: var(--dark-gray-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.continue-btn:hover{
  box-shadow: 2px 2px 6px;
    background-color: hsl(234, 85%, 45%);
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
    width: 90%;
  }

  .result, .summary {
    width: 100%;
  }
}
