@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

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

:root {
  --Orange: hsl(25, 97%, 53%);
  --White: hsl(0, 100%, 100%);
  --greyc: rgb(66, 66, 78);
  --Grey500: hsl(217, 12%, 63%);
  --Grey900: hsl(213, 19%, 18%);
  --Grey950: hsl(216, 12%, 8%);
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1 {
  font-size: 3rem;
  color: var(--White);
}

h2 {
  font-size: 2rem;
  color: var(--White);
}

p {
  font-size: 1.6rem;
  color: var(--Grey500);
}

main {
  margin: 0 auto;
  padding: 12.5rem 2rem;
  background-color: var(--Grey950);
}

.all {
  position: relative;
}

.container {
  margin: 0 auto;
  background-color: var(--Grey900);
  max-width: 350px;
  width: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
}

.icon {
  padding: 1.6rem;
  border-radius: 50%;
  background-color: var(--greyc);
  cursor: pointer;
}

.rate-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.circle-container {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--greyc);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.7rem;
  border: none;
}

.circle:focus {
  background-color: var(--White);
  color: var(--Grey900);
}

.circle:hover {
  color: var(--Grey900);
  background-color: var(--Orange);
}

.submit {
  padding: 0.5rem;
  border-radius: 50px;
  background-color: var(--Orange);
  font-size: 2rem;
  text-align: center;
  color: var(--Grey900);
}

.submit a {
  color: var(--Grey900);
}

.submit:hover {
  background-color: var(--White);
  color: var(--Grey500);
}

/*dark mode toggle */
body[data-theme='dark'] main {
  background-color: var(--Grey500);
}

body[data-theme='dark'] .container {
  background-color: rgb(41, 43, 43);
}

/*PART 2*/

.hidden {
  visibility: hidden;
}

.container2 {
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  background-color: var(--Grey900);
  border-radius: 10px;
  padding: 3rem;
  position: absolute;
  inset: 0%;
}

.result {
  padding: 1rem;
  border-radius: 50px;
  background-color: var(--greyc);
  font-size: 1.7rem;
  color: var(--Orange);
}

.appreciate {
  text-align: center;
}

.attribution {
  font-size: 11px;
  text-align: center;
  background-color: var(--Orange);
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 500px) {
  main {
    padding: 12.5rem 6rem;
  }
}
