* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  font-family: 'Open Sans', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.community-logo {
  /* For browsers that don't support 'min-content' */
  min-width: 1024px;
  min-width: min-content;
  width: 100%;
}

h2 {
  font-size: 37px;
  font-weight: 600;
  margin-bottom: 0;
}

h3 {
  font-size: 30px;
  font-weight: 600;
}

.survey-content,
.response-content {
  background-color: white;
  padding: 15px;
  text-align: center;
}

.thanks {
  margin-top: 5px;
  opacity: 0.6;
}

.feedback {
  margin-top: 50px;
}

.question {
  font-weight: 600;
  font-style: italic;
}

label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  padding: 5px;

  transition: opacity 300ms linear;
  cursor: pointer;
}

label input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}

.feedback-form {
  display: inline-block;
}

.feedback-form:hover .star {
  opacity: 1;
  transform: rotate(72deg) scale(1.2);
}

/* All stars after the currently hovered label */
.feedback-form label:hover ~ label .star {
  opacity: 0.5;
  transform: none;
}

/* When an input is selected, animate the star */
input:checked ~ .star {
  transition: transform 500ms ease-out, opacity 500ms linear;
  opacity: 0.3 !important;
  transform: rotate(360deg) scale(30) !important;
}

.star {
  width: 100%;
  height: 100%;
  display: block;

  opacity: 0.5;
  background-image: url('./star.svg');
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 200ms ease-out;
  cursor: pointer;
}

.survey-content.complete {
  opacity: 0;
  transition: opacity linear 500ms;
}

.missing-survey {
  text-align: center;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes grow-in {
  from {
    transform: scale(0) rotate(-90deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}

.response {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.response-content {
  animation: fade-in linear 500ms;
}

.party {
  animation: grow-in 300ms ease-out, fade-in linear 800ms;
  width: 200px;
  margin-top: 10%;
}

.missing-survey,
.survey,
.response {
  display: none;
}
