/* Custom Styles */
:root {
  --orange-500: hsl(25, 97%, 53%);
  --white: hsl(0, 100%, 100%);
  --grey-500: hsl(217, 12%, 63%);
  --grey-900: hsl(213, 19%, 18%);
  --grey-950: hsl(216, 12%, 8%);
  --grey-24: hsl(217, 12%, 24%);
  --primary-color: var(--orange-500);
  --primary-hover: var(--orange-500);
  --bg-card: var(--grey-900);
  --bg-page: var(--grey-950);
  --text-primary: var(--white);
  --text-secondary: var(--grey-500);
  --border-radius: 1.5rem;
  --mg-bottom: 1.5rem;
  --bg-radius: 50%;
}

body {
  font-family: 'Overpass', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 75rem;
  padding: 1rem;
}

.rating-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.rating-content {
  display: flex;
  flex-direction: column;
}

.rating-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.rating-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: var(--mg-bottom);
  line-height: 1.7;
}

.star {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--grey-24);
  border-radius: var(--bg-radius);
  margin-bottom: var(--mg-bottom);
}

.star img {
  position: relative;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

#rating {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: var(--mg-bottom);
}

button.rating {
  width: 15%;
  height: auto;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--grey-24);
  color: var(--text-primary);
}

button.rating:hover {
  background-color: var(--primary-hover);
  color: var(--text-primary);
  cursor: pointer;
}

button.rating:focus {
  background-color: var(--white);
  color: var(--grey-950);
}

button#submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--grey-950);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: .8rem;
  border-radius: var(--border-radius);
  border: none;
  text-transform: uppercase;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  button#submit {
    transition: none;
  }
}

button#submit:hover {
  background-color: var(--white);
}

.thank-you-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thank-you-content img {
  margin-bottom: var(--mg-bottom);
}

.selected-rating {
  background-color: var(--grey-24);
  color: var(--orange-500);
  border-radius: var(--border-radius);
  border: none;
  padding: .5rem 1rem;
  margin-bottom: var(--mg-bottom);
}

.attribution {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: .875rem;
}

.attribution a {
  color: var(--primary-color);
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

@media (max-width: 37.5rem) {
  .rating-card {
    padding: 1rem;
  }

  button.rating {
    width: 20%;
  }
}