:root {
  --Orange-500: hsl(25, 97%, 53%);

  --White: hsl(0, 100%, 100%);
  --Grey-400: hsl(217, 12%, 30%);
  --Grey-500: hsl(217, 12%, 63%);
  --Grey-900: hsl(213, 19%, 18%);
  --Grey-950: hsl(216, 12%, 8%);
  --Grey-9: rgba(37, 45, 55, 0.7);
  --Font-size-paragraph: 15px;
}

body {
  background-color: var(--Grey-950);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-family: "Overpass", Arial, Helvetica, sans-serif;
}

main {
  background: var(--Grey-9);
  padding: 25px;
  border-radius: 15px;
  width: 80dvw;
}

main * + * {
  margin-bottom: 22px;
}

.star-icon-div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  width: 38px;
  background-color: var(--Grey-400);
  border-radius: 50%;
}

h1 {
  color: var(--White);
}

p {
  color: var(--Grey-500);
  font-size: var(--Font-size-paragraph);
  line-height: 20px;
  font-weight: 400;
  margin-top: 0;
}

.ratings {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

button {
  cursor: pointer;
}

.ratings button {
  color: var(--Grey-500);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  width: 38px;
  background-color: var(--Grey-400);
  border-radius: 50%;
  outline: none;
  border: none;
  margin-bottom: 0;
}

.ratings button:hover,
.submit:hover {
  background-color: var(--White);
  color: var(--Grey-950);
}

button.active {
  background-color: var(--Orange-500);
  color: var(--Grey-950);
}

.submit {
  width: 100%;
  border-radius: 50px;
  background-color: var(--Orange-500);
  color: var(--Grey-950);
  font-weight: 700;
  height: 45px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: none;
  margin-bottom: 0;
}

.rating-state.active {
  display: none;
}

.thankyou {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.thankyou.active {
  display: flex;
}

.thankyou img {
  margin-bottom: 22px;
}

h2 {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.selection-title {
  width: auto;
  background-color: var(--Grey-400);
  color: var(--Orange-500);
  text-align: center;
  border-radius: 50px;
  padding: 9px;
}

h3 {
  margin-top: 0;
  color: var(--White);
}

.attribution {
  font-size: 11px;
  text-align: center;
  color: var(--White);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  outline: 2px solid #000;
}
button:focus {
  outline: 2px solid var(--Orange-500);
  outline-offset: 2px;
}

footer {
  margin-top: 5%;
}

@media (min-width: 768px) {
  main {
    max-width: 350px;
    height: auto;
  }
}
