* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "League Spartan", sans-serif;
}

:root {
  --main-background: hsl(222, 26%, 31%);
  --toggle-background: hsl(223, 31%, 20%);
  --keypad-background: hsl(223, 31%, 20%);
  --screen-background: hsl(224, 36%, 15%);
  --key-background: hsl(225, 21%, 49%);
  --key-background-shadow: hsl(224, 28%, 35%);
  --key-background-eq-t: hsl(6, 63%, 50%);
  --key-background-eq-shadow: hsl(6, 70%, 34%);
  --key-num-background: hsl(30, 25%, 89%);
  --key-num-background-shadow: hsl(28, 16%, 65%);
  --text-color-1: hsl(221, 14%, 31%);
  --text-color-2: hsl(0, 0%, 100%);
  --text-color-eq: hsl(0, 0%, 100%);
}

body {
  background-color: var(--main-background);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

main {
  width: 95%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: var(--text-color-2);
}
.switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.switcher h3 {
  font-size: 0.9rem;
  color: var(--text-color-2);
}
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.number {
  display: flex;
  justify-content: space-between;
  width: 80%;
  color: var(--text-color-2);
}
.toggle {
  background-color: var(--toggle-background);
  padding: 0.3rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.toggle span {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.5s;
}

.toggle span.active {
  background-color: var(--key-background-eq-t);
}

.input {
  background-color: var(--screen-background);
  padding: 1.3rem 1rem;
  text-align: right;
  font-size: 2rem;
  color: var(--text-color-2);
  border-radius: 0.3rem;
}

.btns {
  background-color: var(--keypad-background);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.3rem;
}

.btns button {
  padding: 1.1rem;
  border: none;
  border-radius: 0.5rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  cursor: pointer;
  background-color: var(--key-num-background);
  box-shadow: 0 3px var(--key-num-background-shadow);
}

button.del,
button.reset {
  background-color: var(--key-background);
  box-shadow: 0 3px var(--key-background-shadow);
  color: white;
}

button.eq {
  background-color: var(--key-background-eq-t);
  box-shadow: 0 3px var(--key-background-eq-shadow);
  color: var(--text-color-eq);
}

button.reset {
  grid-row: 5 / span 1;
  grid-column: 1 / span 2;
}

button.eq {
  grid-row: 5 / span 1;
  grid-column: 3 / span 2;
}

body.theme-2 {
  --main-background: hsl(0, 0%, 90%);
  --toggle-background: hsl(0, 5%, 81%);
  --keypad-background: hsl(0, 5%, 81%);
  --screen-background: hsl(0, 0%, 93%);
  --key-background: hsl(185, 42%, 37%);
  --key-background-shadow: hsl(185, 58%, 25%);
  --key-background-eq-t: hsl(25, 98%, 40%);
  --key-background-eq-shadow: hsl(25, 99%, 27%);
  --key-num-background: hsl(45, 7%, 89%);
  --key-num-background-shadow: hsl(35, 11%, 61%);
  --text-color-1: hsl(60, 10%, 19%);
  --text-color-2: hsl(60, 10%, 19%);
  --text-color-eq: hsl(0, 0%, 100%);
}

body.theme-3 {
  --main-background: hsl(268, 75%, 9%);
  --toggle-background: hsl(268, 71%, 12%);
  --keypad-background: hsl(268, 71%, 12%);
  --screen-background: hsl(268, 71%, 12%);
  --key-background: hsl(281, 89%, 26%);
  --key-background-shadow: hsl(285, 91%, 52%);
  --key-background-eq-t: hsl(177, 92%, 70%);
  --key-background-eq-shadow: hsl(176, 100%, 44%);
  --key-num-background: hsl(268, 47%, 21%);
  --key-num-background-shadow: hsl(290, 70%, 36%);
  /* --text-color-1: hsl(52, 100%, 62%); */
  --text-color-2: hsl(52, 100%, 62%);
  --text-color-eq: black;
}

body.theme-3 .btns button {
  color: hsl(52, 100%, 62%);
}
body.theme-3 .btns button.reset {
  color: white;
}
body.theme-3 .btns button.del {
  color: white;
}
body.theme-3 .btns button.eq {
  color: black;
}
