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

body {
  font-family: "Overpass", sans-serif;
  font-weight: 400;
  background-color: hsl(216, 12%, 8%);
  color: hsl(217, 12%, 63%);
}

p {
  font-size: 15px;
}

main {
  margin-top: 195px;
}

section {
  background-color: hsl(213, 19%, 18%);
  max-width: 410px;
  margin: auto;
  padding: 33px 30px 30px;
  border-radius: 18px;
}

.icon-star {
  padding: 15px;
  border-radius: 50%;
  background: hsl(216, 12%, 21%);
  margin-bottom: 30px;
}

h1 {
  color: hsl(0, 100%, 100%);
  font-size: 1.75rem;
  margin-bottom: 10px;
}

fieldset {
  border: none;
}

legend {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.button-grp {
  display: flex;
  -moz-column-gap: 20px;
       column-gap: 20px;
  margin-top: 23px;
  margin-bottom: 32px;
}

button[type=button] {
  font-family: "Overpass", sans-serif;
  font-size: 0.9375rem;
  background: hsl(216, 12%, 21%);
  color: hsl(217, 12%, 63%);
  border: none;
  font-weight: 700;
  padding: 16px 22px;
  border-radius: 50%;
}
button[type=button]:hover {
  background: hsl(25, 97%, 53%);
  color: hsl(213, 19%, 18%);
}
button[type=button]:focus {
  background: hsl(0, 100%, 100%);
  color: hsl(213, 19%, 18%);
}

button[type=button].selected {
  background: hsl(0, 100%, 100%);
  color: hsl(213, 19%, 18%);
}

button[type=submit] {
  width: 100%;
  height: 46px;
  border-radius: 20px;
  border: 1px solid black;
  background-color: hsl(25, 97%, 53%);
  font-family: "Overpass", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(216, 12%, 8%);
  letter-spacing: 2px;
}
button[type=submit]:hover {
  background: hsl(0, 100%, 100%);
}

#thankYouStateContainer {
  display: none;
  text-align: center;
  padding: 45px 35px 46px;
}
#thankYouStateContainer h2 {
  color: hsl(0, 100%, 100%);
  font-size: 1.65em;
  margin-bottom: 13px;
}

.rating-selection {
  display: inline-block;
  color: hsl(25, 97%, 53%);
}
.rating-selection-wrapper {
  background: hsl(216, 12%, 21%);
  padding-top: 6px;
  padding-bottom: 6px;
  margin: 26px auto 38px;
  width: 50%;
  border-radius: 16px;
}

.thank-you-msg {
  line-height: 1.5;
}

.no-rating-selected {
  border: 1px solid hsl(0, 100%, 100%);
}

@media screen and (max-width: 711px) {
  main {
    margin: 155px 0;
  }
  section {
    max-width: 330px;
    padding: 25px 25px 30px;
  }
  .icon-star {
    padding: 12px;
    margin-bottom: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  legend {
    font-size: 0.875rem;
    width: 280px;
  }
  .button-grp {
    -moz-column-gap: 15px;
         column-gap: 15px;
    margin-bottom: 25px;
  }
  button[type=button] {
    font-size: 0.875rem;
    padding: 0 18px;
    height: 44px;
  }
  button[type=submit] {
    border-radius: 30px;
  }
  #thankYouStateContainer {
    padding: 35px 25px 40px;
  }
  #thankYouStateContainer img {
    width: 55%;
  }
  #thankYouStateContainer h2 {
    font-size: 1.5em;
  }
  .rating-selection-wrapper {
    width: 60%;
    margin-top: 15px;
    margin-bottom: 25px;
  }
  .rating-selection {
    font-size: 0.875rem;
  }
  .thank-you-msg {
    font-size: 0.875rem;
  }
}