/* Custom Properties and Utility Classes  */
:root {
  --clr-primary-400: hsl(25, 97%, 53%);
  --clr-accent-300: hsl(213, 19%, 21%);
  --clr-accent-400: hsl(213, 19%, 18%);
  --clr-accent-500: hsl(216, 12%, 8%);
  --clr-accent-600: hsl(216, 12%, 12%);
  --clr-neutral-100: hsl(0, 0%, 100%);
  --clr-neutral-200: hsl(217, 12%, 63%);
  --clr-neutral-300: hsl(216, 12%, 54%);

  --fs-200: 0.9375rem;
  --fs-300: 1rem;
  --fs-400: 1.25rem;
  --fs-500: 1.5rem;
  --fs-600: 1.75rem;
  --fs-700: 2rem;
  --fs-800: 2.5rem;
  --fs-900: 3rem;

  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;
  --fw-900: 900;

  --ff-primary: "Overpass", sans-serif;
}

/* Utility Classes  */

/* CSS Reset  */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* *{
  outline: 2px solid lime;
} */

/* General Styling  */

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: var(--ff-primary);
  background: var(--clr-accent-500);
}
.container {
  margin: 2rem;
  width: 90%;
  max-width: 25rem;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: left;
  background: linear-gradient(
    0deg,
    var(--clr-accent-600) 0%,
    var(--clr-accent-400) 100%
  );
  animation: star 1.5s ease;
}
@keyframes star {
  from {
    opacity: 0.3;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.img-star {
  background-color: var(--clr-accent-300);
  padding: 0.8rem;
  border: none;
  border-radius: 50%;
  animation: FromTop 1s ease;
}
.container h2 {
  margin-top: 2rem;
  font-size: var(--fs-700);
  font-weight: var(--fw-700);
  color: var(--clr-neutral-100);
  animation: para 1.5s ease;
}
.container p {
  font-size: var(--fs-200);
  color: var(--clr-neutral-200);
  margin-block: 1rem 2rem;
  animation: para 1.5s ease;
}
@keyframes para {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.wrapper ul {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  list-style-type: none;
  animation: opa 0.8s ease;
}
@media (max-width: 23em) {
  .container {
    padding: 1rem;
  }
  .btn-rating {
    margin-bottom: 0.5rem;
  }
  .btn-rating + .btn-rating {
    margin-right: 0.5rem;
  }
}
.btn-rating {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 1rem 1.2rem 0.9rem;
  color: var(--clr-neutral-300);
  background-color: var(--clr-accent-400);
  transition: all 0.4s ease;
}
@keyframes opa {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.btn-rating[data-type="circle"] {
  padding-inline: 1.3rem;
}
.btn-rating:hover {
  color: var(--clr-neutral-100);
  background-color: var(--clr-primary-400);
}
.btn-rating:focus-within {
  color: var(--clr-neutral-100);
  background-color: var(--clr-neutral-300);
}
/* Thank You Container */
.thanks {
  text-align: center;
}
.hide {
  display: none;
}
.img-thank {
  display: block;
  margin: auto;
  margin-bottom: 2rem;
  animation: FromTop 1s ease;
}
@keyframes FromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.thanks p[data-type="orange"] {
  display: inline;
  margin: auto;
  padding: 0.4rem 0.7rem 0.3rem;
  border-radius: 2rem;
  color: var(--clr-primary-400);
  background-color: var(--clr-accent-400);
}

.btn {
  background-color: var(--clr-primary-400);
  border: none;
  width: 100%;
  margin: 1.5rem auto 0;
  color: var(--clr-neutral-100);
  font-weight: var(--fw-400);
  font-size: var(--fs-300);
  padding: 0.8rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  border-radius: 2rem;
  /* cursor: pointer; */
  transition: all 0.3s ease;
  animation: OpacityBtn 1s ease;
}
@keyframes OpacityBtn {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-submit,
.btn-reset {
  cursor: pointer;
}
.btn:hover {
  color: var(--clr-primary-400);
  background-color: var(--clr-neutral-100);
}
.attribution {
  text-align: center;
  font-size: 11px;
  color: var(--clr-neutral-100);
  animation: attribute 1.55s ease;
}

@keyframes attribute {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.attribution a {
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease;
  color: var(--clr-neutral-100);
}
.attribution a:is(:hover, :focus-within) {
  color: var(--clr-primary-400);
}
