@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;700&display=swap');



/* 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 {
  min-height: 100vh;
  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;
  }
}


/* Common */

body {
    font-family: 'Overpass', sans-serif;
    background-color: hsl(216, 12%, 8%);
    color: white;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

p {
    margin: 1em 0 0;
    color: hsl(217, 12%, 63%);
    font-size: 15px;
}

.card {
    background: linear-gradient(-45deg, hsl(213, 19%, 14%), hsl(213, 19%, 17%));
    min-width: 350px;
    max-width: 400px;
    margin: auto;
    padding: 2rem;
    border-radius: 2rem;
}


.rating-selector {
    display: flex;
    justify-content: space-between;
    margin: 2em 0 0;
}

/* Utilities */

.circle {
    border-radius: 50%;
    background-color: #262F38;
    height: 3em;
    aspect-ratio: 1;
    text-align: center;
    justify-content: center;
    color: hsl(217, 12%, 63%);
    border: none;
    transition: 200ms all;
}

.btn-rating {
    cursor: pointer;
}

.btn-rating:hover {
    cursor: pointer;
    background-color: hsl(25, 97%, 53%);
    color: white;
}

.rating-selected {
    color: white;
    background-color: hsl(217, 12%, 63%)
}

.star {
    margin-bottom: 2em;
}

.star svg {
    margin-top: 8px;
}

.btn-submit {
    color: white;
    text-transform: uppercase;
    border: none;
    border-radius: 3em;
    margin: 2em 0 0;
    width: 100%;
    padding: 0.5em;
    background-color: hsl(25, 97%, 53%);
    font-weight: 700;
    cursor: pointer;
    filter: drop-shadow(0px 5px 5px hsla(216, 12%, 8%, 0.39));
    transition: 200ms all;
}

.btn-submit:hover {
    background-color: white;
    color: hsl(25, 97%, 53%);
}

.thanks {
    background: linear-gradient(-45deg, hsl(213, 19%, 14%), hsl(213, 19%, 17%));
    min-width: 350px;
    max-width: 400px;
    margin: auto;
    padding: 2.5rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.thanks svg {
    margin: auto;
}

.result {
    color: hsl(25, 97%, 53%);
    background-color: #262F38;
    border-radius: 1em;
    margin: 1em auto;
    padding: 0.25em 1em;
    width: fit-content;
}
    
    .hide {
        display:none;
    }

    .greyed, .greyed:hover {
        background-color: hsl(216, 12%, 54%);
        color:hsl(217, 12%, 63%);
    } 