@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;700&display=swap');

:root{
	--primary:hsl(216, 12%, 8%);
	--secondary:hsl(213, 19%, 18%);
	--tertiary:hsl(216, 12%, 54%);
	--white:hsl(0, 0%, 100%);
	--primary-accent:hsl(25, 97%, 53%);
	--secondary-accent:hsl(214, 19%, 21%);
	--tertiary-accent:hsl(216, 12%, 54%);
	--soft-edge:8px;
	--rounded-edge:28px;
	--circle-border:50%;
	--fs-small: 1.25rem;
	--fs-medium:2rem;
	--fs-large:4rem;
	--fw-thin: 200;
	--fw-normal: 400;
	--fw-bold: 700;
}


/* 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;
  }
}


/*Utility Classes*/

.flex-center{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.flex-column{
	display: flex;
	flex-direction: column;
}

.display-none{
	display: none;
}

.selected{
	background-color: var(--tertiary-accent)!important;
	color: var(--white)!important;
}

/*Style start*/

body{
	font-family: 'Overpass', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	background-color: var(--primary);
	outline: 2px solid rgba(0, 255, 0, 0.329);
}

main{
	padding: 1rem;
}

.container{
	max-width: 28rem;
	padding:2.25rem;
	background-color: var(--secondary);
	border-radius: var(--rounded-edge);
}

/* rating card*/

.rating-container{
	gap:2rem;
}

.star{
	display:flex;
	align-self: flex-start;
	padding: 1.25rem;
	border-radius: var(--circle-border);
	background-color: var(--secondary-accent);
}

.text{
	gap:1rem;
}

.rating-container h1{
	color:var(--white);
}

.rating-container p{
	color: var(--tertiary);
	font-weight: var(--fw-normal);
}

.rating-input{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.number{
	color: var(--tertiary);
	font-size: var(--fs-small);
	font-weight: var(--fw-bold);
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 2rem;
	max-height: 2rem;
	padding: 1.75rem;
	background-color: var(--secondary-accent);
	border-radius: var(--circle-border);
	transition: all 300ms ease;
}

@media screen and (max-width:430px) {
	.number{
		font-size: 1rem;
		max-width: 1rem;
		max-height: 1rem;
		padding: 1.5rem;
	}
}

@media screen and (max-width:390) {
	.numbers{
		max-width: 1rem;
		max-height: 1rem;
		font-size: 1rem;
	}
}

.number:hover{
	background-color: var(--tertiary-accent);
	color: var(--white);
	cursor: pointer;
}

.submit{
	background-color: var(--primary-accent);
	border: 0;
	border-radius: var(--rounded-edge);
	transition: all 300ms ease;
}

.submit:hover{
	background-color: var(--white);
	cursor: pointer;
}

.submit p{
	color: var(--white);
	padding: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.13rem;
	font-weight: var(--fw-bold);
	transition: all 300ms ease;
}

.submit p:hover{
	color: var(--primary-accent);
}

/*thank you card*/

.thank-you-container{
	gap:2rem;
}

.phone-illustration{
	max-width: 10rem;
	align-self: center;
}

.output{
	background-color: var(--secondary-accent);
	color: var(--primary-accent);
	text-align: center;
	align-self: center;
	padding: 0.25rem 1rem;
	max-width: 14rem;
	border-radius: var(--rounded-edge);
}

.thank-you-text{
	text-align: center;
	max-width: 22.5rem;
}

.thank-you-text h2{
	color: var(--white);
	font-size: var(--fs-medium);
}

.thank-you-text p{
	color: var(--tertiary);
}